]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
0085ce49 | 3 | * Version 1.3.29 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
0085ce49 | 12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
d14a1e28 RD |
13 | |
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 27 | }; |
d14a1e28 RD |
28 | #endif |
29 | ||
0085ce49 | 30 | /* ----------------------------------------------------------------------------- |
32fe5131 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
0085ce49 | 33 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 34 | |
32fe5131 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
0085ce49 RD |
37 | # if defined(__SUNPRO_CC) |
38 | # if (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
40 | # else | |
41 | # define SWIGTEMPLATEDISAMBIGUATOR | |
42 | # endif | |
43 | # else | |
44 | # define SWIGTEMPLATEDISAMBIGUATOR | |
45 | # endif | |
093d3ff1 | 46 | #endif |
d14a1e28 | 47 | |
32fe5131 RD |
48 | /* inline attribute */ |
49 | #ifndef SWIGINLINE | |
50 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
51 | # define SWIGINLINE inline | |
52 | # else | |
53 | # define SWIGINLINE | |
54 | # endif | |
55 | #endif | |
56 | ||
57 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
58 | #ifndef SWIGUNUSED | |
0085ce49 RD |
59 | # if defined(__GNUC__) |
60 | # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) | |
61 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
62 | # else | |
63 | # define SWIGUNUSED | |
64 | # endif | |
65 | # elif defined(__ICC) | |
66 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
32fe5131 RD |
67 | # else |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
0085ce49 RD |
72 | #ifndef SWIGUNUSEDPARM |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
32fe5131 RD |
80 | /* internal SWIG method */ |
81 | #ifndef SWIGINTERN | |
82 | # define SWIGINTERN static SWIGUNUSED | |
83 | #endif | |
84 | ||
85 | /* internal inline SWIG method */ | |
86 | #ifndef SWIGINTERNINLINE | |
87 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
88 | #endif | |
89 | ||
0085ce49 RD |
90 | /* exporting methods */ |
91 | #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) | |
92 | # ifndef GCC_HASCLASSVISIBILITY | |
93 | # define GCC_HASCLASSVISIBILITY | |
94 | # endif | |
95 | #endif | |
96 | ||
32fe5131 RD |
97 | #ifndef SWIGEXPORT |
98 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
99 | # if defined(STATIC_LINKED) | |
100 | # define SWIGEXPORT | |
101 | # else | |
102 | # define SWIGEXPORT __declspec(dllexport) | |
103 | # endif | |
104 | # else | |
0085ce49 RD |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
32fe5131 RD |
110 | # endif |
111 | #endif | |
112 | ||
113 | /* calling conventions for Windows */ | |
114 | #ifndef SWIGSTDCALL | |
115 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
116 | # define SWIGSTDCALL __stdcall | |
117 | # else | |
118 | # define SWIGSTDCALL | |
119 | # endif | |
120 | #endif | |
121 | ||
0085ce49 RD |
122 | /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
123 | #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) | |
124 | # define _CRT_SECURE_NO_DEPRECATE | |
125 | #endif | |
32fe5131 | 126 | |
c9c7117a | 127 | |
0085ce49 | 128 | /* Python.h has to appear first */ |
093d3ff1 | 129 | #include <Python.h> |
d14a1e28 | 130 | |
0085ce49 | 131 | /* ----------------------------------------------------------------------------- |
093d3ff1 | 132 | * swigrun.swg |
d14a1e28 | 133 | * |
0085ce49 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 137 | |
093d3ff1 RD |
138 | /* This should only be incremented when either the layout of swig_type_info changes, |
139 | or for whatever reason, the runtime changes incompatibly */ | |
32fe5131 | 140 | #define SWIG_RUNTIME_VERSION "2" |
d14a1e28 | 141 | |
093d3ff1 RD |
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
143 | #ifdef SWIG_TYPE_TABLE | |
32fe5131 RD |
144 | # define SWIG_QUOTE_STRING(x) #x |
145 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
146 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d14a1e28 | 147 | #else |
32fe5131 | 148 | # define SWIG_TYPE_TABLE_NAME |
093d3ff1 RD |
149 | #endif |
150 | ||
151 | /* | |
152 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
153 | creating a static or dynamic library from the swig runtime code. | |
154 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
155 | ||
156 | But only do this if is strictly necessary, ie, if you have problems | |
157 | with your compiler or so. | |
158 | */ | |
32fe5131 | 159 | |
093d3ff1 | 160 | #ifndef SWIGRUNTIME |
32fe5131 | 161 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 162 | #endif |
32fe5131 | 163 | |
093d3ff1 | 164 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d14a1e28 RD |
166 | #endif |
167 | ||
0085ce49 RD |
168 | /* Generic buffer size */ |
169 | #ifndef SWIG_BUFFER_SIZE | |
170 | # define SWIG_BUFFER_SIZE 1024 | |
171 | #endif | |
172 | ||
173 | /* Flags for pointer conversions */ | |
174 | #define SWIG_POINTER_DISOWN 0x1 | |
175 | ||
176 | /* Flags for new pointer objects */ | |
177 | #define SWIG_POINTER_OWN 0x1 | |
178 | ||
179 | ||
180 | /* | |
181 | Flags/methods for returning states. | |
182 | ||
183 | The swig conversion methods, as ConvertPtr, return and integer | |
184 | that tells if the conversion was successful or not. And if not, | |
185 | an error code can be returned (see swigerrors.swg for the codes). | |
186 | ||
187 | Use the following macros/flags to set or process the returning | |
188 | states. | |
189 | ||
190 | In old swig versions, you usually write code as: | |
191 | ||
192 | if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { | |
193 | // success code | |
194 | } else { | |
195 | //fail code | |
196 | } | |
197 | ||
198 | Now you can be more explicit as: | |
199 | ||
200 | int res = SWIG_ConvertPtr(obj,vptr,ty.flags); | |
201 | if (SWIG_IsOK(res)) { | |
202 | // success code | |
203 | } else { | |
204 | // fail code | |
205 | } | |
206 | ||
207 | that seems to be the same, but now you can also do | |
208 | ||
209 | Type *ptr; | |
210 | int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); | |
211 | if (SWIG_IsOK(res)) { | |
212 | // success code | |
213 | if (SWIG_IsNewObj(res) { | |
214 | ... | |
215 | delete *ptr; | |
216 | } else { | |
217 | ... | |
218 | } | |
219 | } else { | |
220 | // fail code | |
221 | } | |
222 | ||
223 | I.e., now SWIG_ConvertPtr can return new objects and you can | |
224 | identify the case and take care of the deallocation. Of course that | |
225 | requires also to SWIG_ConvertPtr to return new result values, as | |
226 | ||
227 | int SWIG_ConvertPtr(obj, ptr,...) { | |
228 | if (<obj is ok>) { | |
229 | if (<need new object>) { | |
230 | *ptr = <ptr to new allocated object>; | |
231 | return SWIG_NEWOBJ; | |
232 | } else { | |
233 | *ptr = <ptr to old object>; | |
234 | return SWIG_OLDOBJ; | |
235 | } | |
236 | } else { | |
237 | return SWIG_BADOBJ; | |
238 | } | |
239 | } | |
240 | ||
241 | Of course, returning the plain '0(success)/-1(fail)' still works, but you can be | |
242 | more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the | |
243 | swig errors code. | |
244 | ||
245 | Finally, if the SWIG_CASTRANK_MODE is enabled, the result code | |
246 | allows to return the 'cast rank', for example, if you have this | |
247 | ||
248 | int food(double) | |
249 | int fooi(int); | |
250 | ||
251 | and you call | |
252 | ||
253 | food(1) // cast rank '1' (1 -> 1.0) | |
254 | fooi(1) // cast rank '0' | |
255 | ||
256 | just use the SWIG_AddCast()/SWIG_CheckState() | |
257 | ||
258 | ||
259 | */ | |
260 | #define SWIG_OK (0) | |
261 | #define SWIG_ERROR (-1) | |
262 | #define SWIG_IsOK(r) (r >= 0) | |
263 | #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) | |
264 | ||
265 | /* The CastRankLimit says how many bits are used for the cast rank */ | |
266 | #define SWIG_CASTRANKLIMIT (1 << 8) | |
267 | /* The NewMask denotes the object was created (using new/malloc) */ | |
268 | #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) | |
269 | /* The TmpMask is for in/out typemaps that use temporal objects */ | |
270 | #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) | |
271 | /* Simple returning values */ | |
272 | #define SWIG_BADOBJ (SWIG_ERROR) | |
273 | #define SWIG_OLDOBJ (SWIG_OK) | |
274 | #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) | |
275 | #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) | |
276 | /* Check, add and del mask methods */ | |
277 | #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) | |
278 | #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) | |
279 | #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) | |
280 | #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) | |
281 | #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) | |
282 | #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) | |
283 | ||
284 | ||
285 | /* Cast-Rank Mode */ | |
286 | #if defined(SWIG_CASTRANK_MODE) | |
287 | # ifndef SWIG_TypeRank | |
288 | # define SWIG_TypeRank unsigned long | |
289 | # endif | |
290 | # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ | |
291 | # define SWIG_MAXCASTRANK (2) | |
292 | # endif | |
293 | # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) | |
294 | # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) | |
295 | SWIGINTERNINLINE int SWIG_AddCast(int r) { | |
296 | return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; | |
297 | } | |
298 | SWIGINTERNINLINE int SWIG_CheckState(int r) { | |
299 | return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; | |
300 | } | |
301 | #else /* no cast-rank mode */ | |
302 | # define SWIG_AddCast | |
303 | # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) | |
304 | #endif | |
305 | ||
306 | ||
307 | ||
308 | ||
32fe5131 RD |
309 | #include <string.h> |
310 | ||
d14a1e28 RD |
311 | #ifdef __cplusplus |
312 | extern "C" { | |
313 | #endif | |
314 | ||
315 | typedef void *(*swig_converter_func)(void *); | |
316 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
317 | ||
32fe5131 | 318 | /* Structure to store inforomation on one type */ |
d14a1e28 | 319 | typedef struct swig_type_info { |
32fe5131 RD |
320 | const char *name; /* mangled name of this type */ |
321 | const char *str; /* human readable name of this type */ | |
322 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
323 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
324 | void *clientdata; /* language specific type data */ | |
0085ce49 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
d14a1e28 RD |
326 | } swig_type_info; |
327 | ||
32fe5131 RD |
328 | /* Structure to store a type and conversion function used for casting */ |
329 | typedef struct swig_cast_info { | |
330 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
331 | swig_converter_func converter; /* function to cast the void pointers */ | |
332 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
333 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
334 | } swig_cast_info; | |
335 | ||
336 | /* Structure used to store module information | |
337 | * Each module generates one structure like this, and the runtime collects | |
338 | * all of these structures and stores them in a circularly linked list.*/ | |
339 | typedef struct swig_module_info { | |
340 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
341 | size_t size; /* Number of types in this module */ | |
342 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
343 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
344 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
345 | void *clientdata; /* Language specific module data */ | |
346 | } swig_module_info; | |
347 | ||
093d3ff1 RD |
348 | /* |
349 | Compare two type names skipping the space characters, therefore | |
350 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
351 | ||
352 | Return 0 when the two name types are equivalent, as in | |
353 | strncmp, but skipping ' '. | |
354 | */ | |
355 | SWIGRUNTIME int | |
356 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
357 | const char *f2, const char *l2) { | |
358 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
359 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
360 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
0085ce49 | 361 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
093d3ff1 RD |
362 | } |
363 | return (l1 - f1) - (l2 - f2); | |
364 | } | |
365 | ||
366 | /* | |
367 | Check type equivalence in a name list like <name1>|<name2>|... | |
32fe5131 | 368 | Return 0 if not equal, 1 if equal |
093d3ff1 RD |
369 | */ |
370 | SWIGRUNTIME int | |
371 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
372 | int equiv = 0; | |
373 | const char* te = tb + strlen(tb); | |
374 | const char* ne = nb; | |
375 | while (!equiv && *ne) { | |
376 | for (nb = ne; *ne; ++ne) { | |
377 | if (*ne == '|') break; | |
378 | } | |
32fe5131 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
380 | if (*ne) ++ne; |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
32fe5131 RD |
386 | Check type equivalence in a name list like <name1>|<name2>|... |
387 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
093d3ff1 | 388 | */ |
32fe5131 RD |
389 | SWIGRUNTIME int |
390 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
391 | int equiv = 0; | |
392 | const char* te = tb + strlen(tb); | |
393 | const char* ne = nb; | |
394 | while (!equiv && *ne) { | |
395 | for (nb = ne; *ne; ++ne) { | |
396 | if (*ne == '|') break; | |
093d3ff1 | 397 | } |
32fe5131 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
093d3ff1 | 400 | } |
32fe5131 | 401 | return equiv; |
093d3ff1 RD |
402 | } |
403 | ||
32fe5131 RD |
404 | |
405 | /* think of this as a c++ template<> or a scheme macro */ | |
406 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
407 | if (ty) { \ | |
408 | swig_cast_info *iter = ty->cast; \ | |
409 | while (iter) { \ | |
410 | if (comparison) { \ | |
411 | if (iter == ty->cast) return iter; \ | |
412 | /* Move iter to the top of the linked list */ \ | |
413 | iter->prev->next = iter->next; \ | |
414 | if (iter->next) \ | |
415 | iter->next->prev = iter->prev; \ | |
416 | iter->next = ty->cast; \ | |
417 | iter->prev = 0; \ | |
418 | if (ty->cast) ty->cast->prev = iter; \ | |
419 | ty->cast = iter; \ | |
420 | return iter; \ | |
421 | } \ | |
422 | iter = iter->next; \ | |
423 | } \ | |
424 | } \ | |
425 | return 0 | |
426 | ||
093d3ff1 RD |
427 | /* |
428 | Check the typename | |
429 | */ | |
32fe5131 | 430 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
32fe5131 RD |
432 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
433 | } | |
434 | ||
435 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
436 | SWIGRUNTIME swig_cast_info * | |
437 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
438 | SWIG_TypeCheck_Template(iter->type == from, into); | |
093d3ff1 RD |
439 | } |
440 | ||
441 | /* | |
442 | Cast a pointer up an inheritance hierarchy | |
443 | */ | |
444 | SWIGRUNTIMEINLINE void * | |
32fe5131 | 445 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
093d3ff1 RD |
446 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
447 | } | |
448 | ||
449 | /* | |
450 | Dynamic pointer casting. Down an inheritance hierarchy | |
451 | */ | |
452 | SWIGRUNTIME swig_type_info * | |
453 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
454 | swig_type_info *lastty = ty; | |
455 | if (!ty || !ty->dcast) return ty; | |
456 | while (ty && (ty->dcast)) { | |
457 | ty = (*ty->dcast)(ptr); | |
458 | if (ty) lastty = ty; | |
459 | } | |
460 | return lastty; | |
461 | } | |
462 | ||
463 | /* | |
464 | Return the name associated with this type | |
465 | */ | |
466 | SWIGRUNTIMEINLINE const char * | |
467 | SWIG_TypeName(const swig_type_info *ty) { | |
468 | return ty->name; | |
469 | } | |
470 | ||
471 | /* | |
472 | Return the pretty name associated with this type, | |
473 | that is an unmangled type name in a form presentable to the user. | |
474 | */ | |
475 | SWIGRUNTIME const char * | |
476 | SWIG_TypePrettyName(const swig_type_info *type) { | |
477 | /* The "str" field contains the equivalent pretty names of the | |
478 | type, separated by vertical-bar characters. We choose | |
479 | to print the last name, as it is often (?) the most | |
480 | specific. */ | |
0085ce49 | 481 | if (!type) return NULL; |
093d3ff1 RD |
482 | if (type->str != NULL) { |
483 | const char *last_name = type->str; | |
484 | const char *s; | |
485 | for (s = type->str; *s; s++) | |
486 | if (*s == '|') last_name = s+1; | |
487 | return last_name; | |
488 | } | |
489 | else | |
490 | return type->name; | |
491 | } | |
492 | ||
093d3ff1 RD |
493 | /* |
494 | Set the clientdata field for a type | |
495 | */ | |
496 | SWIGRUNTIME void | |
32fe5131 RD |
497 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
498 | swig_cast_info *cast = ti->cast; | |
093d3ff1 RD |
499 | /* if (ti->clientdata == clientdata) return; */ |
500 | ti->clientdata = clientdata; | |
32fe5131 RD |
501 | |
502 | while (cast) { | |
503 | if (!cast->converter) { | |
504 | swig_type_info *tc = cast->type; | |
505 | if (!tc->clientdata) { | |
506 | SWIG_TypeClientData(tc, clientdata); | |
093d3ff1 | 507 | } |
32fe5131 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
0085ce49 RD |
512 | SWIGRUNTIME void |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
32fe5131 RD |
518 | /* |
519 | Search for a swig_type_info structure only by mangled name | |
520 | Search is a O(log #types) | |
521 | ||
522 | We start searching at module start, and finish searching when start == end. | |
523 | Note: if start == end at the beginning of the function, we go all the way around | |
524 | the circular list. | |
525 | */ | |
526 | SWIGRUNTIME swig_type_info * | |
527 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
528 | swig_module_info *end, | |
529 | const char *name) { | |
530 | swig_module_info *iter = start; | |
531 | do { | |
532 | if (iter->size) { | |
533 | register size_t l = 0; | |
534 | register size_t r = iter->size - 1; | |
535 | do { | |
536 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
537 | register size_t i = (l + r) >> 1; | |
538 | const char *iname = iter->types[i]->name; | |
539 | if (iname) { | |
540 | register int compare = strcmp(name, iname); | |
541 | if (compare == 0) { | |
542 | return iter->types[i]; | |
543 | } else if (compare < 0) { | |
544 | if (i) { | |
545 | r = i - 1; | |
546 | } else { | |
547 | break; | |
548 | } | |
549 | } else if (compare > 0) { | |
550 | l = i + 1; | |
551 | } | |
552 | } else { | |
553 | break; /* should never happen */ | |
554 | } | |
555 | } while (l <= r); | |
093d3ff1 | 556 | } |
32fe5131 RD |
557 | iter = iter->next; |
558 | } while (iter != end); | |
559 | return 0; | |
560 | } | |
561 | ||
562 | /* | |
563 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
564 | It first searches the mangled names of the types, which is a O(log #types) | |
565 | If a type is not found it then searches the human readable names, which is O(#types). | |
566 | ||
567 | We start searching at module start, and finish searching when start == end. | |
568 | Note: if start == end at the beginning of the function, we go all the way around | |
569 | the circular list. | |
570 | */ | |
571 | SWIGRUNTIME swig_type_info * | |
572 | SWIG_TypeQueryModule(swig_module_info *start, | |
573 | swig_module_info *end, | |
574 | const char *name) { | |
575 | /* STEP 1: Search the name field using binary search */ | |
576 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
577 | if (ret) { | |
578 | return ret; | |
579 | } else { | |
580 | /* STEP 2: If the type hasn't been found, do a complete search | |
581 | of the str field (the human readable name) */ | |
582 | swig_module_info *iter = start; | |
583 | do { | |
584 | register size_t i = 0; | |
585 | for (; i < iter->size; ++i) { | |
586 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
587 | return iter->types[i]; | |
588 | } | |
589 | iter = iter->next; | |
590 | } while (iter != end); | |
093d3ff1 | 591 | } |
32fe5131 RD |
592 | |
593 | /* neither found a match */ | |
594 | return 0; | |
093d3ff1 RD |
595 | } |
596 | ||
597 | /* | |
598 | Pack binary data into a string | |
599 | */ | |
600 | SWIGRUNTIME char * | |
601 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
32fe5131 RD |
602 | static const char hex[17] = "0123456789abcdef"; |
603 | register const unsigned char *u = (unsigned char *) ptr; | |
604 | register const unsigned char *eu = u + sz; | |
093d3ff1 | 605 | for (; u != eu; ++u) { |
32fe5131 | 606 | register unsigned char uu = *u; |
093d3ff1 RD |
607 | *(c++) = hex[(uu & 0xf0) >> 4]; |
608 | *(c++) = hex[uu & 0xf]; | |
609 | } | |
610 | return c; | |
611 | } | |
612 | ||
613 | /* | |
614 | Unpack binary data from a string | |
615 | */ | |
616 | SWIGRUNTIME const char * | |
617 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
618 | register unsigned char *u = (unsigned char *) ptr; | |
32fe5131 | 619 | register const unsigned char *eu = u + sz; |
093d3ff1 | 620 | for (; u != eu; ++u) { |
32fe5131 | 621 | register char d = *(c++); |
0085ce49 | 622 | register unsigned char uu; |
093d3ff1 RD |
623 | if ((d >= '0') && (d <= '9')) |
624 | uu = ((d - '0') << 4); | |
625 | else if ((d >= 'a') && (d <= 'f')) | |
626 | uu = ((d - ('a'-10)) << 4); | |
627 | else | |
628 | return (char *) 0; | |
629 | d = *(c++); | |
630 | if ((d >= '0') && (d <= '9')) | |
631 | uu |= (d - '0'); | |
632 | else if ((d >= 'a') && (d <= 'f')) | |
633 | uu |= (d - ('a'-10)); | |
634 | else | |
635 | return (char *) 0; | |
636 | *u = uu; | |
637 | } | |
638 | return c; | |
639 | } | |
640 | ||
093d3ff1 RD |
641 | /* |
642 | Pack 'void *' into a string buffer. | |
643 | */ | |
644 | SWIGRUNTIME char * | |
645 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
646 | char *r = buff; | |
647 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
648 | *(r++) = '_'; | |
649 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
650 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
651 | strcpy(r,name); | |
652 | return buff; | |
653 | } | |
654 | ||
655 | SWIGRUNTIME const char * | |
656 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
657 | if (*c != '_') { | |
658 | if (strcmp(c,"NULL") == 0) { | |
659 | *ptr = (void *) 0; | |
660 | return name; | |
661 | } else { | |
662 | return 0; | |
663 | } | |
664 | } | |
665 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
666 | } | |
667 | ||
668 | SWIGRUNTIME char * | |
669 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
670 | char *r = buff; | |
671 | size_t lname = (name ? strlen(name) : 0); | |
672 | if ((2*sz + 2 + lname) > bsz) return 0; | |
673 | *(r++) = '_'; | |
674 | r = SWIG_PackData(r,ptr,sz); | |
675 | if (lname) { | |
676 | strncpy(r,name,lname+1); | |
677 | } else { | |
678 | *r = 0; | |
679 | } | |
680 | return buff; | |
681 | } | |
d14a1e28 | 682 | |
093d3ff1 RD |
683 | SWIGRUNTIME const char * |
684 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
685 | if (*c != '_') { | |
686 | if (strcmp(c,"NULL") == 0) { | |
687 | memset(ptr,0,sz); | |
688 | return name; | |
689 | } else { | |
690 | return 0; | |
691 | } | |
692 | } | |
693 | return SWIG_UnpackData(++c,ptr,sz); | |
694 | } | |
d14a1e28 RD |
695 | |
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
0085ce49 RD |
700 | /* Errors in SWIG */ |
701 | #define SWIG_UnknownError -1 | |
702 | #define SWIG_IOError -2 | |
703 | #define SWIG_RuntimeError -3 | |
704 | #define SWIG_IndexError -4 | |
705 | #define SWIG_TypeError -5 | |
706 | #define SWIG_DivisionByZero -6 | |
707 | #define SWIG_OverflowError -7 | |
708 | #define SWIG_SyntaxError -8 | |
709 | #define SWIG_ValueError -9 | |
710 | #define SWIG_SystemError -10 | |
711 | #define SWIG_AttributeError -11 | |
712 | #define SWIG_MemoryError -12 | |
713 | #define SWIG_NullReferenceError -13 | |
d14a1e28 | 714 | |
0085ce49 RD |
715 | |
716 | ||
717 | /* Python.h has to appear first */ | |
718 | #include <Python.h> | |
719 | ||
720 | /* Add PyOS_snprintf for old Pythons */ | |
721 | #if PY_VERSION_HEX < 0x02020000 | |
722 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) | |
723 | # define PyOS_snprintf _snprintf | |
724 | # else | |
725 | # define PyOS_snprintf snprintf | |
726 | # endif | |
727 | #endif | |
728 | ||
729 | /* A crude PyString_FromFormat implementation for old Pythons */ | |
730 | #if PY_VERSION_HEX < 0x02020000 | |
731 | ||
732 | #ifndef SWIG_PYBUFFER_SIZE | |
733 | # define SWIG_PYBUFFER_SIZE 1024 | |
734 | #endif | |
735 | ||
736 | static PyObject * | |
737 | PyString_FromFormat(const char *fmt, ...) { | |
738 | va_list ap; | |
739 | char buf[SWIG_PYBUFFER_SIZE * 2]; | |
740 | int res; | |
741 | va_start(ap, fmt); | |
742 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
743 | va_end(ap); | |
744 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); | |
745 | } | |
746 | #endif | |
747 | ||
748 | /* Add PyObject_Del for old Pythons */ | |
749 | #if PY_VERSION_HEX < 0x01060000 | |
750 | # define PyObject_Del(op) PyMem_DEL((op)) | |
751 | #endif | |
752 | #ifndef PyObject_DEL | |
753 | # define PyObject_DEL PyObject_Del | |
754 | #endif | |
755 | ||
756 | /* A crude PyExc_StopIteration exception for old Pythons */ | |
757 | #if PY_VERSION_HEX < 0x02020000 | |
758 | # ifndef PyExc_StopIteration | |
759 | # define PyExc_StopIteration PyExc_RuntimeError | |
760 | # endif | |
761 | # ifndef PyObject_GenericGetAttr | |
762 | # define PyObject_GenericGetAttr 0 | |
763 | # endif | |
093d3ff1 | 764 | #endif |
0085ce49 RD |
765 | /* Py_NotImplemented is defined in 2.1 and up. */ |
766 | #if PY_VERSION_HEX < 0x02010000 | |
767 | # ifndef Py_NotImplemented | |
768 | # define Py_NotImplemented PyExc_RuntimeError | |
769 | # endif | |
770 | #endif | |
771 | ||
772 | ||
773 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ | |
774 | #if PY_VERSION_HEX < 0x02010000 | |
775 | # ifndef PyString_AsStringAndSize | |
776 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} | |
777 | # endif | |
778 | #endif | |
779 | ||
780 | /* PySequence_Size for old Pythons */ | |
781 | #if PY_VERSION_HEX < 0x02000000 | |
782 | # ifndef PySequence_Size | |
783 | # define PySequence_Size PySequence_Length | |
784 | # endif | |
785 | #endif | |
786 | ||
787 | ||
788 | /* PyBool_FromLong for old Pythons */ | |
789 | #if PY_VERSION_HEX < 0x02030000 | |
790 | static | |
791 | PyObject *PyBool_FromLong(long ok) | |
792 | { | |
793 | PyObject *result = ok ? Py_True : Py_False; | |
794 | Py_INCREF(result); | |
795 | return result; | |
796 | } | |
797 | #endif | |
798 | ||
c32bde28 | 799 | |
093d3ff1 | 800 | /* ----------------------------------------------------------------------------- |
0085ce49 | 801 | * error manipulation |
093d3ff1 | 802 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 803 | |
0085ce49 RD |
804 | SWIGRUNTIME PyObject* |
805 | SWIG_Python_ErrorType(int code) { | |
806 | PyObject* type = 0; | |
807 | switch(code) { | |
808 | case SWIG_MemoryError: | |
809 | type = PyExc_MemoryError; | |
810 | break; | |
811 | case SWIG_IOError: | |
812 | type = PyExc_IOError; | |
813 | break; | |
814 | case SWIG_RuntimeError: | |
815 | type = PyExc_RuntimeError; | |
816 | break; | |
817 | case SWIG_IndexError: | |
818 | type = PyExc_IndexError; | |
819 | break; | |
820 | case SWIG_TypeError: | |
821 | type = PyExc_TypeError; | |
822 | break; | |
823 | case SWIG_DivisionByZero: | |
824 | type = PyExc_ZeroDivisionError; | |
825 | break; | |
826 | case SWIG_OverflowError: | |
827 | type = PyExc_OverflowError; | |
828 | break; | |
829 | case SWIG_SyntaxError: | |
830 | type = PyExc_SyntaxError; | |
831 | break; | |
832 | case SWIG_ValueError: | |
833 | type = PyExc_ValueError; | |
834 | break; | |
835 | case SWIG_SystemError: | |
836 | type = PyExc_SystemError; | |
837 | break; | |
838 | case SWIG_AttributeError: | |
839 | type = PyExc_AttributeError; | |
840 | break; | |
841 | default: | |
842 | type = PyExc_RuntimeError; | |
843 | } | |
844 | return type; | |
845 | } | |
d14a1e28 | 846 | |
0085ce49 RD |
847 | |
848 | SWIGRUNTIME void | |
849 | SWIG_Python_AddErrorMsg(const char* mesg) | |
850 | { | |
851 | PyObject *type = 0; | |
852 | PyObject *value = 0; | |
853 | PyObject *traceback = 0; | |
854 | ||
855 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); | |
856 | if (value) { | |
857 | PyObject *old_str = PyObject_Str(value); | |
858 | PyErr_Clear(); | |
859 | Py_XINCREF(type); | |
860 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
861 | Py_DECREF(old_str); | |
862 | Py_DECREF(value); | |
863 | } else { | |
864 | PyErr_Format(PyExc_RuntimeError, mesg); | |
865 | } | |
866 | } | |
867 | ||
868 | ||
869 | ||
870 | #if defined(SWIG_PYTHON_NO_THREADS) | |
871 | # if defined(SWIG_PYTHON_THREADS) | |
872 | # undef SWIG_PYTHON_THREADS | |
873 | # endif | |
874 | #endif | |
875 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ | |
876 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) | |
877 | # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ | |
878 | # define SWIG_PYTHON_USE_GIL | |
879 | # endif | |
880 | # endif | |
881 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ | |
882 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS | |
883 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() | |
884 | # endif | |
885 | # ifdef __cplusplus /* C++ code */ | |
886 | class SWIG_Python_Thread_Block { | |
887 | bool status; | |
888 | PyGILState_STATE state; | |
889 | public: | |
890 | void end() { if (status) { PyGILState_Release(state); status = false;} } | |
891 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} | |
892 | ~SWIG_Python_Thread_Block() { end(); } | |
893 | }; | |
894 | class SWIG_Python_Thread_Allow { | |
895 | bool status; | |
896 | PyThreadState *save; | |
897 | public: | |
898 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} | |
899 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} | |
900 | ~SWIG_Python_Thread_Allow() { end(); } | |
901 | }; | |
902 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block | |
903 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() | |
904 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow | |
905 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() | |
906 | # else /* C code */ | |
907 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() | |
908 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) | |
909 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() | |
910 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) | |
911 | # endif | |
912 | # else /* Old thread way, not implemented, user must provide it */ | |
913 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) | |
914 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
915 | # endif | |
916 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) | |
917 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
918 | # endif | |
919 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) | |
920 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
921 | # endif | |
922 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) | |
923 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
924 | # endif | |
925 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) | |
926 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
927 | # endif | |
928 | # endif | |
929 | #else /* No thread support */ | |
930 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
931 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
932 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
933 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
934 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
093d3ff1 | 935 | #endif |
d14a1e28 | 936 | |
0085ce49 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 940 | |
0085ce49 RD |
941 | #ifdef __cplusplus |
942 | extern "C" { | |
943 | #if 0 | |
944 | } /* cc-mode */ | |
945 | #endif | |
946 | #endif | |
093d3ff1 RD |
947 | |
948 | /* ----------------------------------------------------------------------------- | |
949 | * Constant declarations | |
950 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 951 | |
093d3ff1 | 952 | /* Constant Types */ |
093d3ff1 RD |
953 | #define SWIG_PY_POINTER 4 |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
956 | /* Constant information structure */ | |
957 | typedef struct swig_const_info { | |
0085ce49 RD |
958 | int type; |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
093d3ff1 | 964 | } swig_const_info; |
d14a1e28 | 965 | |
994141e6 | 966 | #ifdef __cplusplus |
0085ce49 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
093d3ff1 RD |
970 | } |
971 | #endif | |
994141e6 | 972 | |
15afbcd0 | 973 | |
0085ce49 RD |
974 | /* ----------------------------------------------------------------------------- |
975 | * See the LICENSE file for information on copyright, usage and redistribution | |
976 | * of SWIG, and the README file for authors - http://www.swig.org/release.html. | |
977 | * | |
093d3ff1 RD |
978 | * pyrun.swg |
979 | * | |
0085ce49 RD |
980 | * This file contains the runtime support for Python modules |
981 | * and includes code for managing global variables and pointer | |
982 | * type checking. | |
093d3ff1 | 983 | * |
0085ce49 | 984 | * ----------------------------------------------------------------------------- */ |
15afbcd0 | 985 | |
093d3ff1 | 986 | /* Common SWIG API */ |
994141e6 | 987 | |
0085ce49 RD |
988 | /* for raw pointers */ |
989 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
990 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
991 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
992 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
993 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
994 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
995 | #define swig_owntype int | |
994141e6 | 996 | |
0085ce49 RD |
997 | /* for raw packed data */ |
998 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
999 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
994141e6 | 1000 | |
0085ce49 RD |
1001 | /* for class or struct pointers */ |
1002 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1003 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
d14a1e28 | 1004 | |
0085ce49 RD |
1005 | /* for C or C++ function pointers */ |
1006 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1007 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
4d5c3d91 | 1008 | |
0085ce49 RD |
1009 | /* for C++ member pointers, ie, member methods */ |
1010 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1011 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
32fe5131 | 1012 | |
4d5c3d91 | 1013 | |
0085ce49 | 1014 | /* Runtime API */ |
15afbcd0 | 1015 | |
0085ce49 RD |
1016 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() |
1017 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1018 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
32fe5131 | 1019 | |
0085ce49 RD |
1020 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj |
1021 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1022 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1023 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1024 | #define SWIG_fail goto fail | |
32fe5131 | 1025 | |
15afbcd0 | 1026 | |
0085ce49 | 1027 | /* Runtime API implementation */ |
093d3ff1 | 1028 | |
0085ce49 | 1029 | /* Error manipulation */ |
093d3ff1 | 1030 | |
0085ce49 RD |
1031 | SWIGINTERN void |
1032 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1033 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1034 | PyErr_SetObject(errtype, obj); | |
1035 | Py_DECREF(obj); | |
1036 | SWIG_PYTHON_THREAD_END_BLOCK; | |
15afbcd0 RD |
1037 | } |
1038 | ||
0085ce49 RD |
1039 | SWIGINTERN void |
1040 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1041 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1042 | PyErr_SetString(errtype, (char *) msg); | |
1043 | SWIG_PYTHON_THREAD_END_BLOCK; | |
093d3ff1 | 1044 | } |
15afbcd0 | 1045 | |
0085ce49 | 1046 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
32fe5131 | 1047 | |
0085ce49 | 1048 | /* Set a constant value */ |
093d3ff1 | 1049 | |
0085ce49 RD |
1050 | SWIGINTERN void |
1051 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1052 | PyDict_SetItemString(d, (char*) name, obj); | |
1053 | Py_DECREF(obj); | |
15afbcd0 RD |
1054 | } |
1055 | ||
0085ce49 | 1056 | /* Append a value to the result obj */ |
15afbcd0 | 1057 | |
0085ce49 RD |
1058 | SWIGINTERN PyObject* |
1059 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1060 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1061 | if (!result) { | |
1062 | result = obj; | |
1063 | } else if (result == Py_None) { | |
1064 | Py_DECREF(result); | |
1065 | result = obj; | |
1066 | } else { | |
1067 | if (!PyList_Check(result)) { | |
1068 | PyObject *o2 = result; | |
1069 | result = PyList_New(1); | |
1070 | PyList_SetItem(result, 0, o2); | |
1071 | } | |
1072 | PyList_Append(result,obj); | |
1073 | Py_DECREF(obj); | |
1074 | } | |
1075 | return result; | |
1076 | #else | |
1077 | PyObject* o2; | |
1078 | PyObject* o3; | |
1079 | if (!result) { | |
1080 | result = obj; | |
1081 | } else if (result == Py_None) { | |
1082 | Py_DECREF(result); | |
1083 | result = obj; | |
c32bde28 | 1084 | } else { |
0085ce49 RD |
1085 | if (!PyTuple_Check(result)) { |
1086 | o2 = result; | |
1087 | result = PyTuple_New(1); | |
1088 | PyTuple_SET_ITEM(result, 0, o2); | |
1089 | } | |
1090 | o3 = PyTuple_New(1); | |
1091 | PyTuple_SET_ITEM(o3, 0, obj); | |
1092 | o2 = result; | |
1093 | result = PySequence_Concat(o2, o3); | |
1094 | Py_DECREF(o2); | |
1095 | Py_DECREF(o3); | |
c32bde28 | 1096 | } |
0085ce49 RD |
1097 | return result; |
1098 | #endif | |
994141e6 | 1099 | } |
093d3ff1 | 1100 | |
0085ce49 | 1101 | /* Unpack the argument tuple */ |
093d3ff1 | 1102 | |
0085ce49 RD |
1103 | SWIGINTERN int |
1104 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1105 | { | |
1106 | if (!args) { | |
1107 | if (!min && !max) { | |
1108 | return 1; | |
1109 | } else { | |
1110 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1111 | name, (min == max ? "" : "at least "), min); | |
1112 | return 0; | |
1113 | } | |
1114 | } | |
1115 | if (!PyTuple_Check(args)) { | |
1116 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1117 | return 0; | |
1118 | } else { | |
1119 | register int l = PyTuple_GET_SIZE(args); | |
1120 | if (l < min) { | |
1121 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1122 | name, (min == max ? "" : "at least "), min, l); | |
1123 | return 0; | |
1124 | } else if (l > max) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at most "), max, l); | |
1127 | return 0; | |
1128 | } else { | |
1129 | register int i; | |
1130 | for (i = 0; i < l; ++i) { | |
1131 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1132 | } | |
1133 | for (; l < max; ++l) { | |
1134 | objs[l] = 0; | |
1135 | } | |
1136 | return i + 1; | |
1137 | } | |
1138 | } | |
1139 | } | |
1140 | ||
1141 | /* A functor is a function object with one single object argument */ | |
1142 | #if PY_VERSION_HEX >= 0x02020000 | |
1143 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1144 | #else | |
1145 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1146 | #endif | |
1147 | ||
1148 | /* | |
1149 | Helper for static pointer initialization for both C and C++ code, for example | |
1150 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1151 | */ | |
1152 | #ifdef __cplusplus | |
1153 | #define SWIG_STATIC_POINTER(var) var | |
1154 | #else | |
1155 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1156 | #endif | |
1157 | ||
1158 | /* ----------------------------------------------------------------------------- | |
1159 | * Pointer declarations | |
1160 | * ----------------------------------------------------------------------------- */ | |
1161 | ||
1162 | /* Flags for new pointer objects */ | |
1163 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1164 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1165 | ||
1166 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1167 | ||
1168 | #ifdef __cplusplus | |
1169 | extern "C" { | |
1170 | #if 0 | |
1171 | } /* cc-mode */ | |
1172 | #endif | |
1173 | #endif | |
1174 | ||
1175 | /* How to access Py_None */ | |
1176 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1177 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1178 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1179 | # define SWIG_PYTHON_BUILD_NONE | |
1180 | # endif | |
1181 | # endif | |
1182 | #endif | |
1183 | ||
1184 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1185 | # ifdef Py_None | |
1186 | # undef Py_None | |
1187 | # define Py_None SWIG_Py_None() | |
1188 | # endif | |
1189 | SWIGRUNTIMEINLINE PyObject * | |
1190 | _SWIG_Py_None(void) | |
1191 | { | |
1192 | PyObject *none = Py_BuildValue(""); | |
1193 | Py_DECREF(none); | |
1194 | return none; | |
1195 | } | |
1196 | SWIGRUNTIME PyObject * | |
1197 | SWIG_Py_None(void) | |
1198 | { | |
1199 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1200 | return none; | |
1201 | } | |
1202 | #endif | |
1203 | ||
1204 | /* The python void return value */ | |
1205 | ||
1206 | SWIGRUNTIMEINLINE PyObject * | |
1207 | SWIG_Py_Void(void) | |
1208 | { | |
1209 | PyObject *none = Py_None; | |
1210 | Py_INCREF(none); | |
1211 | return none; | |
1212 | } | |
1213 | ||
1214 | /* PySwigClientData */ | |
1215 | ||
1216 | typedef struct { | |
1217 | PyObject *klass; | |
1218 | PyObject *newraw; | |
1219 | PyObject *newargs; | |
1220 | PyObject *destroy; | |
1221 | int delargs; | |
1222 | int implicitconv; | |
1223 | } PySwigClientData; | |
1224 | ||
1225 | SWIGRUNTIMEINLINE int | |
1226 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1227 | { | |
1228 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1229 | return data ? data->implicitconv : 0; | |
1230 | } | |
1231 | ||
1232 | SWIGRUNTIMEINLINE PyObject * | |
1233 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1234 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1235 | PyObject *klass = data ? data->klass : 0; | |
1236 | return (klass ? klass : PyExc_RuntimeError); | |
1237 | } | |
1238 | ||
1239 | ||
1240 | SWIGRUNTIME PySwigClientData * | |
1241 | PySwigClientData_New(PyObject* obj) | |
1242 | { | |
1243 | if (!obj) { | |
1244 | return 0; | |
1245 | } else { | |
1246 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1247 | /* the klass element */ | |
1248 | data->klass = obj; | |
1249 | Py_INCREF(data->klass); | |
1250 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1251 | if (PyClass_Check(obj)) { | |
1252 | data->newraw = 0; | |
1253 | data->newargs = obj; | |
1254 | Py_INCREF(obj); | |
1255 | } else { | |
1256 | #if (PY_VERSION_HEX < 0x02020000) | |
1257 | data->newraw = 0; | |
1258 | #else | |
1259 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1260 | #endif | |
1261 | if (data->newraw) { | |
1262 | Py_INCREF(data->newraw); | |
1263 | data->newargs = PyTuple_New(1); | |
1264 | PyTuple_SetItem(data->newargs, 0, obj); | |
1265 | } else { | |
1266 | data->newargs = obj; | |
1267 | } | |
1268 | Py_INCREF(data->newargs); | |
1269 | } | |
1270 | /* the destroy method, aka as the C++ delete method */ | |
1271 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1272 | if (PyErr_Occurred()) { | |
1273 | PyErr_Clear(); | |
1274 | data->destroy = 0; | |
1275 | } | |
1276 | if (data->destroy) { | |
1277 | int flags; | |
1278 | Py_INCREF(data->destroy); | |
1279 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1280 | #ifdef METH_O | |
1281 | data->delargs = !(flags & (METH_O)); | |
1282 | #else | |
1283 | data->delargs = 0; | |
1284 | #endif | |
1285 | } else { | |
1286 | data->delargs = 0; | |
1287 | } | |
1288 | data->implicitconv = 0; | |
1289 | return data; | |
1290 | } | |
1291 | } | |
1292 | ||
1293 | SWIGRUNTIME void | |
1294 | PySwigClientData_Del(PySwigClientData* data) | |
1295 | { | |
1296 | Py_XDECREF(data->newraw); | |
1297 | Py_XDECREF(data->newargs); | |
1298 | Py_XDECREF(data->destroy); | |
1299 | } | |
1300 | ||
1301 | /* =============== PySwigObject =====================*/ | |
1302 | ||
1303 | typedef struct { | |
1304 | PyObject_HEAD | |
1305 | void *ptr; | |
1306 | swig_type_info *ty; | |
1307 | int own; | |
1308 | PyObject *next; | |
1309 | } PySwigObject; | |
1310 | ||
1311 | SWIGRUNTIME PyObject * | |
1312 | PySwigObject_long(PySwigObject *v) | |
1313 | { | |
1314 | return PyLong_FromVoidPtr(v->ptr); | |
1315 | } | |
1316 | ||
1317 | SWIGRUNTIME PyObject * | |
1318 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1319 | { | |
1320 | PyObject *res = NULL; | |
1321 | PyObject *args = PyTuple_New(1); | |
1322 | if (args) { | |
1323 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1324 | PyObject *ofmt = PyString_FromString(fmt); | |
1325 | if (ofmt) { | |
1326 | res = PyString_Format(ofmt,args); | |
1327 | Py_DECREF(ofmt); | |
1328 | } | |
1329 | Py_DECREF(args); | |
1330 | } | |
1331 | } | |
1332 | return res; | |
1333 | } | |
1334 | ||
1335 | SWIGRUNTIME PyObject * | |
1336 | PySwigObject_oct(PySwigObject *v) | |
1337 | { | |
1338 | return PySwigObject_format("%o",v); | |
1339 | } | |
1340 | ||
1341 | SWIGRUNTIME PyObject * | |
1342 | PySwigObject_hex(PySwigObject *v) | |
1343 | { | |
1344 | return PySwigObject_format("%x",v); | |
1345 | } | |
1346 | ||
1347 | SWIGRUNTIME PyObject * | |
1348 | #ifdef METH_NOARGS | |
1349 | PySwigObject_repr(PySwigObject *v) | |
1350 | #else | |
1351 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1352 | #endif | |
1353 | { | |
1354 | const char *name = SWIG_TypePrettyName(v->ty); | |
1355 | PyObject *hex = PySwigObject_hex(v); | |
1356 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1357 | Py_DECREF(hex); | |
1358 | if (v->next) { | |
1359 | #ifdef METH_NOARGS | |
1360 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1361 | #else | |
1362 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1363 | #endif | |
1364 | PyString_ConcatAndDel(&repr,nrep); | |
1365 | } | |
1366 | return repr; | |
1367 | } | |
1368 | ||
1369 | SWIGRUNTIME int | |
1370 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1371 | { | |
1372 | #ifdef METH_NOARGS | |
1373 | PyObject *repr = PySwigObject_repr(v); | |
1374 | #else | |
1375 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1376 | #endif | |
1377 | if (repr) { | |
1378 | fputs(PyString_AsString(repr), fp); | |
1379 | Py_DECREF(repr); | |
1380 | return 0; | |
1381 | } else { | |
1382 | return 1; | |
1383 | } | |
1384 | } | |
1385 | ||
1386 | SWIGRUNTIME PyObject * | |
1387 | PySwigObject_str(PySwigObject *v) | |
1388 | { | |
1389 | char result[SWIG_BUFFER_SIZE]; | |
1390 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1391 | PyString_FromString(result) : 0; | |
1392 | } | |
1393 | ||
1394 | SWIGRUNTIME int | |
1395 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1396 | { | |
1397 | void *i = v->ptr; | |
1398 | void *j = w->ptr; | |
1399 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1400 | } | |
1401 | ||
1402 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1403 | ||
1404 | SWIGRUNTIME PyTypeObject* | |
1405 | PySwigObject_type(void) { | |
1406 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1407 | return type; | |
1408 | } | |
1409 | ||
1410 | SWIGRUNTIMEINLINE int | |
1411 | PySwigObject_Check(PyObject *op) { | |
1412 | return ((op)->ob_type == PySwigObject_type()) | |
1413 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1414 | } | |
1415 | ||
1416 | SWIGRUNTIME PyObject * | |
1417 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1418 | ||
1419 | SWIGRUNTIME void | |
1420 | PySwigObject_dealloc(PyObject *v) | |
1421 | { | |
1422 | PySwigObject *sobj = (PySwigObject *) v; | |
1423 | PyObject *next = sobj->next; | |
1424 | if (sobj->own) { | |
1425 | swig_type_info *ty = sobj->ty; | |
1426 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1427 | PyObject *destroy = data ? data->destroy : 0; | |
1428 | if (destroy) { | |
1429 | /* destroy is always a VARARGS method */ | |
1430 | PyObject *res; | |
1431 | if (data->delargs) { | |
1432 | /* we need to create a temporal object to carry the destroy operation */ | |
1433 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1434 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1435 | Py_DECREF(tmp); | |
1436 | } else { | |
1437 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1438 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1439 | res = ((*meth)(mself, v)); | |
1440 | } | |
1441 | Py_XDECREF(res); | |
1442 | } else { | |
1443 | const char *name = SWIG_TypePrettyName(ty); | |
1444 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1445 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1446 | #endif | |
1447 | } | |
1448 | } | |
1449 | Py_XDECREF(next); | |
1450 | PyObject_DEL(v); | |
1451 | } | |
1452 | ||
1453 | SWIGRUNTIME PyObject* | |
1454 | PySwigObject_append(PyObject* v, PyObject* next) | |
1455 | { | |
1456 | PySwigObject *sobj = (PySwigObject *) v; | |
1457 | #ifndef METH_O | |
1458 | PyObject *tmp = 0; | |
1459 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1460 | next = tmp; | |
1461 | #endif | |
1462 | if (!PySwigObject_Check(next)) { | |
1463 | return NULL; | |
1464 | } | |
1465 | sobj->next = next; | |
1466 | Py_INCREF(next); | |
1467 | return SWIG_Py_Void(); | |
1468 | } | |
1469 | ||
1470 | SWIGRUNTIME PyObject* | |
1471 | #ifdef METH_NOARGS | |
1472 | PySwigObject_next(PyObject* v) | |
1473 | #else | |
1474 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1475 | #endif | |
1476 | { | |
1477 | PySwigObject *sobj = (PySwigObject *) v; | |
1478 | if (sobj->next) { | |
1479 | Py_INCREF(sobj->next); | |
1480 | return sobj->next; | |
1481 | } else { | |
1482 | return SWIG_Py_Void(); | |
1483 | } | |
1484 | } | |
1485 | ||
1486 | SWIGINTERN PyObject* | |
1487 | #ifdef METH_NOARGS | |
1488 | PySwigObject_disown(PyObject *v) | |
1489 | #else | |
1490 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1491 | #endif | |
1492 | { | |
1493 | PySwigObject *sobj = (PySwigObject *)v; | |
1494 | sobj->own = 0; | |
1495 | return SWIG_Py_Void(); | |
1496 | } | |
1497 | ||
1498 | SWIGINTERN PyObject* | |
1499 | #ifdef METH_NOARGS | |
1500 | PySwigObject_acquire(PyObject *v) | |
1501 | #else | |
1502 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1503 | #endif | |
1504 | { | |
1505 | PySwigObject *sobj = (PySwigObject *)v; | |
1506 | sobj->own = SWIG_POINTER_OWN; | |
1507 | return SWIG_Py_Void(); | |
1508 | } | |
1509 | ||
1510 | SWIGINTERN PyObject* | |
1511 | PySwigObject_own(PyObject *v, PyObject *args) | |
1512 | { | |
1513 | PyObject *val = 0; | |
1514 | #if (PY_VERSION_HEX < 0x02020000) | |
1515 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1516 | #else | |
1517 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1518 | #endif | |
1519 | { | |
1520 | return NULL; | |
1521 | } | |
1522 | else | |
1523 | { | |
1524 | PySwigObject *sobj = (PySwigObject *)v; | |
1525 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1526 | if (val) { | |
1527 | #ifdef METH_NOARGS | |
1528 | if (PyObject_IsTrue(val)) { | |
1529 | PySwigObject_acquire(v); | |
1530 | } else { | |
1531 | PySwigObject_disown(v); | |
1532 | } | |
1533 | #else | |
1534 | if (PyObject_IsTrue(val)) { | |
1535 | PySwigObject_acquire(v,args); | |
1536 | } else { | |
1537 | PySwigObject_disown(v,args); | |
1538 | } | |
1539 | #endif | |
1540 | } | |
1541 | return obj; | |
1542 | } | |
1543 | } | |
1544 | ||
1545 | #ifdef METH_O | |
1546 | static PyMethodDef | |
1547 | swigobject_methods[] = { | |
1548 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1549 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1550 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1551 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1552 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1553 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1554 | {0, 0, 0, 0} | |
1555 | }; | |
1556 | #else | |
1557 | static PyMethodDef | |
1558 | swigobject_methods[] = { | |
1559 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1560 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1561 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1562 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1563 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1564 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1565 | {0, 0, 0, 0} | |
1566 | }; | |
1567 | #endif | |
1568 | ||
1569 | #if PY_VERSION_HEX < 0x02020000 | |
1570 | SWIGINTERN PyObject * | |
1571 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1572 | { | |
1573 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1574 | } | |
1575 | #endif | |
1576 | ||
1577 | SWIGRUNTIME PyTypeObject* | |
1578 | _PySwigObject_type(void) { | |
1579 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1580 | ||
1581 | static PyNumberMethods PySwigObject_as_number = { | |
1582 | (binaryfunc)0, /*nb_add*/ | |
1583 | (binaryfunc)0, /*nb_subtract*/ | |
1584 | (binaryfunc)0, /*nb_multiply*/ | |
1585 | (binaryfunc)0, /*nb_divide*/ | |
1586 | (binaryfunc)0, /*nb_remainder*/ | |
093d3ff1 RD |
1587 | (binaryfunc)0, /*nb_divmod*/ |
1588 | (ternaryfunc)0,/*nb_power*/ | |
1589 | (unaryfunc)0, /*nb_negative*/ | |
1590 | (unaryfunc)0, /*nb_positive*/ | |
1591 | (unaryfunc)0, /*nb_absolute*/ | |
1592 | (inquiry)0, /*nb_nonzero*/ | |
1593 | 0, /*nb_invert*/ | |
1594 | 0, /*nb_lshift*/ | |
1595 | 0, /*nb_rshift*/ | |
1596 | 0, /*nb_and*/ | |
1597 | 0, /*nb_xor*/ | |
1598 | 0, /*nb_or*/ | |
1599 | (coercion)0, /*nb_coerce*/ | |
1600 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1601 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1602 | (unaryfunc)0, /*nb_float*/ | |
1603 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1604 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 1605 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 1606 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
1607 | #elif PY_VERSION_HEX >= 0x02000000 |
1608 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
093d3ff1 RD |
1609 | #endif |
1610 | }; | |
1611 | ||
0085ce49 | 1612 | static PyTypeObject pyswigobject_type; |
32fe5131 | 1613 | static int type_init = 0; |
093d3ff1 | 1614 | if (!type_init) { |
0085ce49 RD |
1615 | const PyTypeObject tmp |
1616 | = { | |
1617 | PyObject_HEAD_INIT(NULL) | |
1618 | 0, /* ob_size */ | |
1619 | (char *)"PySwigObject", /* tp_name */ | |
1620 | sizeof(PySwigObject), /* tp_basicsize */ | |
1621 | 0, /* tp_itemsize */ | |
1622 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1623 | (printfunc)PySwigObject_print, /* tp_print */ | |
1624 | #if PY_VERSION_HEX < 0x02020000 | |
1625 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1626 | #else | |
1627 | (getattrfunc)0, /* tp_getattr */ | |
093d3ff1 | 1628 | #endif |
0085ce49 RD |
1629 | (setattrfunc)0, /* tp_setattr */ |
1630 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1631 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1632 | &PySwigObject_as_number, /* tp_as_number */ | |
1633 | 0, /* tp_as_sequence */ | |
1634 | 0, /* tp_as_mapping */ | |
1635 | (hashfunc)0, /* tp_hash */ | |
1636 | (ternaryfunc)0, /* tp_call */ | |
1637 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1638 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1639 | 0, /* tp_setattro */ | |
1640 | 0, /* tp_as_buffer */ | |
1641 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1642 | swigobject_doc, /* tp_doc */ | |
1643 | 0, /* tp_traverse */ | |
1644 | 0, /* tp_clear */ | |
1645 | 0, /* tp_richcompare */ | |
1646 | 0, /* tp_weaklistoffset */ | |
093d3ff1 | 1647 | #if PY_VERSION_HEX >= 0x02020000 |
0085ce49 RD |
1648 | 0, /* tp_iter */ |
1649 | 0, /* tp_iternext */ | |
1650 | swigobject_methods, /* tp_methods */ | |
1651 | 0, /* tp_members */ | |
1652 | 0, /* tp_getset */ | |
1653 | 0, /* tp_base */ | |
1654 | 0, /* tp_dict */ | |
1655 | 0, /* tp_descr_get */ | |
1656 | 0, /* tp_descr_set */ | |
1657 | 0, /* tp_dictoffset */ | |
1658 | 0, /* tp_init */ | |
1659 | 0, /* tp_alloc */ | |
1660 | 0, /* tp_new */ | |
1661 | 0, /* tp_free */ | |
1662 | 0, /* tp_is_gc */ | |
1663 | 0, /* tp_bases */ | |
1664 | 0, /* tp_mro */ | |
1665 | 0, /* tp_cache */ | |
1666 | 0, /* tp_subclasses */ | |
1667 | 0, /* tp_weaklist */ | |
15afbcd0 | 1668 | #endif |
093d3ff1 | 1669 | #if PY_VERSION_HEX >= 0x02030000 |
0085ce49 | 1670 | 0, /* tp_del */ |
093d3ff1 RD |
1671 | #endif |
1672 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1673 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1674 | #endif |
0085ce49 | 1675 | }; |
32fe5131 | 1676 | pyswigobject_type = tmp; |
0085ce49 | 1677 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1678 | type_init = 1; |
1679 | } | |
32fe5131 | 1680 | return &pyswigobject_type; |
093d3ff1 RD |
1681 | } |
1682 | ||
1683 | SWIGRUNTIME PyObject * | |
0085ce49 | 1684 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
093d3ff1 | 1685 | { |
0085ce49 RD |
1686 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); |
1687 | if (sobj) { | |
1688 | sobj->ptr = ptr; | |
1689 | sobj->ty = ty; | |
1690 | sobj->own = own; | |
1691 | sobj->next = 0; | |
32fe5131 | 1692 | } |
0085ce49 | 1693 | return (PyObject *)sobj; |
093d3ff1 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; | |
0085ce49 | 1703 | swig_type_info *ty; |
093d3ff1 RD |
1704 | size_t size; |
1705 | } PySwigPacked; | |
1706 | ||
1707 | SWIGRUNTIME int | |
0085ce49 | 1708 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
093d3ff1 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 | } | |
0085ce49 | 1716 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1717 | fputs(">", fp); |
1718 | return 0; | |
1719 | } | |
1720 | ||
1721 | SWIGRUNTIME PyObject * | |
1722 | PySwigPacked_repr(PySwigPacked *v) | |
1723 | { | |
1724 | char result[SWIG_BUFFER_SIZE]; | |
1725 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
0085ce49 | 1726 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1727 | } else { |
0085ce49 | 1728 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
093d3ff1 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))){ | |
0085ce49 | 1737 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1738 | } else { |
0085ce49 | 1739 | return PyString_FromString(v->ty->name); |
093d3ff1 RD |
1740 | } |
1741 | } | |
1742 | ||
1743 | SWIGRUNTIME int | |
1744 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
1745 | { | |
0085ce49 RD |
1746 | size_t i = v->size; |
1747 | size_t j = w->size; | |
1748 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1749 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
093d3ff1 RD |
1750 | } |
1751 | ||
0085ce49 | 1752 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
093d3ff1 RD |
1753 | |
1754 | SWIGRUNTIME PyTypeObject* | |
32fe5131 | 1755 | PySwigPacked_type(void) { |
0085ce49 RD |
1756 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); |
1757 | return type; | |
1758 | } | |
1759 | ||
1760 | SWIGRUNTIMEINLINE int | |
1761 | PySwigPacked_Check(PyObject *op) { | |
1762 | return ((op)->ob_type == _PySwigPacked_type()) | |
1763 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1764 | } | |
1765 | ||
1766 | SWIGRUNTIME void | |
1767 | PySwigPacked_dealloc(PyObject *v) | |
1768 | { | |
1769 | if (PySwigPacked_Check(v)) { | |
1770 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1771 | free(sobj->pack); | |
1772 | } | |
1773 | PyObject_DEL(v); | |
1774 | } | |
1775 | ||
1776 | SWIGRUNTIME PyTypeObject* | |
1777 | _PySwigPacked_type(void) { | |
1778 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1779 | static PyTypeObject pyswigpacked_type; | |
1780 | static int type_init = 0; | |
1781 | if (!type_init) { | |
1782 | const PyTypeObject tmp | |
1783 | = { | |
1784 | PyObject_HEAD_INIT(NULL) | |
1785 | 0, /* ob_size */ | |
1786 | (char *)"PySwigPacked", /* tp_name */ | |
1787 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1788 | 0, /* tp_itemsize */ | |
1789 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1790 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1791 | (getattrfunc)0, /* tp_getattr */ | |
1792 | (setattrfunc)0, /* tp_setattr */ | |
1793 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1794 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1795 | 0, /* tp_as_number */ | |
1796 | 0, /* tp_as_sequence */ | |
1797 | 0, /* tp_as_mapping */ | |
1798 | (hashfunc)0, /* tp_hash */ | |
1799 | (ternaryfunc)0, /* tp_call */ | |
1800 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1801 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1802 | 0, /* tp_setattro */ | |
1803 | 0, /* tp_as_buffer */ | |
1804 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1805 | swigpacked_doc, /* tp_doc */ | |
1806 | 0, /* tp_traverse */ | |
1807 | 0, /* tp_clear */ | |
1808 | 0, /* tp_richcompare */ | |
1809 | 0, /* tp_weaklistoffset */ | |
1810 | #if PY_VERSION_HEX >= 0x02020000 | |
1811 | 0, /* tp_iter */ | |
1812 | 0, /* tp_iternext */ | |
1813 | 0, /* tp_methods */ | |
1814 | 0, /* tp_members */ | |
1815 | 0, /* tp_getset */ | |
1816 | 0, /* tp_base */ | |
1817 | 0, /* tp_dict */ | |
1818 | 0, /* tp_descr_get */ | |
1819 | 0, /* tp_descr_set */ | |
1820 | 0, /* tp_dictoffset */ | |
1821 | 0, /* tp_init */ | |
1822 | 0, /* tp_alloc */ | |
1823 | 0, /* tp_new */ | |
1824 | 0, /* tp_free */ | |
1825 | 0, /* tp_is_gc */ | |
1826 | 0, /* tp_bases */ | |
1827 | 0, /* tp_mro */ | |
1828 | 0, /* tp_cache */ | |
1829 | 0, /* tp_subclasses */ | |
1830 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1831 | #endif |
1832 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1833 | 0, /* tp_del */ |
093d3ff1 RD |
1834 | #endif |
1835 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1836 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1837 | #endif |
0085ce49 | 1838 | }; |
32fe5131 | 1839 | pyswigpacked_type = tmp; |
0085ce49 | 1840 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1841 | type_init = 1; |
1842 | } | |
32fe5131 | 1843 | return &pyswigpacked_type; |
093d3ff1 RD |
1844 | } |
1845 | ||
1846 | SWIGRUNTIME PyObject * | |
0085ce49 | 1847 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
093d3ff1 | 1848 | { |
0085ce49 RD |
1849 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1850 | if (sobj) { | |
093d3ff1 | 1851 | void *pack = malloc(size); |
32fe5131 RD |
1852 | if (pack) { |
1853 | memcpy(pack, ptr, size); | |
0085ce49 RD |
1854 | sobj->pack = pack; |
1855 | sobj->ty = ty; | |
1856 | sobj->size = size; | |
1857 | } else { | |
1858 | PyObject_DEL((PyObject *) sobj); | |
1859 | sobj = 0; | |
32fe5131 | 1860 | } |
093d3ff1 | 1861 | } |
0085ce49 | 1862 | return (PyObject *) sobj; |
093d3ff1 RD |
1863 | } |
1864 | ||
0085ce49 | 1865 | SWIGRUNTIME swig_type_info * |
093d3ff1 RD |
1866 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
1867 | { | |
0085ce49 RD |
1868 | if (PySwigPacked_Check(obj)) { |
1869 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1870 | if (sobj->size != size) return 0; | |
1871 | memcpy(ptr, sobj->pack, size); | |
1872 | return sobj->ty; | |
1873 | } else { | |
1874 | return 0; | |
1875 | } | |
093d3ff1 RD |
1876 | } |
1877 | ||
093d3ff1 | 1878 | /* ----------------------------------------------------------------------------- |
0085ce49 | 1879 | * pointers/data manipulation |
093d3ff1 RD |
1880 | * ----------------------------------------------------------------------------- */ |
1881 | ||
0085ce49 RD |
1882 | SWIGRUNTIMEINLINE PyObject * |
1883 | _SWIG_This(void) | |
1884 | { | |
1885 | return PyString_FromString("this"); | |
1886 | } | |
093d3ff1 | 1887 | |
0085ce49 RD |
1888 | SWIGRUNTIME PyObject * |
1889 | SWIG_This(void) | |
1890 | { | |
1891 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1892 | return swig_this; | |
1893 | } | |
093d3ff1 | 1894 | |
0085ce49 | 1895 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
093d3ff1 | 1896 | |
0085ce49 RD |
1897 | SWIGRUNTIME PySwigObject * |
1898 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
093d3ff1 | 1899 | { |
0085ce49 RD |
1900 | if (PySwigObject_Check(pyobj)) { |
1901 | return (PySwigObject *) pyobj; | |
1902 | } else { | |
1903 | PyObject *obj = 0; | |
1904 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1905 | if (PyInstance_Check(pyobj)) { | |
1906 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1907 | } else { | |
1908 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1909 | if (dictptr != NULL) { | |
1910 | PyObject *dict = *dictptr; | |
1911 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1912 | } else { | |
1913 | #ifdef PyWeakref_CheckProxy | |
1914 | if (PyWeakref_CheckProxy(pyobj)) { | |
1915 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1916 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1917 | } | |
1918 | #endif | |
1919 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1920 | if (obj) { | |
1921 | Py_DECREF(obj); | |
093d3ff1 | 1922 | } else { |
0085ce49 RD |
1923 | if (PyErr_Occurred()) PyErr_Clear(); |
1924 | return 0; | |
093d3ff1 | 1925 | } |
093d3ff1 | 1926 | } |
0085ce49 RD |
1927 | } |
1928 | #else | |
1929 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1930 | if (obj) { | |
1931 | Py_DECREF(obj); | |
1932 | } else { | |
1933 | if (PyErr_Occurred()) PyErr_Clear(); | |
1934 | return 0; | |
1935 | } | |
1936 | #endif | |
1937 | if (obj && !PySwigObject_Check(obj)) { | |
1938 | /* a PyObject is called 'this', try to get the 'real this' | |
1939 | PySwigObject from it */ | |
1940 | return SWIG_Python_GetSwigThis(obj); | |
1941 | } | |
1942 | return (PySwigObject *)obj; | |
093d3ff1 RD |
1943 | } |
1944 | } | |
1945 | ||
0085ce49 RD |
1946 | /* Acquire a pointer value */ |
1947 | ||
1948 | SWIGRUNTIME int | |
1949 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1950 | if (own) { | |
1951 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1952 | if (sobj) { | |
1953 | int oldown = sobj->own; | |
1954 | sobj->own = own; | |
1955 | return oldown; | |
1956 | } | |
093d3ff1 | 1957 | } |
0085ce49 | 1958 | return 0; |
093d3ff1 RD |
1959 | } |
1960 | ||
0085ce49 RD |
1961 | /* Convert a pointer value */ |
1962 | ||
093d3ff1 | 1963 | SWIGRUNTIME int |
0085ce49 RD |
1964 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
1965 | if (!obj) return SWIG_ERROR; | |
1966 | if (obj == Py_None) { | |
1967 | if (ptr) *ptr = 0; | |
1968 | return SWIG_OK; | |
1969 | } else { | |
1970 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1971 | while (sobj) { | |
1972 | void *vptr = sobj->ptr; | |
1973 | if (ty) { | |
1974 | swig_type_info *to = sobj->ty; | |
1975 | if (to == ty) { | |
1976 | /* no type cast needed */ | |
1977 | if (ptr) *ptr = vptr; | |
1978 | break; | |
1979 | } else { | |
1980 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1981 | if (!tc) { | |
1982 | sobj = (PySwigObject *)sobj->next; | |
1983 | } else { | |
1984 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1985 | break; | |
1986 | } | |
1987 | } | |
093d3ff1 | 1988 | } else { |
0085ce49 RD |
1989 | if (ptr) *ptr = vptr; |
1990 | break; | |
093d3ff1 | 1991 | } |
093d3ff1 | 1992 | } |
0085ce49 RD |
1993 | if (sobj) { |
1994 | if (own) *own = sobj->own; | |
1995 | if (flags & SWIG_POINTER_DISOWN) { | |
1996 | sobj->own = 0; | |
1997 | } | |
1998 | return SWIG_OK; | |
1999 | } else { | |
2000 | int res = SWIG_ERROR; | |
2001 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2002 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2003 | if (data && !data->implicitconv) { | |
2004 | PyObject *klass = data->klass; | |
2005 | if (klass) { | |
2006 | PyObject *impconv; | |
2007 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2008 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2009 | data->implicitconv = 0; | |
2010 | if (PyErr_Occurred()) { | |
2011 | PyErr_Clear(); | |
2012 | impconv = 0; | |
2013 | } | |
2014 | if (impconv) { | |
2015 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2016 | if (iobj) { | |
2017 | void *vptr; | |
2018 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2019 | if (SWIG_IsOK(res)) { | |
2020 | if (ptr) { | |
2021 | *ptr = vptr; | |
2022 | /* transfer the ownership to 'ptr' */ | |
2023 | iobj->own = 0; | |
2024 | res = SWIG_AddCast(res); | |
2025 | res = SWIG_AddNewMask(res); | |
2026 | } else { | |
2027 | res = SWIG_AddCast(res); | |
2028 | } | |
2029 | } | |
2030 | } | |
2031 | Py_DECREF(impconv); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | } | |
2036 | return res; | |
2037 | } | |
093d3ff1 RD |
2038 | } |
2039 | } | |
2040 | ||
0085ce49 RD |
2041 | /* Convert a function ptr value */ |
2042 | ||
093d3ff1 | 2043 | SWIGRUNTIME int |
0085ce49 RD |
2044 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2045 | if (!PyCFunction_Check(obj)) { | |
2046 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
093d3ff1 | 2047 | } else { |
0085ce49 RD |
2048 | void *vptr = 0; |
2049 | ||
2050 | /* here we get the method pointer for callbacks */ | |
2051 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
2052 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; | |
2053 | if (desc) { | |
2054 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2055 | if (!desc) return SWIG_ERROR; | |
2056 | } | |
2057 | if (ty) { | |
2058 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2059 | if (!tc) return SWIG_ERROR; | |
2060 | *ptr = SWIG_TypeCast(tc,vptr); | |
2061 | } else { | |
2062 | *ptr = vptr; | |
2063 | } | |
2064 | return SWIG_OK; | |
093d3ff1 RD |
2065 | } |
2066 | } | |
2067 | ||
0085ce49 | 2068 | /* Convert a packed value value */ |
093d3ff1 | 2069 | |
093d3ff1 | 2070 | SWIGRUNTIME int |
0085ce49 RD |
2071 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2072 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2073 | if (!to) return SWIG_ERROR; | |
2074 | if (ty) { | |
2075 | if (to != ty) { | |
2076 | /* check type cast? */ | |
2077 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2078 | if (!tc) return SWIG_ERROR; | |
2079 | } | |
093d3ff1 | 2080 | } |
0085ce49 RD |
2081 | return SWIG_OK; |
2082 | } | |
093d3ff1 | 2083 | |
0085ce49 RD |
2084 | /* ----------------------------------------------------------------------------- |
2085 | * Create a new pointer object | |
2086 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 2087 | |
0085ce49 RD |
2088 | /* |
2089 | Create a new instance object, whitout calling __init__, and set the | |
2090 | 'this' attribute. | |
2091 | */ | |
093d3ff1 | 2092 | |
0085ce49 RD |
2093 | SWIGRUNTIME PyObject* |
2094 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2095 | { | |
2096 | #if (PY_VERSION_HEX >= 0x02020000) | |
2097 | PyObject *inst = 0; | |
2098 | PyObject *newraw = data->newraw; | |
2099 | if (newraw) { | |
2100 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2101 | if (inst) { | |
2102 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2103 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2104 | if (dictptr != NULL) { | |
2105 | PyObject *dict = *dictptr; | |
2106 | if (dict == NULL) { | |
2107 | dict = PyDict_New(); | |
2108 | *dictptr = dict; | |
2109 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2110 | } | |
093d3ff1 | 2111 | } |
0085ce49 RD |
2112 | #else |
2113 | PyObject *key = SWIG_This(); | |
2114 | PyObject_SetAttr(inst, key, swig_this); | |
2115 | #endif | |
093d3ff1 | 2116 | } |
0085ce49 RD |
2117 | } else { |
2118 | PyObject *dict = PyDict_New(); | |
2119 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2120 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2121 | Py_DECREF(dict); | |
093d3ff1 | 2122 | } |
0085ce49 RD |
2123 | return inst; |
2124 | #else | |
2125 | #if (PY_VERSION_HEX >= 0x02010000) | |
2126 | PyObject *inst; | |
2127 | PyObject *dict = PyDict_New(); | |
2128 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2129 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2130 | Py_DECREF(dict); | |
2131 | return (PyObject *) inst; | |
2132 | #else | |
2133 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2134 | if (inst == NULL) { | |
2135 | return NULL; | |
093d3ff1 | 2136 | } |
0085ce49 RD |
2137 | inst->in_class = (PyClassObject *)data->newargs; |
2138 | Py_INCREF(inst->in_class); | |
2139 | inst->in_dict = PyDict_New(); | |
2140 | if (inst->in_dict == NULL) { | |
2141 | Py_DECREF(inst); | |
2142 | return NULL; | |
093d3ff1 | 2143 | } |
0085ce49 RD |
2144 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS |
2145 | inst->in_weakreflist = NULL; | |
2146 | #endif | |
2147 | #ifdef Py_TPFLAGS_GC | |
2148 | PyObject_GC_Init(inst); | |
2149 | #endif | |
2150 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2151 | return (PyObject *) inst; | |
2152 | #endif | |
2153 | #endif | |
093d3ff1 RD |
2154 | } |
2155 | ||
0085ce49 RD |
2156 | SWIGRUNTIME void |
2157 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2158 | { | |
2159 | PyObject *dict; | |
2160 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2161 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2162 | if (dictptr != NULL) { | |
2163 | dict = *dictptr; | |
2164 | if (dict == NULL) { | |
2165 | dict = PyDict_New(); | |
2166 | *dictptr = dict; | |
2167 | } | |
2168 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2169 | return; | |
2170 | } | |
093d3ff1 | 2171 | #endif |
0085ce49 RD |
2172 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2173 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2174 | Py_DECREF(dict); | |
2175 | } | |
093d3ff1 | 2176 | |
0085ce49 RD |
2177 | |
2178 | SWIGINTERN PyObject * | |
2179 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2180 | PyObject *obj[2]; | |
2181 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2182 | return NULL; | |
2183 | } else { | |
2184 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2185 | if (sthis) { | |
2186 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
093d3ff1 | 2187 | } else { |
0085ce49 | 2188 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2189 | } |
0085ce49 | 2190 | return SWIG_Py_Void(); |
093d3ff1 | 2191 | } |
0085ce49 RD |
2192 | } |
2193 | ||
2194 | /* Create a new pointer object */ | |
093d3ff1 | 2195 | |
093d3ff1 | 2196 | SWIGRUNTIME PyObject * |
0085ce49 | 2197 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2198 | if (!ptr) { |
0085ce49 RD |
2199 | return SWIG_Py_Void(); |
2200 | } else { | |
2201 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2202 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2203 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2204 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2205 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2206 | if (inst) { | |
2207 | Py_DECREF(robj); | |
2208 | robj = inst; | |
093d3ff1 | 2209 | } |
093d3ff1 | 2210 | } |
0085ce49 | 2211 | return robj; |
093d3ff1 | 2212 | } |
093d3ff1 RD |
2213 | } |
2214 | ||
0085ce49 RD |
2215 | /* Create a new packed object */ |
2216 | ||
2217 | SWIGRUNTIMEINLINE PyObject * | |
093d3ff1 | 2218 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
0085ce49 | 2219 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
093d3ff1 RD |
2220 | } |
2221 | ||
2222 | /* -----------------------------------------------------------------------------* | |
2223 | * Get type list | |
2224 | * -----------------------------------------------------------------------------*/ | |
2225 | ||
2226 | #ifdef SWIG_LINK_RUNTIME | |
2227 | void *SWIG_ReturnGlobalTypeList(void *); | |
2228 | #endif | |
2229 | ||
32fe5131 RD |
2230 | SWIGRUNTIME swig_module_info * |
2231 | SWIG_Python_GetModule(void) { | |
093d3ff1 RD |
2232 | static void *type_pointer = (void *)0; |
2233 | /* first check if module already created */ | |
2234 | if (!type_pointer) { | |
2235 | #ifdef SWIG_LINK_RUNTIME | |
2236 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
2237 | #else | |
2238 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2239 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2240 | if (PyErr_Occurred()) { | |
2241 | PyErr_Clear(); | |
2242 | type_pointer = (void *)0; | |
2243 | } | |
093d3ff1 | 2244 | #endif |
32fe5131 RD |
2245 | } |
2246 | return (swig_module_info *) type_pointer; | |
093d3ff1 RD |
2247 | } |
2248 | ||
32fe5131 RD |
2249 | #if PY_MAJOR_VERSION < 2 |
2250 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
0085ce49 | 2251 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
32fe5131 RD |
2252 | SWIGINTERN int |
2253 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2254 | { | |
2255 | PyObject *dict; | |
2256 | if (!PyModule_Check(m)) { | |
2257 | PyErr_SetString(PyExc_TypeError, | |
2258 | "PyModule_AddObject() needs module as first arg"); | |
0085ce49 | 2259 | return SWIG_ERROR; |
32fe5131 RD |
2260 | } |
2261 | if (!o) { | |
2262 | PyErr_SetString(PyExc_TypeError, | |
2263 | "PyModule_AddObject() needs non-NULL value"); | |
0085ce49 | 2264 | return SWIG_ERROR; |
32fe5131 RD |
2265 | } |
2266 | ||
2267 | dict = PyModule_GetDict(m); | |
2268 | if (dict == NULL) { | |
2269 | /* Internal error -- modules must have a dict! */ | |
2270 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2271 | PyModule_GetName(m)); | |
0085ce49 | 2272 | return SWIG_ERROR; |
32fe5131 RD |
2273 | } |
2274 | if (PyDict_SetItemString(dict, name, o)) | |
0085ce49 | 2275 | return SWIG_ERROR; |
32fe5131 | 2276 | Py_DECREF(o); |
0085ce49 | 2277 | return SWIG_OK; |
093d3ff1 | 2278 | } |
32fe5131 | 2279 | #endif |
093d3ff1 | 2280 | |
0085ce49 RD |
2281 | SWIGRUNTIME void |
2282 | SWIG_Python_DestroyModule(void *vptr) | |
2283 | { | |
2284 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2285 | swig_type_info **types = swig_module->types; | |
2286 | size_t i; | |
2287 | for (i =0; i < swig_module->size; ++i) { | |
2288 | swig_type_info *ty = types[i]; | |
2289 | if (ty->owndata) { | |
2290 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2291 | if (data) PySwigClientData_Del(data); | |
2292 | } | |
2293 | } | |
2294 | Py_DECREF(SWIG_This()); | |
2295 | } | |
2296 | ||
32fe5131 RD |
2297 | SWIGRUNTIME void |
2298 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2299 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2300 | ||
2301 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2302 | swig_empty_runtime_method_table); | |
0085ce49 | 2303 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
32fe5131 RD |
2304 | if (pointer && module) { |
2305 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
0085ce49 RD |
2306 | } else { |
2307 | Py_XDECREF(pointer); | |
32fe5131 RD |
2308 | } |
2309 | } | |
093d3ff1 | 2310 | |
0085ce49 RD |
2311 | /* The python cached type query */ |
2312 | SWIGRUNTIME PyObject * | |
2313 | SWIG_Python_TypeCache() { | |
2314 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2315 | return cache; | |
093d3ff1 | 2316 | } |
093d3ff1 | 2317 | |
0085ce49 RD |
2318 | SWIGRUNTIME swig_type_info * |
2319 | SWIG_Python_TypeQuery(const char *type) | |
2320 | { | |
2321 | PyObject *cache = SWIG_Python_TypeCache(); | |
2322 | PyObject *key = PyString_FromString(type); | |
2323 | PyObject *obj = PyDict_GetItem(cache, key); | |
2324 | swig_type_info *descriptor; | |
2325 | if (obj) { | |
2326 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2327 | } else { | |
2328 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2329 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2330 | if (descriptor) { | |
2331 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2332 | PyDict_SetItem(cache, key, obj); | |
2333 | Py_DECREF(obj); | |
2334 | } | |
2335 | } | |
2336 | Py_DECREF(key); | |
2337 | return descriptor; | |
2338 | } | |
2339 | ||
2340 | /* | |
2341 | For backward compatibility only | |
2342 | */ | |
2343 | #define SWIG_POINTER_EXCEPTION 0 | |
2344 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2345 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2346 | ||
2347 | SWIGRUNTIME int | |
2348 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2349 | { | |
2350 | if (PyErr_Occurred()) { | |
2351 | PyObject *type = 0; | |
2352 | PyObject *value = 0; | |
2353 | PyObject *traceback = 0; | |
2354 | PyErr_Fetch(&type, &value, &traceback); | |
2355 | if (value) { | |
2356 | PyObject *old_str = PyObject_Str(value); | |
2357 | Py_XINCREF(type); | |
2358 | PyErr_Clear(); | |
2359 | if (infront) { | |
2360 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2361 | } else { | |
2362 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2363 | } | |
2364 | Py_DECREF(old_str); | |
2365 | } | |
2366 | return 1; | |
2367 | } else { | |
2368 | return 0; | |
2369 | } | |
2370 | } | |
2371 | ||
2372 | SWIGRUNTIME int | |
2373 | SWIG_Python_ArgFail(int argnum) | |
2374 | { | |
2375 | if (PyErr_Occurred()) { | |
2376 | /* add information about failing argument */ | |
2377 | char mesg[256]; | |
2378 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2379 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2380 | } else { | |
2381 | return 0; | |
2382 | } | |
2383 | } | |
2384 | ||
2385 | SWIGRUNTIMEINLINE const char * | |
2386 | PySwigObject_GetDesc(PyObject *self) | |
2387 | { | |
2388 | PySwigObject *v = (PySwigObject *)self; | |
2389 | swig_type_info *ty = v ? v->ty : 0; | |
2390 | return ty ? ty->str : (char*)""; | |
2391 | } | |
2392 | ||
2393 | SWIGRUNTIME void | |
2394 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2395 | { | |
2396 | if (type) { | |
2397 | #if defined(SWIG_COBJECT_TYPES) | |
2398 | if (obj && PySwigObject_Check(obj)) { | |
2399 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2400 | if (otype) { | |
2401 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2402 | type, otype); | |
2403 | return; | |
2404 | } | |
2405 | } else | |
2406 | #endif | |
2407 | { | |
2408 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2409 | if (otype) { | |
2410 | PyObject *str = PyObject_Str(obj); | |
2411 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2412 | if (cstr) { | |
2413 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2414 | type, otype, cstr); | |
2415 | } else { | |
2416 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2417 | type, otype); | |
2418 | } | |
2419 | Py_XDECREF(str); | |
2420 | return; | |
2421 | } | |
2422 | } | |
2423 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2424 | } else { | |
2425 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2426 | } | |
2427 | } | |
2428 | ||
2429 | ||
2430 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2431 | SWIGRUNTIME void * | |
2432 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2433 | void *result; | |
2434 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2435 | PyErr_Clear(); | |
2436 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2437 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2438 | SWIG_Python_ArgFail(argnum); | |
2439 | } | |
2440 | } | |
2441 | return result; | |
2442 | } | |
2443 | ||
2444 | ||
2445 | #ifdef __cplusplus | |
2446 | #if 0 | |
2447 | { /* cc-mode */ | |
2448 | #endif | |
2449 | } | |
2450 | #endif | |
2451 | ||
2452 | ||
2453 | ||
2454 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2455 | ||
2456 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2457 | ||
2458 | ||
2459 | ||
2460 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2461 | ||
2462 | #define SWIGTYPE_p_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] | |
0085ce49 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) | |
093d3ff1 RD |
2629 | |
2630 | /* -------- TYPES TABLE (END) -------- */ | |
2631 | ||
0085ce49 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 | |
093d3ff1 RD |
2646 | |
2647 | /*----------------------------------------------- | |
2648 | @(target):= _controls_.so | |
2649 | ------------------------------------------------*/ | |
2650 | #define SWIG_init init_controls_ | |
2651 | ||
2652 | #define SWIG_name "_controls_" | |
2653 | ||
0085ce49 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 | ||
093d3ff1 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 | ||
0085ce49 | 2735 | #define SWIG_From_long PyInt_FromLong |
093d3ff1 RD |
2736 | |
2737 | ||
0085ce49 RD |
2738 | SWIGINTERNINLINE PyObject * |
2739 | SWIG_From_int (int value) | |
2740 | { | |
2741 | return SWIG_From_long (value); | |
2742 | } | |
093d3ff1 RD |
2743 | |
2744 | ||
0085ce49 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 | |
093d3ff1 RD |
2755 | |
2756 | ||
2757 | SWIGINTERN int | |
0085ce49 | 2758 | SWIG_AsVal_long (PyObject* obj, long* val) |
093d3ff1 RD |
2759 | { |
2760 | if (PyNumber_Check(obj)) { | |
2761 | if (val) *val = PyInt_AsLong(obj); | |
0085ce49 | 2762 | return SWIG_OK; |
093d3ff1 | 2763 | } |
0085ce49 | 2764 | return SWIG_TypeError; |
093d3ff1 RD |
2765 | } |
2766 | ||
2767 | ||
093d3ff1 | 2768 | SWIGINTERN int |
0085ce49 RD |
2769 | SWIG_AsVal_int (PyObject * obj, int *val) |
2770 | { | |
093d3ff1 | 2771 | long v; |
0085ce49 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; | |
093d3ff1 | 2776 | } else { |
0085ce49 | 2777 | if (val) *val = static_cast< int >(v); |
093d3ff1 | 2778 | } |
0085ce49 RD |
2779 | } |
2780 | return res; | |
994141e6 RD |
2781 | } |
2782 | ||
c32bde28 | 2783 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
15afbcd0 | 2784 | |
093d3ff1 | 2785 | SWIGINTERN int |
0085ce49 | 2786 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
15afbcd0 | 2787 | { |
c32bde28 RD |
2788 | if (obj == Py_True) { |
2789 | if (val) *val = true; | |
0085ce49 RD |
2790 | return SWIG_OK; |
2791 | } else if (obj == Py_False) { | |
c32bde28 | 2792 | if (val) *val = false; |
0085ce49 | 2793 | return SWIG_OK; |
093d3ff1 | 2794 | } else { |
0085ce49 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; | |
c32bde28 | 2799 | } |
15afbcd0 RD |
2800 | } |
2801 | ||
b2dc1044 RD |
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); | |
d14a1e28 RD |
2808 | |
2809 | #include <wx/checklst.h> | |
d14a1e28 | 2810 | |
b2dc1044 | 2811 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
0085ce49 | 2812 | SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){ |
e9d6f3a4 RD |
2813 | if (clientData) |
2814 | { | |
d14a1e28 RD |
2815 | wxPyClientData* data = new wxPyClientData(clientData); |
2816 | self->Insert(item, pos, data); | |
e9d6f3a4 RD |
2817 | } |
2818 | else | |
d14a1e28 RD |
2819 | self->Insert(item, pos); |
2820 | } | |
50f151d7 RD |
2821 | |
2822 | SWIGINTERN int | |
2823 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) | |
2824 | { | |
2825 | long v = 0; | |
2826 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
2827 | return SWIG_TypeError; | |
2828 | } | |
2829 | else if (val) | |
2830 | *val = (unsigned long)v; | |
2831 | return SWIG_OK; | |
2832 | } | |
2833 | ||
2834 | ||
2835 | SWIGINTERN int | |
2836 | SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) | |
2837 | { | |
2838 | unsigned long v; | |
2839 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); | |
2840 | if (SWIG_IsOK(res)) { | |
2841 | if ((v > UINT_MAX)) { | |
2842 | return SWIG_OverflowError; | |
2843 | } else { | |
2844 | if (val) *val = static_cast< unsigned int >(v); | |
2845 | } | |
2846 | } | |
2847 | return res; | |
2848 | } | |
2849 | ||
0085ce49 | 2850 | SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){ |
e9d6f3a4 | 2851 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
7e08d4ef RD |
2852 | wxArrayInt lst; |
2853 | self->GetSelections(lst); | |
2854 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
e9d6f3a4 RD |
2855 | for (size_t i=0; i<lst.GetCount(); i++) |
2856 | { | |
7e08d4ef RD |
2857 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); |
2858 | } | |
e9d6f3a4 | 2859 | wxPyEndBlockThreads(blocked); |
7e08d4ef RD |
2860 | return tup; |
2861 | } | |
0085ce49 | 2862 | SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
c3eb6258 RD |
2863 | #ifdef __WXMSW__ |
2864 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2865 | self->GetItem(item)->SetTextColour(c); | |
2866 | #endif | |
2867 | } | |
0085ce49 | 2868 | SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ |
c3eb6258 RD |
2869 | #ifdef __WXMSW__ |
2870 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2871 | self->GetItem(item)->SetBackgroundColour(c); | |
2872 | #endif | |
2873 | } | |
0085ce49 | 2874 | SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ |
c3eb6258 RD |
2875 | #ifdef __WXMSW__ |
2876 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2877 | self->GetItem(item)->SetFont(f); | |
2878 | #endif | |
2879 | } | |
b2dc1044 | 2880 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
0085ce49 | 2881 | SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
d14a1e28 RD |
2882 | self->AppendText(text); |
2883 | } | |
0085ce49 | 2884 | SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ |
d14a1e28 RD |
2885 | return self->GetValue().Mid(from, to - from); |
2886 | } | |
b2dc1044 RD |
2887 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
2888 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
33b885b9 | 2889 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
b2dc1044 RD |
2890 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
2891 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
75219dcb RD |
2892 | |
2893 | SWIGINTERNINLINE PyObject* | |
2894 | SWIG_From_unsigned_SS_long (unsigned long value) | |
2895 | { | |
2896 | return (value > LONG_MAX) ? | |
2897 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
2898 | } | |
2899 | ||
2900 | ||
2901 | SWIGINTERNINLINE PyObject * | |
2902 | SWIG_From_size_t (size_t value) | |
2903 | { | |
2904 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
2905 | } | |
2906 | ||
50f151d7 RD |
2907 | |
2908 | SWIGINTERNINLINE PyObject * | |
2909 | SWIG_From_unsigned_SS_int (unsigned int value) | |
2910 | { | |
2911 | return SWIG_From_unsigned_SS_long (value); | |
2912 | } | |
2913 | ||
d14a1e28 RD |
2914 | |
2915 | #include <wx/slider.h> | |
2916 | ||
d14a1e28 | 2917 | |
b2dc1044 | 2918 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
33b885b9 | 2919 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 2920 | |
15afbcd0 RD |
2921 | #if !wxUSE_TOGGLEBTN |
2922 | // implement dummy items for platforms that don't have this class | |
d14a1e28 RD |
2923 | |
2924 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
2925 | ||
2926 | class wxToggleButton : public wxControl | |
2927 | { | |
2928 | public: | |
2929 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
2930 | const wxPoint&, const wxSize&, long, | |
2931 | const wxValidator&, const wxString&) | |
39f61e25 | 2932 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
2933 | |
2934 | wxToggleButton() | |
39f61e25 | 2935 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
2936 | }; |
2937 | #endif | |
2938 | ||
51b83b37 | 2939 | static const wxString wxPyNotebookNameStr(wxNotebookNameStr); |
994141e6 | 2940 | |
7e08d4ef | 2941 | SWIGINTERNINLINE int |
0085ce49 | 2942 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
7e08d4ef | 2943 | { |
7e08d4ef | 2944 | unsigned long v; |
0085ce49 RD |
2945 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); |
2946 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
2947 | return res; | |
7e08d4ef | 2948 | } |
7e08d4ef | 2949 | |
b2dc1044 | 2950 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
0085ce49 | 2951 | SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
d14a1e28 RD |
2952 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); |
2953 | if (udata) { | |
2954 | Py_INCREF(udata->m_obj); | |
2955 | return udata->m_obj; | |
2956 | } else { | |
2957 | Py_INCREF(Py_None); | |
2958 | return Py_None; | |
2959 | } | |
2960 | } | |
0085ce49 | 2961 | SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ |
d14a1e28 RD |
2962 | self->SetClientData(new wxPyUserData(clientData)); |
2963 | } | |
0085ce49 | 2964 | 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){ |
d14a1e28 RD |
2965 | wxPyUserData* udata = NULL; |
2966 | if (clientData && clientData != Py_None) | |
2967 | udata = new wxPyUserData(clientData); | |
2968 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
2969 | shortHelp, longHelp, udata); | |
2970 | } | |
0085ce49 | 2971 | 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){ |
d14a1e28 RD |
2972 | wxPyUserData* udata = NULL; |
2973 | if (clientData && clientData != Py_None) | |
2974 | udata = new wxPyUserData(clientData); | |
2975 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
2976 | shortHelp, longHelp, udata); | |
2977 | } | |
0085ce49 | 2978 | SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ |
d14a1e28 RD |
2979 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); |
2980 | if (udata) { | |
2981 | Py_INCREF(udata->m_obj); | |
2982 | return udata->m_obj; | |
2983 | } else { | |
2984 | Py_INCREF(Py_None); | |
2985 | return Py_None; | |
2986 | } | |
2987 | } | |
0085ce49 | 2988 | SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ |
d14a1e28 RD |
2989 | self->SetToolClientData(id, new wxPyUserData(clientData)); |
2990 | } | |
2991 | ||
2992 | #include <wx/listctrl.h> | |
2993 | ||
7557b9b5 | 2994 | static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr); |
0085ce49 | 2995 | SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
d14a1e28 RD |
2996 | // Python aware sorting function for wxPyListCtrl |
2997 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
2998 | int retval = 0; | |
2999 | PyObject* func = (PyObject*)funcPtr; | |
5a446332 | 3000 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
3001 | |
3002 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
3003 | PyObject* result = PyEval_CallObject(func, args); | |
3004 | Py_DECREF(args); | |
3005 | if (result) { | |
3006 | retval = PyInt_AsLong(result); | |
3007 | Py_DECREF(result); | |
3008 | } | |
3009 | ||
4f89f6a3 | 3010 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3011 | return retval; |
3012 | } | |
3013 | ||
3014 | // C++ Version of a Python aware class | |
3015 | class wxPyListCtrl : public wxListCtrl { | |
32fe5131 | 3016 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl) |
d14a1e28 RD |
3017 | public: |
3018 | wxPyListCtrl() : wxListCtrl() {} | |
3019 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
3020 | const wxPoint& pos, | |
3021 | const wxSize& size, | |
3022 | long style, | |
3023 | const wxValidator& validator, | |
3024 | const wxString& name) : | |
3025 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
3026 | ||
3027 | bool Create(wxWindow* parent, wxWindowID id, | |
3028 | const wxPoint& pos, | |
3029 | const wxSize& size, | |
3030 | long style, | |
3031 | const wxValidator& validator, | |
3032 | const wxString& name) { | |
3033 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
3034 | } | |
3035 | ||
3036 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
d14a1e28 RD |
3037 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); |
3038 | ||
84f85550 RD |
3039 | // use the virtual version to avoid a confusing assert in the base class |
3040 | DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage); | |
7e08d4ef | 3041 | DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage); |
84f85550 | 3042 | |
d14a1e28 RD |
3043 | PYPRIVATE; |
3044 | }; | |
3045 | ||
3046 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
3047 | ||
3048 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
d14a1e28 | 3049 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); |
84f85550 | 3050 | IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage); |
7e08d4ef RD |
3051 | IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage); |
3052 | ||
d14a1e28 | 3053 | |
0085ce49 | 3054 | SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ |
d14a1e28 RD |
3055 | wxListItem item; |
3056 | item.SetMask( wxLIST_MASK_STATE | | |
3057 | wxLIST_MASK_TEXT | | |
3058 | wxLIST_MASK_IMAGE | | |
3059 | wxLIST_MASK_DATA | | |
3060 | wxLIST_SET_ITEM | | |
3061 | wxLIST_MASK_WIDTH | | |
3062 | wxLIST_MASK_FORMAT | |
3063 | ); | |
3064 | if (self->GetColumn(col, item)) | |
3065 | return new wxListItem(item); | |
3066 | else | |
3067 | return NULL; | |
3068 | } | |
0085ce49 | 3069 | SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){ |
d14a1e28 RD |
3070 | wxListItem* info = new wxListItem; |
3071 | info->m_itemId = itemId; | |
3072 | info->m_col = col; | |
3073 | info->m_mask = 0xFFFF; | |
3074 | self->GetItem(*info); | |
3075 | return info; | |
3076 | } | |
0085ce49 | 3077 | SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ |
d14a1e28 RD |
3078 | wxPoint pos; |
3079 | self->GetItemPosition(item, pos); | |
3080 | return pos; | |
3081 | } | |
0085ce49 | 3082 | SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){ |
d14a1e28 RD |
3083 | wxRect rect; |
3084 | self->GetItemRect(item, rect, code); | |
3085 | return rect; | |
3086 | } | |
0085ce49 | 3087 | SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
d14a1e28 | 3088 | if (!PyCallable_Check(func)) |
ae8162c8 | 3089 | return false; |
d14a1e28 RD |
3090 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
3091 | } | |
0085ce49 | 3092 | SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ |
d14a1e28 RD |
3093 | |
3094 | ||
3095 | ||
3096 | return (wxWindow*)self->m_mainWin; | |
3097 | ||
3098 | } | |
3099 | ||
3100 | #include <wx/treectrl.h> | |
3101 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 3102 | |
33b885b9 | 3103 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
0085ce49 RD |
3104 | SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; } |
3105 | SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; } | |
3106 | SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
d14a1e28 RD |
3107 | // C++ version of Python aware wxTreeCtrl |
3108 | class wxPyTreeCtrl : public wxTreeCtrl { | |
32fe5131 | 3109 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl) |
d14a1e28 RD |
3110 | public: |
3111 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
3112 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
3113 | const wxPoint& pos, | |
3114 | const wxSize& size, | |
3115 | long style, | |
3116 | const wxValidator& validator, | |
3117 | const wxString& name) : | |
3118 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
3119 | ||
3120 | bool Create(wxWindow *parent, wxWindowID id, | |
3121 | const wxPoint& pos, | |
3122 | const wxSize& size, | |
3123 | long style, | |
3124 | const wxValidator& validator, | |
3125 | const wxString& name) { | |
3126 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
3127 | } | |
3128 | ||
3129 | ||
3130 | int OnCompareItems(const wxTreeItemId& item1, | |
3131 | const wxTreeItemId& item2) { | |
3132 | int rval = 0; | |
3133 | bool found; | |
5a446332 | 3134 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 3135 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
ae8162c8 RD |
3136 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false); |
3137 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false); | |
d14a1e28 RD |
3138 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
3139 | Py_DECREF(o1); | |
3140 | Py_DECREF(o2); | |
3141 | } | |
4f89f6a3 | 3142 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3143 | if (! found) |
3144 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
3145 | return rval; | |
3146 | } | |
3147 | PYPRIVATE; | |
3148 | }; | |
3149 | ||
3150 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
3151 | ||
3152 | ||
0085ce49 | 3153 | SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d14a1e28 RD |
3154 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3155 | if (data == NULL) { | |
3156 | data = new wxPyTreeItemData(); | |
3157 | data->SetId(item); // set the id | |
3158 | self->SetItemData(item, data); | |
3159 | } | |
3160 | return data; | |
3161 | } | |
0085ce49 | 3162 | SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d14a1e28 RD |
3163 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3164 | if (data == NULL) { | |
3165 | data = new wxPyTreeItemData(); | |
3166 | data->SetId(item); // set the id | |
3167 | self->SetItemData(item, data); | |
3168 | } | |
3169 | return data->GetData(); | |
3170 | } | |
0085ce49 | 3171 | SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ |
d14a1e28 RD |
3172 | data->SetId(item); // set the id |
3173 | self->SetItemData(item, data); | |
3174 | } | |
0085ce49 | 3175 | SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ |
d14a1e28 RD |
3176 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3177 | if (data == NULL) { | |
3178 | data = new wxPyTreeItemData(obj); | |
3179 | data->SetId(item); // set the id | |
3180 | self->SetItemData(item, data); | |
3181 | } else | |
3182 | data->SetData(obj); | |
3183 | } | |
0085ce49 | 3184 | SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ |
5a446332 | 3185 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
3186 | PyObject* rval = PyList_New(0); |
3187 | wxArrayTreeItemIds array; | |
3188 | size_t num, x; | |
3189 | num = self->GetSelections(array); | |
3190 | for (x=0; x < num; x++) { | |
3191 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
ae8162c8 | 3192 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true); |
d14a1e28 | 3193 | PyList_Append(rval, item); |
1a10c483 | 3194 | Py_DECREF(item); |
d14a1e28 | 3195 | } |
4f89f6a3 | 3196 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3197 | return rval; |
3198 | } | |
0085ce49 | 3199 | SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
58203fa6 RD |
3200 | void* cookie = 0; |
3201 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
5a446332 | 3202 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 3203 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 3204 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 3205 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 3206 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3207 | return tup; |
3208 | } | |
0085ce49 | 3209 | SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
58203fa6 | 3210 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); |
5a446332 | 3211 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 3212 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 3213 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 3214 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 3215 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3216 | return tup; |
3217 | } | |
0085ce49 | 3218 | SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){ |
d14a1e28 RD |
3219 | wxRect rect; |
3220 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
5a446332 | 3221 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 3222 | wxRect* r = new wxRect(rect); |
ae8162c8 | 3223 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true); |
4f89f6a3 | 3224 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3225 | return val; |
3226 | } | |
3227 | else | |
3228 | RETURN_NONE(); | |
3229 | } | |
b2dc1044 | 3230 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
c32bde28 | 3231 | |
32fe5131 | 3232 | SWIGINTERNINLINE PyObject* |
0085ce49 | 3233 | SWIG_From_bool (bool value) |
c32bde28 | 3234 | { |
0085ce49 | 3235 | return PyBool_FromLong(value ? 1 : 0); |
c32bde28 RD |
3236 | } |
3237 | ||
d14a1e28 RD |
3238 | // C++ version of Python aware wxControl |
3239 | class wxPyControl : public wxControl | |
3240 | { | |
3241 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
3242 | public: | |
3243 | wxPyControl() : wxControl() {} | |
3244 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
3245 | const wxPoint& pos = wxDefaultPosition, | |
3246 | const wxSize& size = wxDefaultSize, | |
3247 | long style = 0, | |
3248 | const wxValidator& validator=wxDefaultValidator, | |
3249 | const wxString& name = wxPyControlNameStr) | |
3250 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
3251 | ||
db3e571a | 3252 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d14a1e28 | 3253 | |
976dbff5 RD |
3254 | bool DoEraseBackground(wxDC* dc) { |
3255 | #ifdef __WXMSW__ | |
3256 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3257 | #else | |
3258 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3259 | dc->Clear(); | |
3260 | return true; | |
3261 | #endif | |
3262 | } | |
3263 | ||
d14a1e28 RD |
3264 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); |
3265 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3266 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3267 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3268 | ||
3269 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3270 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3271 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3272 | ||
3273 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3274 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3275 | ||
3276 | DEC_PYCALLBACK__(InitDialog); | |
3277 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3278 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3279 | DEC_PYCALLBACK_BOOL_(Validate); | |
3280 | ||
3281 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3282 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3283 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3284 | ||
3285 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3286 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3287 | ||
db3e571a | 3288 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
db3e571a | 3289 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 3290 | |
51b83b37 RD |
3291 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3292 | ||
8d38bd1d RD |
3293 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3294 | ||
d14a1e28 RD |
3295 | PYPRIVATE; |
3296 | }; | |
3297 | ||
3298 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
3299 | ||
3300 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
3301 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
3302 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
3303 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
3304 | ||
3305 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
3306 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
3307 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
3308 | ||
3309 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
3310 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
3311 | ||
3312 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
3313 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
3314 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
3315 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
3316 | ||
3317 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
3318 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
3319 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
3320 | ||
3321 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
3322 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
3323 | ||
db3e571a | 3324 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
db3e571a | 3325 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d14a1e28 | 3326 | |
51b83b37 | 3327 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground); |
8d38bd1d RD |
3328 | |
3329 | IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle); | |
3330 | ||
d14a1e28 RD |
3331 | |
3332 | ||
0085ce49 | 3333 | SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } |
e811c8ce RD |
3334 | |
3335 | #include <wx/generic/dragimgg.h> | |
3336 | ||
53aa7709 | 3337 | static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr); |
0085ce49 | 3338 | SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){ |
53aa7709 RD |
3339 | wxDateTime rv; |
3340 | self->GetRange(&rv, NULL); | |
3341 | return rv; | |
3342 | } | |
0085ce49 | 3343 | SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){ |
53aa7709 RD |
3344 | wxDateTime rv; |
3345 | self->GetRange(NULL, &rv); | |
3346 | return rv; | |
3347 | } | |
d14a1e28 RD |
3348 | #ifdef __cplusplus |
3349 | extern "C" { | |
3350 | #endif | |
0085ce49 RD |
3351 | SWIGINTERN int ButtonNameStr_set(PyObject *) { |
3352 | SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only."); | |
3353 | return 1; | |
b2dc1044 RD |
3354 | } |
3355 | ||
3356 | ||
0085ce49 RD |
3357 | SWIGINTERN PyObject *ButtonNameStr_get(void) { |
3358 | PyObject *pyobj = 0; | |
3359 | ||
3360 | { | |
b2dc1044 | 3361 | #if wxUSE_UNICODE |
0085ce49 | 3362 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); |
b2dc1044 | 3363 | #else |
0085ce49 | 3364 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); |
b2dc1044 | 3365 | #endif |
0085ce49 RD |
3366 | } |
3367 | return pyobj; | |
3368 | } | |
3369 | ||
3370 | ||
3371 | SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3372 | PyObject *resultobj = 0; | |
3373 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3374 | int arg2 = (int) -1 ; | |
3375 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3376 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3377 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3378 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3379 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3380 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3381 | long arg6 = (long) 0 ; | |
3382 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3383 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3384 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
3385 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3386 | wxButton *result = 0 ; | |
3387 | void *argp1 = 0 ; | |
3388 | int res1 = 0 ; | |
3389 | int val2 ; | |
3390 | int ecode2 = 0 ; | |
3391 | bool temp3 = false ; | |
3392 | wxPoint temp4 ; | |
3393 | wxSize temp5 ; | |
3394 | long val6 ; | |
3395 | int ecode6 = 0 ; | |
3396 | void *argp7 = 0 ; | |
3397 | int res7 = 0 ; | |
3398 | bool temp8 = false ; | |
3399 | PyObject * obj0 = 0 ; | |
3400 | PyObject * obj1 = 0 ; | |
3401 | PyObject * obj2 = 0 ; | |
3402 | PyObject * obj3 = 0 ; | |
3403 | PyObject * obj4 = 0 ; | |
3404 | PyObject * obj5 = 0 ; | |
3405 | PyObject * obj6 = 0 ; | |
3406 | PyObject * obj7 = 0 ; | |
3407 | char * kwnames[] = { | |
3408 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3409 | }; | |
3410 | ||
3411 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
3412 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3413 | if (!SWIG_IsOK(res1)) { | |
3414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3415 | } | |
3416 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3417 | if (obj1) { | |
3418 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3419 | if (!SWIG_IsOK(ecode2)) { | |
3420 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'"); | |
3421 | } | |
3422 | arg2 = static_cast< int >(val2); | |
3423 | } | |
3424 | if (obj2) { | |
d14a1e28 | 3425 | { |
0085ce49 RD |
3426 | arg3 = wxString_in_helper(obj2); |
3427 | if (arg3 == NULL) SWIG_fail; | |
3428 | temp3 = true; | |
d14a1e28 | 3429 | } |
0085ce49 RD |
3430 | } |
3431 | if (obj3) { | |
d14a1e28 | 3432 | { |
0085ce49 RD |
3433 | arg4 = &temp4; |
3434 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 3435 | } |
0085ce49 RD |
3436 | } |
3437 | if (obj4) { | |
d14a1e28 | 3438 | { |
0085ce49 RD |
3439 | arg5 = &temp5; |
3440 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 3441 | } |
0085ce49 RD |
3442 | } |
3443 | if (obj5) { | |
3444 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3445 | if (!SWIG_IsOK(ecode6)) { | |
3446 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'"); | |
3447 | } | |
3448 | arg6 = static_cast< long >(val6); | |
3449 | } | |
3450 | if (obj6) { | |
3451 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
3452 | if (!SWIG_IsOK(res7)) { | |
3453 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 3454 | } |
0085ce49 RD |
3455 | if (!argp7) { |
3456 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 3457 | } |
0085ce49 RD |
3458 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
3459 | } | |
3460 | if (obj7) { | |
d14a1e28 | 3461 | { |
0085ce49 RD |
3462 | arg8 = wxString_in_helper(obj7); |
3463 | if (arg8 == NULL) SWIG_fail; | |
3464 | temp8 = true; | |
d14a1e28 | 3465 | } |
0085ce49 RD |
3466 | } |
3467 | { | |
3468 | if (!wxPyCheckForApp()) SWIG_fail; | |
3469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3470 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3471 | wxPyEndAllowThreads(__tstate); | |
3472 | if (PyErr_Occurred()) SWIG_fail; | |
3473 | } | |
3474 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 ); | |
3475 | { | |
3476 | if (temp3) | |
3477 | delete arg3; | |
3478 | } | |
3479 | { | |
3480 | if (temp8) | |
3481 | delete arg8; | |
3482 | } | |
3483 | return resultobj; | |
3484 | fail: | |
3485 | { | |
3486 | if (temp3) | |
3487 | delete arg3; | |
3488 | } | |
3489 | { | |
3490 | if (temp8) | |
3491 | delete arg8; | |
3492 | } | |
3493 | return NULL; | |
d14a1e28 RD |
3494 | } |
3495 | ||
3496 | ||
0085ce49 RD |
3497 | SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3498 | PyObject *resultobj = 0; | |
3499 | wxButton *result = 0 ; | |
3500 | ||
3501 | if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail; | |
3502 | { | |
3503 | if (!wxPyCheckForApp()) SWIG_fail; | |
3504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3505 | result = (wxButton *)new wxButton(); | |
3506 | wxPyEndAllowThreads(__tstate); | |
3507 | if (PyErr_Occurred()) SWIG_fail; | |
3508 | } | |
3509 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 ); | |
3510 | return resultobj; | |
3511 | fail: | |
3512 | return NULL; | |
3513 | } | |
3514 | ||
3515 | ||
3516 | SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3517 | PyObject *resultobj = 0; | |
3518 | wxButton *arg1 = (wxButton *) 0 ; | |
3519 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3520 | int arg3 = (int) -1 ; | |
3521 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3522 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3523 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3524 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3525 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3526 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3527 | long arg7 = (long) 0 ; | |
3528 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3529 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3530 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
3531 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3532 | bool result; | |
3533 | void *argp1 = 0 ; | |
3534 | int res1 = 0 ; | |
3535 | void *argp2 = 0 ; | |
3536 | int res2 = 0 ; | |
3537 | int val3 ; | |
3538 | int ecode3 = 0 ; | |
3539 | bool temp4 = false ; | |
3540 | wxPoint temp5 ; | |
3541 | wxSize temp6 ; | |
3542 | long val7 ; | |
3543 | int ecode7 = 0 ; | |
3544 | void *argp8 = 0 ; | |
3545 | int res8 = 0 ; | |
3546 | bool temp9 = false ; | |
3547 | PyObject * obj0 = 0 ; | |
3548 | PyObject * obj1 = 0 ; | |
3549 | PyObject * obj2 = 0 ; | |
3550 | PyObject * obj3 = 0 ; | |
3551 | PyObject * obj4 = 0 ; | |
3552 | PyObject * obj5 = 0 ; | |
3553 | PyObject * obj6 = 0 ; | |
3554 | PyObject * obj7 = 0 ; | |
3555 | PyObject * obj8 = 0 ; | |
3556 | char * kwnames[] = { | |
3557 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3558 | }; | |
3559 | ||
3560 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
3561 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 ); | |
3562 | if (!SWIG_IsOK(res1)) { | |
3563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'"); | |
3564 | } | |
3565 | arg1 = reinterpret_cast< wxButton * >(argp1); | |
3566 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3567 | if (!SWIG_IsOK(res2)) { | |
3568 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3569 | } | |
3570 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3571 | if (obj2) { | |
3572 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3573 | if (!SWIG_IsOK(ecode3)) { | |
3574 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'"); | |
3575 | } | |
3576 | arg3 = static_cast< int >(val3); | |
3577 | } | |
3578 | if (obj3) { | |
d14a1e28 | 3579 | { |
0085ce49 RD |
3580 | arg4 = wxString_in_helper(obj3); |
3581 | if (arg4 == NULL) SWIG_fail; | |
3582 | temp4 = true; | |
d14a1e28 | 3583 | } |
0085ce49 RD |
3584 | } |
3585 | if (obj4) { | |
4f89f6a3 | 3586 | { |
0085ce49 RD |
3587 | arg5 = &temp5; |
3588 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 3589 | } |
0085ce49 RD |
3590 | } |
3591 | if (obj5) { | |
d14a1e28 | 3592 | { |
0085ce49 RD |
3593 | arg6 = &temp6; |
3594 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 3595 | } |
0085ce49 RD |
3596 | } |
3597 | if (obj6) { | |
3598 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
3599 | if (!SWIG_IsOK(ecode7)) { | |
3600 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'"); | |
3601 | } | |
3602 | arg7 = static_cast< long >(val7); | |
3603 | } | |
3604 | if (obj7) { | |
3605 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
3606 | if (!SWIG_IsOK(res8)) { | |
3607 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 3608 | } |
0085ce49 RD |
3609 | if (!argp8) { |
3610 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 3611 | } |
0085ce49 RD |
3612 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
3613 | } | |
3614 | if (obj8) { | |
d14a1e28 | 3615 | { |
0085ce49 RD |
3616 | arg9 = wxString_in_helper(obj8); |
3617 | if (arg9 == NULL) SWIG_fail; | |
3618 | temp9 = true; | |
d14a1e28 | 3619 | } |
0085ce49 RD |
3620 | } |
3621 | { | |
3622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3623 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3624 | wxPyEndAllowThreads(__tstate); | |
3625 | if (PyErr_Occurred()) SWIG_fail; | |
3626 | } | |
3627 | { | |
3628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3629 | } | |
3630 | { | |
3631 | if (temp4) | |
3632 | delete arg4; | |
3633 | } | |
3634 | { | |
3635 | if (temp9) | |
3636 | delete arg9; | |
3637 | } | |
3638 | return resultobj; | |
3639 | fail: | |
3640 | { | |
3641 | if (temp4) | |
3642 | delete arg4; | |
3643 | } | |
3644 | { | |
3645 | if (temp9) | |
3646 | delete arg9; | |
3647 | } | |
3648 | return NULL; | |
d14a1e28 RD |
3649 | } |
3650 | ||
3651 | ||
0085ce49 RD |
3652 | SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3653 | PyObject *resultobj = 0; | |
3654 | wxButton *arg1 = (wxButton *) 0 ; | |
3655 | void *argp1 = 0 ; | |
3656 | int res1 = 0 ; | |
3657 | PyObject *swig_obj[1] ; | |
3658 | ||
3659 | if (!args) SWIG_fail; | |
3660 | swig_obj[0] = args; | |
3661 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 ); | |
3662 | if (!SWIG_IsOK(res1)) { | |
3663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'"); | |
3664 | } | |
3665 | arg1 = reinterpret_cast< wxButton * >(argp1); | |
3666 | { | |
3667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3668 | (arg1)->SetDefault(); | |
3669 | wxPyEndAllowThreads(__tstate); | |
3670 | if (PyErr_Occurred()) SWIG_fail; | |
3671 | } | |
3672 | resultobj = SWIG_Py_Void(); | |
3673 | return resultobj; | |
3674 | fail: | |
3675 | return NULL; | |
d14a1e28 RD |
3676 | } |
3677 | ||
3678 | ||
0085ce49 RD |
3679 | SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3680 | PyObject *resultobj = 0; | |
3681 | wxSize result; | |
3682 | ||
3683 | if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail; | |
3684 | { | |
3685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3686 | result = wxButton::GetDefaultSize(); | |
3687 | wxPyEndAllowThreads(__tstate); | |
3688 | if (PyErr_Occurred()) SWIG_fail; | |
3689 | } | |
3690 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
3691 | return resultobj; | |
3692 | fail: | |
3693 | return NULL; | |
3694 | } | |
3695 | ||
3696 | ||
3697 | SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3698 | PyObject *resultobj = 0; | |
3699 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
3700 | SwigValueWrapper<wxVisualAttributes > result; | |
3701 | int val1 ; | |
3702 | int ecode1 = 0 ; | |
3703 | PyObject * obj0 = 0 ; | |
3704 | char * kwnames[] = { | |
3705 | (char *) "variant", NULL | |
3706 | }; | |
3707 | ||
3708 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
3709 | if (obj0) { | |
3710 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
3711 | if (!SWIG_IsOK(ecode1)) { | |
3712 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
3713 | } | |
3714 | arg1 = static_cast< wxWindowVariant >(val1); | |
3715 | } | |
3716 | { | |
3717 | if (!wxPyCheckForApp()) SWIG_fail; | |
3718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3719 | result = wxButton::GetClassDefaultAttributes(arg1); | |
3720 | wxPyEndAllowThreads(__tstate); | |
3721 | if (PyErr_Occurred()) SWIG_fail; | |
3722 | } | |
3723 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
3724 | return resultobj; | |
3725 | fail: | |
3726 | return NULL; | |
3727 | } | |
3728 | ||
3729 | ||
3730 | SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3731 | PyObject *obj; | |
3732 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3733 | SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj)); | |
3734 | return SWIG_Py_Void(); | |
3735 | } | |
3736 | ||
3737 | SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3738 | return SWIG_Python_InitShadowInstance(args); | |
3739 | } | |
3740 | ||
3741 | SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3742 | PyObject *resultobj = 0; | |
3743 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3744 | int arg2 = (int) -1 ; | |
3745 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
3746 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
3747 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3748 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3749 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3750 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3751 | long arg6 = (long) wxBU_AUTODRAW ; | |
3752 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3753 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3754 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
3755 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3756 | wxBitmapButton *result = 0 ; | |
3757 | void *argp1 = 0 ; | |
3758 | int res1 = 0 ; | |
3759 | int val2 ; | |
3760 | int ecode2 = 0 ; | |
3761 | void *argp3 = 0 ; | |
3762 | int res3 = 0 ; | |
3763 | wxPoint temp4 ; | |
3764 | wxSize temp5 ; | |
3765 | long val6 ; | |
3766 | int ecode6 = 0 ; | |
3767 | void *argp7 = 0 ; | |
3768 | int res7 = 0 ; | |
3769 | bool temp8 = false ; | |
3770 | PyObject * obj0 = 0 ; | |
3771 | PyObject * obj1 = 0 ; | |
3772 | PyObject * obj2 = 0 ; | |
3773 | PyObject * obj3 = 0 ; | |
3774 | PyObject * obj4 = 0 ; | |
3775 | PyObject * obj5 = 0 ; | |
3776 | PyObject * obj6 = 0 ; | |
3777 | PyObject * obj7 = 0 ; | |
3778 | char * kwnames[] = { | |
3779 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3780 | }; | |
3781 | ||
3782 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
3783 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3784 | if (!SWIG_IsOK(res1)) { | |
3785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3786 | } | |
3787 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3788 | if (obj1) { | |
3789 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3790 | if (!SWIG_IsOK(ecode2)) { | |
3791 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'"); | |
3792 | } | |
3793 | arg2 = static_cast< int >(val2); | |
3794 | } | |
3795 | if (obj2) { | |
3796 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
3797 | if (!SWIG_IsOK(res3)) { | |
3798 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
3799 | } | |
3800 | if (!argp3) { | |
3801 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
3802 | } | |
3803 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
3804 | } | |
3805 | if (obj3) { | |
d14a1e28 | 3806 | { |
0085ce49 RD |
3807 | arg4 = &temp4; |
3808 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 3809 | } |
0085ce49 RD |
3810 | } |
3811 | if (obj4) { | |
d14a1e28 | 3812 | { |
0085ce49 RD |
3813 | arg5 = &temp5; |
3814 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 3815 | } |
0085ce49 RD |
3816 | } |
3817 | if (obj5) { | |
3818 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3819 | if (!SWIG_IsOK(ecode6)) { | |
3820 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'"); | |
3821 | } | |
3822 | arg6 = static_cast< long >(val6); | |
3823 | } | |
3824 | if (obj6) { | |
3825 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
3826 | if (!SWIG_IsOK(res7)) { | |
3827 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
22bfe96c | 3828 | } |
0085ce49 RD |
3829 | if (!argp7) { |
3830 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
22bfe96c | 3831 | } |
0085ce49 RD |
3832 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
3833 | } | |
3834 | if (obj7) { | |
22bfe96c | 3835 | { |
0085ce49 RD |
3836 | arg8 = wxString_in_helper(obj7); |
3837 | if (arg8 == NULL) SWIG_fail; | |
3838 | temp8 = true; | |
22bfe96c | 3839 | } |
0085ce49 RD |
3840 | } |
3841 | { | |
3842 | if (!wxPyCheckForApp()) SWIG_fail; | |
3843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3844 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3845 | wxPyEndAllowThreads(__tstate); | |
3846 | if (PyErr_Occurred()) SWIG_fail; | |
3847 | } | |
3848 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 ); | |
3849 | { | |
3850 | if (temp8) | |
3851 | delete arg8; | |
3852 | } | |
3853 | return resultobj; | |
3854 | fail: | |
3855 | { | |
3856 | if (temp8) | |
3857 | delete arg8; | |
3858 | } | |
3859 | return NULL; | |
22bfe96c RD |
3860 | } |
3861 | ||
3862 | ||
0085ce49 RD |
3863 | SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3864 | PyObject *resultobj = 0; | |
3865 | wxBitmapButton *result = 0 ; | |
3866 | ||
3867 | if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail; | |
3868 | { | |
3869 | if (!wxPyCheckForApp()) SWIG_fail; | |
3870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3871 | result = (wxBitmapButton *)new wxBitmapButton(); | |
3872 | wxPyEndAllowThreads(__tstate); | |
3873 | if (PyErr_Occurred()) SWIG_fail; | |
3874 | } | |
3875 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 ); | |
3876 | return resultobj; | |
3877 | fail: | |
3878 | return NULL; | |
3879 | } | |
3880 | ||
3881 | ||
3882 | SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3883 | PyObject *resultobj = 0; | |
3884 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3885 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3886 | int arg3 = (int) -1 ; | |
3887 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
3888 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
3889 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3890 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3891 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3892 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3893 | long arg7 = (long) wxBU_AUTODRAW ; | |
3894 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3895 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3896 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
3897 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3898 | bool result; | |
3899 | void *argp1 = 0 ; | |
3900 | int res1 = 0 ; | |
3901 | void *argp2 = 0 ; | |
3902 | int res2 = 0 ; | |
3903 | int val3 ; | |
3904 | int ecode3 = 0 ; | |
3905 | void *argp4 = 0 ; | |
3906 | int res4 = 0 ; | |
3907 | wxPoint temp5 ; | |
3908 | wxSize temp6 ; | |
3909 | long val7 ; | |
3910 | int ecode7 = 0 ; | |
3911 | void *argp8 = 0 ; | |
3912 | int res8 = 0 ; | |
3913 | bool temp9 = false ; | |
3914 | PyObject * obj0 = 0 ; | |
3915 | PyObject * obj1 = 0 ; | |
3916 | PyObject * obj2 = 0 ; | |
3917 | PyObject * obj3 = 0 ; | |
3918 | PyObject * obj4 = 0 ; | |
3919 | PyObject * obj5 = 0 ; | |
3920 | PyObject * obj6 = 0 ; | |
3921 | PyObject * obj7 = 0 ; | |
3922 | PyObject * obj8 = 0 ; | |
3923 | char * kwnames[] = { | |
3924 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3925 | }; | |
3926 | ||
3927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
3928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
3929 | if (!SWIG_IsOK(res1)) { | |
3930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
3931 | } | |
3932 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
3933 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3934 | if (!SWIG_IsOK(res2)) { | |
3935 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3936 | } | |
3937 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3938 | if (obj2) { | |
3939 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3940 | if (!SWIG_IsOK(ecode3)) { | |
3941 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
3942 | } | |
3943 | arg3 = static_cast< int >(val3); | |
3944 | } | |
3945 | if (obj3) { | |
3946 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
3947 | if (!SWIG_IsOK(res4)) { | |
3948 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d14a1e28 | 3949 | } |
0085ce49 RD |
3950 | if (!argp4) { |
3951 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d14a1e28 | 3952 | } |
0085ce49 RD |
3953 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
3954 | } | |
3955 | if (obj4) { | |
d14a1e28 | 3956 | { |
0085ce49 RD |
3957 | arg5 = &temp5; |
3958 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 3959 | } |
0085ce49 RD |
3960 | } |
3961 | if (obj5) { | |
d14a1e28 | 3962 | { |
0085ce49 RD |
3963 | arg6 = &temp6; |
3964 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3965 | } | |
3966 | } | |
3967 | if (obj6) { | |
3968 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
3969 | if (!SWIG_IsOK(ecode7)) { | |
3970 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
3971 | } | |
3972 | arg7 = static_cast< long >(val7); | |
3973 | } | |
3974 | if (obj7) { | |
3975 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
3976 | if (!SWIG_IsOK(res8)) { | |
3977 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
3978 | } | |
3979 | if (!argp8) { | |
3980 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 3981 | } |
0085ce49 RD |
3982 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
3983 | } | |
3984 | if (obj8) { | |
d14a1e28 | 3985 | { |
0085ce49 RD |
3986 | arg9 = wxString_in_helper(obj8); |
3987 | if (arg9 == NULL) SWIG_fail; | |
3988 | temp9 = true; | |
d14a1e28 | 3989 | } |
0085ce49 RD |
3990 | } |
3991 | { | |
3992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3993 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3994 | wxPyEndAllowThreads(__tstate); | |
3995 | if (PyErr_Occurred()) SWIG_fail; | |
3996 | } | |
3997 | { | |
3998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3999 | } | |
4000 | { | |
4001 | if (temp9) | |
4002 | delete arg9; | |
4003 | } | |
4004 | return resultobj; | |
4005 | fail: | |
4006 | { | |
4007 | if (temp9) | |
4008 | delete arg9; | |
4009 | } | |
4010 | return NULL; | |
d14a1e28 RD |
4011 | } |
4012 | ||
4013 | ||
0085ce49 RD |
4014 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4015 | PyObject *resultobj = 0; | |
4016 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4017 | wxBitmap result; | |
4018 | void *argp1 = 0 ; | |
4019 | int res1 = 0 ; | |
4020 | PyObject *swig_obj[1] ; | |
4021 | ||
4022 | if (!args) SWIG_fail; | |
4023 | swig_obj[0] = args; | |
4024 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4025 | if (!SWIG_IsOK(res1)) { | |
4026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4027 | } | |
4028 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4029 | { | |
4030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4031 | result = (arg1)->GetBitmapLabel(); | |
4032 | wxPyEndAllowThreads(__tstate); | |
4033 | if (PyErr_Occurred()) SWIG_fail; | |
4034 | } | |
4035 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4036 | return resultobj; | |
4037 | fail: | |
4038 | return NULL; | |
d14a1e28 RD |
4039 | } |
4040 | ||
4041 | ||
0085ce49 RD |
4042 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4043 | PyObject *resultobj = 0; | |
4044 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4045 | wxBitmap result; | |
4046 | void *argp1 = 0 ; | |
4047 | int res1 = 0 ; | |
4048 | PyObject *swig_obj[1] ; | |
4049 | ||
4050 | if (!args) SWIG_fail; | |
4051 | swig_obj[0] = args; | |
4052 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4053 | if (!SWIG_IsOK(res1)) { | |
4054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4055 | } | |
4056 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4057 | { | |
4058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4059 | result = (arg1)->GetBitmapDisabled(); | |
4060 | wxPyEndAllowThreads(__tstate); | |
4061 | if (PyErr_Occurred()) SWIG_fail; | |
4062 | } | |
4063 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4064 | return resultobj; | |
4065 | fail: | |
4066 | return NULL; | |
d14a1e28 RD |
4067 | } |
4068 | ||
4069 | ||
0085ce49 RD |
4070 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4071 | PyObject *resultobj = 0; | |
4072 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4073 | wxBitmap result; | |
4074 | void *argp1 = 0 ; | |
4075 | int res1 = 0 ; | |
4076 | PyObject *swig_obj[1] ; | |
4077 | ||
4078 | if (!args) SWIG_fail; | |
4079 | swig_obj[0] = args; | |
4080 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4081 | if (!SWIG_IsOK(res1)) { | |
4082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4083 | } | |
4084 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4085 | { | |
4086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4087 | result = (arg1)->GetBitmapFocus(); | |
4088 | wxPyEndAllowThreads(__tstate); | |
4089 | if (PyErr_Occurred()) SWIG_fail; | |
4090 | } | |
4091 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4092 | return resultobj; | |
4093 | fail: | |
4094 | return NULL; | |
d14a1e28 RD |
4095 | } |
4096 | ||
4097 | ||
0085ce49 RD |
4098 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4099 | PyObject *resultobj = 0; | |
4100 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4101 | wxBitmap result; | |
4102 | void *argp1 = 0 ; | |
4103 | int res1 = 0 ; | |
4104 | PyObject *swig_obj[1] ; | |
4105 | ||
4106 | if (!args) SWIG_fail; | |
4107 | swig_obj[0] = args; | |
4108 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4109 | if (!SWIG_IsOK(res1)) { | |
4110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4111 | } | |
4112 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4113 | { | |
4114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4115 | result = (arg1)->GetBitmapSelected(); | |
4116 | wxPyEndAllowThreads(__tstate); | |
4117 | if (PyErr_Occurred()) SWIG_fail; | |
4118 | } | |
4119 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4120 | return resultobj; | |
4121 | fail: | |
4122 | return NULL; | |
d14a1e28 RD |
4123 | } |
4124 | ||
4125 | ||
0085ce49 RD |
4126 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4127 | PyObject *resultobj = 0; | |
4128 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4129 | wxBitmap result; | |
4130 | void *argp1 = 0 ; | |
4131 | int res1 = 0 ; | |
4132 | PyObject *swig_obj[1] ; | |
4133 | ||
4134 | if (!args) SWIG_fail; | |
4135 | swig_obj[0] = args; | |
4136 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4137 | if (!SWIG_IsOK(res1)) { | |
4138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4139 | } | |
4140 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4141 | { | |
4142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4143 | result = (arg1)->GetBitmapHover(); | |
4144 | wxPyEndAllowThreads(__tstate); | |
4145 | if (PyErr_Occurred()) SWIG_fail; | |
4146 | } | |
4147 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4148 | return resultobj; | |
4149 | fail: | |
4150 | return NULL; | |
4151 | } | |
4152 | ||
4153 | ||
4154 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4155 | PyObject *resultobj = 0; | |
4156 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4157 | wxBitmap *arg2 = 0 ; | |
4158 | void *argp1 = 0 ; | |
4159 | int res1 = 0 ; | |
4160 | void *argp2 = 0 ; | |
4161 | int res2 = 0 ; | |
4162 | PyObject * obj0 = 0 ; | |
4163 | PyObject * obj1 = 0 ; | |
4164 | char * kwnames[] = { | |
4165 | (char *) "self",(char *) "bitmap", NULL | |
4166 | }; | |
4167 | ||
4168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
4169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4170 | if (!SWIG_IsOK(res1)) { | |
4171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4172 | } | |
4173 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4174 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4175 | if (!SWIG_IsOK(res2)) { | |
4176 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4177 | } | |
4178 | if (!argp2) { | |
4179 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4180 | } | |
4181 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4182 | { | |
4183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4184 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
4185 | wxPyEndAllowThreads(__tstate); | |
4186 | if (PyErr_Occurred()) SWIG_fail; | |
4187 | } | |
4188 | resultobj = SWIG_Py_Void(); | |
4189 | return resultobj; | |
4190 | fail: | |
4191 | return NULL; | |
4192 | } | |
4193 | ||
4194 | ||
4195 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4196 | PyObject *resultobj = 0; | |
4197 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4198 | wxBitmap *arg2 = 0 ; | |
4199 | void *argp1 = 0 ; | |
4200 | int res1 = 0 ; | |
4201 | void *argp2 = 0 ; | |
4202 | int res2 = 0 ; | |
4203 | PyObject * obj0 = 0 ; | |
4204 | PyObject * obj1 = 0 ; | |
4205 | char * kwnames[] = { | |
4206 | (char *) "self",(char *) "bitmap", NULL | |
4207 | }; | |
4208 | ||
4209 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail; | |
4210 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4211 | if (!SWIG_IsOK(res1)) { | |
4212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4213 | } | |
4214 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4215 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4216 | if (!SWIG_IsOK(res2)) { | |
4217 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4218 | } | |
4219 | if (!argp2) { | |
4220 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4221 | } | |
4222 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4223 | { | |
4224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4225 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
4226 | wxPyEndAllowThreads(__tstate); | |
4227 | if (PyErr_Occurred()) SWIG_fail; | |
4228 | } | |
4229 | resultobj = SWIG_Py_Void(); | |
4230 | return resultobj; | |
4231 | fail: | |
4232 | return NULL; | |
4233 | } | |
4234 | ||
4235 | ||
4236 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4237 | PyObject *resultobj = 0; | |
4238 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4239 | wxBitmap *arg2 = 0 ; | |
4240 | void *argp1 = 0 ; | |
4241 | int res1 = 0 ; | |
4242 | void *argp2 = 0 ; | |
4243 | int res2 = 0 ; | |
4244 | PyObject * obj0 = 0 ; | |
4245 | PyObject * obj1 = 0 ; | |
4246 | char * kwnames[] = { | |
4247 | (char *) "self",(char *) "bitmap", NULL | |
4248 | }; | |
4249 | ||
4250 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
4251 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4252 | if (!SWIG_IsOK(res1)) { | |
4253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4254 | } | |
4255 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4256 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4257 | if (!SWIG_IsOK(res2)) { | |
4258 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4259 | } | |
4260 | if (!argp2) { | |
4261 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4262 | } | |
4263 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4264 | { | |
4265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4266 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
4267 | wxPyEndAllowThreads(__tstate); | |
4268 | if (PyErr_Occurred()) SWIG_fail; | |
4269 | } | |
4270 | resultobj = SWIG_Py_Void(); | |
4271 | return resultobj; | |
4272 | fail: | |
4273 | return NULL; | |
4274 | } | |
4275 | ||
4276 | ||
4277 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4278 | PyObject *resultobj = 0; | |
4279 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4280 | wxBitmap *arg2 = 0 ; | |
4281 | void *argp1 = 0 ; | |
4282 | int res1 = 0 ; | |
4283 | void *argp2 = 0 ; | |
4284 | int res2 = 0 ; | |
4285 | PyObject * obj0 = 0 ; | |
4286 | PyObject * obj1 = 0 ; | |
4287 | char * kwnames[] = { | |
4288 | (char *) "self",(char *) "bitmap", NULL | |
4289 | }; | |
4290 | ||
4291 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
4292 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4293 | if (!SWIG_IsOK(res1)) { | |
4294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4295 | } | |
4296 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4297 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4298 | if (!SWIG_IsOK(res2)) { | |
4299 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4300 | } | |
4301 | if (!argp2) { | |
4302 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4303 | } | |
4304 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4305 | { | |
4306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4307 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
4308 | wxPyEndAllowThreads(__tstate); | |
4309 | if (PyErr_Occurred()) SWIG_fail; | |
4310 | } | |
4311 | resultobj = SWIG_Py_Void(); | |
4312 | return resultobj; | |
4313 | fail: | |
4314 | return NULL; | |
4315 | } | |
4316 | ||
4317 | ||
4318 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4319 | PyObject *resultobj = 0; | |
4320 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4321 | wxBitmap *arg2 = 0 ; | |
4322 | void *argp1 = 0 ; | |
4323 | int res1 = 0 ; | |
4324 | void *argp2 = 0 ; | |
4325 | int res2 = 0 ; | |
4326 | PyObject * obj0 = 0 ; | |
4327 | PyObject * obj1 = 0 ; | |
4328 | char * kwnames[] = { | |
4329 | (char *) "self",(char *) "hover", NULL | |
4330 | }; | |
4331 | ||
4332 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail; | |
4333 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4334 | if (!SWIG_IsOK(res1)) { | |
4335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4336 | } | |
4337 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4338 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4339 | if (!SWIG_IsOK(res2)) { | |
4340 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4341 | } | |
4342 | if (!argp2) { | |
4343 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4344 | } | |
4345 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4346 | { | |
4347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4348 | (arg1)->SetBitmapHover((wxBitmap const &)*arg2); | |
4349 | wxPyEndAllowThreads(__tstate); | |
4350 | if (PyErr_Occurred()) SWIG_fail; | |
4351 | } | |
4352 | resultobj = SWIG_Py_Void(); | |
4353 | return resultobj; | |
4354 | fail: | |
4355 | return NULL; | |
4356 | } | |
4357 | ||
4358 | ||
4359 | SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4360 | PyObject *resultobj = 0; | |
4361 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4362 | int arg2 ; | |
4363 | int arg3 ; | |
4364 | void *argp1 = 0 ; | |
4365 | int res1 = 0 ; | |
4366 | int val2 ; | |
4367 | int ecode2 = 0 ; | |
4368 | int val3 ; | |
4369 | int ecode3 = 0 ; | |
4370 | PyObject * obj0 = 0 ; | |
4371 | PyObject * obj1 = 0 ; | |
4372 | PyObject * obj2 = 0 ; | |
4373 | char * kwnames[] = { | |
4374 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4375 | }; | |
4376 | ||
4377 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4378 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4379 | if (!SWIG_IsOK(res1)) { | |
4380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4381 | } | |
4382 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4383 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4384 | if (!SWIG_IsOK(ecode2)) { | |
4385 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'"); | |
4386 | } | |
4387 | arg2 = static_cast< int >(val2); | |
4388 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4389 | if (!SWIG_IsOK(ecode3)) { | |
4390 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'"); | |
4391 | } | |
4392 | arg3 = static_cast< int >(val3); | |
4393 | { | |
4394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4395 | (arg1)->SetMargins(arg2,arg3); | |
4396 | wxPyEndAllowThreads(__tstate); | |
4397 | if (PyErr_Occurred()) SWIG_fail; | |
4398 | } | |
4399 | resultobj = SWIG_Py_Void(); | |
4400 | return resultobj; | |
4401 | fail: | |
4402 | return NULL; | |
d14a1e28 RD |
4403 | } |
4404 | ||
4405 | ||
0085ce49 RD |
4406 | SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4407 | PyObject *resultobj = 0; | |
4408 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4409 | int result; | |
4410 | void *argp1 = 0 ; | |
4411 | int res1 = 0 ; | |
4412 | PyObject *swig_obj[1] ; | |
4413 | ||
4414 | if (!args) SWIG_fail; | |
4415 | swig_obj[0] = args; | |
4416 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4417 | if (!SWIG_IsOK(res1)) { | |
4418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'"); | |
4419 | } | |
4420 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4421 | { | |
4422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4423 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
4424 | wxPyEndAllowThreads(__tstate); | |
4425 | if (PyErr_Occurred()) SWIG_fail; | |
4426 | } | |
4427 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4428 | return resultobj; | |
4429 | fail: | |
4430 | return NULL; | |
d14a1e28 RD |
4431 | } |
4432 | ||
4433 | ||
0085ce49 RD |
4434 | SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4435 | PyObject *resultobj = 0; | |
4436 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4437 | int result; | |
4438 | void *argp1 = 0 ; | |
4439 | int res1 = 0 ; | |
4440 | PyObject *swig_obj[1] ; | |
4441 | ||
4442 | if (!args) SWIG_fail; | |
4443 | swig_obj[0] = args; | |
4444 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4445 | if (!SWIG_IsOK(res1)) { | |
4446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'"); | |
4447 | } | |
4448 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4449 | { | |
4450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4451 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
4452 | wxPyEndAllowThreads(__tstate); | |
4453 | if (PyErr_Occurred()) SWIG_fail; | |
4454 | } | |
4455 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4456 | return resultobj; | |
4457 | fail: | |
4458 | return NULL; | |
b1fcee84 RD |
4459 | } |
4460 | ||
4461 | ||
0085ce49 RD |
4462 | SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4463 | PyObject *obj; | |
4464 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4465 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj)); | |
4466 | return SWIG_Py_Void(); | |
d14a1e28 RD |
4467 | } |
4468 | ||
0085ce49 RD |
4469 | SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4470 | return SWIG_Python_InitShadowInstance(args); | |
4471 | } | |
d14a1e28 | 4472 | |
0085ce49 RD |
4473 | SWIGINTERN int CheckBoxNameStr_set(PyObject *) { |
4474 | SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only."); | |
4475 | return 1; | |
d14a1e28 RD |
4476 | } |
4477 | ||
4478 | ||
0085ce49 RD |
4479 | SWIGINTERN PyObject *CheckBoxNameStr_get(void) { |
4480 | PyObject *pyobj = 0; | |
4481 | ||
4482 | { | |
4483 | #if wxUSE_UNICODE | |
4484 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
4485 | #else | |
4486 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
4487 | #endif | |
4488 | } | |
4489 | return pyobj; | |
4490 | } | |
4491 | ||
4492 | ||
4493 | SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4494 | PyObject *resultobj = 0; | |
4495 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4496 | int arg2 = (int) -1 ; | |
4497 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4498 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4499 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4500 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4501 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4502 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4503 | long arg6 = (long) 0 ; | |
4504 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
4505 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
4506 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
4507 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4508 | wxCheckBox *result = 0 ; | |
4509 | void *argp1 = 0 ; | |
4510 | int res1 = 0 ; | |
4511 | int val2 ; | |
4512 | int ecode2 = 0 ; | |
4513 | bool temp3 = false ; | |
4514 | wxPoint temp4 ; | |
4515 | wxSize temp5 ; | |
4516 | long val6 ; | |
4517 | int ecode6 = 0 ; | |
4518 | void *argp7 = 0 ; | |
4519 | int res7 = 0 ; | |
4520 | bool temp8 = false ; | |
4521 | PyObject * obj0 = 0 ; | |
4522 | PyObject * obj1 = 0 ; | |
4523 | PyObject * obj2 = 0 ; | |
4524 | PyObject * obj3 = 0 ; | |
4525 | PyObject * obj4 = 0 ; | |
4526 | PyObject * obj5 = 0 ; | |
4527 | PyObject * obj6 = 0 ; | |
4528 | PyObject * obj7 = 0 ; | |
4529 | char * kwnames[] = { | |
4530 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4531 | }; | |
4532 | ||
4533 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
4534 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4535 | if (!SWIG_IsOK(res1)) { | |
4536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
4537 | } | |
4538 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
4539 | if (obj1) { | |
4540 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4541 | if (!SWIG_IsOK(ecode2)) { | |
4542 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'"); | |
4543 | } | |
4544 | arg2 = static_cast< int >(val2); | |
4545 | } | |
4546 | if (obj2) { | |
d14a1e28 | 4547 | { |
0085ce49 RD |
4548 | arg3 = wxString_in_helper(obj2); |
4549 | if (arg3 == NULL) SWIG_fail; | |
4550 | temp3 = true; | |
d14a1e28 | 4551 | } |
0085ce49 RD |
4552 | } |
4553 | if (obj3) { | |
4554 | { | |
4555 | arg4 = &temp4; | |
4556 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 4557 | } |
0085ce49 RD |
4558 | } |
4559 | if (obj4) { | |
d14a1e28 | 4560 | { |
0085ce49 RD |
4561 | arg5 = &temp5; |
4562 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 4563 | } |
0085ce49 RD |
4564 | } |
4565 | if (obj5) { | |
4566 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
4567 | if (!SWIG_IsOK(ecode6)) { | |
4568 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'"); | |
4569 | } | |
4570 | arg6 = static_cast< long >(val6); | |
4571 | } | |
4572 | if (obj6) { | |
4573 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
4574 | if (!SWIG_IsOK(res7)) { | |
4575 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
b1fcee84 | 4576 | } |
0085ce49 RD |
4577 | if (!argp7) { |
4578 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
4579 | } | |
4580 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
4581 | } | |
4582 | if (obj7) { | |
b1fcee84 | 4583 | { |
0085ce49 RD |
4584 | arg8 = wxString_in_helper(obj7); |
4585 | if (arg8 == NULL) SWIG_fail; | |
4586 | temp8 = true; | |
b1fcee84 | 4587 | } |
0085ce49 RD |
4588 | } |
4589 | { | |
4590 | if (!wxPyCheckForApp()) SWIG_fail; | |
4591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4592 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
4593 | wxPyEndAllowThreads(__tstate); | |
4594 | if (PyErr_Occurred()) SWIG_fail; | |
4595 | } | |
4596 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 ); | |
4597 | { | |
4598 | if (temp3) | |
4599 | delete arg3; | |
4600 | } | |
4601 | { | |
4602 | if (temp8) | |
4603 | delete arg8; | |
4604 | } | |
4605 | return resultobj; | |
4606 | fail: | |
4607 | { | |
4608 | if (temp3) | |
4609 | delete arg3; | |
4610 | } | |
4611 | { | |
4612 | if (temp8) | |
4613 | delete arg8; | |
4614 | } | |
4615 | return NULL; | |
b1fcee84 RD |
4616 | } |
4617 | ||
4618 | ||
0085ce49 RD |
4619 | SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4620 | PyObject *resultobj = 0; | |
4621 | wxCheckBox *result = 0 ; | |
4622 | ||
4623 | if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail; | |
4624 | { | |
4625 | if (!wxPyCheckForApp()) SWIG_fail; | |
4626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4627 | result = (wxCheckBox *)new wxCheckBox(); | |
4628 | wxPyEndAllowThreads(__tstate); | |
4629 | if (PyErr_Occurred()) SWIG_fail; | |
4630 | } | |
4631 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 ); | |
4632 | return resultobj; | |
4633 | fail: | |
4634 | return NULL; | |
4635 | } | |
4636 | ||
4637 | ||
4638 | SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4639 | PyObject *resultobj = 0; | |
4640 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4641 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4642 | int arg3 = (int) -1 ; | |
4643 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4644 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4645 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4646 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4647 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4648 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4649 | long arg7 = (long) 0 ; | |
4650 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4651 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4652 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
4653 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4654 | bool result; | |
4655 | void *argp1 = 0 ; | |
4656 | int res1 = 0 ; | |
4657 | void *argp2 = 0 ; | |
4658 | int res2 = 0 ; | |
4659 | int val3 ; | |
4660 | int ecode3 = 0 ; | |
4661 | bool temp4 = false ; | |
4662 | wxPoint temp5 ; | |
4663 | wxSize temp6 ; | |
4664 | long val7 ; | |
4665 | int ecode7 = 0 ; | |
4666 | void *argp8 = 0 ; | |
4667 | int res8 = 0 ; | |
4668 | bool temp9 = false ; | |
4669 | PyObject * obj0 = 0 ; | |
4670 | PyObject * obj1 = 0 ; | |
4671 | PyObject * obj2 = 0 ; | |
4672 | PyObject * obj3 = 0 ; | |
4673 | PyObject * obj4 = 0 ; | |
4674 | PyObject * obj5 = 0 ; | |
4675 | PyObject * obj6 = 0 ; | |
4676 | PyObject * obj7 = 0 ; | |
4677 | PyObject * obj8 = 0 ; | |
4678 | char * kwnames[] = { | |
4679 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4680 | }; | |
4681 | ||
4682 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
4683 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4684 | if (!SWIG_IsOK(res1)) { | |
4685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4686 | } | |
4687 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4688 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4689 | if (!SWIG_IsOK(res2)) { | |
4690 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4691 | } | |
4692 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4693 | if (obj2) { | |
4694 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4695 | if (!SWIG_IsOK(ecode3)) { | |
4696 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
4697 | } | |
4698 | arg3 = static_cast< int >(val3); | |
4699 | } | |
4700 | if (obj3) { | |
093d3ff1 | 4701 | { |
0085ce49 RD |
4702 | arg4 = wxString_in_helper(obj3); |
4703 | if (arg4 == NULL) SWIG_fail; | |
4704 | temp4 = true; | |
093d3ff1 | 4705 | } |
0085ce49 RD |
4706 | } |
4707 | if (obj4) { | |
093d3ff1 | 4708 | { |
0085ce49 RD |
4709 | arg5 = &temp5; |
4710 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 4711 | } |
0085ce49 RD |
4712 | } |
4713 | if (obj5) { | |
d14a1e28 | 4714 | { |
0085ce49 RD |
4715 | arg6 = &temp6; |
4716 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 4717 | } |
0085ce49 RD |
4718 | } |
4719 | if (obj6) { | |
4720 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
4721 | if (!SWIG_IsOK(ecode7)) { | |
4722 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
4723 | } | |
4724 | arg7 = static_cast< long >(val7); | |
4725 | } | |
4726 | if (obj7) { | |
4727 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
4728 | if (!SWIG_IsOK(res8)) { | |
4729 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 4730 | } |
0085ce49 RD |
4731 | if (!argp8) { |
4732 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
4733 | } | |
4734 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
4735 | } | |
4736 | if (obj8) { | |
093d3ff1 | 4737 | { |
0085ce49 RD |
4738 | arg9 = wxString_in_helper(obj8); |
4739 | if (arg9 == NULL) SWIG_fail; | |
4740 | temp9 = true; | |
093d3ff1 | 4741 | } |
0085ce49 RD |
4742 | } |
4743 | { | |
4744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4745 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4746 | wxPyEndAllowThreads(__tstate); | |
4747 | if (PyErr_Occurred()) SWIG_fail; | |
4748 | } | |
4749 | { | |
4750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4751 | } | |
4752 | { | |
4753 | if (temp4) | |
4754 | delete arg4; | |
4755 | } | |
4756 | { | |
4757 | if (temp9) | |
4758 | delete arg9; | |
4759 | } | |
4760 | return resultobj; | |
4761 | fail: | |
4762 | { | |
4763 | if (temp4) | |
4764 | delete arg4; | |
4765 | } | |
4766 | { | |
4767 | if (temp9) | |
4768 | delete arg9; | |
4769 | } | |
4770 | return NULL; | |
d14a1e28 RD |
4771 | } |
4772 | ||
4773 | ||
0085ce49 RD |
4774 | SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4775 | PyObject *resultobj = 0; | |
4776 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4777 | bool result; | |
4778 | void *argp1 = 0 ; | |
4779 | int res1 = 0 ; | |
4780 | PyObject *swig_obj[1] ; | |
4781 | ||
4782 | if (!args) SWIG_fail; | |
4783 | swig_obj[0] = args; | |
4784 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4785 | if (!SWIG_IsOK(res1)) { | |
4786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4787 | } | |
4788 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4789 | { | |
4790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4791 | result = (bool)(arg1)->GetValue(); | |
4792 | wxPyEndAllowThreads(__tstate); | |
4793 | if (PyErr_Occurred()) SWIG_fail; | |
4794 | } | |
4795 | { | |
4796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4797 | } | |
4798 | return resultobj; | |
4799 | fail: | |
4800 | return NULL; | |
d14a1e28 RD |
4801 | } |
4802 | ||
4803 | ||
0085ce49 RD |
4804 | SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4805 | PyObject *resultobj = 0; | |
4806 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4807 | bool result; | |
4808 | void *argp1 = 0 ; | |
4809 | int res1 = 0 ; | |
4810 | PyObject *swig_obj[1] ; | |
4811 | ||
4812 | if (!args) SWIG_fail; | |
4813 | swig_obj[0] = args; | |
4814 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4815 | if (!SWIG_IsOK(res1)) { | |
4816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4817 | } | |
4818 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4819 | { | |
4820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4821 | result = (bool)(arg1)->IsChecked(); | |
4822 | wxPyEndAllowThreads(__tstate); | |
4823 | if (PyErr_Occurred()) SWIG_fail; | |
4824 | } | |
4825 | { | |
4826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4827 | } | |
4828 | return resultobj; | |
4829 | fail: | |
4830 | return NULL; | |
4831 | } | |
4832 | ||
4833 | ||
4834 | SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4835 | PyObject *resultobj = 0; | |
4836 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4837 | bool arg2 ; | |
4838 | void *argp1 = 0 ; | |
4839 | int res1 = 0 ; | |
4840 | bool val2 ; | |
4841 | int ecode2 = 0 ; | |
4842 | PyObject * obj0 = 0 ; | |
4843 | PyObject * obj1 = 0 ; | |
4844 | char * kwnames[] = { | |
4845 | (char *) "self",(char *) "state", NULL | |
4846 | }; | |
4847 | ||
4848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
4849 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4850 | if (!SWIG_IsOK(res1)) { | |
4851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4852 | } | |
4853 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4854 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4855 | if (!SWIG_IsOK(ecode2)) { | |
4856 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
4857 | } | |
4858 | arg2 = static_cast< bool >(val2); | |
4859 | { | |
4860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4861 | (arg1)->SetValue(arg2); | |
4862 | wxPyEndAllowThreads(__tstate); | |
4863 | if (PyErr_Occurred()) SWIG_fail; | |
4864 | } | |
4865 | resultobj = SWIG_Py_Void(); | |
4866 | return resultobj; | |
4867 | fail: | |
4868 | return NULL; | |
d14a1e28 | 4869 | } |
0085ce49 RD |
4870 | |
4871 | ||
4872 | SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4873 | PyObject *resultobj = 0; | |
4874 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4875 | wxCheckBoxState result; | |
4876 | void *argp1 = 0 ; | |
4877 | int res1 = 0 ; | |
4878 | PyObject *swig_obj[1] ; | |
4879 | ||
4880 | if (!args) SWIG_fail; | |
4881 | swig_obj[0] = args; | |
4882 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4883 | if (!SWIG_IsOK(res1)) { | |
4884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
4885 | } | |
4886 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4887 | { | |
4888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4889 | result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue(); | |
4890 | wxPyEndAllowThreads(__tstate); | |
4891 | if (PyErr_Occurred()) SWIG_fail; | |
4892 | } | |
4893 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4894 | return resultobj; | |
4895 | fail: | |
4896 | return NULL; | |
4897 | } | |
4898 | ||
4899 | ||
4900 | SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4901 | PyObject *resultobj = 0; | |
4902 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4903 | wxCheckBoxState arg2 ; | |
4904 | void *argp1 = 0 ; | |
4905 | int res1 = 0 ; | |
4906 | int val2 ; | |
4907 | int ecode2 = 0 ; | |
4908 | PyObject * obj0 = 0 ; | |
4909 | PyObject * obj1 = 0 ; | |
4910 | char * kwnames[] = { | |
4911 | (char *) "self",(char *) "state", NULL | |
4912 | }; | |
4913 | ||
4914 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
4915 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4916 | if (!SWIG_IsOK(res1)) { | |
4917 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4918 | } | |
4919 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4920 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4921 | if (!SWIG_IsOK(ecode2)) { | |
4922 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'"); | |
4923 | } | |
4924 | arg2 = static_cast< wxCheckBoxState >(val2); | |
4925 | { | |
4926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4927 | (arg1)->Set3StateValue(arg2); | |
4928 | wxPyEndAllowThreads(__tstate); | |
4929 | if (PyErr_Occurred()) SWIG_fail; | |
4930 | } | |
4931 | resultobj = SWIG_Py_Void(); | |
4932 | return resultobj; | |
4933 | fail: | |
4934 | return NULL; | |
b2dc1044 RD |
4935 | } |
4936 | ||
4937 | ||
0085ce49 RD |
4938 | SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4939 | PyObject *resultobj = 0; | |
4940 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4941 | bool result; | |
4942 | void *argp1 = 0 ; | |
4943 | int res1 = 0 ; | |
4944 | PyObject *swig_obj[1] ; | |
4945 | ||
4946 | if (!args) SWIG_fail; | |
4947 | swig_obj[0] = args; | |
4948 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4949 | if (!SWIG_IsOK(res1)) { | |
4950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
4951 | } | |
4952 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4953 | { | |
4954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4955 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
4956 | wxPyEndAllowThreads(__tstate); | |
4957 | if (PyErr_Occurred()) SWIG_fail; | |
4958 | } | |
4959 | { | |
4960 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4961 | } | |
4962 | return resultobj; | |
4963 | fail: | |
4964 | return NULL; | |
d14a1e28 RD |
4965 | } |
4966 | ||
4967 | ||
0085ce49 RD |
4968 | SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4969 | PyObject *resultobj = 0; | |
4970 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4971 | bool result; | |
4972 | void *argp1 = 0 ; | |
4973 | int res1 = 0 ; | |
4974 | PyObject *swig_obj[1] ; | |
4975 | ||
4976 | if (!args) SWIG_fail; | |
4977 | swig_obj[0] = args; | |
4978 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4979 | if (!SWIG_IsOK(res1)) { | |
4980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
4981 | } | |
4982 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4983 | { | |
4984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4985 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
4986 | wxPyEndAllowThreads(__tstate); | |
4987 | if (PyErr_Occurred()) SWIG_fail; | |
4988 | } | |
4989 | { | |
4990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4991 | } | |
4992 | return resultobj; | |
4993 | fail: | |
4994 | return NULL; | |
d14a1e28 RD |
4995 | } |
4996 | ||
4997 | ||
0085ce49 RD |
4998 | SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4999 | PyObject *resultobj = 0; | |
5000 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5001 | SwigValueWrapper<wxVisualAttributes > result; | |
5002 | int val1 ; | |
5003 | int ecode1 = 0 ; | |
5004 | PyObject * obj0 = 0 ; | |
5005 | char * kwnames[] = { | |
5006 | (char *) "variant", NULL | |
5007 | }; | |
5008 | ||
5009 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5010 | if (obj0) { | |
5011 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5012 | if (!SWIG_IsOK(ecode1)) { | |
5013 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5014 | } | |
5015 | arg1 = static_cast< wxWindowVariant >(val1); | |
5016 | } | |
5017 | { | |
5018 | if (!wxPyCheckForApp()) SWIG_fail; | |
5019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5020 | result = wxCheckBox::GetClassDefaultAttributes(arg1); | |
5021 | wxPyEndAllowThreads(__tstate); | |
5022 | if (PyErr_Occurred()) SWIG_fail; | |
5023 | } | |
5024 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5025 | return resultobj; | |
5026 | fail: | |
5027 | return NULL; | |
d14a1e28 RD |
5028 | } |
5029 | ||
5030 | ||
0085ce49 RD |
5031 | SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5032 | PyObject *obj; | |
5033 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5034 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj)); | |
5035 | return SWIG_Py_Void(); | |
d14a1e28 RD |
5036 | } |
5037 | ||
0085ce49 RD |
5038 | SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5039 | return SWIG_Python_InitShadowInstance(args); | |
5040 | } | |
d14a1e28 | 5041 | |
0085ce49 RD |
5042 | SWIGINTERN int ChoiceNameStr_set(PyObject *) { |
5043 | SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only."); | |
5044 | return 1; | |
d14a1e28 RD |
5045 | } |
5046 | ||
5047 | ||
0085ce49 RD |
5048 | SWIGINTERN PyObject *ChoiceNameStr_get(void) { |
5049 | PyObject *pyobj = 0; | |
5050 | ||
5051 | { | |
5052 | #if wxUSE_UNICODE | |
5053 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
5054 | #else | |
5055 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
5056 | #endif | |
5057 | } | |
5058 | return pyobj; | |
5059 | } | |
5060 | ||
5061 | ||
5062 | SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5063 | PyObject *resultobj = 0; | |
5064 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5065 | int arg2 = (int) -1 ; | |
5066 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5067 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5068 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5069 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5070 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
5071 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5072 | long arg6 = (long) 0 ; | |
5073 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5074 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5075 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
5076 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5077 | wxChoice *result = 0 ; | |
5078 | void *argp1 = 0 ; | |
5079 | int res1 = 0 ; | |
5080 | int val2 ; | |
5081 | int ecode2 = 0 ; | |
5082 | wxPoint temp3 ; | |
5083 | wxSize temp4 ; | |
5084 | bool temp5 = false ; | |
5085 | long val6 ; | |
5086 | int ecode6 = 0 ; | |
5087 | void *argp7 = 0 ; | |
5088 | int res7 = 0 ; | |
5089 | bool temp8 = false ; | |
5090 | PyObject * obj0 = 0 ; | |
5091 | PyObject * obj1 = 0 ; | |
5092 | PyObject * obj2 = 0 ; | |
5093 | PyObject * obj3 = 0 ; | |
5094 | PyObject * obj4 = 0 ; | |
5095 | PyObject * obj5 = 0 ; | |
5096 | PyObject * obj6 = 0 ; | |
5097 | PyObject * obj7 = 0 ; | |
5098 | char * kwnames[] = { | |
5099 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5100 | }; | |
5101 | ||
5102 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
5103 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5104 | if (!SWIG_IsOK(res1)) { | |
5105 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5106 | } | |
5107 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5108 | if (obj1) { | |
5109 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5110 | if (!SWIG_IsOK(ecode2)) { | |
5111 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'"); | |
5112 | } | |
5113 | arg2 = static_cast< int >(val2); | |
5114 | } | |
5115 | if (obj2) { | |
093d3ff1 | 5116 | { |
0085ce49 RD |
5117 | arg3 = &temp3; |
5118 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 5119 | } |
0085ce49 RD |
5120 | } |
5121 | if (obj3) { | |
d14a1e28 | 5122 | { |
0085ce49 RD |
5123 | arg4 = &temp4; |
5124 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 5125 | } |
0085ce49 RD |
5126 | } |
5127 | if (obj4) { | |
d14a1e28 | 5128 | { |
0085ce49 RD |
5129 | if (! PySequence_Check(obj4)) { |
5130 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5131 | SWIG_fail; | |
5132 | } | |
5133 | arg5 = new wxArrayString; | |
5134 | temp5 = true; | |
5135 | int i, len=PySequence_Length(obj4); | |
5136 | for (i=0; i<len; i++) { | |
5137 | PyObject* item = PySequence_GetItem(obj4, i); | |
5138 | wxString* s = wxString_in_helper(item); | |
5139 | if (PyErr_Occurred()) SWIG_fail; | |
5140 | arg5->Add(*s); | |
5141 | delete s; | |
5142 | Py_DECREF(item); | |
5143 | } | |
d14a1e28 | 5144 | } |
0085ce49 RD |
5145 | } |
5146 | if (obj5) { | |
5147 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
5148 | if (!SWIG_IsOK(ecode6)) { | |
5149 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'"); | |
5150 | } | |
5151 | arg6 = static_cast< long >(val6); | |
5152 | } | |
5153 | if (obj6) { | |
5154 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
5155 | if (!SWIG_IsOK(res7)) { | |
5156 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
093d3ff1 | 5157 | } |
0085ce49 RD |
5158 | if (!argp7) { |
5159 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
5160 | } | |
5161 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
5162 | } | |
5163 | if (obj7) { | |
d14a1e28 | 5164 | { |
0085ce49 RD |
5165 | arg8 = wxString_in_helper(obj7); |
5166 | if (arg8 == NULL) SWIG_fail; | |
5167 | temp8 = true; | |
d14a1e28 | 5168 | } |
0085ce49 RD |
5169 | } |
5170 | { | |
5171 | if (!wxPyCheckForApp()) SWIG_fail; | |
5172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5173 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5174 | wxPyEndAllowThreads(__tstate); | |
5175 | if (PyErr_Occurred()) SWIG_fail; | |
5176 | } | |
5177 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 ); | |
5178 | { | |
5179 | if (temp5) delete arg5; | |
5180 | } | |
5181 | { | |
5182 | if (temp8) | |
5183 | delete arg8; | |
5184 | } | |
5185 | return resultobj; | |
5186 | fail: | |
5187 | { | |
5188 | if (temp5) delete arg5; | |
5189 | } | |
5190 | { | |
5191 | if (temp8) | |
5192 | delete arg8; | |
5193 | } | |
5194 | return NULL; | |
d14a1e28 RD |
5195 | } |
5196 | ||
5197 | ||
0085ce49 RD |
5198 | SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5199 | PyObject *resultobj = 0; | |
5200 | wxChoice *result = 0 ; | |
5201 | ||
5202 | if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail; | |
5203 | { | |
5204 | if (!wxPyCheckForApp()) SWIG_fail; | |
5205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5206 | result = (wxChoice *)new wxChoice(); | |
5207 | wxPyEndAllowThreads(__tstate); | |
5208 | if (PyErr_Occurred()) SWIG_fail; | |
5209 | } | |
5210 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 ); | |
5211 | return resultobj; | |
5212 | fail: | |
5213 | return NULL; | |
5214 | } | |
5215 | ||
5216 | ||
5217 | SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5218 | PyObject *resultobj = 0; | |
5219 | wxChoice *arg1 = (wxChoice *) 0 ; | |
5220 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5221 | int arg3 = (int) -1 ; | |
5222 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5223 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5224 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5225 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5226 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5227 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5228 | long arg7 = (long) 0 ; | |
5229 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5230 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5231 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
5232 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5233 | bool result; | |
5234 | void *argp1 = 0 ; | |
5235 | int res1 = 0 ; | |
5236 | void *argp2 = 0 ; | |
5237 | int res2 = 0 ; | |
5238 | int val3 ; | |
5239 | int ecode3 = 0 ; | |
5240 | wxPoint temp4 ; | |
5241 | wxSize temp5 ; | |
5242 | bool temp6 = false ; | |
5243 | long val7 ; | |
5244 | int ecode7 = 0 ; | |
5245 | void *argp8 = 0 ; | |
5246 | int res8 = 0 ; | |
5247 | bool temp9 = false ; | |
5248 | PyObject * obj0 = 0 ; | |
5249 | PyObject * obj1 = 0 ; | |
5250 | PyObject * obj2 = 0 ; | |
5251 | PyObject * obj3 = 0 ; | |
5252 | PyObject * obj4 = 0 ; | |
5253 | PyObject * obj5 = 0 ; | |
5254 | PyObject * obj6 = 0 ; | |
5255 | PyObject * obj7 = 0 ; | |
5256 | PyObject * obj8 = 0 ; | |
5257 | char * kwnames[] = { | |
5258 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5259 | }; | |
5260 | ||
5261 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
5262 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 ); | |
5263 | if (!SWIG_IsOK(res1)) { | |
5264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'"); | |
5265 | } | |
5266 | arg1 = reinterpret_cast< wxChoice * >(argp1); | |
5267 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5268 | if (!SWIG_IsOK(res2)) { | |
5269 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5270 | } | |
5271 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5272 | if (obj2) { | |
5273 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5274 | if (!SWIG_IsOK(ecode3)) { | |
5275 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'"); | |
5276 | } | |
5277 | arg3 = static_cast< int >(val3); | |
5278 | } | |
5279 | if (obj3) { | |
d14a1e28 | 5280 | { |
0085ce49 RD |
5281 | arg4 = &temp4; |
5282 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 5283 | } |
0085ce49 RD |
5284 | } |
5285 | if (obj4) { | |
4f89f6a3 | 5286 | { |
0085ce49 RD |
5287 | arg5 = &temp5; |
5288 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 5289 | } |
0085ce49 RD |
5290 | } |
5291 | if (obj5) { | |
d14a1e28 | 5292 | { |
0085ce49 RD |
5293 | if (! PySequence_Check(obj5)) { |
5294 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5295 | SWIG_fail; | |
5296 | } | |
5297 | arg6 = new wxArrayString; | |
5298 | temp6 = true; | |
5299 | int i, len=PySequence_Length(obj5); | |
5300 | for (i=0; i<len; i++) { | |
5301 | PyObject* item = PySequence_GetItem(obj5, i); | |
5302 | wxString* s = wxString_in_helper(item); | |
5303 | if (PyErr_Occurred()) SWIG_fail; | |
5304 | arg6->Add(*s); | |
5305 | delete s; | |
5306 | Py_DECREF(item); | |
5307 | } | |
5308 | } | |
5309 | } | |
5310 | if (obj6) { | |
5311 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
5312 | if (!SWIG_IsOK(ecode7)) { | |
5313 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'"); | |
5314 | } | |
5315 | arg7 = static_cast< long >(val7); | |
5316 | } | |
5317 | if (obj7) { | |
5318 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
5319 | if (!SWIG_IsOK(res8)) { | |
5320 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 5321 | } |
0085ce49 RD |
5322 | if (!argp8) { |
5323 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5324 | } | |
5325 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
5326 | } | |
5327 | if (obj8) { | |
4f89f6a3 | 5328 | { |
0085ce49 RD |
5329 | arg9 = wxString_in_helper(obj8); |
5330 | if (arg9 == NULL) SWIG_fail; | |
5331 | temp9 = true; | |
4f89f6a3 | 5332 | } |
0085ce49 RD |
5333 | } |
5334 | { | |
5335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5336 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5337 | wxPyEndAllowThreads(__tstate); | |
5338 | if (PyErr_Occurred()) SWIG_fail; | |
5339 | } | |
5340 | { | |
5341 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5342 | } | |
5343 | { | |
5344 | if (temp6) delete arg6; | |
5345 | } | |
5346 | { | |
5347 | if (temp9) | |
5348 | delete arg9; | |
5349 | } | |
5350 | return resultobj; | |
5351 | fail: | |
5352 | { | |
5353 | if (temp6) delete arg6; | |
5354 | } | |
5355 | { | |
5356 | if (temp9) | |
5357 | delete arg9; | |
5358 | } | |
5359 | return NULL; | |
d14a1e28 RD |
5360 | } |
5361 | ||
5362 | ||
0085ce49 RD |
5363 | SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5364 | PyObject *resultobj = 0; | |
5365 | wxChoice *arg1 = (wxChoice *) 0 ; | |
5366 | int result; | |
5367 | void *argp1 = 0 ; | |
5368 | int res1 = 0 ; | |
5369 | PyObject *swig_obj[1] ; | |
5370 | ||
5371 | if (!args) SWIG_fail; | |
5372 | swig_obj[0] = args; | |
5373 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 ); | |
5374 | if (!SWIG_IsOK(res1)) { | |
5375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'"); | |
5376 | } | |
5377 | arg1 = reinterpret_cast< wxChoice * >(argp1); | |
5378 | { | |
5379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5380 | result = (int)((wxChoice const *)arg1)->GetCurrentSelection(); | |
5381 | wxPyEndAllowThreads(__tstate); | |
5382 | if (PyErr_Occurred()) SWIG_fail; | |
5383 | } | |
5384 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5385 | return resultobj; | |
5386 | fail: | |
5387 | return NULL; | |
5388 | } | |
5389 | ||
5390 | ||
5391 | SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5392 | PyObject *resultobj = 0; | |
5393 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5394 | SwigValueWrapper<wxVisualAttributes > result; | |
5395 | int val1 ; | |
5396 | int ecode1 = 0 ; | |
5397 | PyObject * obj0 = 0 ; | |
5398 | char * kwnames[] = { | |
5399 | (char *) "variant", NULL | |
5400 | }; | |
5401 | ||
5402 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5403 | if (obj0) { | |
5404 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5405 | if (!SWIG_IsOK(ecode1)) { | |
5406 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5407 | } | |
5408 | arg1 = static_cast< wxWindowVariant >(val1); | |
5409 | } | |
5410 | { | |
5411 | if (!wxPyCheckForApp()) SWIG_fail; | |
5412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5413 | result = wxChoice::GetClassDefaultAttributes(arg1); | |
5414 | wxPyEndAllowThreads(__tstate); | |
5415 | if (PyErr_Occurred()) SWIG_fail; | |
5416 | } | |
5417 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5418 | return resultobj; | |
5419 | fail: | |
5420 | return NULL; | |
22bfe96c RD |
5421 | } |
5422 | ||
5423 | ||
0085ce49 RD |
5424 | SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5425 | PyObject *obj; | |
5426 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5427 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj)); | |
5428 | return SWIG_Py_Void(); | |
d14a1e28 | 5429 | } |
0085ce49 RD |
5430 | |
5431 | SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5432 | return SWIG_Python_InitShadowInstance(args); | |
5433 | } | |
5434 | ||
5435 | SWIGINTERN int ComboBoxNameStr_set(PyObject *) { | |
5436 | SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only."); | |
5437 | return 1; | |
b2dc1044 RD |
5438 | } |
5439 | ||
5440 | ||
0085ce49 RD |
5441 | SWIGINTERN PyObject *ComboBoxNameStr_get(void) { |
5442 | PyObject *pyobj = 0; | |
5443 | ||
5444 | { | |
b2dc1044 | 5445 | #if wxUSE_UNICODE |
0085ce49 | 5446 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); |
b2dc1044 | 5447 | #else |
0085ce49 | 5448 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); |
b2dc1044 | 5449 | #endif |
0085ce49 RD |
5450 | } |
5451 | return pyobj; | |
5452 | } | |
5453 | ||
5454 | ||
5455 | SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5456 | PyObject *resultobj = 0; | |
5457 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5458 | int arg2 = (int) -1 ; | |
5459 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5460 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5461 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5462 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5463 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5464 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5465 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5466 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5467 | long arg7 = (long) 0 ; | |
5468 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5469 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5470 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
5471 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5472 | wxComboBox *result = 0 ; | |
5473 | void *argp1 = 0 ; | |
5474 | int res1 = 0 ; | |
5475 | int val2 ; | |
5476 | int ecode2 = 0 ; | |
5477 | bool temp3 = false ; | |
5478 | wxPoint temp4 ; | |
5479 | wxSize temp5 ; | |
5480 | bool temp6 = false ; | |
5481 | long val7 ; | |
5482 | int ecode7 = 0 ; | |
5483 | void *argp8 = 0 ; | |
5484 | int res8 = 0 ; | |
5485 | bool temp9 = false ; | |
5486 | PyObject * obj0 = 0 ; | |
5487 | PyObject * obj1 = 0 ; | |
5488 | PyObject * obj2 = 0 ; | |
5489 | PyObject * obj3 = 0 ; | |
5490 | PyObject * obj4 = 0 ; | |
5491 | PyObject * obj5 = 0 ; | |
5492 | PyObject * obj6 = 0 ; | |
5493 | PyObject * obj7 = 0 ; | |
5494 | PyObject * obj8 = 0 ; | |
5495 | char * kwnames[] = { | |
5496 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5497 | }; | |
5498 | ||
5499 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
5500 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5501 | if (!SWIG_IsOK(res1)) { | |
5502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5503 | } | |
5504 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5505 | if (obj1) { | |
5506 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5507 | if (!SWIG_IsOK(ecode2)) { | |
5508 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'"); | |
5509 | } | |
5510 | arg2 = static_cast< int >(val2); | |
5511 | } | |
5512 | if (obj2) { | |
d14a1e28 | 5513 | { |
0085ce49 RD |
5514 | arg3 = wxString_in_helper(obj2); |
5515 | if (arg3 == NULL) SWIG_fail; | |
5516 | temp3 = true; | |
d14a1e28 | 5517 | } |
0085ce49 RD |
5518 | } |
5519 | if (obj3) { | |
d14a1e28 | 5520 | { |
0085ce49 RD |
5521 | arg4 = &temp4; |
5522 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 5523 | } |
0085ce49 RD |
5524 | } |
5525 | if (obj4) { | |
d14a1e28 | 5526 | { |
0085ce49 RD |
5527 | arg5 = &temp5; |
5528 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 5529 | } |
0085ce49 RD |
5530 | } |
5531 | if (obj5) { | |
d14a1e28 | 5532 | { |
0085ce49 RD |
5533 | if (! PySequence_Check(obj5)) { |
5534 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5535 | SWIG_fail; | |
5536 | } | |
5537 | arg6 = new wxArrayString; | |
5538 | temp6 = true; | |
5539 | int i, len=PySequence_Length(obj5); | |
5540 | for (i=0; i<len; i++) { | |
5541 | PyObject* item = PySequence_GetItem(obj5, i); | |
5542 | wxString* s = wxString_in_helper(item); | |
5543 | if (PyErr_Occurred()) SWIG_fail; | |
5544 | arg6->Add(*s); | |
5545 | delete s; | |
5546 | Py_DECREF(item); | |
5547 | } | |
d14a1e28 | 5548 | } |
0085ce49 RD |
5549 | } |
5550 | if (obj6) { | |
5551 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
5552 | if (!SWIG_IsOK(ecode7)) { | |
5553 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'"); | |
5554 | } | |
5555 | arg7 = static_cast< long >(val7); | |
5556 | } | |
5557 | if (obj7) { | |
5558 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
5559 | if (!SWIG_IsOK(res8)) { | |
5560 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5561 | } | |
5562 | if (!argp8) { | |
5563 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5564 | } | |
5565 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
5566 | } | |
5567 | if (obj8) { | |
d14a1e28 | 5568 | { |
0085ce49 RD |
5569 | arg9 = wxString_in_helper(obj8); |
5570 | if (arg9 == NULL) SWIG_fail; | |
5571 | temp9 = true; | |
d14a1e28 | 5572 | } |
0085ce49 RD |
5573 | } |
5574 | { | |
5575 | if (!wxPyCheckForApp()) SWIG_fail; | |
5576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5577 | 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); | |
5578 | wxPyEndAllowThreads(__tstate); | |
5579 | if (PyErr_Occurred()) SWIG_fail; | |
5580 | } | |
5581 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 ); | |
5582 | { | |
5583 | if (temp3) | |
5584 | delete arg3; | |
5585 | } | |
5586 | { | |
5587 | if (temp6) delete arg6; | |
5588 | } | |
5589 | { | |
5590 | if (temp9) | |
5591 | delete arg9; | |
5592 | } | |
5593 | return resultobj; | |
5594 | fail: | |
5595 | { | |
5596 | if (temp3) | |
5597 | delete arg3; | |
5598 | } | |
5599 | { | |
5600 | if (temp6) delete arg6; | |
5601 | } | |
5602 | { | |
5603 | if (temp9) | |
5604 | delete arg9; | |
5605 | } | |
5606 | return NULL; | |
d14a1e28 RD |
5607 | } |
5608 | ||
5609 | ||
0085ce49 RD |
5610 | SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5611 | PyObject *resultobj = 0; | |
5612 | wxComboBox *result = 0 ; | |
5613 | ||
5614 | if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail; | |
5615 | { | |
5616 | if (!wxPyCheckForApp()) SWIG_fail; | |
5617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5618 | result = (wxComboBox *)new wxComboBox(); | |
5619 | wxPyEndAllowThreads(__tstate); | |
5620 | if (PyErr_Occurred()) SWIG_fail; | |
5621 | } | |
5622 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 ); | |
5623 | return resultobj; | |
5624 | fail: | |
5625 | return NULL; | |
5626 | } | |
5627 | ||
5628 | ||
5629 | SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5630 | PyObject *resultobj = 0; | |
5631 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5632 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5633 | int arg3 = (int) -1 ; | |
5634 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5635 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
5636 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
5637 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5638 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5639 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5640 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
5641 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
5642 | long arg8 = (long) 0 ; | |
5643 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
5644 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
5645 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
5646 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
5647 | bool result; | |
5648 | void *argp1 = 0 ; | |
5649 | int res1 = 0 ; | |
5650 | void *argp2 = 0 ; | |
5651 | int res2 = 0 ; | |
5652 | int val3 ; | |
5653 | int ecode3 = 0 ; | |
5654 | bool temp4 = false ; | |
5655 | wxPoint temp5 ; | |
5656 | wxSize temp6 ; | |
5657 | bool temp7 = false ; | |
5658 | long val8 ; | |
5659 | int ecode8 = 0 ; | |
5660 | void *argp9 = 0 ; | |
5661 | int res9 = 0 ; | |
5662 | bool temp10 = false ; | |
5663 | PyObject * obj0 = 0 ; | |
5664 | PyObject * obj1 = 0 ; | |
5665 | PyObject * obj2 = 0 ; | |
5666 | PyObject * obj3 = 0 ; | |
5667 | PyObject * obj4 = 0 ; | |
5668 | PyObject * obj5 = 0 ; | |
5669 | PyObject * obj6 = 0 ; | |
5670 | PyObject * obj7 = 0 ; | |
5671 | PyObject * obj8 = 0 ; | |
5672 | PyObject * obj9 = 0 ; | |
5673 | char * kwnames[] = { | |
5674 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5675 | }; | |
5676 | ||
5677 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
5678 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5679 | if (!SWIG_IsOK(res1)) { | |
5680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5681 | } | |
5682 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5683 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5684 | if (!SWIG_IsOK(res2)) { | |
5685 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5686 | } | |
5687 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5688 | if (obj2) { | |
5689 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5690 | if (!SWIG_IsOK(ecode3)) { | |
5691 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
5692 | } | |
5693 | arg3 = static_cast< int >(val3); | |
5694 | } | |
5695 | if (obj3) { | |
4f89f6a3 | 5696 | { |
0085ce49 RD |
5697 | arg4 = wxString_in_helper(obj3); |
5698 | if (arg4 == NULL) SWIG_fail; | |
5699 | temp4 = true; | |
4f89f6a3 | 5700 | } |
0085ce49 RD |
5701 | } |
5702 | if (obj4) { | |
d14a1e28 | 5703 | { |
0085ce49 RD |
5704 | arg5 = &temp5; |
5705 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 5706 | } |
0085ce49 RD |
5707 | } |
5708 | if (obj5) { | |
d14a1e28 | 5709 | { |
0085ce49 RD |
5710 | arg6 = &temp6; |
5711 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 5712 | } |
0085ce49 RD |
5713 | } |
5714 | if (obj6) { | |
d14a1e28 | 5715 | { |
0085ce49 RD |
5716 | if (! PySequence_Check(obj6)) { |
5717 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5718 | SWIG_fail; | |
5719 | } | |
5720 | arg7 = new wxArrayString; | |
5721 | temp7 = true; | |
5722 | int i, len=PySequence_Length(obj6); | |
5723 | for (i=0; i<len; i++) { | |
5724 | PyObject* item = PySequence_GetItem(obj6, i); | |
5725 | wxString* s = wxString_in_helper(item); | |
5726 | if (PyErr_Occurred()) SWIG_fail; | |
5727 | arg7->Add(*s); | |
5728 | delete s; | |
5729 | Py_DECREF(item); | |
5730 | } | |
d14a1e28 | 5731 | } |
0085ce49 RD |
5732 | } |
5733 | if (obj7) { | |
5734 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
5735 | if (!SWIG_IsOK(ecode8)) { | |
5736 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'"); | |
5737 | } | |
5738 | arg8 = static_cast< long >(val8); | |
5739 | } | |
5740 | if (obj8) { | |
5741 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
5742 | if (!SWIG_IsOK(res9)) { | |
5743 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 5744 | } |
0085ce49 RD |
5745 | if (!argp9) { |
5746 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 5747 | } |
0085ce49 RD |
5748 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
5749 | } | |
5750 | if (obj9) { | |
d14a1e28 | 5751 | { |
0085ce49 RD |
5752 | arg10 = wxString_in_helper(obj9); |
5753 | if (arg10 == NULL) SWIG_fail; | |
5754 | temp10 = true; | |
d14a1e28 | 5755 | } |
0085ce49 RD |
5756 | } |
5757 | { | |
5758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5759 | 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); | |
5760 | wxPyEndAllowThreads(__tstate); | |
5761 | if (PyErr_Occurred()) SWIG_fail; | |
5762 | } | |
5763 | { | |
5764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5765 | } | |
5766 | { | |
5767 | if (temp4) | |
5768 | delete arg4; | |
5769 | } | |
5770 | { | |
5771 | if (temp7) delete arg7; | |
5772 | } | |
5773 | { | |
5774 | if (temp10) | |
5775 | delete arg10; | |
5776 | } | |
5777 | return resultobj; | |
5778 | fail: | |
5779 | { | |
5780 | if (temp4) | |
5781 | delete arg4; | |
5782 | } | |
5783 | { | |
5784 | if (temp7) delete arg7; | |
5785 | } | |
5786 | { | |
5787 | if (temp10) | |
5788 | delete arg10; | |
5789 | } | |
5790 | return NULL; | |
d14a1e28 RD |
5791 | } |
5792 | ||
5793 | ||
0085ce49 RD |
5794 | SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5795 | PyObject *resultobj = 0; | |
5796 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5797 | wxString result; | |
5798 | void *argp1 = 0 ; | |
5799 | int res1 = 0 ; | |
5800 | PyObject *swig_obj[1] ; | |
5801 | ||
5802 | if (!args) SWIG_fail; | |
5803 | swig_obj[0] = args; | |
5804 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5805 | if (!SWIG_IsOK(res1)) { | |
5806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
5807 | } | |
5808 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5809 | { | |
5810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5811 | result = ((wxComboBox const *)arg1)->GetValue(); | |
5812 | wxPyEndAllowThreads(__tstate); | |
5813 | if (PyErr_Occurred()) SWIG_fail; | |
5814 | } | |
5815 | { | |
d14a1e28 | 5816 | #if wxUSE_UNICODE |
0085ce49 | 5817 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 5818 | #else |
0085ce49 | 5819 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 5820 | #endif |
0085ce49 RD |
5821 | } |
5822 | return resultobj; | |
5823 | fail: | |
5824 | return NULL; | |
5825 | } | |
5826 | ||
5827 | ||
5828 | SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5829 | PyObject *resultobj = 0; | |
5830 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5831 | wxString *arg2 = 0 ; | |
5832 | void *argp1 = 0 ; | |
5833 | int res1 = 0 ; | |
5834 | bool temp2 = false ; | |
5835 | PyObject * obj0 = 0 ; | |
5836 | PyObject * obj1 = 0 ; | |
5837 | char * kwnames[] = { | |
5838 | (char *) "self",(char *) "value", NULL | |
5839 | }; | |
5840 | ||
5841 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
5842 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5843 | if (!SWIG_IsOK(res1)) { | |
5844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5845 | } | |
5846 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5847 | { | |
5848 | arg2 = wxString_in_helper(obj1); | |
5849 | if (arg2 == NULL) SWIG_fail; | |
5850 | temp2 = true; | |
5851 | } | |
5852 | { | |
5853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5854 | (arg1)->SetValue((wxString const &)*arg2); | |
5855 | wxPyEndAllowThreads(__tstate); | |
5856 | if (PyErr_Occurred()) SWIG_fail; | |
5857 | } | |
5858 | resultobj = SWIG_Py_Void(); | |
5859 | { | |
5860 | if (temp2) | |
5861 | delete arg2; | |
5862 | } | |
5863 | return resultobj; | |
5864 | fail: | |
5865 | { | |
5866 | if (temp2) | |
5867 | delete arg2; | |
5868 | } | |
5869 | return NULL; | |
d14a1e28 RD |
5870 | } |
5871 | ||
5872 | ||
0085ce49 RD |
5873 | SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5874 | PyObject *resultobj = 0; | |
5875 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5876 | void *argp1 = 0 ; | |
5877 | int res1 = 0 ; | |
5878 | PyObject *swig_obj[1] ; | |
5879 | ||
5880 | if (!args) SWIG_fail; | |
5881 | swig_obj[0] = args; | |
5882 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5883 | if (!SWIG_IsOK(res1)) { | |
5884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5885 | } | |
5886 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5887 | { | |
5888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5889 | (arg1)->Copy(); | |
5890 | wxPyEndAllowThreads(__tstate); | |
5891 | if (PyErr_Occurred()) SWIG_fail; | |
5892 | } | |
5893 | resultobj = SWIG_Py_Void(); | |
5894 | return resultobj; | |
5895 | fail: | |
5896 | return NULL; | |
d14a1e28 RD |
5897 | } |
5898 | ||
5899 | ||
0085ce49 RD |
5900 | SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5901 | PyObject *resultobj = 0; | |
5902 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5903 | void *argp1 = 0 ; | |
5904 | int res1 = 0 ; | |
5905 | PyObject *swig_obj[1] ; | |
5906 | ||
5907 | if (!args) SWIG_fail; | |
5908 | swig_obj[0] = args; | |
5909 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5910 | if (!SWIG_IsOK(res1)) { | |
5911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5912 | } | |
5913 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5914 | { | |
5915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5916 | (arg1)->Cut(); | |
5917 | wxPyEndAllowThreads(__tstate); | |
5918 | if (PyErr_Occurred()) SWIG_fail; | |
5919 | } | |
5920 | resultobj = SWIG_Py_Void(); | |
5921 | return resultobj; | |
5922 | fail: | |
5923 | return NULL; | |
d14a1e28 RD |
5924 | } |
5925 | ||
5926 | ||
0085ce49 RD |
5927 | SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5928 | PyObject *resultobj = 0; | |
5929 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5930 | void *argp1 = 0 ; | |
5931 | int res1 = 0 ; | |
5932 | PyObject *swig_obj[1] ; | |
5933 | ||
5934 | if (!args) SWIG_fail; | |
5935 | swig_obj[0] = args; | |
5936 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5937 | if (!SWIG_IsOK(res1)) { | |
5938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5939 | } | |
5940 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5941 | { | |
5942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5943 | (arg1)->Paste(); | |
5944 | wxPyEndAllowThreads(__tstate); | |
5945 | if (PyErr_Occurred()) SWIG_fail; | |
5946 | } | |
5947 | resultobj = SWIG_Py_Void(); | |
5948 | return resultobj; | |
5949 | fail: | |
5950 | return NULL; | |
5951 | } | |
5952 | ||
5953 | ||
5954 | SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5955 | PyObject *resultobj = 0; | |
5956 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5957 | long arg2 ; | |
5958 | void *argp1 = 0 ; | |
5959 | int res1 = 0 ; | |
5960 | long val2 ; | |
5961 | int ecode2 = 0 ; | |
5962 | PyObject * obj0 = 0 ; | |
5963 | PyObject * obj1 = 0 ; | |
5964 | char * kwnames[] = { | |
5965 | (char *) "self",(char *) "pos", NULL | |
5966 | }; | |
5967 | ||
5968 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
5969 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5970 | if (!SWIG_IsOK(res1)) { | |
5971 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5972 | } | |
5973 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5974 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
5975 | if (!SWIG_IsOK(ecode2)) { | |
5976 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'"); | |
5977 | } | |
5978 | arg2 = static_cast< long >(val2); | |
5979 | { | |
5980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5981 | (arg1)->SetInsertionPoint(arg2); | |
5982 | wxPyEndAllowThreads(__tstate); | |
5983 | if (PyErr_Occurred()) SWIG_fail; | |
5984 | } | |
5985 | resultobj = SWIG_Py_Void(); | |
5986 | return resultobj; | |
5987 | fail: | |
5988 | return NULL; | |
d14a1e28 RD |
5989 | } |
5990 | ||
5991 | ||
0085ce49 RD |
5992 | SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5993 | PyObject *resultobj = 0; | |
5994 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5995 | long result; | |
5996 | void *argp1 = 0 ; | |
5997 | int res1 = 0 ; | |
5998 | PyObject *swig_obj[1] ; | |
5999 | ||
6000 | if (!args) SWIG_fail; | |
6001 | swig_obj[0] = args; | |
6002 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6003 | if (!SWIG_IsOK(res1)) { | |
6004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6005 | } | |
6006 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6007 | { | |
6008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6009 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
6010 | wxPyEndAllowThreads(__tstate); | |
6011 | if (PyErr_Occurred()) SWIG_fail; | |
6012 | } | |
6013 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6014 | return resultobj; | |
6015 | fail: | |
6016 | return NULL; | |
d14a1e28 RD |
6017 | } |
6018 | ||
6019 | ||
0085ce49 RD |
6020 | SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6021 | PyObject *resultobj = 0; | |
6022 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6023 | long result; | |
6024 | void *argp1 = 0 ; | |
6025 | int res1 = 0 ; | |
6026 | PyObject *swig_obj[1] ; | |
6027 | ||
6028 | if (!args) SWIG_fail; | |
6029 | swig_obj[0] = args; | |
6030 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6031 | if (!SWIG_IsOK(res1)) { | |
6032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6033 | } | |
6034 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6035 | { | |
6036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6037 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
6038 | wxPyEndAllowThreads(__tstate); | |
6039 | if (PyErr_Occurred()) SWIG_fail; | |
6040 | } | |
6041 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6042 | return resultobj; | |
6043 | fail: | |
6044 | return NULL; | |
6045 | } | |
6046 | ||
6047 | ||
6048 | SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6049 | PyObject *resultobj = 0; | |
6050 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6051 | long arg2 ; | |
6052 | long arg3 ; | |
6053 | wxString *arg4 = 0 ; | |
6054 | void *argp1 = 0 ; | |
6055 | int res1 = 0 ; | |
6056 | long val2 ; | |
6057 | int ecode2 = 0 ; | |
6058 | long val3 ; | |
6059 | int ecode3 = 0 ; | |
6060 | bool temp4 = false ; | |
6061 | PyObject * obj0 = 0 ; | |
6062 | PyObject * obj1 = 0 ; | |
6063 | PyObject * obj2 = 0 ; | |
6064 | PyObject * obj3 = 0 ; | |
6065 | char * kwnames[] = { | |
6066 | (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL | |
6067 | }; | |
6068 | ||
6069 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6070 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6071 | if (!SWIG_IsOK(res1)) { | |
6072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6073 | } | |
6074 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6075 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6076 | if (!SWIG_IsOK(ecode2)) { | |
6077 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'"); | |
6078 | } | |
6079 | arg2 = static_cast< long >(val2); | |
6080 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6081 | if (!SWIG_IsOK(ecode3)) { | |
6082 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'"); | |
6083 | } | |
6084 | arg3 = static_cast< long >(val3); | |
6085 | { | |
6086 | arg4 = wxString_in_helper(obj3); | |
6087 | if (arg4 == NULL) SWIG_fail; | |
6088 | temp4 = true; | |
6089 | } | |
6090 | { | |
6091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6092 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
6093 | wxPyEndAllowThreads(__tstate); | |
6094 | if (PyErr_Occurred()) SWIG_fail; | |
6095 | } | |
6096 | resultobj = SWIG_Py_Void(); | |
6097 | { | |
6098 | if (temp4) | |
6099 | delete arg4; | |
6100 | } | |
6101 | return resultobj; | |
6102 | fail: | |
6103 | { | |
6104 | if (temp4) | |
6105 | delete arg4; | |
6106 | } | |
6107 | return NULL; | |
6108 | } | |
6109 | ||
6110 | ||
6111 | SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6112 | PyObject *resultobj = 0; | |
6113 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6114 | long arg2 ; | |
6115 | long arg3 ; | |
6116 | void *argp1 = 0 ; | |
6117 | int res1 = 0 ; | |
6118 | long val2 ; | |
6119 | int ecode2 = 0 ; | |
6120 | long val3 ; | |
6121 | int ecode3 = 0 ; | |
6122 | PyObject * obj0 = 0 ; | |
6123 | PyObject * obj1 = 0 ; | |
6124 | PyObject * obj2 = 0 ; | |
6125 | char * kwnames[] = { | |
6126 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
6127 | }; | |
6128 | ||
6129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6131 | if (!SWIG_IsOK(res1)) { | |
6132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6133 | } | |
6134 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6135 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6136 | if (!SWIG_IsOK(ecode2)) { | |
6137 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'"); | |
6138 | } | |
6139 | arg2 = static_cast< long >(val2); | |
6140 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6141 | if (!SWIG_IsOK(ecode3)) { | |
6142 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'"); | |
6143 | } | |
6144 | arg3 = static_cast< long >(val3); | |
6145 | { | |
6146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6147 | (arg1)->SetSelection(arg2,arg3); | |
6148 | wxPyEndAllowThreads(__tstate); | |
6149 | if (PyErr_Occurred()) SWIG_fail; | |
6150 | } | |
6151 | resultobj = SWIG_Py_Void(); | |
6152 | return resultobj; | |
6153 | fail: | |
6154 | return NULL; | |
6155 | } | |
6156 | ||
6157 | ||
6158 | SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6159 | PyObject *resultobj = 0; | |
6160 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6161 | long *arg2 = (long *) 0 ; | |
6162 | long *arg3 = (long *) 0 ; | |
6163 | void *argp1 = 0 ; | |
6164 | int res1 = 0 ; | |
6165 | long temp2 ; | |
6166 | int res2 = SWIG_TMPOBJ ; | |
6167 | long temp3 ; | |
6168 | int res3 = SWIG_TMPOBJ ; | |
6169 | PyObject *swig_obj[1] ; | |
6170 | ||
6171 | arg2 = &temp2; | |
6172 | arg3 = &temp3; | |
6173 | if (!args) SWIG_fail; | |
6174 | swig_obj[0] = args; | |
6175 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6176 | if (!SWIG_IsOK(res1)) { | |
6177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6178 | } | |
6179 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6180 | { | |
6181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6182 | (arg1)->GetSelection(arg2,arg3); | |
6183 | wxPyEndAllowThreads(__tstate); | |
6184 | if (PyErr_Occurred()) SWIG_fail; | |
6185 | } | |
6186 | resultobj = SWIG_Py_Void(); | |
6187 | if (SWIG_IsTmpObj(res2)) { | |
6188 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2))); | |
6189 | } else { | |
6190 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
6191 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags)); | |
6192 | } | |
6193 | if (SWIG_IsTmpObj(res3)) { | |
6194 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
6195 | } else { | |
6196 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
6197 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
6198 | } | |
6199 | return resultobj; | |
6200 | fail: | |
6201 | return NULL; | |
d14a1e28 RD |
6202 | } |
6203 | ||
6204 | ||
0085ce49 RD |
6205 | SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6206 | PyObject *resultobj = 0; | |
6207 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6208 | int result; | |
6209 | void *argp1 = 0 ; | |
6210 | int res1 = 0 ; | |
6211 | PyObject *swig_obj[1] ; | |
6212 | ||
6213 | if (!args) SWIG_fail; | |
6214 | swig_obj[0] = args; | |
6215 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6216 | if (!SWIG_IsOK(res1)) { | |
6217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6218 | } | |
6219 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6220 | { | |
6221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6222 | result = (int)((wxComboBox const *)arg1)->GetCurrentSelection(); | |
6223 | wxPyEndAllowThreads(__tstate); | |
6224 | if (PyErr_Occurred()) SWIG_fail; | |
6225 | } | |
6226 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6227 | return resultobj; | |
6228 | fail: | |
6229 | return NULL; | |
6230 | } | |
6231 | ||
6232 | ||
6233 | SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6234 | PyObject *resultobj = 0; | |
6235 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6236 | wxString *arg2 = 0 ; | |
6237 | bool result; | |
6238 | void *argp1 = 0 ; | |
6239 | int res1 = 0 ; | |
6240 | bool temp2 = false ; | |
6241 | PyObject * obj0 = 0 ; | |
6242 | PyObject * obj1 = 0 ; | |
6243 | char * kwnames[] = { | |
6244 | (char *) "self",(char *) "string", NULL | |
6245 | }; | |
6246 | ||
6247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) 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_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6251 | } | |
6252 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6253 | { | |
6254 | arg2 = wxString_in_helper(obj1); | |
6255 | if (arg2 == NULL) SWIG_fail; | |
6256 | temp2 = true; | |
6257 | } | |
6258 | { | |
6259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6260 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
6261 | wxPyEndAllowThreads(__tstate); | |
6262 | if (PyErr_Occurred()) SWIG_fail; | |
6263 | } | |
6264 | { | |
6265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6266 | } | |
6267 | { | |
6268 | if (temp2) | |
6269 | delete arg2; | |
6270 | } | |
6271 | return resultobj; | |
6272 | fail: | |
6273 | { | |
6274 | if (temp2) | |
6275 | delete arg2; | |
6276 | } | |
6277 | return NULL; | |
6278 | } | |
6279 | ||
6280 | ||
50f151d7 RD |
6281 | SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6282 | PyObject *resultobj = 0; | |
6283 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6284 | int arg2 ; | |
6285 | wxString *arg3 = 0 ; | |
6286 | void *argp1 = 0 ; | |
6287 | int res1 = 0 ; | |
6288 | int val2 ; | |
6289 | int ecode2 = 0 ; | |
6290 | bool temp3 = false ; | |
6291 | PyObject * obj0 = 0 ; | |
6292 | PyObject * obj1 = 0 ; | |
6293 | PyObject * obj2 = 0 ; | |
6294 | char * kwnames[] = { | |
6295 | (char *) "self",(char *) "n",(char *) "string", NULL | |
6296 | }; | |
6297 | ||
6298 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) 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_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6302 | } | |
6303 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6304 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6305 | if (!SWIG_IsOK(ecode2)) { | |
6306 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'"); | |
6307 | } | |
6308 | arg2 = static_cast< int >(val2); | |
6309 | { | |
6310 | arg3 = wxString_in_helper(obj2); | |
6311 | if (arg3 == NULL) SWIG_fail; | |
6312 | temp3 = true; | |
6313 | } | |
6314 | { | |
6315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6316 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
6317 | wxPyEndAllowThreads(__tstate); | |
6318 | if (PyErr_Occurred()) SWIG_fail; | |
6319 | } | |
6320 | resultobj = SWIG_Py_Void(); | |
6321 | { | |
6322 | if (temp3) | |
6323 | delete arg3; | |
6324 | } | |
6325 | return resultobj; | |
6326 | fail: | |
6327 | { | |
6328 | if (temp3) | |
6329 | delete arg3; | |
6330 | } | |
6331 | return NULL; | |
6332 | } | |
6333 | ||
6334 | ||
0085ce49 RD |
6335 | SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6336 | PyObject *resultobj = 0; | |
6337 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6338 | bool arg2 ; | |
6339 | void *argp1 = 0 ; | |
6340 | int res1 = 0 ; | |
6341 | bool val2 ; | |
6342 | int ecode2 = 0 ; | |
6343 | PyObject * obj0 = 0 ; | |
6344 | PyObject * obj1 = 0 ; | |
6345 | char * kwnames[] = { | |
6346 | (char *) "self",(char *) "editable", NULL | |
6347 | }; | |
6348 | ||
6349 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail; | |
6350 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6351 | if (!SWIG_IsOK(res1)) { | |
6352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6353 | } | |
6354 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6355 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
6356 | if (!SWIG_IsOK(ecode2)) { | |
6357 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'"); | |
6358 | } | |
6359 | arg2 = static_cast< bool >(val2); | |
6360 | { | |
6361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6362 | (arg1)->SetEditable(arg2); | |
6363 | wxPyEndAllowThreads(__tstate); | |
6364 | if (PyErr_Occurred()) SWIG_fail; | |
6365 | } | |
6366 | resultobj = SWIG_Py_Void(); | |
6367 | return resultobj; | |
6368 | fail: | |
6369 | return NULL; | |
d14a1e28 RD |
6370 | } |
6371 | ||
6372 | ||
0085ce49 RD |
6373 | SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6374 | PyObject *resultobj = 0; | |
6375 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6376 | void *argp1 = 0 ; | |
6377 | int res1 = 0 ; | |
6378 | PyObject *swig_obj[1] ; | |
6379 | ||
6380 | if (!args) SWIG_fail; | |
6381 | swig_obj[0] = args; | |
6382 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6383 | if (!SWIG_IsOK(res1)) { | |
6384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6385 | } | |
6386 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6387 | { | |
6388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6389 | (arg1)->SetInsertionPointEnd(); | |
6390 | wxPyEndAllowThreads(__tstate); | |
6391 | if (PyErr_Occurred()) SWIG_fail; | |
6392 | } | |
6393 | resultobj = SWIG_Py_Void(); | |
6394 | return resultobj; | |
6395 | fail: | |
6396 | return NULL; | |
6397 | } | |
6398 | ||
6399 | ||
6400 | SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6401 | PyObject *resultobj = 0; | |
6402 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6403 | long arg2 ; | |
6404 | long arg3 ; | |
6405 | void *argp1 = 0 ; | |
6406 | int res1 = 0 ; | |
6407 | long val2 ; | |
6408 | int ecode2 = 0 ; | |
6409 | long val3 ; | |
6410 | int ecode3 = 0 ; | |
6411 | PyObject * obj0 = 0 ; | |
6412 | PyObject * obj1 = 0 ; | |
6413 | PyObject * obj2 = 0 ; | |
6414 | char * kwnames[] = { | |
6415 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
6416 | }; | |
6417 | ||
6418 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6419 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6420 | if (!SWIG_IsOK(res1)) { | |
6421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6422 | } | |
6423 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6424 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6425 | if (!SWIG_IsOK(ecode2)) { | |
6426 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'"); | |
6427 | } | |
6428 | arg2 = static_cast< long >(val2); | |
6429 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6430 | if (!SWIG_IsOK(ecode3)) { | |
6431 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'"); | |
6432 | } | |
6433 | arg3 = static_cast< long >(val3); | |
6434 | { | |
6435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6436 | (arg1)->Remove(arg2,arg3); | |
6437 | wxPyEndAllowThreads(__tstate); | |
6438 | if (PyErr_Occurred()) SWIG_fail; | |
6439 | } | |
6440 | resultobj = SWIG_Py_Void(); | |
6441 | return resultobj; | |
6442 | fail: | |
6443 | return NULL; | |
d14a1e28 RD |
6444 | } |
6445 | ||
6446 | ||
0085ce49 RD |
6447 | SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6448 | PyObject *resultobj = 0; | |
6449 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6450 | bool result; | |
6451 | void *argp1 = 0 ; | |
6452 | int res1 = 0 ; | |
6453 | PyObject *swig_obj[1] ; | |
6454 | ||
6455 | if (!args) SWIG_fail; | |
6456 | swig_obj[0] = args; | |
6457 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6458 | if (!SWIG_IsOK(res1)) { | |
6459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6460 | } | |
6461 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6462 | { | |
6463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6464 | result = (bool)((wxComboBox const *)arg1)->IsEditable(); | |
6465 | wxPyEndAllowThreads(__tstate); | |
6466 | if (PyErr_Occurred()) SWIG_fail; | |
6467 | } | |
6468 | { | |
6469 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6470 | } | |
6471 | return resultobj; | |
6472 | fail: | |
6473 | return NULL; | |
d14a1e28 RD |
6474 | } |
6475 | ||
6476 | ||
0085ce49 RD |
6477 | SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6478 | PyObject *resultobj = 0; | |
6479 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6480 | void *argp1 = 0 ; | |
6481 | int res1 = 0 ; | |
6482 | PyObject *swig_obj[1] ; | |
6483 | ||
6484 | if (!args) SWIG_fail; | |
6485 | swig_obj[0] = args; | |
6486 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6487 | if (!SWIG_IsOK(res1)) { | |
6488 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6489 | } | |
6490 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6491 | { | |
6492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6493 | (arg1)->Undo(); | |
6494 | wxPyEndAllowThreads(__tstate); | |
6495 | if (PyErr_Occurred()) SWIG_fail; | |
6496 | } | |
6497 | resultobj = SWIG_Py_Void(); | |
6498 | return resultobj; | |
6499 | fail: | |
6500 | return NULL; | |
fd3f2efe RD |
6501 | } |
6502 | ||
6503 | ||
0085ce49 RD |
6504 | SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6505 | PyObject *resultobj = 0; | |
6506 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6507 | void *argp1 = 0 ; | |
6508 | int res1 = 0 ; | |
6509 | PyObject *swig_obj[1] ; | |
6510 | ||
6511 | if (!args) SWIG_fail; | |
6512 | swig_obj[0] = args; | |
6513 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6514 | if (!SWIG_IsOK(res1)) { | |
6515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6516 | } | |
6517 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6518 | { | |
6519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6520 | (arg1)->Redo(); | |
6521 | wxPyEndAllowThreads(__tstate); | |
6522 | if (PyErr_Occurred()) SWIG_fail; | |
6523 | } | |
6524 | resultobj = SWIG_Py_Void(); | |
6525 | return resultobj; | |
6526 | fail: | |
6527 | return NULL; | |
d14a1e28 RD |
6528 | } |
6529 | ||
6530 | ||
0085ce49 RD |
6531 | SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6532 | PyObject *resultobj = 0; | |
6533 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6534 | void *argp1 = 0 ; | |
6535 | int res1 = 0 ; | |
6536 | PyObject *swig_obj[1] ; | |
6537 | ||
6538 | if (!args) SWIG_fail; | |
6539 | swig_obj[0] = args; | |
6540 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6541 | if (!SWIG_IsOK(res1)) { | |
6542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6543 | } | |
6544 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6545 | { | |
6546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6547 | (arg1)->SelectAll(); | |
6548 | wxPyEndAllowThreads(__tstate); | |
6549 | if (PyErr_Occurred()) SWIG_fail; | |
6550 | } | |
6551 | resultobj = SWIG_Py_Void(); | |
6552 | return resultobj; | |
6553 | fail: | |
6554 | return NULL; | |
b9d6a5f3 RD |
6555 | } |
6556 | ||
6557 | ||
0085ce49 RD |
6558 | SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6559 | PyObject *resultobj = 0; | |
6560 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6561 | bool result; | |
6562 | void *argp1 = 0 ; | |
6563 | int res1 = 0 ; | |
6564 | PyObject *swig_obj[1] ; | |
6565 | ||
6566 | if (!args) SWIG_fail; | |
6567 | swig_obj[0] = args; | |
6568 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6569 | if (!SWIG_IsOK(res1)) { | |
6570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6571 | } | |
6572 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6573 | { | |
6574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6575 | result = (bool)((wxComboBox const *)arg1)->CanCopy(); | |
6576 | wxPyEndAllowThreads(__tstate); | |
6577 | if (PyErr_Occurred()) SWIG_fail; | |
6578 | } | |
6579 | { | |
6580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6581 | } | |
6582 | return resultobj; | |
6583 | fail: | |
6584 | return NULL; | |
943e8dfd RD |
6585 | } |
6586 | ||
6587 | ||
0085ce49 RD |
6588 | SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6589 | PyObject *resultobj = 0; | |
6590 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6591 | bool result; | |
6592 | void *argp1 = 0 ; | |
6593 | int res1 = 0 ; | |
6594 | PyObject *swig_obj[1] ; | |
6595 | ||
6596 | if (!args) SWIG_fail; | |
6597 | swig_obj[0] = args; | |
6598 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6599 | if (!SWIG_IsOK(res1)) { | |
6600 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6601 | } | |
6602 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6603 | { | |
6604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6605 | result = (bool)((wxComboBox const *)arg1)->CanCut(); | |
6606 | wxPyEndAllowThreads(__tstate); | |
6607 | if (PyErr_Occurred()) SWIG_fail; | |
6608 | } | |
6609 | { | |
6610 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6611 | } | |
6612 | return resultobj; | |
6613 | fail: | |
6614 | return NULL; | |
121b9a67 RD |
6615 | } |
6616 | ||
6617 | ||
0085ce49 RD |
6618 | SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6619 | PyObject *resultobj = 0; | |
6620 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6621 | bool result; | |
6622 | void *argp1 = 0 ; | |
6623 | int res1 = 0 ; | |
6624 | PyObject *swig_obj[1] ; | |
6625 | ||
6626 | if (!args) SWIG_fail; | |
6627 | swig_obj[0] = args; | |
6628 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6629 | if (!SWIG_IsOK(res1)) { | |
6630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6631 | } | |
6632 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6633 | { | |
6634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6635 | result = (bool)((wxComboBox const *)arg1)->CanPaste(); | |
6636 | wxPyEndAllowThreads(__tstate); | |
6637 | if (PyErr_Occurred()) SWIG_fail; | |
6638 | } | |
6639 | { | |
6640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6641 | } | |
6642 | return resultobj; | |
6643 | fail: | |
6644 | return NULL; | |
121b9a67 RD |
6645 | } |
6646 | ||
6647 | ||
0085ce49 RD |
6648 | SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6649 | PyObject *resultobj = 0; | |
6650 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6651 | bool result; | |
6652 | void *argp1 = 0 ; | |
6653 | int res1 = 0 ; | |
6654 | PyObject *swig_obj[1] ; | |
6655 | ||
6656 | if (!args) SWIG_fail; | |
6657 | swig_obj[0] = args; | |
6658 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6659 | if (!SWIG_IsOK(res1)) { | |
6660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6661 | } | |
6662 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6663 | { | |
6664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6665 | result = (bool)((wxComboBox const *)arg1)->CanUndo(); | |
6666 | wxPyEndAllowThreads(__tstate); | |
6667 | if (PyErr_Occurred()) SWIG_fail; | |
6668 | } | |
6669 | { | |
6670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6671 | } | |
6672 | return resultobj; | |
6673 | fail: | |
6674 | return NULL; | |
d14a1e28 RD |
6675 | } |
6676 | ||
6677 | ||
0085ce49 RD |
6678 | SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6679 | PyObject *resultobj = 0; | |
6680 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6681 | bool result; | |
6682 | void *argp1 = 0 ; | |
6683 | int res1 = 0 ; | |
6684 | PyObject *swig_obj[1] ; | |
6685 | ||
6686 | if (!args) SWIG_fail; | |
6687 | swig_obj[0] = args; | |
6688 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6689 | if (!SWIG_IsOK(res1)) { | |
6690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6691 | } | |
6692 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6693 | { | |
6694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6695 | result = (bool)((wxComboBox const *)arg1)->CanRedo(); | |
6696 | wxPyEndAllowThreads(__tstate); | |
6697 | if (PyErr_Occurred()) SWIG_fail; | |
6698 | } | |
6699 | { | |
6700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6701 | } | |
6702 | return resultobj; | |
6703 | fail: | |
6704 | return NULL; | |
d14a1e28 RD |
6705 | } |
6706 | ||
6707 | ||
0085ce49 RD |
6708 | SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6709 | PyObject *resultobj = 0; | |
6710 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
6711 | SwigValueWrapper<wxVisualAttributes > result; | |
6712 | int val1 ; | |
6713 | int ecode1 = 0 ; | |
6714 | PyObject * obj0 = 0 ; | |
6715 | char * kwnames[] = { | |
6716 | (char *) "variant", NULL | |
6717 | }; | |
6718 | ||
6719 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
6720 | if (obj0) { | |
6721 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6722 | if (!SWIG_IsOK(ecode1)) { | |
6723 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
6724 | } | |
6725 | arg1 = static_cast< wxWindowVariant >(val1); | |
6726 | } | |
6727 | { | |
6728 | if (!wxPyCheckForApp()) SWIG_fail; | |
6729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6730 | result = wxComboBox::GetClassDefaultAttributes(arg1); | |
6731 | wxPyEndAllowThreads(__tstate); | |
6732 | if (PyErr_Occurred()) SWIG_fail; | |
6733 | } | |
6734 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
6735 | return resultobj; | |
6736 | fail: | |
6737 | return NULL; | |
d14a1e28 RD |
6738 | } |
6739 | ||
6740 | ||
0085ce49 RD |
6741 | SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6742 | PyObject *obj; | |
6743 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6744 | SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj)); | |
6745 | return SWIG_Py_Void(); | |
5cbf236d RD |
6746 | } |
6747 | ||
0085ce49 RD |
6748 | SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6749 | return SWIG_Python_InitShadowInstance(args); | |
6750 | } | |
5cbf236d | 6751 | |
0085ce49 RD |
6752 | SWIGINTERN int GaugeNameStr_set(PyObject *) { |
6753 | SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only."); | |
6754 | return 1; | |
5cbf236d RD |
6755 | } |
6756 | ||
6757 | ||
0085ce49 RD |
6758 | SWIGINTERN PyObject *GaugeNameStr_get(void) { |
6759 | PyObject *pyobj = 0; | |
6760 | ||
6761 | { | |
6762 | #if wxUSE_UNICODE | |
6763 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
6764 | #else | |
6765 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
6766 | #endif | |
6767 | } | |
6768 | return pyobj; | |
6769 | } | |
6770 | ||
6771 | ||
6772 | SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6773 | PyObject *resultobj = 0; | |
6774 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6775 | int arg2 = (int) -1 ; | |
6776 | int arg3 = (int) 100 ; | |
6777 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6778 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6779 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6780 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6781 | long arg6 = (long) wxGA_HORIZONTAL ; | |
6782 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6783 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6784 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
6785 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6786 | wxGauge *result = 0 ; | |
6787 | void *argp1 = 0 ; | |
6788 | int res1 = 0 ; | |
6789 | int val2 ; | |
6790 | int ecode2 = 0 ; | |
6791 | int val3 ; | |
6792 | int ecode3 = 0 ; | |
6793 | wxPoint temp4 ; | |
6794 | wxSize temp5 ; | |
6795 | long val6 ; | |
6796 | int ecode6 = 0 ; | |
6797 | void *argp7 = 0 ; | |
6798 | int res7 = 0 ; | |
6799 | bool temp8 = false ; | |
6800 | PyObject * obj0 = 0 ; | |
6801 | PyObject * obj1 = 0 ; | |
6802 | PyObject * obj2 = 0 ; | |
6803 | PyObject * obj3 = 0 ; | |
6804 | PyObject * obj4 = 0 ; | |
6805 | PyObject * obj5 = 0 ; | |
6806 | PyObject * obj6 = 0 ; | |
6807 | PyObject * obj7 = 0 ; | |
6808 | char * kwnames[] = { | |
6809 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6810 | }; | |
6811 | ||
6812 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
6813 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6814 | if (!SWIG_IsOK(res1)) { | |
6815 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
6816 | } | |
6817 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
6818 | if (obj1) { | |
6819 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6820 | if (!SWIG_IsOK(ecode2)) { | |
6821 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'"); | |
6822 | } | |
6823 | arg2 = static_cast< int >(val2); | |
6824 | } | |
6825 | if (obj2) { | |
6826 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6827 | if (!SWIG_IsOK(ecode3)) { | |
6828 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'"); | |
6829 | } | |
6830 | arg3 = static_cast< int >(val3); | |
6831 | } | |
6832 | if (obj3) { | |
5cbf236d | 6833 | { |
0085ce49 RD |
6834 | arg4 = &temp4; |
6835 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5cbf236d | 6836 | } |
0085ce49 RD |
6837 | } |
6838 | if (obj4) { | |
5cbf236d | 6839 | { |
0085ce49 RD |
6840 | arg5 = &temp5; |
6841 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5cbf236d | 6842 | } |
0085ce49 RD |
6843 | } |
6844 | if (obj5) { | |
6845 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
6846 | if (!SWIG_IsOK(ecode6)) { | |
6847 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'"); | |
6848 | } | |
6849 | arg6 = static_cast< long >(val6); | |
6850 | } | |
6851 | if (obj6) { | |
6852 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
6853 | if (!SWIG_IsOK(res7)) { | |
6854 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
6855 | } | |
6856 | if (!argp7) { | |
6857 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
5cbf236d | 6858 | } |
0085ce49 RD |
6859 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
6860 | } | |
6861 | if (obj7) { | |
5cbf236d | 6862 | { |
0085ce49 RD |
6863 | arg8 = wxString_in_helper(obj7); |
6864 | if (arg8 == NULL) SWIG_fail; | |
6865 | temp8 = true; | |
5cbf236d | 6866 | } |
0085ce49 RD |
6867 | } |
6868 | { | |
6869 | if (!wxPyCheckForApp()) SWIG_fail; | |
6870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6871 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6872 | wxPyEndAllowThreads(__tstate); | |
6873 | if (PyErr_Occurred()) SWIG_fail; | |
6874 | } | |
6875 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 ); | |
6876 | { | |
6877 | if (temp8) | |
6878 | delete arg8; | |
6879 | } | |
6880 | return resultobj; | |
6881 | fail: | |
6882 | { | |
6883 | if (temp8) | |
6884 | delete arg8; | |
6885 | } | |
6886 | return NULL; | |
5cbf236d RD |
6887 | } |
6888 | ||
6889 | ||
0085ce49 RD |
6890 | SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6891 | PyObject *resultobj = 0; | |
6892 | wxGauge *result = 0 ; | |
6893 | ||
6894 | if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail; | |
6895 | { | |
6896 | if (!wxPyCheckForApp()) SWIG_fail; | |
6897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6898 | result = (wxGauge *)new wxGauge(); | |
6899 | wxPyEndAllowThreads(__tstate); | |
6900 | if (PyErr_Occurred()) SWIG_fail; | |
6901 | } | |
6902 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 ); | |
6903 | return resultobj; | |
6904 | fail: | |
6905 | return NULL; | |
6906 | } | |
6907 | ||
6908 | ||
6909 | SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6910 | PyObject *resultobj = 0; | |
6911 | wxGauge *arg1 = (wxGauge *) 0 ; | |
6912 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6913 | int arg3 = (int) -1 ; | |
6914 | int arg4 = (int) 100 ; | |
6915 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6916 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6917 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6918 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6919 | long arg7 = (long) wxGA_HORIZONTAL ; | |
6920 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6921 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6922 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
6923 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6924 | bool result; | |
6925 | void *argp1 = 0 ; | |
6926 | int res1 = 0 ; | |
6927 | void *argp2 = 0 ; | |
6928 | int res2 = 0 ; | |
6929 | int val3 ; | |
6930 | int ecode3 = 0 ; | |
6931 | int val4 ; | |
6932 | int ecode4 = 0 ; | |
6933 | wxPoint temp5 ; | |
6934 | wxSize temp6 ; | |
6935 | long val7 ; | |
6936 | int ecode7 = 0 ; | |
6937 | void *argp8 = 0 ; | |
6938 | int res8 = 0 ; | |
6939 | bool temp9 = false ; | |
6940 | PyObject * obj0 = 0 ; | |
6941 | PyObject * obj1 = 0 ; | |
6942 | PyObject * obj2 = 0 ; | |
6943 | PyObject * obj3 = 0 ; | |
6944 | PyObject * obj4 = 0 ; | |
6945 | PyObject * obj5 = 0 ; | |
6946 | PyObject * obj6 = 0 ; | |
6947 | PyObject * obj7 = 0 ; | |
6948 | PyObject * obj8 = 0 ; | |
6949 | char * kwnames[] = { | |
6950 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6951 | }; | |
6952 | ||
6953 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
6954 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
6955 | if (!SWIG_IsOK(res1)) { | |
6956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
6957 | } | |
6958 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
6959 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6960 | if (!SWIG_IsOK(res2)) { | |
6961 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6962 | } | |
6963 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6964 | if (obj2) { | |
6965 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6966 | if (!SWIG_IsOK(ecode3)) { | |
6967 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'"); | |
6968 | } | |
6969 | arg3 = static_cast< int >(val3); | |
6970 | } | |
6971 | if (obj3) { | |
6972 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6973 | if (!SWIG_IsOK(ecode4)) { | |
6974 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'"); | |
6975 | } | |
6976 | arg4 = static_cast< int >(val4); | |
6977 | } | |
6978 | if (obj4) { | |
5cbf236d | 6979 | { |
0085ce49 RD |
6980 | arg5 = &temp5; |
6981 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5cbf236d | 6982 | } |
0085ce49 RD |
6983 | } |
6984 | if (obj5) { | |
5cbf236d | 6985 | { |
0085ce49 RD |
6986 | arg6 = &temp6; |
6987 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5cbf236d | 6988 | } |
0085ce49 RD |
6989 | } |
6990 | if (obj6) { | |
6991 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
6992 | if (!SWIG_IsOK(ecode7)) { | |
6993 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'"); | |
6994 | } | |
6995 | arg7 = static_cast< long >(val7); | |
6996 | } | |
6997 | if (obj7) { | |
6998 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
6999 | if (!SWIG_IsOK(res8)) { | |
7000 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5cbf236d | 7001 | } |
0085ce49 RD |
7002 | if (!argp8) { |
7003 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
7004 | } | |
7005 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
7006 | } | |
7007 | if (obj8) { | |
5cbf236d | 7008 | { |
0085ce49 RD |
7009 | arg9 = wxString_in_helper(obj8); |
7010 | if (arg9 == NULL) SWIG_fail; | |
7011 | temp9 = true; | |
5cbf236d | 7012 | } |
0085ce49 RD |
7013 | } |
7014 | { | |
7015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7016 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7017 | wxPyEndAllowThreads(__tstate); | |
7018 | if (PyErr_Occurred()) SWIG_fail; | |
7019 | } | |
7020 | { | |
7021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7022 | } | |
7023 | { | |
7024 | if (temp9) | |
7025 | delete arg9; | |
7026 | } | |
7027 | return resultobj; | |
7028 | fail: | |
7029 | { | |
7030 | if (temp9) | |
7031 | delete arg9; | |
7032 | } | |
7033 | return NULL; | |
7034 | } | |
7035 | ||
7036 | ||
7037 | SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7038 | PyObject *resultobj = 0; | |
7039 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7040 | int arg2 ; | |
7041 | void *argp1 = 0 ; | |
7042 | int res1 = 0 ; | |
7043 | int val2 ; | |
7044 | int ecode2 = 0 ; | |
7045 | PyObject * obj0 = 0 ; | |
7046 | PyObject * obj1 = 0 ; | |
7047 | char * kwnames[] = { | |
7048 | (char *) "self",(char *) "range", NULL | |
7049 | }; | |
7050 | ||
7051 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail; | |
7052 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7053 | if (!SWIG_IsOK(res1)) { | |
7054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7055 | } | |
7056 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7057 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7058 | if (!SWIG_IsOK(ecode2)) { | |
7059 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
7060 | } | |
7061 | arg2 = static_cast< int >(val2); | |
7062 | { | |
7063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7064 | (arg1)->SetRange(arg2); | |
7065 | wxPyEndAllowThreads(__tstate); | |
7066 | if (PyErr_Occurred()) SWIG_fail; | |
7067 | } | |
7068 | resultobj = SWIG_Py_Void(); | |
7069 | return resultobj; | |
7070 | fail: | |
7071 | return NULL; | |
5cbf236d RD |
7072 | } |
7073 | ||
7074 | ||
0085ce49 RD |
7075 | SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7076 | PyObject *resultobj = 0; | |
7077 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7078 | int result; | |
7079 | void *argp1 = 0 ; | |
7080 | int res1 = 0 ; | |
7081 | PyObject *swig_obj[1] ; | |
7082 | ||
7083 | if (!args) SWIG_fail; | |
7084 | swig_obj[0] = args; | |
7085 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7086 | if (!SWIG_IsOK(res1)) { | |
7087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7088 | } | |
7089 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7090 | { | |
7091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7092 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
7093 | wxPyEndAllowThreads(__tstate); | |
7094 | if (PyErr_Occurred()) SWIG_fail; | |
7095 | } | |
7096 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7097 | return resultobj; | |
7098 | fail: | |
7099 | return NULL; | |
7100 | } | |
7101 | ||
7102 | ||
7103 | SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7104 | PyObject *resultobj = 0; | |
7105 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7106 | int arg2 ; | |
7107 | void *argp1 = 0 ; | |
7108 | int res1 = 0 ; | |
7109 | int val2 ; | |
7110 | int ecode2 = 0 ; | |
7111 | PyObject * obj0 = 0 ; | |
7112 | PyObject * obj1 = 0 ; | |
7113 | char * kwnames[] = { | |
7114 | (char *) "self",(char *) "pos", NULL | |
7115 | }; | |
7116 | ||
7117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
7118 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7119 | if (!SWIG_IsOK(res1)) { | |
7120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7121 | } | |
7122 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7123 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7124 | if (!SWIG_IsOK(ecode2)) { | |
7125 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
7126 | } | |
7127 | arg2 = static_cast< int >(val2); | |
7128 | { | |
7129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7130 | (arg1)->SetValue(arg2); | |
7131 | wxPyEndAllowThreads(__tstate); | |
7132 | if (PyErr_Occurred()) SWIG_fail; | |
7133 | } | |
7134 | resultobj = SWIG_Py_Void(); | |
7135 | return resultobj; | |
7136 | fail: | |
7137 | return NULL; | |
5cbf236d RD |
7138 | } |
7139 | ||
7140 | ||
0085ce49 RD |
7141 | SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7142 | PyObject *resultobj = 0; | |
7143 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7144 | int result; | |
7145 | void *argp1 = 0 ; | |
7146 | int res1 = 0 ; | |
7147 | PyObject *swig_obj[1] ; | |
7148 | ||
7149 | if (!args) SWIG_fail; | |
7150 | swig_obj[0] = args; | |
7151 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7152 | if (!SWIG_IsOK(res1)) { | |
7153 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7154 | } | |
7155 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7156 | { | |
7157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7158 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
7159 | wxPyEndAllowThreads(__tstate); | |
7160 | if (PyErr_Occurred()) SWIG_fail; | |
7161 | } | |
7162 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7163 | return resultobj; | |
7164 | fail: | |
7165 | return NULL; | |
5cbf236d RD |
7166 | } |
7167 | ||
7168 | ||
0085ce49 RD |
7169 | SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7170 | PyObject *resultobj = 0; | |
7171 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7172 | bool result; | |
7173 | void *argp1 = 0 ; | |
7174 | int res1 = 0 ; | |
7175 | PyObject *swig_obj[1] ; | |
7176 | ||
7177 | if (!args) SWIG_fail; | |
7178 | swig_obj[0] = args; | |
7179 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7180 | if (!SWIG_IsOK(res1)) { | |
7181 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7182 | } | |
7183 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7184 | { | |
7185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7186 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
7187 | wxPyEndAllowThreads(__tstate); | |
7188 | if (PyErr_Occurred()) SWIG_fail; | |
7189 | } | |
7190 | { | |
7191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7192 | } | |
7193 | return resultobj; | |
7194 | fail: | |
7195 | return NULL; | |
7196 | } | |
7197 | ||
7198 | ||
7199 | SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7200 | PyObject *resultobj = 0; | |
7201 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7202 | int arg2 ; | |
7203 | void *argp1 = 0 ; | |
7204 | int res1 = 0 ; | |
7205 | int val2 ; | |
7206 | int ecode2 = 0 ; | |
7207 | PyObject * obj0 = 0 ; | |
7208 | PyObject * obj1 = 0 ; | |
7209 | char * kwnames[] = { | |
7210 | (char *) "self",(char *) "w", NULL | |
7211 | }; | |
7212 | ||
7213 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
7214 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7215 | if (!SWIG_IsOK(res1)) { | |
7216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7217 | } | |
7218 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7219 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7220 | if (!SWIG_IsOK(ecode2)) { | |
7221 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'"); | |
7222 | } | |
7223 | arg2 = static_cast< int >(val2); | |
7224 | { | |
7225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7226 | (arg1)->SetShadowWidth(arg2); | |
7227 | wxPyEndAllowThreads(__tstate); | |
7228 | if (PyErr_Occurred()) SWIG_fail; | |
7229 | } | |
7230 | resultobj = SWIG_Py_Void(); | |
7231 | return resultobj; | |
7232 | fail: | |
7233 | return NULL; | |
22bfe96c RD |
7234 | } |
7235 | ||
7236 | ||
0085ce49 RD |
7237 | SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7238 | PyObject *resultobj = 0; | |
7239 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7240 | int result; | |
7241 | void *argp1 = 0 ; | |
7242 | int res1 = 0 ; | |
7243 | PyObject *swig_obj[1] ; | |
7244 | ||
7245 | if (!args) SWIG_fail; | |
7246 | swig_obj[0] = args; | |
7247 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7248 | if (!SWIG_IsOK(res1)) { | |
7249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7250 | } | |
7251 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7252 | { | |
7253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7254 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
7255 | wxPyEndAllowThreads(__tstate); | |
7256 | if (PyErr_Occurred()) SWIG_fail; | |
7257 | } | |
7258 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7259 | return resultobj; | |
7260 | fail: | |
7261 | return NULL; | |
7262 | } | |
7263 | ||
7264 | ||
7265 | SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7266 | PyObject *resultobj = 0; | |
7267 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7268 | int arg2 ; | |
7269 | void *argp1 = 0 ; | |
7270 | int res1 = 0 ; | |
7271 | int val2 ; | |
7272 | int ecode2 = 0 ; | |
7273 | PyObject * obj0 = 0 ; | |
7274 | PyObject * obj1 = 0 ; | |
7275 | char * kwnames[] = { | |
7276 | (char *) "self",(char *) "w", NULL | |
7277 | }; | |
7278 | ||
7279 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail; | |
7280 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7281 | if (!SWIG_IsOK(res1)) { | |
7282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7283 | } | |
7284 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7285 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7286 | if (!SWIG_IsOK(ecode2)) { | |
7287 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'"); | |
7288 | } | |
7289 | arg2 = static_cast< int >(val2); | |
7290 | { | |
7291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7292 | (arg1)->SetBezelFace(arg2); | |
7293 | wxPyEndAllowThreads(__tstate); | |
7294 | if (PyErr_Occurred()) SWIG_fail; | |
7295 | } | |
7296 | resultobj = SWIG_Py_Void(); | |
7297 | return resultobj; | |
7298 | fail: | |
7299 | return NULL; | |
d14a1e28 | 7300 | } |
0085ce49 RD |
7301 | |
7302 | ||
7303 | SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7304 | PyObject *resultobj = 0; | |
7305 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7306 | int result; | |
7307 | void *argp1 = 0 ; | |
7308 | int res1 = 0 ; | |
7309 | PyObject *swig_obj[1] ; | |
7310 | ||
7311 | if (!args) SWIG_fail; | |
7312 | swig_obj[0] = args; | |
7313 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7314 | if (!SWIG_IsOK(res1)) { | |
7315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7316 | } | |
7317 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7318 | { | |
7319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7320 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
7321 | wxPyEndAllowThreads(__tstate); | |
7322 | if (PyErr_Occurred()) SWIG_fail; | |
7323 | } | |
7324 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7325 | return resultobj; | |
7326 | fail: | |
7327 | return NULL; | |
7328 | } | |
7329 | ||
7330 | ||
7331 | SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7332 | PyObject *resultobj = 0; | |
7333 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7334 | SwigValueWrapper<wxVisualAttributes > result; | |
7335 | int val1 ; | |
7336 | int ecode1 = 0 ; | |
7337 | PyObject * obj0 = 0 ; | |
7338 | char * kwnames[] = { | |
7339 | (char *) "variant", NULL | |
7340 | }; | |
7341 | ||
7342 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7343 | if (obj0) { | |
7344 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7345 | if (!SWIG_IsOK(ecode1)) { | |
7346 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7347 | } | |
7348 | arg1 = static_cast< wxWindowVariant >(val1); | |
7349 | } | |
7350 | { | |
7351 | if (!wxPyCheckForApp()) SWIG_fail; | |
7352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7353 | result = wxGauge::GetClassDefaultAttributes(arg1); | |
7354 | wxPyEndAllowThreads(__tstate); | |
7355 | if (PyErr_Occurred()) SWIG_fail; | |
7356 | } | |
7357 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7358 | return resultobj; | |
7359 | fail: | |
7360 | return NULL; | |
b2dc1044 RD |
7361 | } |
7362 | ||
7363 | ||
0085ce49 RD |
7364 | SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7365 | PyObject *obj; | |
7366 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7367 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj)); | |
7368 | return SWIG_Py_Void(); | |
7369 | } | |
7370 | ||
7371 | SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7372 | return SWIG_Python_InitShadowInstance(args); | |
7373 | } | |
7374 | ||
7375 | SWIGINTERN int StaticBitmapNameStr_set(PyObject *) { | |
7376 | SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only."); | |
7377 | return 1; | |
7378 | } | |
7379 | ||
7380 | ||
7381 | SWIGINTERN PyObject *StaticBitmapNameStr_get(void) { | |
7382 | PyObject *pyobj = 0; | |
7383 | ||
7384 | { | |
b2dc1044 | 7385 | #if wxUSE_UNICODE |
0085ce49 | 7386 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); |
b2dc1044 | 7387 | #else |
0085ce49 | 7388 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); |
b2dc1044 | 7389 | #endif |
0085ce49 RD |
7390 | } |
7391 | return pyobj; | |
d14a1e28 RD |
7392 | } |
7393 | ||
7394 | ||
0085ce49 RD |
7395 | SWIGINTERN int StaticBoxNameStr_set(PyObject *) { |
7396 | SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only."); | |
7397 | return 1; | |
d14a1e28 RD |
7398 | } |
7399 | ||
7400 | ||
0085ce49 RD |
7401 | SWIGINTERN PyObject *StaticBoxNameStr_get(void) { |
7402 | PyObject *pyobj = 0; | |
7403 | ||
7404 | { | |
7405 | #if wxUSE_UNICODE | |
7406 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
7407 | #else | |
7408 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
7409 | #endif | |
7410 | } | |
7411 | return pyobj; | |
7412 | } | |
7413 | ||
7414 | ||
7415 | SWIGINTERN int StaticTextNameStr_set(PyObject *) { | |
7416 | SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only."); | |
7417 | return 1; | |
7418 | } | |
7419 | ||
7420 | ||
7421 | SWIGINTERN PyObject *StaticTextNameStr_get(void) { | |
7422 | PyObject *pyobj = 0; | |
7423 | ||
7424 | { | |
7425 | #if wxUSE_UNICODE | |
7426 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
7427 | #else | |
7428 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
7429 | #endif | |
7430 | } | |
7431 | return pyobj; | |
7432 | } | |
7433 | ||
7434 | ||
7435 | SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7436 | PyObject *resultobj = 0; | |
7437 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7438 | int arg2 = (int) -1 ; | |
7439 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7440 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7441 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7442 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7443 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7444 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7445 | long arg6 = (long) 0 ; | |
7446 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
7447 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7448 | wxStaticBox *result = 0 ; | |
7449 | void *argp1 = 0 ; | |
7450 | int res1 = 0 ; | |
7451 | int val2 ; | |
7452 | int ecode2 = 0 ; | |
7453 | bool temp3 = false ; | |
7454 | wxPoint temp4 ; | |
7455 | wxSize temp5 ; | |
7456 | long val6 ; | |
7457 | int ecode6 = 0 ; | |
7458 | bool temp7 = false ; | |
7459 | PyObject * obj0 = 0 ; | |
7460 | PyObject * obj1 = 0 ; | |
7461 | PyObject * obj2 = 0 ; | |
7462 | PyObject * obj3 = 0 ; | |
7463 | PyObject * obj4 = 0 ; | |
7464 | PyObject * obj5 = 0 ; | |
7465 | PyObject * obj6 = 0 ; | |
7466 | char * kwnames[] = { | |
7467 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7468 | }; | |
7469 | ||
7470 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7471 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7472 | if (!SWIG_IsOK(res1)) { | |
7473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7474 | } | |
7475 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7476 | if (obj1) { | |
7477 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7478 | if (!SWIG_IsOK(ecode2)) { | |
7479 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'"); | |
7480 | } | |
7481 | arg2 = static_cast< int >(val2); | |
7482 | } | |
7483 | if (obj2) { | |
d14a1e28 | 7484 | { |
0085ce49 RD |
7485 | arg3 = wxString_in_helper(obj2); |
7486 | if (arg3 == NULL) SWIG_fail; | |
7487 | temp3 = true; | |
d14a1e28 | 7488 | } |
0085ce49 RD |
7489 | } |
7490 | if (obj3) { | |
4f89f6a3 | 7491 | { |
0085ce49 RD |
7492 | arg4 = &temp4; |
7493 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 7494 | } |
0085ce49 RD |
7495 | } |
7496 | if (obj4) { | |
d14a1e28 | 7497 | { |
0085ce49 RD |
7498 | arg5 = &temp5; |
7499 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 7500 | } |
0085ce49 RD |
7501 | } |
7502 | if (obj5) { | |
7503 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7504 | if (!SWIG_IsOK(ecode6)) { | |
7505 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'"); | |
7506 | } | |
7507 | arg6 = static_cast< long >(val6); | |
7508 | } | |
7509 | if (obj6) { | |
d14a1e28 | 7510 | { |
0085ce49 RD |
7511 | arg7 = wxString_in_helper(obj6); |
7512 | if (arg7 == NULL) SWIG_fail; | |
7513 | temp7 = true; | |
d14a1e28 | 7514 | } |
0085ce49 RD |
7515 | } |
7516 | { | |
7517 | if (!wxPyCheckForApp()) SWIG_fail; | |
7518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7519 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7520 | wxPyEndAllowThreads(__tstate); | |
7521 | if (PyErr_Occurred()) SWIG_fail; | |
7522 | } | |
7523 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 ); | |
7524 | { | |
7525 | if (temp3) | |
7526 | delete arg3; | |
7527 | } | |
7528 | { | |
7529 | if (temp7) | |
7530 | delete arg7; | |
7531 | } | |
7532 | return resultobj; | |
7533 | fail: | |
7534 | { | |
7535 | if (temp3) | |
7536 | delete arg3; | |
7537 | } | |
7538 | { | |
7539 | if (temp7) | |
7540 | delete arg7; | |
7541 | } | |
7542 | return NULL; | |
d14a1e28 RD |
7543 | } |
7544 | ||
7545 | ||
0085ce49 RD |
7546 | SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7547 | PyObject *resultobj = 0; | |
7548 | wxStaticBox *result = 0 ; | |
7549 | ||
7550 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail; | |
7551 | { | |
7552 | if (!wxPyCheckForApp()) SWIG_fail; | |
7553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7554 | result = (wxStaticBox *)new wxStaticBox(); | |
7555 | wxPyEndAllowThreads(__tstate); | |
7556 | if (PyErr_Occurred()) SWIG_fail; | |
7557 | } | |
7558 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 ); | |
7559 | return resultobj; | |
7560 | fail: | |
7561 | return NULL; | |
7562 | } | |
7563 | ||
7564 | ||
7565 | SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7566 | PyObject *resultobj = 0; | |
7567 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
7568 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7569 | int arg3 = (int) -1 ; | |
7570 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7571 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7572 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7573 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7574 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7575 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7576 | long arg7 = (long) 0 ; | |
7577 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
7578 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7579 | bool result; | |
7580 | void *argp1 = 0 ; | |
7581 | int res1 = 0 ; | |
7582 | void *argp2 = 0 ; | |
7583 | int res2 = 0 ; | |
7584 | int val3 ; | |
7585 | int ecode3 = 0 ; | |
7586 | bool temp4 = false ; | |
7587 | wxPoint temp5 ; | |
7588 | wxSize temp6 ; | |
7589 | long val7 ; | |
7590 | int ecode7 = 0 ; | |
7591 | bool temp8 = false ; | |
7592 | PyObject * obj0 = 0 ; | |
7593 | PyObject * obj1 = 0 ; | |
7594 | PyObject * obj2 = 0 ; | |
7595 | PyObject * obj3 = 0 ; | |
7596 | PyObject * obj4 = 0 ; | |
7597 | PyObject * obj5 = 0 ; | |
7598 | PyObject * obj6 = 0 ; | |
7599 | PyObject * obj7 = 0 ; | |
7600 | char * kwnames[] = { | |
7601 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7602 | }; | |
7603 | ||
7604 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
7605 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 ); | |
7606 | if (!SWIG_IsOK(res1)) { | |
7607 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'"); | |
7608 | } | |
7609 | arg1 = reinterpret_cast< wxStaticBox * >(argp1); | |
7610 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7611 | if (!SWIG_IsOK(res2)) { | |
7612 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7613 | } | |
7614 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7615 | if (obj2) { | |
7616 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7617 | if (!SWIG_IsOK(ecode3)) { | |
7618 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
7619 | } | |
7620 | arg3 = static_cast< int >(val3); | |
7621 | } | |
7622 | if (obj3) { | |
093d3ff1 | 7623 | { |
0085ce49 RD |
7624 | arg4 = wxString_in_helper(obj3); |
7625 | if (arg4 == NULL) SWIG_fail; | |
7626 | temp4 = true; | |
093d3ff1 | 7627 | } |
0085ce49 RD |
7628 | } |
7629 | if (obj4) { | |
d14a1e28 | 7630 | { |
0085ce49 RD |
7631 | arg5 = &temp5; |
7632 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 7633 | } |
0085ce49 RD |
7634 | } |
7635 | if (obj5) { | |
d14a1e28 | 7636 | { |
0085ce49 RD |
7637 | arg6 = &temp6; |
7638 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 7639 | } |
0085ce49 RD |
7640 | } |
7641 | if (obj6) { | |
7642 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
7643 | if (!SWIG_IsOK(ecode7)) { | |
7644 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
7645 | } | |
7646 | arg7 = static_cast< long >(val7); | |
7647 | } | |
7648 | if (obj7) { | |
093d3ff1 | 7649 | { |
0085ce49 RD |
7650 | arg8 = wxString_in_helper(obj7); |
7651 | if (arg8 == NULL) SWIG_fail; | |
7652 | temp8 = true; | |
093d3ff1 | 7653 | } |
0085ce49 RD |
7654 | } |
7655 | { | |
7656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7657 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7658 | wxPyEndAllowThreads(__tstate); | |
7659 | if (PyErr_Occurred()) SWIG_fail; | |
7660 | } | |
7661 | { | |
7662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7663 | } | |
7664 | { | |
7665 | if (temp4) | |
7666 | delete arg4; | |
7667 | } | |
7668 | { | |
7669 | if (temp8) | |
7670 | delete arg8; | |
7671 | } | |
7672 | return resultobj; | |
7673 | fail: | |
7674 | { | |
7675 | if (temp4) | |
7676 | delete arg4; | |
7677 | } | |
7678 | { | |
7679 | if (temp8) | |
7680 | delete arg8; | |
7681 | } | |
7682 | return NULL; | |
7683 | } | |
d14a1e28 | 7684 | |
0085ce49 RD |
7685 | |
7686 | SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7687 | PyObject *resultobj = 0; | |
7688 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7689 | SwigValueWrapper<wxVisualAttributes > result; | |
7690 | int val1 ; | |
7691 | int ecode1 = 0 ; | |
7692 | PyObject * obj0 = 0 ; | |
7693 | char * kwnames[] = { | |
7694 | (char *) "variant", NULL | |
7695 | }; | |
7696 | ||
7697 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7698 | if (obj0) { | |
7699 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7700 | if (!SWIG_IsOK(ecode1)) { | |
7701 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7702 | } | |
7703 | arg1 = static_cast< wxWindowVariant >(val1); | |
7704 | } | |
7705 | { | |
7706 | if (!wxPyCheckForApp()) SWIG_fail; | |
7707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7708 | result = wxStaticBox::GetClassDefaultAttributes(arg1); | |
7709 | wxPyEndAllowThreads(__tstate); | |
7710 | if (PyErr_Occurred()) SWIG_fail; | |
7711 | } | |
7712 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7713 | return resultobj; | |
7714 | fail: | |
7715 | return NULL; | |
7716 | } | |
7717 | ||
7718 | ||
7719 | SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7720 | PyObject *obj; | |
7721 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7722 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj)); | |
7723 | return SWIG_Py_Void(); | |
7724 | } | |
7725 | ||
7726 | SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7727 | return SWIG_Python_InitShadowInstance(args); | |
7728 | } | |
7729 | ||
7730 | SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7731 | PyObject *resultobj = 0; | |
7732 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7733 | int arg2 = (int) -1 ; | |
7734 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
7735 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7736 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7737 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
7738 | long arg5 = (long) wxLI_HORIZONTAL ; | |
7739 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
7740 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7741 | wxStaticLine *result = 0 ; | |
7742 | void *argp1 = 0 ; | |
7743 | int res1 = 0 ; | |
7744 | int val2 ; | |
7745 | int ecode2 = 0 ; | |
7746 | wxPoint temp3 ; | |
7747 | wxSize temp4 ; | |
7748 | long val5 ; | |
7749 | int ecode5 = 0 ; | |
7750 | bool temp6 = false ; | |
7751 | PyObject * obj0 = 0 ; | |
7752 | PyObject * obj1 = 0 ; | |
7753 | PyObject * obj2 = 0 ; | |
7754 | PyObject * obj3 = 0 ; | |
7755 | PyObject * obj4 = 0 ; | |
7756 | PyObject * obj5 = 0 ; | |
7757 | char * kwnames[] = { | |
7758 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7759 | }; | |
7760 | ||
7761 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
7762 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7763 | if (!SWIG_IsOK(res1)) { | |
7764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7765 | } | |
7766 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7767 | if (obj1) { | |
7768 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7769 | if (!SWIG_IsOK(ecode2)) { | |
7770 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'"); | |
7771 | } | |
7772 | arg2 = static_cast< int >(val2); | |
7773 | } | |
7774 | if (obj2) { | |
093d3ff1 | 7775 | { |
0085ce49 RD |
7776 | arg3 = &temp3; |
7777 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 7778 | } |
0085ce49 RD |
7779 | } |
7780 | if (obj3) { | |
d14a1e28 | 7781 | { |
0085ce49 RD |
7782 | arg4 = &temp4; |
7783 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 7784 | } |
0085ce49 RD |
7785 | } |
7786 | if (obj4) { | |
7787 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
7788 | if (!SWIG_IsOK(ecode5)) { | |
7789 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'"); | |
7790 | } | |
7791 | arg5 = static_cast< long >(val5); | |
7792 | } | |
7793 | if (obj5) { | |
7794 | { | |
7795 | arg6 = wxString_in_helper(obj5); | |
7796 | if (arg6 == NULL) SWIG_fail; | |
7797 | temp6 = true; | |
7798 | } | |
7799 | } | |
7800 | { | |
7801 | if (!wxPyCheckForApp()) SWIG_fail; | |
7802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7803 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
7804 | wxPyEndAllowThreads(__tstate); | |
7805 | if (PyErr_Occurred()) SWIG_fail; | |
7806 | } | |
7807 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 ); | |
7808 | { | |
7809 | if (temp6) | |
7810 | delete arg6; | |
7811 | } | |
7812 | return resultobj; | |
7813 | fail: | |
7814 | { | |
7815 | if (temp6) | |
7816 | delete arg6; | |
7817 | } | |
7818 | return NULL; | |
d14a1e28 RD |
7819 | } |
7820 | ||
7821 | ||
0085ce49 RD |
7822 | SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7823 | PyObject *resultobj = 0; | |
7824 | wxStaticLine *result = 0 ; | |
7825 | ||
7826 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail; | |
7827 | { | |
7828 | if (!wxPyCheckForApp()) SWIG_fail; | |
7829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7830 | result = (wxStaticLine *)new wxStaticLine(); | |
7831 | wxPyEndAllowThreads(__tstate); | |
7832 | if (PyErr_Occurred()) SWIG_fail; | |
7833 | } | |
7834 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 ); | |
7835 | return resultobj; | |
7836 | fail: | |
7837 | return NULL; | |
7838 | } | |
7839 | ||
7840 | ||
7841 | SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7842 | PyObject *resultobj = 0; | |
7843 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
7844 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7845 | int arg3 = (int) -1 ; | |
7846 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7847 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7848 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7849 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7850 | long arg6 = (long) wxLI_HORIZONTAL ; | |
7851 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
7852 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7853 | bool result; | |
7854 | void *argp1 = 0 ; | |
7855 | int res1 = 0 ; | |
7856 | void *argp2 = 0 ; | |
7857 | int res2 = 0 ; | |
7858 | int val3 ; | |
7859 | int ecode3 = 0 ; | |
7860 | wxPoint temp4 ; | |
7861 | wxSize temp5 ; | |
7862 | long val6 ; | |
7863 | int ecode6 = 0 ; | |
7864 | bool temp7 = false ; | |
7865 | PyObject * obj0 = 0 ; | |
7866 | PyObject * obj1 = 0 ; | |
7867 | PyObject * obj2 = 0 ; | |
7868 | PyObject * obj3 = 0 ; | |
7869 | PyObject * obj4 = 0 ; | |
7870 | PyObject * obj5 = 0 ; | |
7871 | PyObject * obj6 = 0 ; | |
7872 | char * kwnames[] = { | |
7873 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7874 | }; | |
7875 | ||
7876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 ); | |
7878 | if (!SWIG_IsOK(res1)) { | |
7879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'"); | |
7880 | } | |
7881 | arg1 = reinterpret_cast< wxStaticLine * >(argp1); | |
7882 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7883 | if (!SWIG_IsOK(res2)) { | |
7884 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7885 | } | |
7886 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7887 | if (obj2) { | |
7888 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7889 | if (!SWIG_IsOK(ecode3)) { | |
7890 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'"); | |
7891 | } | |
7892 | arg3 = static_cast< int >(val3); | |
7893 | } | |
7894 | if (obj3) { | |
d14a1e28 | 7895 | { |
0085ce49 RD |
7896 | arg4 = &temp4; |
7897 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 7898 | } |
0085ce49 RD |
7899 | } |
7900 | if (obj4) { | |
093d3ff1 | 7901 | { |
0085ce49 RD |
7902 | arg5 = &temp5; |
7903 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 7904 | } |
0085ce49 RD |
7905 | } |
7906 | if (obj5) { | |
7907 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7908 | if (!SWIG_IsOK(ecode6)) { | |
7909 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'"); | |
7910 | } | |
7911 | arg6 = static_cast< long >(val6); | |
7912 | } | |
7913 | if (obj6) { | |
7914 | { | |
7915 | arg7 = wxString_in_helper(obj6); | |
7916 | if (arg7 == NULL) SWIG_fail; | |
7917 | temp7 = true; | |
7918 | } | |
7919 | } | |
7920 | { | |
7921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7922 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7923 | wxPyEndAllowThreads(__tstate); | |
7924 | if (PyErr_Occurred()) SWIG_fail; | |
7925 | } | |
7926 | { | |
7927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7928 | } | |
7929 | { | |
7930 | if (temp7) | |
7931 | delete arg7; | |
7932 | } | |
7933 | return resultobj; | |
7934 | fail: | |
7935 | { | |
7936 | if (temp7) | |
7937 | delete arg7; | |
7938 | } | |
7939 | return NULL; | |
d14a1e28 RD |
7940 | } |
7941 | ||
7942 | ||
0085ce49 RD |
7943 | SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7944 | PyObject *resultobj = 0; | |
7945 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
7946 | bool result; | |
7947 | void *argp1 = 0 ; | |
7948 | int res1 = 0 ; | |
7949 | PyObject *swig_obj[1] ; | |
7950 | ||
7951 | if (!args) SWIG_fail; | |
7952 | swig_obj[0] = args; | |
7953 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 ); | |
7954 | if (!SWIG_IsOK(res1)) { | |
7955 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'"); | |
7956 | } | |
7957 | arg1 = reinterpret_cast< wxStaticLine * >(argp1); | |
7958 | { | |
7959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7960 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
7961 | wxPyEndAllowThreads(__tstate); | |
7962 | if (PyErr_Occurred()) SWIG_fail; | |
7963 | } | |
7964 | { | |
7965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7966 | } | |
7967 | return resultobj; | |
7968 | fail: | |
7969 | return NULL; | |
7970 | } | |
7971 | ||
7972 | ||
7973 | SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7974 | PyObject *resultobj = 0; | |
7975 | int result; | |
7976 | ||
7977 | if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail; | |
7978 | { | |
7979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7980 | result = (int)wxStaticLine::GetDefaultSize(); | |
7981 | wxPyEndAllowThreads(__tstate); | |
7982 | if (PyErr_Occurred()) SWIG_fail; | |
7983 | } | |
7984 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7985 | return resultobj; | |
7986 | fail: | |
7987 | return NULL; | |
7988 | } | |
7989 | ||
7990 | ||
7991 | SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7992 | PyObject *resultobj = 0; | |
7993 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7994 | SwigValueWrapper<wxVisualAttributes > result; | |
7995 | int val1 ; | |
7996 | int ecode1 = 0 ; | |
7997 | PyObject * obj0 = 0 ; | |
7998 | char * kwnames[] = { | |
7999 | (char *) "variant", NULL | |
8000 | }; | |
8001 | ||
8002 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8003 | if (obj0) { | |
8004 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8005 | if (!SWIG_IsOK(ecode1)) { | |
8006 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8007 | } | |
8008 | arg1 = static_cast< wxWindowVariant >(val1); | |
8009 | } | |
8010 | { | |
8011 | if (!wxPyCheckForApp()) SWIG_fail; | |
8012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8013 | result = wxStaticLine::GetClassDefaultAttributes(arg1); | |
8014 | wxPyEndAllowThreads(__tstate); | |
8015 | if (PyErr_Occurred()) SWIG_fail; | |
8016 | } | |
8017 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8018 | return resultobj; | |
8019 | fail: | |
8020 | return NULL; | |
8021 | } | |
8022 | ||
8023 | ||
8024 | SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8025 | PyObject *obj; | |
8026 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8027 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj)); | |
8028 | return SWIG_Py_Void(); | |
8029 | } | |
8030 | ||
8031 | SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8032 | return SWIG_Python_InitShadowInstance(args); | |
8033 | } | |
8034 | ||
8035 | SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8036 | PyObject *resultobj = 0; | |
8037 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8038 | int arg2 = (int) -1 ; | |
8039 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8040 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8041 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8042 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8043 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8044 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8045 | long arg6 = (long) 0 ; | |
8046 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
8047 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8048 | wxStaticText *result = 0 ; | |
8049 | void *argp1 = 0 ; | |
8050 | int res1 = 0 ; | |
8051 | int val2 ; | |
8052 | int ecode2 = 0 ; | |
8053 | bool temp3 = false ; | |
8054 | wxPoint temp4 ; | |
8055 | wxSize temp5 ; | |
8056 | long val6 ; | |
8057 | int ecode6 = 0 ; | |
8058 | bool temp7 = false ; | |
8059 | PyObject * obj0 = 0 ; | |
8060 | PyObject * obj1 = 0 ; | |
8061 | PyObject * obj2 = 0 ; | |
8062 | PyObject * obj3 = 0 ; | |
8063 | PyObject * obj4 = 0 ; | |
8064 | PyObject * obj5 = 0 ; | |
8065 | PyObject * obj6 = 0 ; | |
8066 | char * kwnames[] = { | |
8067 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8068 | }; | |
8069 | ||
8070 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
8071 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8072 | if (!SWIG_IsOK(res1)) { | |
8073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8074 | } | |
8075 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8076 | if (obj1) { | |
8077 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8078 | if (!SWIG_IsOK(ecode2)) { | |
8079 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'"); | |
8080 | } | |
8081 | arg2 = static_cast< int >(val2); | |
8082 | } | |
8083 | if (obj2) { | |
d14a1e28 | 8084 | { |
0085ce49 RD |
8085 | arg3 = wxString_in_helper(obj2); |
8086 | if (arg3 == NULL) SWIG_fail; | |
8087 | temp3 = true; | |
d14a1e28 | 8088 | } |
0085ce49 RD |
8089 | } |
8090 | if (obj3) { | |
4f89f6a3 | 8091 | { |
0085ce49 RD |
8092 | arg4 = &temp4; |
8093 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 8094 | } |
0085ce49 RD |
8095 | } |
8096 | if (obj4) { | |
093d3ff1 | 8097 | { |
0085ce49 RD |
8098 | arg5 = &temp5; |
8099 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 8100 | } |
0085ce49 RD |
8101 | } |
8102 | if (obj5) { | |
8103 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8104 | if (!SWIG_IsOK(ecode6)) { | |
8105 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'"); | |
8106 | } | |
8107 | arg6 = static_cast< long >(val6); | |
8108 | } | |
8109 | if (obj6) { | |
d14a1e28 | 8110 | { |
0085ce49 RD |
8111 | arg7 = wxString_in_helper(obj6); |
8112 | if (arg7 == NULL) SWIG_fail; | |
8113 | temp7 = true; | |
d14a1e28 | 8114 | } |
0085ce49 RD |
8115 | } |
8116 | { | |
8117 | if (!wxPyCheckForApp()) SWIG_fail; | |
8118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8119 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8120 | wxPyEndAllowThreads(__tstate); | |
8121 | if (PyErr_Occurred()) SWIG_fail; | |
8122 | } | |
8123 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 ); | |
8124 | { | |
8125 | if (temp3) | |
8126 | delete arg3; | |
8127 | } | |
8128 | { | |
8129 | if (temp7) | |
8130 | delete arg7; | |
8131 | } | |
8132 | return resultobj; | |
8133 | fail: | |
8134 | { | |
8135 | if (temp3) | |
8136 | delete arg3; | |
8137 | } | |
8138 | { | |
8139 | if (temp7) | |
8140 | delete arg7; | |
8141 | } | |
8142 | return NULL; | |
d14a1e28 RD |
8143 | } |
8144 | ||
8145 | ||
0085ce49 RD |
8146 | SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8147 | PyObject *resultobj = 0; | |
8148 | wxStaticText *result = 0 ; | |
8149 | ||
8150 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail; | |
8151 | { | |
8152 | if (!wxPyCheckForApp()) SWIG_fail; | |
8153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8154 | result = (wxStaticText *)new wxStaticText(); | |
8155 | wxPyEndAllowThreads(__tstate); | |
8156 | if (PyErr_Occurred()) SWIG_fail; | |
8157 | } | |
8158 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 ); | |
8159 | return resultobj; | |
8160 | fail: | |
8161 | return NULL; | |
8162 | } | |
8163 | ||
8164 | ||
8165 | SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8166 | PyObject *resultobj = 0; | |
8167 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
8168 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8169 | int arg3 = (int) -1 ; | |
8170 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8171 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8172 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8173 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8174 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8175 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8176 | long arg7 = (long) 0 ; | |
8177 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
8178 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8179 | bool result; | |
8180 | void *argp1 = 0 ; | |
8181 | int res1 = 0 ; | |
8182 | void *argp2 = 0 ; | |
8183 | int res2 = 0 ; | |
8184 | int val3 ; | |
8185 | int ecode3 = 0 ; | |
8186 | bool temp4 = false ; | |
8187 | wxPoint temp5 ; | |
8188 | wxSize temp6 ; | |
8189 | long val7 ; | |
8190 | int ecode7 = 0 ; | |
8191 | bool temp8 = false ; | |
8192 | PyObject * obj0 = 0 ; | |
8193 | PyObject * obj1 = 0 ; | |
8194 | PyObject * obj2 = 0 ; | |
8195 | PyObject * obj3 = 0 ; | |
8196 | PyObject * obj4 = 0 ; | |
8197 | PyObject * obj5 = 0 ; | |
8198 | PyObject * obj6 = 0 ; | |
8199 | PyObject * obj7 = 0 ; | |
8200 | char * kwnames[] = { | |
8201 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8202 | }; | |
8203 | ||
8204 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8205 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 ); | |
8206 | if (!SWIG_IsOK(res1)) { | |
8207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'"); | |
8208 | } | |
8209 | arg1 = reinterpret_cast< wxStaticText * >(argp1); | |
8210 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8211 | if (!SWIG_IsOK(res2)) { | |
8212 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8213 | } | |
8214 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8215 | if (obj2) { | |
8216 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8217 | if (!SWIG_IsOK(ecode3)) { | |
8218 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'"); | |
8219 | } | |
8220 | arg3 = static_cast< int >(val3); | |
8221 | } | |
8222 | if (obj3) { | |
d14a1e28 | 8223 | { |
0085ce49 RD |
8224 | arg4 = wxString_in_helper(obj3); |
8225 | if (arg4 == NULL) SWIG_fail; | |
8226 | temp4 = true; | |
8227 | } | |
8228 | } | |
8229 | if (obj4) { | |
8230 | { | |
8231 | arg5 = &temp5; | |
8232 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 8233 | } |
0085ce49 RD |
8234 | } |
8235 | if (obj5) { | |
093d3ff1 | 8236 | { |
0085ce49 RD |
8237 | arg6 = &temp6; |
8238 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
093d3ff1 | 8239 | } |
0085ce49 RD |
8240 | } |
8241 | if (obj6) { | |
8242 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8243 | if (!SWIG_IsOK(ecode7)) { | |
8244 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'"); | |
8245 | } | |
8246 | arg7 = static_cast< long >(val7); | |
8247 | } | |
8248 | if (obj7) { | |
093d3ff1 | 8249 | { |
0085ce49 RD |
8250 | arg8 = wxString_in_helper(obj7); |
8251 | if (arg8 == NULL) SWIG_fail; | |
8252 | temp8 = true; | |
8253 | } | |
8254 | } | |
8255 | { | |
8256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8257 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8258 | wxPyEndAllowThreads(__tstate); | |
8259 | if (PyErr_Occurred()) SWIG_fail; | |
8260 | } | |
8261 | { | |
8262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8263 | } | |
8264 | { | |
8265 | if (temp4) | |
8266 | delete arg4; | |
8267 | } | |
8268 | { | |
8269 | if (temp8) | |
8270 | delete arg8; | |
8271 | } | |
8272 | return resultobj; | |
8273 | fail: | |
8274 | { | |
8275 | if (temp4) | |
8276 | delete arg4; | |
8277 | } | |
8278 | { | |
8279 | if (temp8) | |
8280 | delete arg8; | |
8281 | } | |
8282 | return NULL; | |
8283 | } | |
8284 | ||
8285 | ||
8286 | SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8287 | PyObject *resultobj = 0; | |
8288 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
8289 | int arg2 ; | |
8290 | void *argp1 = 0 ; | |
8291 | int res1 = 0 ; | |
8292 | int val2 ; | |
8293 | int ecode2 = 0 ; | |
8294 | PyObject * obj0 = 0 ; | |
8295 | PyObject * obj1 = 0 ; | |
8296 | char * kwnames[] = { | |
8297 | (char *) "self",(char *) "width", NULL | |
8298 | }; | |
8299 | ||
8300 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8301 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 ); | |
8302 | if (!SWIG_IsOK(res1)) { | |
8303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'"); | |
8304 | } | |
8305 | arg1 = reinterpret_cast< wxStaticText * >(argp1); | |
8306 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8307 | if (!SWIG_IsOK(ecode2)) { | |
8308 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'"); | |
8309 | } | |
8310 | arg2 = static_cast< int >(val2); | |
8311 | { | |
8312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8313 | (arg1)->Wrap(arg2); | |
8314 | wxPyEndAllowThreads(__tstate); | |
8315 | if (PyErr_Occurred()) SWIG_fail; | |
8316 | } | |
8317 | resultobj = SWIG_Py_Void(); | |
8318 | return resultobj; | |
8319 | fail: | |
8320 | return NULL; | |
8321 | } | |
8322 | ||
8323 | ||
8324 | SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8325 | PyObject *resultobj = 0; | |
8326 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8327 | SwigValueWrapper<wxVisualAttributes > result; | |
8328 | int val1 ; | |
8329 | int ecode1 = 0 ; | |
8330 | PyObject * obj0 = 0 ; | |
8331 | char * kwnames[] = { | |
8332 | (char *) "variant", NULL | |
8333 | }; | |
8334 | ||
8335 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8336 | if (obj0) { | |
8337 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8338 | if (!SWIG_IsOK(ecode1)) { | |
8339 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8340 | } | |
8341 | arg1 = static_cast< wxWindowVariant >(val1); | |
8342 | } | |
8343 | { | |
8344 | if (!wxPyCheckForApp()) SWIG_fail; | |
8345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8346 | result = wxStaticText::GetClassDefaultAttributes(arg1); | |
8347 | wxPyEndAllowThreads(__tstate); | |
8348 | if (PyErr_Occurred()) SWIG_fail; | |
8349 | } | |
8350 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8351 | return resultobj; | |
8352 | fail: | |
8353 | return NULL; | |
8354 | } | |
8355 | ||
8356 | ||
8357 | SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8358 | PyObject *obj; | |
8359 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8360 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj)); | |
8361 | return SWIG_Py_Void(); | |
8362 | } | |
8363 | ||
8364 | SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8365 | return SWIG_Python_InitShadowInstance(args); | |
8366 | } | |
8367 | ||
8368 | SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8369 | PyObject *resultobj = 0; | |
8370 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8371 | int arg2 = (int) -1 ; | |
8372 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
8373 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
8374 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8375 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8376 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8377 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8378 | long arg6 = (long) 0 ; | |
8379 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
8380 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8381 | wxStaticBitmap *result = 0 ; | |
8382 | void *argp1 = 0 ; | |
8383 | int res1 = 0 ; | |
8384 | int val2 ; | |
8385 | int ecode2 = 0 ; | |
8386 | void *argp3 = 0 ; | |
8387 | int res3 = 0 ; | |
8388 | wxPoint temp4 ; | |
8389 | wxSize temp5 ; | |
8390 | long val6 ; | |
8391 | int ecode6 = 0 ; | |
8392 | bool temp7 = false ; | |
8393 | PyObject * obj0 = 0 ; | |
8394 | PyObject * obj1 = 0 ; | |
8395 | PyObject * obj2 = 0 ; | |
8396 | PyObject * obj3 = 0 ; | |
8397 | PyObject * obj4 = 0 ; | |
8398 | PyObject * obj5 = 0 ; | |
8399 | PyObject * obj6 = 0 ; | |
8400 | char * kwnames[] = { | |
8401 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8402 | }; | |
8403 | ||
8404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
8405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8406 | if (!SWIG_IsOK(res1)) { | |
8407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8408 | } | |
8409 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8410 | if (obj1) { | |
8411 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8412 | if (!SWIG_IsOK(ecode2)) { | |
8413 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'"); | |
8414 | } | |
8415 | arg2 = static_cast< int >(val2); | |
8416 | } | |
8417 | if (obj2) { | |
8418 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8419 | if (!SWIG_IsOK(res3)) { | |
8420 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
8421 | } | |
8422 | if (!argp3) { | |
8423 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 8424 | } |
0085ce49 RD |
8425 | arg3 = reinterpret_cast< wxBitmap * >(argp3); |
8426 | } | |
8427 | if (obj3) { | |
d14a1e28 | 8428 | { |
0085ce49 RD |
8429 | arg4 = &temp4; |
8430 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 8431 | } |
0085ce49 RD |
8432 | } |
8433 | if (obj4) { | |
d14a1e28 | 8434 | { |
0085ce49 RD |
8435 | arg5 = &temp5; |
8436 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 8437 | } |
0085ce49 RD |
8438 | } |
8439 | if (obj5) { | |
8440 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8441 | if (!SWIG_IsOK(ecode6)) { | |
8442 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'"); | |
8443 | } | |
8444 | arg6 = static_cast< long >(val6); | |
8445 | } | |
8446 | if (obj6) { | |
093d3ff1 | 8447 | { |
0085ce49 RD |
8448 | arg7 = wxString_in_helper(obj6); |
8449 | if (arg7 == NULL) SWIG_fail; | |
8450 | temp7 = true; | |
093d3ff1 | 8451 | } |
0085ce49 RD |
8452 | } |
8453 | { | |
8454 | if (!wxPyCheckForApp()) SWIG_fail; | |
8455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8456 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8457 | wxPyEndAllowThreads(__tstate); | |
8458 | if (PyErr_Occurred()) SWIG_fail; | |
8459 | } | |
8460 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 ); | |
8461 | { | |
8462 | if (temp7) | |
8463 | delete arg7; | |
8464 | } | |
8465 | return resultobj; | |
8466 | fail: | |
8467 | { | |
8468 | if (temp7) | |
8469 | delete arg7; | |
8470 | } | |
8471 | return NULL; | |
d14a1e28 RD |
8472 | } |
8473 | ||
8474 | ||
0085ce49 RD |
8475 | SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8476 | PyObject *resultobj = 0; | |
8477 | wxStaticBitmap *result = 0 ; | |
8478 | ||
8479 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail; | |
8480 | { | |
8481 | if (!wxPyCheckForApp()) SWIG_fail; | |
8482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8483 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
8484 | wxPyEndAllowThreads(__tstate); | |
8485 | if (PyErr_Occurred()) SWIG_fail; | |
8486 | } | |
8487 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 ); | |
8488 | return resultobj; | |
8489 | fail: | |
8490 | return NULL; | |
8491 | } | |
8492 | ||
8493 | ||
8494 | SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8495 | PyObject *resultobj = 0; | |
8496 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8497 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8498 | int arg3 = (int) -1 ; | |
8499 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
8500 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
8501 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8502 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8503 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8504 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8505 | long arg7 = (long) 0 ; | |
8506 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
8507 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8508 | bool result; | |
8509 | void *argp1 = 0 ; | |
8510 | int res1 = 0 ; | |
8511 | void *argp2 = 0 ; | |
8512 | int res2 = 0 ; | |
8513 | int val3 ; | |
8514 | int ecode3 = 0 ; | |
8515 | void *argp4 = 0 ; | |
8516 | int res4 = 0 ; | |
8517 | wxPoint temp5 ; | |
8518 | wxSize temp6 ; | |
8519 | long val7 ; | |
8520 | int ecode7 = 0 ; | |
8521 | bool temp8 = false ; | |
8522 | PyObject * obj0 = 0 ; | |
8523 | PyObject * obj1 = 0 ; | |
8524 | PyObject * obj2 = 0 ; | |
8525 | PyObject * obj3 = 0 ; | |
8526 | PyObject * obj4 = 0 ; | |
8527 | PyObject * obj5 = 0 ; | |
8528 | PyObject * obj6 = 0 ; | |
8529 | PyObject * obj7 = 0 ; | |
8530 | char * kwnames[] = { | |
8531 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8532 | }; | |
8533 | ||
8534 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8535 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8536 | if (!SWIG_IsOK(res1)) { | |
8537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8538 | } | |
8539 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8540 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8541 | if (!SWIG_IsOK(res2)) { | |
8542 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8543 | } | |
8544 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8545 | if (obj2) { | |
8546 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8547 | if (!SWIG_IsOK(ecode3)) { | |
8548 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'"); | |
8549 | } | |
8550 | arg3 = static_cast< int >(val3); | |
8551 | } | |
8552 | if (obj3) { | |
8553 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8554 | if (!SWIG_IsOK(res4)) { | |
8555 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
8556 | } | |
8557 | if (!argp4) { | |
8558 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
22bfe96c | 8559 | } |
0085ce49 RD |
8560 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
8561 | } | |
8562 | if (obj4) { | |
22bfe96c | 8563 | { |
0085ce49 RD |
8564 | arg5 = &temp5; |
8565 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
22bfe96c | 8566 | } |
0085ce49 RD |
8567 | } |
8568 | if (obj5) { | |
22bfe96c | 8569 | { |
0085ce49 RD |
8570 | arg6 = &temp6; |
8571 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
22bfe96c | 8572 | } |
0085ce49 RD |
8573 | } |
8574 | if (obj6) { | |
8575 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8576 | if (!SWIG_IsOK(ecode7)) { | |
8577 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'"); | |
8578 | } | |
8579 | arg7 = static_cast< long >(val7); | |
8580 | } | |
8581 | if (obj7) { | |
b2dc1044 | 8582 | { |
0085ce49 RD |
8583 | arg8 = wxString_in_helper(obj7); |
8584 | if (arg8 == NULL) SWIG_fail; | |
8585 | temp8 = true; | |
b2dc1044 | 8586 | } |
0085ce49 RD |
8587 | } |
8588 | { | |
8589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8590 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8591 | wxPyEndAllowThreads(__tstate); | |
8592 | if (PyErr_Occurred()) SWIG_fail; | |
8593 | } | |
8594 | { | |
8595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8596 | } | |
8597 | { | |
8598 | if (temp8) | |
8599 | delete arg8; | |
8600 | } | |
8601 | return resultobj; | |
8602 | fail: | |
8603 | { | |
8604 | if (temp8) | |
8605 | delete arg8; | |
8606 | } | |
8607 | return NULL; | |
b2dc1044 RD |
8608 | } |
8609 | ||
8610 | ||
0085ce49 RD |
8611 | SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8612 | PyObject *resultobj = 0; | |
8613 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8614 | wxBitmap result; | |
8615 | void *argp1 = 0 ; | |
8616 | int res1 = 0 ; | |
8617 | PyObject *swig_obj[1] ; | |
8618 | ||
8619 | if (!args) SWIG_fail; | |
8620 | swig_obj[0] = args; | |
8621 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8622 | if (!SWIG_IsOK(res1)) { | |
8623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8624 | } | |
8625 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8626 | { | |
8627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8628 | result = (arg1)->GetBitmap(); | |
8629 | wxPyEndAllowThreads(__tstate); | |
8630 | if (PyErr_Occurred()) SWIG_fail; | |
8631 | } | |
8632 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
8633 | return resultobj; | |
8634 | fail: | |
8635 | return NULL; | |
8636 | } | |
8637 | ||
8638 | ||
8639 | SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8640 | PyObject *resultobj = 0; | |
8641 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8642 | wxBitmap *arg2 = 0 ; | |
8643 | void *argp1 = 0 ; | |
8644 | int res1 = 0 ; | |
8645 | void *argp2 = 0 ; | |
8646 | int res2 = 0 ; | |
8647 | PyObject * obj0 = 0 ; | |
8648 | PyObject * obj1 = 0 ; | |
8649 | char * kwnames[] = { | |
8650 | (char *) "self",(char *) "bitmap", NULL | |
8651 | }; | |
8652 | ||
8653 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8654 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8655 | if (!SWIG_IsOK(res1)) { | |
8656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8657 | } | |
8658 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8659 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8660 | if (!SWIG_IsOK(res2)) { | |
8661 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8662 | } | |
8663 | if (!argp2) { | |
8664 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8665 | } | |
8666 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8667 | { | |
8668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8669 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
8670 | wxPyEndAllowThreads(__tstate); | |
8671 | if (PyErr_Occurred()) SWIG_fail; | |
8672 | } | |
8673 | resultobj = SWIG_Py_Void(); | |
8674 | return resultobj; | |
8675 | fail: | |
8676 | return NULL; | |
8677 | } | |
8678 | ||
8679 | ||
8680 | SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8681 | PyObject *resultobj = 0; | |
8682 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8683 | wxIcon *arg2 = 0 ; | |
8684 | void *argp1 = 0 ; | |
8685 | int res1 = 0 ; | |
8686 | void *argp2 = 0 ; | |
8687 | int res2 = 0 ; | |
8688 | PyObject * obj0 = 0 ; | |
8689 | PyObject * obj1 = 0 ; | |
8690 | char * kwnames[] = { | |
8691 | (char *) "self",(char *) "icon", NULL | |
8692 | }; | |
8693 | ||
8694 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
8695 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8696 | if (!SWIG_IsOK(res1)) { | |
8697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8698 | } | |
8699 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8700 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
8701 | if (!SWIG_IsOK(res2)) { | |
8702 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
8703 | } | |
8704 | if (!argp2) { | |
8705 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
8706 | } | |
8707 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
8708 | { | |
8709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8710 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
8711 | wxPyEndAllowThreads(__tstate); | |
8712 | if (PyErr_Occurred()) SWIG_fail; | |
8713 | } | |
8714 | resultobj = SWIG_Py_Void(); | |
8715 | return resultobj; | |
8716 | fail: | |
8717 | return NULL; | |
8718 | } | |
8719 | ||
8720 | ||
8721 | SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8722 | PyObject *resultobj = 0; | |
8723 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8724 | SwigValueWrapper<wxVisualAttributes > result; | |
8725 | int val1 ; | |
8726 | int ecode1 = 0 ; | |
8727 | PyObject * obj0 = 0 ; | |
8728 | char * kwnames[] = { | |
8729 | (char *) "variant", NULL | |
8730 | }; | |
8731 | ||
8732 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8733 | if (obj0) { | |
8734 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8735 | if (!SWIG_IsOK(ecode1)) { | |
8736 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8737 | } | |
8738 | arg1 = static_cast< wxWindowVariant >(val1); | |
8739 | } | |
8740 | { | |
8741 | if (!wxPyCheckForApp()) SWIG_fail; | |
8742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8743 | result = wxStaticBitmap::GetClassDefaultAttributes(arg1); | |
8744 | wxPyEndAllowThreads(__tstate); | |
8745 | if (PyErr_Occurred()) SWIG_fail; | |
8746 | } | |
8747 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8748 | return resultobj; | |
8749 | fail: | |
8750 | return NULL; | |
b2dc1044 RD |
8751 | } |
8752 | ||
8753 | ||
0085ce49 RD |
8754 | SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8755 | PyObject *obj; | |
8756 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8757 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj)); | |
8758 | return SWIG_Py_Void(); | |
b2dc1044 RD |
8759 | } |
8760 | ||
0085ce49 RD |
8761 | SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8762 | return SWIG_Python_InitShadowInstance(args); | |
8763 | } | |
b2dc1044 | 8764 | |
0085ce49 RD |
8765 | SWIGINTERN int ListBoxNameStr_set(PyObject *) { |
8766 | SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only."); | |
8767 | return 1; | |
b2dc1044 RD |
8768 | } |
8769 | ||
8770 | ||
0085ce49 RD |
8771 | SWIGINTERN PyObject *ListBoxNameStr_get(void) { |
8772 | PyObject *pyobj = 0; | |
8773 | ||
8774 | { | |
b2dc1044 | 8775 | #if wxUSE_UNICODE |
0085ce49 | 8776 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); |
b2dc1044 | 8777 | #else |
0085ce49 | 8778 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); |
b2dc1044 | 8779 | #endif |
0085ce49 RD |
8780 | } |
8781 | return pyobj; | |
8782 | } | |
8783 | ||
8784 | ||
8785 | SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8786 | PyObject *resultobj = 0; | |
8787 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8788 | int arg2 = (int) -1 ; | |
8789 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8790 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8791 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8792 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8793 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
8794 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
8795 | long arg6 = (long) 0 ; | |
8796 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8797 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8798 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
8799 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8800 | wxListBox *result = 0 ; | |
8801 | void *argp1 = 0 ; | |
8802 | int res1 = 0 ; | |
8803 | int val2 ; | |
8804 | int ecode2 = 0 ; | |
8805 | wxPoint temp3 ; | |
8806 | wxSize temp4 ; | |
8807 | bool temp5 = false ; | |
8808 | long val6 ; | |
8809 | int ecode6 = 0 ; | |
8810 | void *argp7 = 0 ; | |
8811 | int res7 = 0 ; | |
8812 | bool temp8 = false ; | |
8813 | PyObject * obj0 = 0 ; | |
8814 | PyObject * obj1 = 0 ; | |
8815 | PyObject * obj2 = 0 ; | |
8816 | PyObject * obj3 = 0 ; | |
8817 | PyObject * obj4 = 0 ; | |
8818 | PyObject * obj5 = 0 ; | |
8819 | PyObject * obj6 = 0 ; | |
8820 | PyObject * obj7 = 0 ; | |
8821 | char * kwnames[] = { | |
8822 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8823 | }; | |
8824 | ||
8825 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8826 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8827 | if (!SWIG_IsOK(res1)) { | |
8828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8829 | } | |
8830 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8831 | if (obj1) { | |
8832 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8833 | if (!SWIG_IsOK(ecode2)) { | |
8834 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'"); | |
8835 | } | |
8836 | arg2 = static_cast< int >(val2); | |
8837 | } | |
8838 | if (obj2) { | |
d14a1e28 | 8839 | { |
0085ce49 RD |
8840 | arg3 = &temp3; |
8841 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 8842 | } |
0085ce49 RD |
8843 | } |
8844 | if (obj3) { | |
d14a1e28 | 8845 | { |
0085ce49 RD |
8846 | arg4 = &temp4; |
8847 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 8848 | } |
0085ce49 RD |
8849 | } |
8850 | if (obj4) { | |
d14a1e28 | 8851 | { |
0085ce49 RD |
8852 | if (! PySequence_Check(obj4)) { |
8853 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8854 | SWIG_fail; | |
8855 | } | |
8856 | arg5 = new wxArrayString; | |
8857 | temp5 = true; | |
8858 | int i, len=PySequence_Length(obj4); | |
8859 | for (i=0; i<len; i++) { | |
8860 | PyObject* item = PySequence_GetItem(obj4, i); | |
8861 | wxString* s = wxString_in_helper(item); | |
8862 | if (PyErr_Occurred()) SWIG_fail; | |
8863 | arg5->Add(*s); | |
8864 | delete s; | |
8865 | Py_DECREF(item); | |
8866 | } | |
d14a1e28 | 8867 | } |
0085ce49 RD |
8868 | } |
8869 | if (obj5) { | |
8870 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8871 | if (!SWIG_IsOK(ecode6)) { | |
8872 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'"); | |
8873 | } | |
8874 | arg6 = static_cast< long >(val6); | |
8875 | } | |
8876 | if (obj6) { | |
8877 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
8878 | if (!SWIG_IsOK(res7)) { | |
8879 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 8880 | } |
0085ce49 RD |
8881 | if (!argp7) { |
8882 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 8883 | } |
0085ce49 RD |
8884 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
8885 | } | |
8886 | if (obj7) { | |
d14a1e28 | 8887 | { |
0085ce49 RD |
8888 | arg8 = wxString_in_helper(obj7); |
8889 | if (arg8 == NULL) SWIG_fail; | |
8890 | temp8 = true; | |
d14a1e28 | 8891 | } |
0085ce49 RD |
8892 | } |
8893 | { | |
8894 | if (!wxPyCheckForApp()) SWIG_fail; | |
8895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8896 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8897 | wxPyEndAllowThreads(__tstate); | |
8898 | if (PyErr_Occurred()) SWIG_fail; | |
8899 | } | |
8900 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 ); | |
8901 | { | |
8902 | if (temp5) delete arg5; | |
8903 | } | |
8904 | { | |
8905 | if (temp8) | |
8906 | delete arg8; | |
8907 | } | |
8908 | return resultobj; | |
8909 | fail: | |
8910 | { | |
8911 | if (temp5) delete arg5; | |
8912 | } | |
8913 | { | |
8914 | if (temp8) | |
8915 | delete arg8; | |
8916 | } | |
8917 | return NULL; | |
d14a1e28 RD |
8918 | } |
8919 | ||
8920 | ||
0085ce49 RD |
8921 | SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8922 | PyObject *resultobj = 0; | |
8923 | wxListBox *result = 0 ; | |
8924 | ||
8925 | if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail; | |
8926 | { | |
8927 | if (!wxPyCheckForApp()) SWIG_fail; | |
8928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8929 | result = (wxListBox *)new wxListBox(); | |
8930 | wxPyEndAllowThreads(__tstate); | |
8931 | if (PyErr_Occurred()) SWIG_fail; | |
8932 | } | |
8933 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 ); | |
8934 | return resultobj; | |
8935 | fail: | |
8936 | return NULL; | |
8937 | } | |
8938 | ||
8939 | ||
8940 | SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8941 | PyObject *resultobj = 0; | |
8942 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8943 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8944 | int arg3 = (int) -1 ; | |
8945 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8946 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8947 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8948 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8949 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
8950 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
8951 | long arg7 = (long) 0 ; | |
8952 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8953 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8954 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
8955 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8956 | bool result; | |
8957 | void *argp1 = 0 ; | |
8958 | int res1 = 0 ; | |
8959 | void *argp2 = 0 ; | |
8960 | int res2 = 0 ; | |
8961 | int val3 ; | |
8962 | int ecode3 = 0 ; | |
8963 | wxPoint temp4 ; | |
8964 | wxSize temp5 ; | |
8965 | bool temp6 = false ; | |
8966 | long val7 ; | |
8967 | int ecode7 = 0 ; | |
8968 | void *argp8 = 0 ; | |
8969 | int res8 = 0 ; | |
8970 | bool temp9 = false ; | |
8971 | PyObject * obj0 = 0 ; | |
8972 | PyObject * obj1 = 0 ; | |
8973 | PyObject * obj2 = 0 ; | |
8974 | PyObject * obj3 = 0 ; | |
8975 | PyObject * obj4 = 0 ; | |
8976 | PyObject * obj5 = 0 ; | |
8977 | PyObject * obj6 = 0 ; | |
8978 | PyObject * obj7 = 0 ; | |
8979 | PyObject * obj8 = 0 ; | |
8980 | char * kwnames[] = { | |
8981 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8982 | }; | |
8983 | ||
8984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
8985 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
8986 | if (!SWIG_IsOK(res1)) { | |
8987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
8988 | } | |
8989 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
8990 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8991 | if (!SWIG_IsOK(res2)) { | |
8992 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8993 | } | |
8994 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8995 | if (obj2) { | |
8996 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8997 | if (!SWIG_IsOK(ecode3)) { | |
8998 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
8999 | } | |
9000 | arg3 = static_cast< int >(val3); | |
9001 | } | |
9002 | if (obj3) { | |
d14a1e28 | 9003 | { |
0085ce49 RD |
9004 | arg4 = &temp4; |
9005 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 9006 | } |
0085ce49 RD |
9007 | } |
9008 | if (obj4) { | |
d14a1e28 | 9009 | { |
0085ce49 RD |
9010 | arg5 = &temp5; |
9011 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 9012 | } |
0085ce49 RD |
9013 | } |
9014 | if (obj5) { | |
d14a1e28 | 9015 | { |
0085ce49 RD |
9016 | if (! PySequence_Check(obj5)) { |
9017 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9018 | SWIG_fail; | |
9019 | } | |
9020 | arg6 = new wxArrayString; | |
9021 | temp6 = true; | |
9022 | int i, len=PySequence_Length(obj5); | |
9023 | for (i=0; i<len; i++) { | |
9024 | PyObject* item = PySequence_GetItem(obj5, i); | |
9025 | wxString* s = wxString_in_helper(item); | |
9026 | if (PyErr_Occurred()) SWIG_fail; | |
9027 | arg6->Add(*s); | |
9028 | delete s; | |
9029 | Py_DECREF(item); | |
9030 | } | |
d14a1e28 | 9031 | } |
0085ce49 RD |
9032 | } |
9033 | if (obj6) { | |
9034 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
9035 | if (!SWIG_IsOK(ecode7)) { | |
9036 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
9037 | } | |
9038 | arg7 = static_cast< long >(val7); | |
9039 | } | |
9040 | if (obj7) { | |
9041 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
9042 | if (!SWIG_IsOK(res8)) { | |
9043 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 9044 | } |
0085ce49 RD |
9045 | if (!argp8) { |
9046 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
22bfe96c | 9047 | } |
0085ce49 RD |
9048 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
9049 | } | |
9050 | if (obj8) { | |
22bfe96c | 9051 | { |
0085ce49 RD |
9052 | arg9 = wxString_in_helper(obj8); |
9053 | if (arg9 == NULL) SWIG_fail; | |
9054 | temp9 = true; | |
22bfe96c | 9055 | } |
0085ce49 RD |
9056 | } |
9057 | { | |
9058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9059 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
9060 | wxPyEndAllowThreads(__tstate); | |
9061 | if (PyErr_Occurred()) SWIG_fail; | |
9062 | } | |
9063 | { | |
9064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9065 | } | |
9066 | { | |
9067 | if (temp6) delete arg6; | |
9068 | } | |
9069 | { | |
9070 | if (temp9) | |
9071 | delete arg9; | |
9072 | } | |
9073 | return resultobj; | |
9074 | fail: | |
9075 | { | |
9076 | if (temp6) delete arg6; | |
9077 | } | |
9078 | { | |
9079 | if (temp9) | |
9080 | delete arg9; | |
9081 | } | |
9082 | return NULL; | |
9083 | } | |
9084 | ||
9085 | ||
9086 | SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9087 | PyObject *resultobj = 0; | |
9088 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9089 | wxString *arg2 = 0 ; | |
9090 | int arg3 ; | |
9091 | PyObject *arg4 = (PyObject *) NULL ; | |
9092 | void *argp1 = 0 ; | |
9093 | int res1 = 0 ; | |
9094 | bool temp2 = false ; | |
9095 | int val3 ; | |
9096 | int ecode3 = 0 ; | |
9097 | PyObject * obj0 = 0 ; | |
9098 | PyObject * obj1 = 0 ; | |
9099 | PyObject * obj2 = 0 ; | |
9100 | PyObject * obj3 = 0 ; | |
9101 | char * kwnames[] = { | |
9102 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
9103 | }; | |
9104 | ||
9105 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9106 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9107 | if (!SWIG_IsOK(res1)) { | |
9108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9109 | } | |
9110 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9111 | { | |
9112 | arg2 = wxString_in_helper(obj1); | |
9113 | if (arg2 == NULL) SWIG_fail; | |
9114 | temp2 = true; | |
9115 | } | |
9116 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9117 | if (!SWIG_IsOK(ecode3)) { | |
9118 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'"); | |
9119 | } | |
9120 | arg3 = static_cast< int >(val3); | |
9121 | if (obj3) { | |
9122 | arg4 = obj3; | |
9123 | } | |
9124 | { | |
9125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9126 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
9127 | wxPyEndAllowThreads(__tstate); | |
9128 | if (PyErr_Occurred()) SWIG_fail; | |
9129 | } | |
9130 | resultobj = SWIG_Py_Void(); | |
9131 | { | |
9132 | if (temp2) | |
9133 | delete arg2; | |
9134 | } | |
9135 | return resultobj; | |
9136 | fail: | |
9137 | { | |
9138 | if (temp2) | |
9139 | delete arg2; | |
9140 | } | |
9141 | return NULL; | |
9142 | } | |
9143 | ||
9144 | ||
9145 | SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9146 | PyObject *resultobj = 0; | |
9147 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9148 | wxArrayString *arg2 = 0 ; | |
50f151d7 | 9149 | unsigned int arg3 ; |
0085ce49 RD |
9150 | void *argp1 = 0 ; |
9151 | int res1 = 0 ; | |
9152 | bool temp2 = false ; | |
50f151d7 | 9153 | unsigned int val3 ; |
0085ce49 RD |
9154 | int ecode3 = 0 ; |
9155 | PyObject * obj0 = 0 ; | |
9156 | PyObject * obj1 = 0 ; | |
9157 | PyObject * obj2 = 0 ; | |
9158 | char * kwnames[] = { | |
9159 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
9160 | }; | |
9161 | ||
9162 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9163 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9164 | if (!SWIG_IsOK(res1)) { | |
9165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9166 | } | |
9167 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9168 | { | |
9169 | if (! PySequence_Check(obj1)) { | |
9170 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9171 | SWIG_fail; | |
9172 | } | |
9173 | arg2 = new wxArrayString; | |
9174 | temp2 = true; | |
9175 | int i, len=PySequence_Length(obj1); | |
9176 | for (i=0; i<len; i++) { | |
9177 | PyObject* item = PySequence_GetItem(obj1, i); | |
9178 | wxString* s = wxString_in_helper(item); | |
9179 | if (PyErr_Occurred()) SWIG_fail; | |
9180 | arg2->Add(*s); | |
9181 | delete s; | |
9182 | Py_DECREF(item); | |
22bfe96c | 9183 | } |
0085ce49 | 9184 | } |
50f151d7 | 9185 | ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); |
0085ce49 | 9186 | if (!SWIG_IsOK(ecode3)) { |
50f151d7 | 9187 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'"); |
0085ce49 | 9188 | } |
50f151d7 | 9189 | arg3 = static_cast< unsigned int >(val3); |
0085ce49 RD |
9190 | { |
9191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9192 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
9193 | wxPyEndAllowThreads(__tstate); | |
9194 | if (PyErr_Occurred()) SWIG_fail; | |
9195 | } | |
9196 | resultobj = SWIG_Py_Void(); | |
9197 | { | |
9198 | if (temp2) delete arg2; | |
9199 | } | |
9200 | return resultobj; | |
9201 | fail: | |
9202 | { | |
9203 | if (temp2) delete arg2; | |
9204 | } | |
9205 | return NULL; | |
22bfe96c RD |
9206 | } |
9207 | ||
9208 | ||
0085ce49 RD |
9209 | SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9210 | PyObject *resultobj = 0; | |
9211 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9212 | wxArrayString *arg2 = 0 ; | |
9213 | void *argp1 = 0 ; | |
9214 | int res1 = 0 ; | |
9215 | bool temp2 = false ; | |
9216 | PyObject * obj0 = 0 ; | |
9217 | PyObject * obj1 = 0 ; | |
9218 | char * kwnames[] = { | |
9219 | (char *) "self",(char *) "items", NULL | |
9220 | }; | |
9221 | ||
9222 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail; | |
9223 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9224 | if (!SWIG_IsOK(res1)) { | |
9225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9226 | } | |
9227 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9228 | { | |
9229 | if (! PySequence_Check(obj1)) { | |
9230 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9231 | SWIG_fail; | |
9232 | } | |
9233 | arg2 = new wxArrayString; | |
9234 | temp2 = true; | |
9235 | int i, len=PySequence_Length(obj1); | |
9236 | for (i=0; i<len; i++) { | |
9237 | PyObject* item = PySequence_GetItem(obj1, i); | |
9238 | wxString* s = wxString_in_helper(item); | |
9239 | if (PyErr_Occurred()) SWIG_fail; | |
9240 | arg2->Add(*s); | |
9241 | delete s; | |
9242 | Py_DECREF(item); | |
d14a1e28 | 9243 | } |
0085ce49 RD |
9244 | } |
9245 | { | |
9246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9247 | (arg1)->Set((wxArrayString const &)*arg2); | |
9248 | wxPyEndAllowThreads(__tstate); | |
9249 | if (PyErr_Occurred()) SWIG_fail; | |
9250 | } | |
9251 | resultobj = SWIG_Py_Void(); | |
9252 | { | |
9253 | if (temp2) delete arg2; | |
9254 | } | |
9255 | return resultobj; | |
9256 | fail: | |
9257 | { | |
9258 | if (temp2) delete arg2; | |
9259 | } | |
9260 | return NULL; | |
9261 | } | |
9262 | ||
9263 | ||
9264 | SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9265 | PyObject *resultobj = 0; | |
9266 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9267 | int arg2 ; | |
9268 | bool result; | |
9269 | void *argp1 = 0 ; | |
9270 | int res1 = 0 ; | |
9271 | int val2 ; | |
9272 | int ecode2 = 0 ; | |
9273 | PyObject * obj0 = 0 ; | |
9274 | PyObject * obj1 = 0 ; | |
9275 | char * kwnames[] = { | |
9276 | (char *) "self",(char *) "n", NULL | |
9277 | }; | |
9278 | ||
9279 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
9280 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9281 | if (!SWIG_IsOK(res1)) { | |
9282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9283 | } | |
9284 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9285 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9286 | if (!SWIG_IsOK(ecode2)) { | |
9287 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'"); | |
9288 | } | |
9289 | arg2 = static_cast< int >(val2); | |
9290 | { | |
9291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9292 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
9293 | wxPyEndAllowThreads(__tstate); | |
9294 | if (PyErr_Occurred()) SWIG_fail; | |
9295 | } | |
9296 | { | |
9297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9298 | } | |
9299 | return resultobj; | |
9300 | fail: | |
9301 | return NULL; | |
9302 | } | |
9303 | ||
9304 | ||
9305 | SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9306 | PyObject *resultobj = 0; | |
9307 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9308 | int arg2 ; | |
9309 | bool arg3 = (bool) true ; | |
9310 | void *argp1 = 0 ; | |
9311 | int res1 = 0 ; | |
9312 | int val2 ; | |
9313 | int ecode2 = 0 ; | |
9314 | bool val3 ; | |
9315 | int ecode3 = 0 ; | |
9316 | PyObject * obj0 = 0 ; | |
9317 | PyObject * obj1 = 0 ; | |
9318 | PyObject * obj2 = 0 ; | |
9319 | char * kwnames[] = { | |
9320 | (char *) "self",(char *) "n",(char *) "select", NULL | |
9321 | }; | |
9322 | ||
9323 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9324 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9325 | if (!SWIG_IsOK(res1)) { | |
9326 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9327 | } | |
9328 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9329 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9330 | if (!SWIG_IsOK(ecode2)) { | |
9331 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
9332 | } | |
9333 | arg2 = static_cast< int >(val2); | |
9334 | if (obj2) { | |
9335 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
9336 | if (!SWIG_IsOK(ecode3)) { | |
9337 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'"); | |
9338 | } | |
9339 | arg3 = static_cast< bool >(val3); | |
9340 | } | |
9341 | { | |
9342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9343 | (arg1)->SetSelection(arg2,arg3); | |
9344 | wxPyEndAllowThreads(__tstate); | |
9345 | if (PyErr_Occurred()) SWIG_fail; | |
9346 | } | |
9347 | resultobj = SWIG_Py_Void(); | |
9348 | return resultobj; | |
9349 | fail: | |
9350 | return NULL; | |
9351 | } | |
9352 | ||
9353 | ||
9354 | SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9355 | PyObject *resultobj = 0; | |
9356 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9357 | int arg2 ; | |
9358 | void *argp1 = 0 ; | |
9359 | int res1 = 0 ; | |
9360 | int val2 ; | |
9361 | int ecode2 = 0 ; | |
9362 | PyObject * obj0 = 0 ; | |
9363 | PyObject * obj1 = 0 ; | |
9364 | char * kwnames[] = { | |
9365 | (char *) "self",(char *) "n", NULL | |
9366 | }; | |
9367 | ||
9368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail; | |
9369 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9370 | if (!SWIG_IsOK(res1)) { | |
9371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9372 | } | |
9373 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9374 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9375 | if (!SWIG_IsOK(ecode2)) { | |
9376 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'"); | |
9377 | } | |
9378 | arg2 = static_cast< int >(val2); | |
9379 | { | |
9380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9381 | (arg1)->Select(arg2); | |
9382 | wxPyEndAllowThreads(__tstate); | |
9383 | if (PyErr_Occurred()) SWIG_fail; | |
9384 | } | |
9385 | resultobj = SWIG_Py_Void(); | |
9386 | return resultobj; | |
9387 | fail: | |
9388 | return NULL; | |
9389 | } | |
9390 | ||
9391 | ||
9392 | SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9393 | PyObject *resultobj = 0; | |
9394 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9395 | int arg2 ; | |
9396 | void *argp1 = 0 ; | |
9397 | int res1 = 0 ; | |
9398 | int val2 ; | |
9399 | int ecode2 = 0 ; | |
9400 | PyObject * obj0 = 0 ; | |
9401 | PyObject * obj1 = 0 ; | |
9402 | char * kwnames[] = { | |
9403 | (char *) "self",(char *) "n", NULL | |
9404 | }; | |
9405 | ||
9406 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9407 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9408 | if (!SWIG_IsOK(res1)) { | |
9409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9410 | } | |
9411 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9412 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9413 | if (!SWIG_IsOK(ecode2)) { | |
9414 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'"); | |
9415 | } | |
9416 | arg2 = static_cast< int >(val2); | |
9417 | { | |
9418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9419 | (arg1)->Deselect(arg2); | |
9420 | wxPyEndAllowThreads(__tstate); | |
9421 | if (PyErr_Occurred()) SWIG_fail; | |
9422 | } | |
9423 | resultobj = SWIG_Py_Void(); | |
9424 | return resultobj; | |
9425 | fail: | |
9426 | return NULL; | |
9427 | } | |
9428 | ||
9429 | ||
9430 | SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9431 | PyObject *resultobj = 0; | |
9432 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9433 | int arg2 = (int) -1 ; | |
9434 | void *argp1 = 0 ; | |
9435 | int res1 = 0 ; | |
9436 | int val2 ; | |
9437 | int ecode2 = 0 ; | |
9438 | PyObject * obj0 = 0 ; | |
9439 | PyObject * obj1 = 0 ; | |
9440 | char * kwnames[] = { | |
9441 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
9442 | }; | |
9443 | ||
9444 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail; | |
9445 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9446 | if (!SWIG_IsOK(res1)) { | |
9447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9448 | } | |
9449 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9450 | if (obj1) { | |
9451 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9452 | if (!SWIG_IsOK(ecode2)) { | |
9453 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'"); | |
9454 | } | |
9455 | arg2 = static_cast< int >(val2); | |
9456 | } | |
9457 | { | |
9458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9459 | (arg1)->DeselectAll(arg2); | |
9460 | wxPyEndAllowThreads(__tstate); | |
9461 | if (PyErr_Occurred()) SWIG_fail; | |
9462 | } | |
9463 | resultobj = SWIG_Py_Void(); | |
9464 | return resultobj; | |
9465 | fail: | |
9466 | return NULL; | |
9467 | } | |
9468 | ||
9469 | ||
9470 | SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9471 | PyObject *resultobj = 0; | |
9472 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9473 | wxString *arg2 = 0 ; | |
9474 | bool arg3 = (bool) true ; | |
9475 | bool result; | |
9476 | void *argp1 = 0 ; | |
9477 | int res1 = 0 ; | |
9478 | bool temp2 = false ; | |
9479 | bool val3 ; | |
9480 | int ecode3 = 0 ; | |
9481 | PyObject * obj0 = 0 ; | |
9482 | PyObject * obj1 = 0 ; | |
9483 | PyObject * obj2 = 0 ; | |
9484 | char * kwnames[] = { | |
9485 | (char *) "self",(char *) "s",(char *) "select", NULL | |
9486 | }; | |
9487 | ||
9488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9490 | if (!SWIG_IsOK(res1)) { | |
9491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9492 | } | |
9493 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9494 | { | |
9495 | arg2 = wxString_in_helper(obj1); | |
9496 | if (arg2 == NULL) SWIG_fail; | |
9497 | temp2 = true; | |
9498 | } | |
9499 | if (obj2) { | |
9500 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
9501 | if (!SWIG_IsOK(ecode3)) { | |
9502 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'"); | |
9503 | } | |
9504 | arg3 = static_cast< bool >(val3); | |
9505 | } | |
9506 | { | |
9507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9508 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
9509 | wxPyEndAllowThreads(__tstate); | |
9510 | if (PyErr_Occurred()) SWIG_fail; | |
9511 | } | |
9512 | { | |
9513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9514 | } | |
9515 | { | |
9516 | if (temp2) | |
9517 | delete arg2; | |
9518 | } | |
9519 | return resultobj; | |
9520 | fail: | |
9521 | { | |
9522 | if (temp2) | |
9523 | delete arg2; | |
9524 | } | |
9525 | return NULL; | |
d14a1e28 RD |
9526 | } |
9527 | ||
9528 | ||
0085ce49 RD |
9529 | SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9530 | PyObject *resultobj = 0; | |
9531 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9532 | PyObject *result = 0 ; | |
9533 | void *argp1 = 0 ; | |
9534 | int res1 = 0 ; | |
9535 | PyObject *swig_obj[1] ; | |
9536 | ||
9537 | if (!args) SWIG_fail; | |
9538 | swig_obj[0] = args; | |
9539 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9540 | if (!SWIG_IsOK(res1)) { | |
9541 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9542 | } | |
9543 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9544 | { | |
9545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9546 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
9547 | wxPyEndAllowThreads(__tstate); | |
9548 | if (PyErr_Occurred()) SWIG_fail; | |
9549 | } | |
9550 | resultobj = result; | |
9551 | return resultobj; | |
9552 | fail: | |
9553 | return NULL; | |
9554 | } | |
9555 | ||
9556 | ||
9557 | SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9558 | PyObject *resultobj = 0; | |
9559 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9560 | int arg2 ; | |
9561 | void *argp1 = 0 ; | |
9562 | int res1 = 0 ; | |
9563 | int val2 ; | |
9564 | int ecode2 = 0 ; | |
9565 | PyObject * obj0 = 0 ; | |
9566 | PyObject * obj1 = 0 ; | |
9567 | char * kwnames[] = { | |
9568 | (char *) "self",(char *) "n", NULL | |
9569 | }; | |
9570 | ||
9571 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
9572 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9573 | if (!SWIG_IsOK(res1)) { | |
9574 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9575 | } | |
9576 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9577 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9578 | if (!SWIG_IsOK(ecode2)) { | |
9579 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'"); | |
9580 | } | |
9581 | arg2 = static_cast< int >(val2); | |
9582 | { | |
9583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9584 | (arg1)->SetFirstItem(arg2); | |
9585 | wxPyEndAllowThreads(__tstate); | |
9586 | if (PyErr_Occurred()) SWIG_fail; | |
9587 | } | |
9588 | resultobj = SWIG_Py_Void(); | |
9589 | return resultobj; | |
9590 | fail: | |
9591 | return NULL; | |
9592 | } | |
9593 | ||
9594 | ||
9595 | SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9596 | PyObject *resultobj = 0; | |
9597 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9598 | wxString *arg2 = 0 ; | |
9599 | void *argp1 = 0 ; | |
9600 | int res1 = 0 ; | |
9601 | bool temp2 = false ; | |
9602 | PyObject * obj0 = 0 ; | |
9603 | PyObject * obj1 = 0 ; | |
9604 | char * kwnames[] = { | |
9605 | (char *) "self",(char *) "s", NULL | |
9606 | }; | |
9607 | ||
9608 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail; | |
9609 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9610 | if (!SWIG_IsOK(res1)) { | |
9611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9612 | } | |
9613 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9614 | { | |
9615 | arg2 = wxString_in_helper(obj1); | |
9616 | if (arg2 == NULL) SWIG_fail; | |
9617 | temp2 = true; | |
9618 | } | |
9619 | { | |
9620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9621 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
9622 | wxPyEndAllowThreads(__tstate); | |
9623 | if (PyErr_Occurred()) SWIG_fail; | |
9624 | } | |
9625 | resultobj = SWIG_Py_Void(); | |
9626 | { | |
9627 | if (temp2) | |
9628 | delete arg2; | |
9629 | } | |
9630 | return resultobj; | |
9631 | fail: | |
9632 | { | |
9633 | if (temp2) | |
9634 | delete arg2; | |
9635 | } | |
9636 | return NULL; | |
9637 | } | |
9638 | ||
9639 | ||
9640 | SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9641 | PyObject *resultobj = 0; | |
9642 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9643 | int arg2 ; | |
9644 | void *argp1 = 0 ; | |
9645 | int res1 = 0 ; | |
9646 | int val2 ; | |
9647 | int ecode2 = 0 ; | |
9648 | PyObject * obj0 = 0 ; | |
9649 | PyObject * obj1 = 0 ; | |
9650 | char * kwnames[] = { | |
9651 | (char *) "self",(char *) "n", NULL | |
9652 | }; | |
9653 | ||
9654 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
9655 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9656 | if (!SWIG_IsOK(res1)) { | |
9657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9658 | } | |
9659 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9660 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9661 | if (!SWIG_IsOK(ecode2)) { | |
9662 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'"); | |
9663 | } | |
9664 | arg2 = static_cast< int >(val2); | |
9665 | { | |
9666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9667 | (arg1)->EnsureVisible(arg2); | |
9668 | wxPyEndAllowThreads(__tstate); | |
9669 | if (PyErr_Occurred()) SWIG_fail; | |
9670 | } | |
9671 | resultobj = SWIG_Py_Void(); | |
9672 | return resultobj; | |
9673 | fail: | |
9674 | return NULL; | |
9675 | } | |
9676 | ||
9677 | ||
9678 | SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9679 | PyObject *resultobj = 0; | |
9680 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9681 | wxString *arg2 = 0 ; | |
9682 | void *argp1 = 0 ; | |
9683 | int res1 = 0 ; | |
9684 | bool temp2 = false ; | |
9685 | PyObject * obj0 = 0 ; | |
9686 | PyObject * obj1 = 0 ; | |
9687 | char * kwnames[] = { | |
9688 | (char *) "self",(char *) "s", NULL | |
9689 | }; | |
9690 | ||
9691 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
9692 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9693 | if (!SWIG_IsOK(res1)) { | |
9694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9695 | } | |
9696 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9697 | { | |
9698 | arg2 = wxString_in_helper(obj1); | |
9699 | if (arg2 == NULL) SWIG_fail; | |
9700 | temp2 = true; | |
9701 | } | |
9702 | { | |
9703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9704 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
9705 | wxPyEndAllowThreads(__tstate); | |
9706 | if (PyErr_Occurred()) SWIG_fail; | |
9707 | } | |
9708 | resultobj = SWIG_Py_Void(); | |
9709 | { | |
9710 | if (temp2) | |
9711 | delete arg2; | |
9712 | } | |
9713 | return resultobj; | |
9714 | fail: | |
9715 | { | |
9716 | if (temp2) | |
9717 | delete arg2; | |
9718 | } | |
9719 | return NULL; | |
d14a1e28 RD |
9720 | } |
9721 | ||
9722 | ||
0085ce49 RD |
9723 | SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9724 | PyObject *resultobj = 0; | |
9725 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9726 | bool result; | |
9727 | void *argp1 = 0 ; | |
9728 | int res1 = 0 ; | |
9729 | PyObject *swig_obj[1] ; | |
9730 | ||
9731 | if (!args) SWIG_fail; | |
9732 | swig_obj[0] = args; | |
9733 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9734 | if (!SWIG_IsOK(res1)) { | |
9735 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9736 | } | |
9737 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9738 | { | |
9739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9740 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
9741 | wxPyEndAllowThreads(__tstate); | |
9742 | if (PyErr_Occurred()) SWIG_fail; | |
9743 | } | |
9744 | { | |
9745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9746 | } | |
9747 | return resultobj; | |
9748 | fail: | |
9749 | return NULL; | |
9750 | } | |
9751 | ||
9752 | ||
9753 | SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9754 | PyObject *resultobj = 0; | |
9755 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9756 | wxPoint *arg2 = 0 ; | |
9757 | int result; | |
9758 | void *argp1 = 0 ; | |
9759 | int res1 = 0 ; | |
9760 | wxPoint temp2 ; | |
9761 | PyObject * obj0 = 0 ; | |
9762 | PyObject * obj1 = 0 ; | |
9763 | char * kwnames[] = { | |
9764 | (char *) "self",(char *) "pt", NULL | |
9765 | }; | |
9766 | ||
9767 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
9768 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9769 | if (!SWIG_IsOK(res1)) { | |
9770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9771 | } | |
9772 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9773 | { | |
9774 | arg2 = &temp2; | |
9775 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9776 | } | |
9777 | { | |
9778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9779 | result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
9780 | wxPyEndAllowThreads(__tstate); | |
9781 | if (PyErr_Occurred()) SWIG_fail; | |
9782 | } | |
9783 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9784 | return resultobj; | |
9785 | fail: | |
9786 | return NULL; | |
9787 | } | |
9788 | ||
9789 | ||
9790 | SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9791 | PyObject *resultobj = 0; | |
9792 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9793 | int arg2 ; | |
9794 | wxColour *arg3 = 0 ; | |
9795 | void *argp1 = 0 ; | |
9796 | int res1 = 0 ; | |
9797 | int val2 ; | |
9798 | int ecode2 = 0 ; | |
9799 | wxColour temp3 ; | |
9800 | PyObject * obj0 = 0 ; | |
9801 | PyObject * obj1 = 0 ; | |
9802 | PyObject * obj2 = 0 ; | |
9803 | char * kwnames[] = { | |
9804 | (char *) "self",(char *) "item",(char *) "c", NULL | |
9805 | }; | |
9806 | ||
9807 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9808 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9809 | if (!SWIG_IsOK(res1)) { | |
9810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9811 | } | |
9812 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9813 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9814 | if (!SWIG_IsOK(ecode2)) { | |
9815 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'"); | |
9816 | } | |
9817 | arg2 = static_cast< int >(val2); | |
9818 | { | |
9819 | arg3 = &temp3; | |
9820 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9821 | } | |
9822 | { | |
9823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9824 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
9825 | wxPyEndAllowThreads(__tstate); | |
9826 | if (PyErr_Occurred()) SWIG_fail; | |
9827 | } | |
9828 | resultobj = SWIG_Py_Void(); | |
9829 | return resultobj; | |
9830 | fail: | |
9831 | return NULL; | |
9832 | } | |
9833 | ||
9834 | ||
9835 | SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9836 | PyObject *resultobj = 0; | |
9837 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9838 | int arg2 ; | |
9839 | wxColour *arg3 = 0 ; | |
9840 | void *argp1 = 0 ; | |
9841 | int res1 = 0 ; | |
9842 | int val2 ; | |
9843 | int ecode2 = 0 ; | |
9844 | wxColour temp3 ; | |
9845 | PyObject * obj0 = 0 ; | |
9846 | PyObject * obj1 = 0 ; | |
9847 | PyObject * obj2 = 0 ; | |
9848 | char * kwnames[] = { | |
9849 | (char *) "self",(char *) "item",(char *) "c", NULL | |
9850 | }; | |
9851 | ||
9852 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9853 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9854 | if (!SWIG_IsOK(res1)) { | |
9855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9856 | } | |
9857 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9858 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9859 | if (!SWIG_IsOK(ecode2)) { | |
9860 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'"); | |
9861 | } | |
9862 | arg2 = static_cast< int >(val2); | |
9863 | { | |
9864 | arg3 = &temp3; | |
9865 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9866 | } | |
9867 | { | |
9868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9869 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
9870 | wxPyEndAllowThreads(__tstate); | |
9871 | if (PyErr_Occurred()) SWIG_fail; | |
9872 | } | |
9873 | resultobj = SWIG_Py_Void(); | |
9874 | return resultobj; | |
9875 | fail: | |
9876 | return NULL; | |
9877 | } | |
9878 | ||
9879 | ||
9880 | SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9881 | PyObject *resultobj = 0; | |
9882 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9883 | int arg2 ; | |
9884 | wxFont *arg3 = 0 ; | |
9885 | void *argp1 = 0 ; | |
9886 | int res1 = 0 ; | |
9887 | int val2 ; | |
9888 | int ecode2 = 0 ; | |
9889 | void *argp3 = 0 ; | |
9890 | int res3 = 0 ; | |
9891 | PyObject * obj0 = 0 ; | |
9892 | PyObject * obj1 = 0 ; | |
9893 | PyObject * obj2 = 0 ; | |
9894 | char * kwnames[] = { | |
9895 | (char *) "self",(char *) "item",(char *) "f", NULL | |
9896 | }; | |
9897 | ||
9898 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9899 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9900 | if (!SWIG_IsOK(res1)) { | |
9901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9902 | } | |
9903 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9904 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9905 | if (!SWIG_IsOK(ecode2)) { | |
9906 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'"); | |
9907 | } | |
9908 | arg2 = static_cast< int >(val2); | |
9909 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
9910 | if (!SWIG_IsOK(res3)) { | |
9911 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
9912 | } | |
9913 | if (!argp3) { | |
9914 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
9915 | } | |
9916 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
9917 | { | |
9918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9919 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
9920 | wxPyEndAllowThreads(__tstate); | |
9921 | if (PyErr_Occurred()) SWIG_fail; | |
9922 | } | |
9923 | resultobj = SWIG_Py_Void(); | |
9924 | return resultobj; | |
9925 | fail: | |
9926 | return NULL; | |
9927 | } | |
9928 | ||
9929 | ||
9930 | SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9931 | PyObject *resultobj = 0; | |
9932 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
9933 | SwigValueWrapper<wxVisualAttributes > result; | |
9934 | int val1 ; | |
9935 | int ecode1 = 0 ; | |
9936 | PyObject * obj0 = 0 ; | |
9937 | char * kwnames[] = { | |
9938 | (char *) "variant", NULL | |
9939 | }; | |
9940 | ||
9941 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
9942 | if (obj0) { | |
9943 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
9944 | if (!SWIG_IsOK(ecode1)) { | |
9945 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
9946 | } | |
9947 | arg1 = static_cast< wxWindowVariant >(val1); | |
9948 | } | |
9949 | { | |
9950 | if (!wxPyCheckForApp()) SWIG_fail; | |
9951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9952 | result = wxListBox::GetClassDefaultAttributes(arg1); | |
9953 | wxPyEndAllowThreads(__tstate); | |
9954 | if (PyErr_Occurred()) SWIG_fail; | |
9955 | } | |
9956 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
9957 | return resultobj; | |
9958 | fail: | |
9959 | return NULL; | |
9960 | } | |
9961 | ||
9962 | ||
9963 | SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9964 | PyObject *obj; | |
9965 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9966 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj)); | |
9967 | return SWIG_Py_Void(); | |
9968 | } | |
9969 | ||
9970 | SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9971 | return SWIG_Python_InitShadowInstance(args); | |
9972 | } | |
9973 | ||
9974 | SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9975 | PyObject *resultobj = 0; | |
9976 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9977 | int arg2 = (int) -1 ; | |
9978 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9979 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9980 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9981 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9982 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
9983 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
9984 | long arg6 = (long) 0 ; | |
9985 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9986 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9987 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
9988 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9989 | wxCheckListBox *result = 0 ; | |
9990 | void *argp1 = 0 ; | |
9991 | int res1 = 0 ; | |
9992 | int val2 ; | |
9993 | int ecode2 = 0 ; | |
9994 | wxPoint temp3 ; | |
9995 | wxSize temp4 ; | |
9996 | bool temp5 = false ; | |
9997 | long val6 ; | |
9998 | int ecode6 = 0 ; | |
9999 | void *argp7 = 0 ; | |
10000 | int res7 = 0 ; | |
10001 | bool temp8 = false ; | |
10002 | PyObject * obj0 = 0 ; | |
10003 | PyObject * obj1 = 0 ; | |
10004 | PyObject * obj2 = 0 ; | |
10005 | PyObject * obj3 = 0 ; | |
10006 | PyObject * obj4 = 0 ; | |
10007 | PyObject * obj5 = 0 ; | |
10008 | PyObject * obj6 = 0 ; | |
10009 | PyObject * obj7 = 0 ; | |
10010 | char * kwnames[] = { | |
10011 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10012 | }; | |
10013 | ||
10014 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
10015 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10016 | if (!SWIG_IsOK(res1)) { | |
10017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
10018 | } | |
10019 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
10020 | if (obj1) { | |
10021 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10022 | if (!SWIG_IsOK(ecode2)) { | |
10023 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'"); | |
10024 | } | |
10025 | arg2 = static_cast< int >(val2); | |
10026 | } | |
10027 | if (obj2) { | |
d14a1e28 | 10028 | { |
0085ce49 RD |
10029 | arg3 = &temp3; |
10030 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 10031 | } |
0085ce49 RD |
10032 | } |
10033 | if (obj3) { | |
d14a1e28 | 10034 | { |
0085ce49 RD |
10035 | arg4 = &temp4; |
10036 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 10037 | } |
0085ce49 RD |
10038 | } |
10039 | if (obj4) { | |
d14a1e28 | 10040 | { |
0085ce49 RD |
10041 | if (! PySequence_Check(obj4)) { |
10042 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10043 | SWIG_fail; | |
10044 | } | |
10045 | arg5 = new wxArrayString; | |
10046 | temp5 = true; | |
10047 | int i, len=PySequence_Length(obj4); | |
10048 | for (i=0; i<len; i++) { | |
10049 | PyObject* item = PySequence_GetItem(obj4, i); | |
10050 | wxString* s = wxString_in_helper(item); | |
10051 | if (PyErr_Occurred()) SWIG_fail; | |
10052 | arg5->Add(*s); | |
10053 | delete s; | |
10054 | Py_DECREF(item); | |
10055 | } | |
d14a1e28 | 10056 | } |
0085ce49 RD |
10057 | } |
10058 | if (obj5) { | |
10059 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
10060 | if (!SWIG_IsOK(ecode6)) { | |
10061 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'"); | |
10062 | } | |
10063 | arg6 = static_cast< long >(val6); | |
10064 | } | |
10065 | if (obj6) { | |
10066 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
10067 | if (!SWIG_IsOK(res7)) { | |
10068 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
4f89f6a3 | 10069 | } |
0085ce49 RD |
10070 | if (!argp7) { |
10071 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 10072 | } |
0085ce49 RD |
10073 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
10074 | } | |
10075 | if (obj7) { | |
093d3ff1 | 10076 | { |
0085ce49 RD |
10077 | arg8 = wxString_in_helper(obj7); |
10078 | if (arg8 == NULL) SWIG_fail; | |
10079 | temp8 = true; | |
093d3ff1 | 10080 | } |
0085ce49 RD |
10081 | } |
10082 | { | |
10083 | if (!wxPyCheckForApp()) SWIG_fail; | |
10084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10085 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10086 | wxPyEndAllowThreads(__tstate); | |
10087 | if (PyErr_Occurred()) SWIG_fail; | |
10088 | } | |
10089 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 ); | |
10090 | { | |
10091 | if (temp5) delete arg5; | |
10092 | } | |
10093 | { | |
10094 | if (temp8) | |
10095 | delete arg8; | |
10096 | } | |
10097 | return resultobj; | |
10098 | fail: | |
10099 | { | |
10100 | if (temp5) delete arg5; | |
10101 | } | |
10102 | { | |
10103 | if (temp8) | |
10104 | delete arg8; | |
10105 | } | |
10106 | return NULL; | |
d14a1e28 RD |
10107 | } |
10108 | ||
10109 | ||
0085ce49 RD |
10110 | SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10111 | PyObject *resultobj = 0; | |
10112 | wxCheckListBox *result = 0 ; | |
10113 | ||
10114 | if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail; | |
10115 | { | |
10116 | if (!wxPyCheckForApp()) SWIG_fail; | |
10117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10118 | result = (wxCheckListBox *)new wxCheckListBox(); | |
10119 | wxPyEndAllowThreads(__tstate); | |
10120 | if (PyErr_Occurred()) SWIG_fail; | |
10121 | } | |
10122 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 ); | |
10123 | return resultobj; | |
10124 | fail: | |
10125 | return NULL; | |
10126 | } | |
10127 | ||
10128 | ||
10129 | SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10130 | PyObject *resultobj = 0; | |
10131 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
10132 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10133 | int arg3 = (int) -1 ; | |
10134 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10135 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10136 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10137 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10138 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
10139 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
10140 | long arg7 = (long) 0 ; | |
10141 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
10142 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
10143 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
10144 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
10145 | bool result; | |
10146 | void *argp1 = 0 ; | |
10147 | int res1 = 0 ; | |
10148 | void *argp2 = 0 ; | |
10149 | int res2 = 0 ; | |
10150 | int val3 ; | |
10151 | int ecode3 = 0 ; | |
10152 | wxPoint temp4 ; | |
10153 | wxSize temp5 ; | |
10154 | bool temp6 = false ; | |
10155 | long val7 ; | |
10156 | int ecode7 = 0 ; | |
10157 | void *argp8 = 0 ; | |
10158 | int res8 = 0 ; | |
10159 | bool temp9 = false ; | |
10160 | PyObject * obj0 = 0 ; | |
10161 | PyObject * obj1 = 0 ; | |
10162 | PyObject * obj2 = 0 ; | |
10163 | PyObject * obj3 = 0 ; | |
10164 | PyObject * obj4 = 0 ; | |
10165 | PyObject * obj5 = 0 ; | |
10166 | PyObject * obj6 = 0 ; | |
10167 | PyObject * obj7 = 0 ; | |
10168 | PyObject * obj8 = 0 ; | |
10169 | char * kwnames[] = { | |
10170 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10171 | }; | |
10172 | ||
10173 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
10174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10175 | if (!SWIG_IsOK(res1)) { | |
10176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10177 | } | |
10178 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
10179 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10180 | if (!SWIG_IsOK(res2)) { | |
10181 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
10182 | } | |
10183 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
10184 | if (obj2) { | |
10185 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10186 | if (!SWIG_IsOK(ecode3)) { | |
10187 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
10188 | } | |
10189 | arg3 = static_cast< int >(val3); | |
10190 | } | |
10191 | if (obj3) { | |
22bfe96c | 10192 | { |
0085ce49 RD |
10193 | arg4 = &temp4; |
10194 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 10195 | } |
0085ce49 RD |
10196 | } |
10197 | if (obj4) { | |
d14a1e28 | 10198 | { |
0085ce49 RD |
10199 | arg5 = &temp5; |
10200 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 10201 | } |
0085ce49 RD |
10202 | } |
10203 | if (obj5) { | |
d14a1e28 | 10204 | { |
0085ce49 RD |
10205 | if (! PySequence_Check(obj5)) { |
10206 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10207 | SWIG_fail; | |
10208 | } | |
10209 | arg6 = new wxArrayString; | |
10210 | temp6 = true; | |
10211 | int i, len=PySequence_Length(obj5); | |
10212 | for (i=0; i<len; i++) { | |
10213 | PyObject* item = PySequence_GetItem(obj5, i); | |
10214 | wxString* s = wxString_in_helper(item); | |
10215 | if (PyErr_Occurred()) SWIG_fail; | |
10216 | arg6->Add(*s); | |
10217 | delete s; | |
10218 | Py_DECREF(item); | |
10219 | } | |
d14a1e28 | 10220 | } |
0085ce49 RD |
10221 | } |
10222 | if (obj6) { | |
10223 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
10224 | if (!SWIG_IsOK(ecode7)) { | |
10225 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
10226 | } | |
10227 | arg7 = static_cast< long >(val7); | |
10228 | } | |
10229 | if (obj7) { | |
10230 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
10231 | if (!SWIG_IsOK(res8)) { | |
10232 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 10233 | } |
0085ce49 RD |
10234 | if (!argp8) { |
10235 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 10236 | } |
0085ce49 RD |
10237 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
10238 | } | |
10239 | if (obj8) { | |
d14a1e28 | 10240 | { |
0085ce49 RD |
10241 | arg9 = wxString_in_helper(obj8); |
10242 | if (arg9 == NULL) SWIG_fail; | |
10243 | temp9 = true; | |
d14a1e28 | 10244 | } |
0085ce49 RD |
10245 | } |
10246 | { | |
10247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10248 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
10249 | wxPyEndAllowThreads(__tstate); | |
10250 | if (PyErr_Occurred()) SWIG_fail; | |
10251 | } | |
10252 | { | |
10253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10254 | } | |
10255 | { | |
10256 | if (temp6) delete arg6; | |
10257 | } | |
10258 | { | |
10259 | if (temp9) | |
10260 | delete arg9; | |
10261 | } | |
10262 | return resultobj; | |
10263 | fail: | |
10264 | { | |
10265 | if (temp6) delete arg6; | |
10266 | } | |
10267 | { | |
10268 | if (temp9) | |
10269 | delete arg9; | |
10270 | } | |
10271 | return NULL; | |
10272 | } | |
10273 | ||
10274 | ||
10275 | SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10276 | PyObject *resultobj = 0; | |
10277 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
50f151d7 | 10278 | unsigned int arg2 ; |
0085ce49 RD |
10279 | bool result; |
10280 | void *argp1 = 0 ; | |
10281 | int res1 = 0 ; | |
50f151d7 | 10282 | unsigned int val2 ; |
0085ce49 RD |
10283 | int ecode2 = 0 ; |
10284 | PyObject * obj0 = 0 ; | |
10285 | PyObject * obj1 = 0 ; | |
10286 | char * kwnames[] = { | |
10287 | (char *) "self",(char *) "index", NULL | |
10288 | }; | |
10289 | ||
10290 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail; | |
10291 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10292 | if (!SWIG_IsOK(res1)) { | |
10293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10294 | } | |
10295 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
50f151d7 | 10296 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
0085ce49 | 10297 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 10298 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'"); |
0085ce49 | 10299 | } |
50f151d7 | 10300 | arg2 = static_cast< unsigned int >(val2); |
0085ce49 RD |
10301 | { |
10302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10303 | result = (bool)(arg1)->IsChecked(arg2); | |
10304 | wxPyEndAllowThreads(__tstate); | |
10305 | if (PyErr_Occurred()) SWIG_fail; | |
10306 | } | |
10307 | { | |
10308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10309 | } | |
10310 | return resultobj; | |
10311 | fail: | |
10312 | return NULL; | |
10313 | } | |
10314 | ||
10315 | ||
10316 | SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10317 | PyObject *resultobj = 0; | |
10318 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
50f151d7 | 10319 | unsigned int arg2 ; |
0085ce49 RD |
10320 | int arg3 = (int) true ; |
10321 | void *argp1 = 0 ; | |
10322 | int res1 = 0 ; | |
50f151d7 | 10323 | unsigned int val2 ; |
0085ce49 RD |
10324 | int ecode2 = 0 ; |
10325 | int val3 ; | |
10326 | int ecode3 = 0 ; | |
10327 | PyObject * obj0 = 0 ; | |
10328 | PyObject * obj1 = 0 ; | |
10329 | PyObject * obj2 = 0 ; | |
10330 | char * kwnames[] = { | |
10331 | (char *) "self",(char *) "index",(char *) "check", NULL | |
10332 | }; | |
10333 | ||
10334 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10335 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10336 | if (!SWIG_IsOK(res1)) { | |
10337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10338 | } | |
10339 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
50f151d7 | 10340 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
0085ce49 | 10341 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 10342 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'"); |
0085ce49 | 10343 | } |
50f151d7 | 10344 | arg2 = static_cast< unsigned int >(val2); |
0085ce49 RD |
10345 | if (obj2) { |
10346 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10347 | if (!SWIG_IsOK(ecode3)) { | |
10348 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'"); | |
10349 | } | |
10350 | arg3 = static_cast< int >(val3); | |
10351 | } | |
10352 | { | |
10353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10354 | (arg1)->Check(arg2,arg3); | |
10355 | wxPyEndAllowThreads(__tstate); | |
10356 | if (PyErr_Occurred()) SWIG_fail; | |
10357 | } | |
10358 | resultobj = SWIG_Py_Void(); | |
10359 | return resultobj; | |
10360 | fail: | |
10361 | return NULL; | |
d14a1e28 RD |
10362 | } |
10363 | ||
10364 | ||
0085ce49 RD |
10365 | SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10366 | PyObject *resultobj = 0; | |
10367 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
10368 | int result; | |
10369 | void *argp1 = 0 ; | |
10370 | int res1 = 0 ; | |
10371 | PyObject *swig_obj[1] ; | |
10372 | ||
10373 | if (!args) SWIG_fail; | |
10374 | swig_obj[0] = args; | |
10375 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10376 | if (!SWIG_IsOK(res1)) { | |
10377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10378 | } | |
10379 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
10380 | { | |
10381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10382 | result = (int)(arg1)->GetItemHeight(); | |
10383 | wxPyEndAllowThreads(__tstate); | |
10384 | if (PyErr_Occurred()) SWIG_fail; | |
10385 | } | |
10386 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10387 | return resultobj; | |
10388 | fail: | |
10389 | return NULL; | |
d14a1e28 RD |
10390 | } |
10391 | ||
10392 | ||
0085ce49 RD |
10393 | SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10394 | PyObject *obj; | |
10395 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10396 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj)); | |
10397 | return SWIG_Py_Void(); | |
d14a1e28 RD |
10398 | } |
10399 | ||
0085ce49 RD |
10400 | SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10401 | return SWIG_Python_InitShadowInstance(args); | |
943e8dfd RD |
10402 | } |
10403 | ||
0085ce49 RD |
10404 | SWIGINTERN int TextCtrlNameStr_set(PyObject *) { |
10405 | SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only."); | |
10406 | return 1; | |
22bfe96c RD |
10407 | } |
10408 | ||
10409 | ||
0085ce49 RD |
10410 | SWIGINTERN PyObject *TextCtrlNameStr_get(void) { |
10411 | PyObject *pyobj = 0; | |
10412 | ||
10413 | { | |
10414 | #if wxUSE_UNICODE | |
10415 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
10416 | #else | |
10417 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
10418 | #endif | |
10419 | } | |
10420 | return pyobj; | |
10421 | } | |
10422 | ||
10423 | ||
10424 | SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10425 | PyObject *resultobj = 0; | |
10426 | wxColour const &arg1_defvalue = wxNullColour ; | |
10427 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
10428 | wxColour const &arg2_defvalue = wxNullColour ; | |
10429 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
10430 | wxFont const &arg3_defvalue = wxNullFont ; | |
10431 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
10432 | wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; | |
10433 | wxTextAttr *result = 0 ; | |
10434 | wxColour temp1 ; | |
10435 | wxColour temp2 ; | |
10436 | void *argp3 = 0 ; | |
10437 | int res3 = 0 ; | |
10438 | int val4 ; | |
10439 | int ecode4 = 0 ; | |
10440 | PyObject * obj0 = 0 ; | |
10441 | PyObject * obj1 = 0 ; | |
10442 | PyObject * obj2 = 0 ; | |
10443 | PyObject * obj3 = 0 ; | |
10444 | char * kwnames[] = { | |
10445 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
10446 | }; | |
10447 | ||
10448 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10449 | if (obj0) { | |
d14a1e28 | 10450 | { |
0085ce49 RD |
10451 | arg1 = &temp1; |
10452 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
d14a1e28 | 10453 | } |
0085ce49 RD |
10454 | } |
10455 | if (obj1) { | |
d14a1e28 | 10456 | { |
0085ce49 RD |
10457 | arg2 = &temp2; |
10458 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 10459 | } |
0085ce49 RD |
10460 | } |
10461 | if (obj2) { | |
10462 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
10463 | if (!SWIG_IsOK(res3)) { | |
10464 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d14a1e28 | 10465 | } |
0085ce49 RD |
10466 | if (!argp3) { |
10467 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
10468 | } | |
10469 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
10470 | } | |
10471 | if (obj3) { | |
10472 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10473 | if (!SWIG_IsOK(ecode4)) { | |
10474 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'"); | |
10475 | } | |
10476 | arg4 = static_cast< wxTextAttrAlignment >(val4); | |
10477 | } | |
10478 | { | |
10479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10480 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4); | |
10481 | wxPyEndAllowThreads(__tstate); | |
10482 | if (PyErr_Occurred()) SWIG_fail; | |
10483 | } | |
10484 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 ); | |
10485 | return resultobj; | |
10486 | fail: | |
10487 | return NULL; | |
d14a1e28 RD |
10488 | } |
10489 | ||
10490 | ||
0085ce49 RD |
10491 | SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10492 | PyObject *resultobj = 0; | |
10493 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10494 | void *argp1 = 0 ; | |
10495 | int res1 = 0 ; | |
10496 | PyObject *swig_obj[1] ; | |
10497 | ||
10498 | if (!args) SWIG_fail; | |
10499 | swig_obj[0] = args; | |
10500 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 ); | |
10501 | if (!SWIG_IsOK(res1)) { | |
10502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10503 | } | |
10504 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10505 | { | |
10506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10507 | delete arg1; | |
d14a1e28 | 10508 | |
0085ce49 RD |
10509 | wxPyEndAllowThreads(__tstate); |
10510 | if (PyErr_Occurred()) SWIG_fail; | |
10511 | } | |
10512 | resultobj = SWIG_Py_Void(); | |
10513 | return resultobj; | |
10514 | fail: | |
10515 | return NULL; | |
d14a1e28 RD |
10516 | } |
10517 | ||
10518 | ||
0085ce49 RD |
10519 | SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10520 | PyObject *resultobj = 0; | |
10521 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10522 | void *argp1 = 0 ; | |
10523 | int res1 = 0 ; | |
10524 | PyObject *swig_obj[1] ; | |
10525 | ||
10526 | if (!args) SWIG_fail; | |
10527 | swig_obj[0] = args; | |
10528 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10529 | if (!SWIG_IsOK(res1)) { | |
10530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10531 | } | |
10532 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10533 | { | |
10534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10535 | (arg1)->Init(); | |
10536 | wxPyEndAllowThreads(__tstate); | |
10537 | if (PyErr_Occurred()) SWIG_fail; | |
10538 | } | |
10539 | resultobj = SWIG_Py_Void(); | |
10540 | return resultobj; | |
10541 | fail: | |
10542 | return NULL; | |
10543 | } | |
10544 | ||
10545 | ||
10546 | SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10547 | PyObject *resultobj = 0; | |
10548 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10549 | wxColour *arg2 = 0 ; | |
10550 | void *argp1 = 0 ; | |
10551 | int res1 = 0 ; | |
10552 | wxColour temp2 ; | |
10553 | PyObject * obj0 = 0 ; | |
10554 | PyObject * obj1 = 0 ; | |
10555 | char * kwnames[] = { | |
10556 | (char *) "self",(char *) "colText", NULL | |
10557 | }; | |
10558 | ||
10559 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
10560 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10561 | if (!SWIG_IsOK(res1)) { | |
10562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10563 | } | |
10564 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10565 | { | |
10566 | arg2 = &temp2; | |
10567 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10568 | } | |
10569 | { | |
10570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10571 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
10572 | wxPyEndAllowThreads(__tstate); | |
10573 | if (PyErr_Occurred()) SWIG_fail; | |
10574 | } | |
10575 | resultobj = SWIG_Py_Void(); | |
10576 | return resultobj; | |
10577 | fail: | |
10578 | return NULL; | |
10579 | } | |
10580 | ||
10581 | ||
10582 | SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10583 | PyObject *resultobj = 0; | |
10584 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10585 | wxColour *arg2 = 0 ; | |
10586 | void *argp1 = 0 ; | |
10587 | int res1 = 0 ; | |
10588 | wxColour temp2 ; | |
10589 | PyObject * obj0 = 0 ; | |
10590 | PyObject * obj1 = 0 ; | |
10591 | char * kwnames[] = { | |
10592 | (char *) "self",(char *) "colBack", NULL | |
10593 | }; | |
10594 | ||
10595 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
10596 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10597 | if (!SWIG_IsOK(res1)) { | |
10598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10599 | } | |
10600 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10601 | { | |
10602 | arg2 = &temp2; | |
10603 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10604 | } | |
10605 | { | |
10606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10607 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
10608 | wxPyEndAllowThreads(__tstate); | |
10609 | if (PyErr_Occurred()) SWIG_fail; | |
10610 | } | |
10611 | resultobj = SWIG_Py_Void(); | |
10612 | return resultobj; | |
10613 | fail: | |
10614 | return NULL; | |
10615 | } | |
10616 | ||
10617 | ||
10618 | SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10619 | PyObject *resultobj = 0; | |
10620 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10621 | wxFont *arg2 = 0 ; | |
10622 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
10623 | void *argp1 = 0 ; | |
10624 | int res1 = 0 ; | |
10625 | void *argp2 = 0 ; | |
10626 | int res2 = 0 ; | |
10627 | long val3 ; | |
10628 | int ecode3 = 0 ; | |
10629 | PyObject * obj0 = 0 ; | |
10630 | PyObject * obj1 = 0 ; | |
10631 | PyObject * obj2 = 0 ; | |
10632 | char * kwnames[] = { | |
10633 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
10634 | }; | |
10635 | ||
10636 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10637 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10638 | if (!SWIG_IsOK(res1)) { | |
10639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10640 | } | |
10641 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10642 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
10643 | if (!SWIG_IsOK(res2)) { | |
10644 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
10645 | } | |
10646 | if (!argp2) { | |
10647 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
10648 | } | |
10649 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
10650 | if (obj2) { | |
10651 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
10652 | if (!SWIG_IsOK(ecode3)) { | |
10653 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'"); | |
10654 | } | |
10655 | arg3 = static_cast< long >(val3); | |
10656 | } | |
10657 | { | |
10658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10659 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
10660 | wxPyEndAllowThreads(__tstate); | |
10661 | if (PyErr_Occurred()) SWIG_fail; | |
10662 | } | |
10663 | resultobj = SWIG_Py_Void(); | |
10664 | return resultobj; | |
10665 | fail: | |
10666 | return NULL; | |
10667 | } | |
10668 | ||
10669 | ||
10670 | SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10671 | PyObject *resultobj = 0; | |
10672 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10673 | wxTextAttrAlignment arg2 ; | |
10674 | void *argp1 = 0 ; | |
10675 | int res1 = 0 ; | |
10676 | int val2 ; | |
10677 | int ecode2 = 0 ; | |
10678 | PyObject * obj0 = 0 ; | |
10679 | PyObject * obj1 = 0 ; | |
10680 | char * kwnames[] = { | |
10681 | (char *) "self",(char *) "alignment", NULL | |
10682 | }; | |
10683 | ||
10684 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
10685 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10686 | if (!SWIG_IsOK(res1)) { | |
10687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10688 | } | |
10689 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10690 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10691 | if (!SWIG_IsOK(ecode2)) { | |
10692 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
10693 | } | |
10694 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
10695 | { | |
10696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10697 | (arg1)->SetAlignment(arg2); | |
10698 | wxPyEndAllowThreads(__tstate); | |
10699 | if (PyErr_Occurred()) SWIG_fail; | |
10700 | } | |
10701 | resultobj = SWIG_Py_Void(); | |
10702 | return resultobj; | |
10703 | fail: | |
10704 | return NULL; | |
10705 | } | |
10706 | ||
10707 | ||
10708 | SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10709 | PyObject *resultobj = 0; | |
10710 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10711 | wxArrayInt *arg2 = 0 ; | |
10712 | void *argp1 = 0 ; | |
10713 | int res1 = 0 ; | |
10714 | bool temp2 = false ; | |
10715 | PyObject * obj0 = 0 ; | |
10716 | PyObject * obj1 = 0 ; | |
10717 | char * kwnames[] = { | |
10718 | (char *) "self",(char *) "tabs", NULL | |
10719 | }; | |
10720 | ||
10721 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail; | |
10722 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10723 | if (!SWIG_IsOK(res1)) { | |
10724 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10725 | } | |
10726 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10727 | { | |
10728 | if (! PySequence_Check(obj1)) { | |
10729 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
10730 | SWIG_fail; | |
10731 | } | |
10732 | arg2 = new wxArrayInt; | |
10733 | temp2 = true; | |
10734 | int i, len=PySequence_Length(obj1); | |
10735 | for (i=0; i<len; i++) { | |
10736 | PyObject* item = PySequence_GetItem(obj1, i); | |
10737 | PyObject* number = PyNumber_Int(item); | |
10738 | arg2->Add(PyInt_AS_LONG(number)); | |
10739 | Py_DECREF(item); | |
10740 | Py_DECREF(number); | |
d14a1e28 | 10741 | } |
0085ce49 RD |
10742 | } |
10743 | { | |
10744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10745 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
10746 | wxPyEndAllowThreads(__tstate); | |
10747 | if (PyErr_Occurred()) SWIG_fail; | |
10748 | } | |
10749 | resultobj = SWIG_Py_Void(); | |
10750 | { | |
10751 | if (temp2) delete arg2; | |
10752 | } | |
10753 | return resultobj; | |
10754 | fail: | |
10755 | { | |
10756 | if (temp2) delete arg2; | |
10757 | } | |
10758 | return NULL; | |
10759 | } | |
10760 | ||
10761 | ||
10762 | SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10763 | PyObject *resultobj = 0; | |
10764 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10765 | int arg2 ; | |
10766 | int arg3 = (int) 0 ; | |
10767 | void *argp1 = 0 ; | |
10768 | int res1 = 0 ; | |
10769 | int val2 ; | |
10770 | int ecode2 = 0 ; | |
10771 | int val3 ; | |
10772 | int ecode3 = 0 ; | |
10773 | PyObject * obj0 = 0 ; | |
10774 | PyObject * obj1 = 0 ; | |
10775 | PyObject * obj2 = 0 ; | |
10776 | char * kwnames[] = { | |
10777 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL | |
10778 | }; | |
10779 | ||
10780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10782 | if (!SWIG_IsOK(res1)) { | |
10783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10784 | } | |
10785 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10786 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10787 | if (!SWIG_IsOK(ecode2)) { | |
10788 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'"); | |
10789 | } | |
10790 | arg2 = static_cast< int >(val2); | |
10791 | if (obj2) { | |
10792 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10793 | if (!SWIG_IsOK(ecode3)) { | |
10794 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'"); | |
10795 | } | |
10796 | arg3 = static_cast< int >(val3); | |
10797 | } | |
10798 | { | |
10799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10800 | (arg1)->SetLeftIndent(arg2,arg3); | |
10801 | wxPyEndAllowThreads(__tstate); | |
10802 | if (PyErr_Occurred()) SWIG_fail; | |
10803 | } | |
10804 | resultobj = SWIG_Py_Void(); | |
10805 | return resultobj; | |
10806 | fail: | |
10807 | return NULL; | |
10808 | } | |
10809 | ||
10810 | ||
10811 | SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10812 | PyObject *resultobj = 0; | |
10813 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10814 | int arg2 ; | |
10815 | void *argp1 = 0 ; | |
10816 | int res1 = 0 ; | |
10817 | int val2 ; | |
10818 | int ecode2 = 0 ; | |
10819 | PyObject * obj0 = 0 ; | |
10820 | PyObject * obj1 = 0 ; | |
10821 | char * kwnames[] = { | |
10822 | (char *) "self",(char *) "indent", NULL | |
10823 | }; | |
10824 | ||
10825 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10826 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10827 | if (!SWIG_IsOK(res1)) { | |
10828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10829 | } | |
10830 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10831 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10832 | if (!SWIG_IsOK(ecode2)) { | |
10833 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'"); | |
10834 | } | |
10835 | arg2 = static_cast< int >(val2); | |
10836 | { | |
10837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10838 | (arg1)->SetRightIndent(arg2); | |
10839 | wxPyEndAllowThreads(__tstate); | |
10840 | if (PyErr_Occurred()) SWIG_fail; | |
10841 | } | |
10842 | resultobj = SWIG_Py_Void(); | |
10843 | return resultobj; | |
10844 | fail: | |
10845 | return NULL; | |
10846 | } | |
10847 | ||
10848 | ||
10849 | SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10850 | PyObject *resultobj = 0; | |
10851 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10852 | long arg2 ; | |
10853 | void *argp1 = 0 ; | |
10854 | int res1 = 0 ; | |
10855 | long val2 ; | |
10856 | int ecode2 = 0 ; | |
10857 | PyObject * obj0 = 0 ; | |
10858 | PyObject * obj1 = 0 ; | |
10859 | char * kwnames[] = { | |
10860 | (char *) "self",(char *) "flags", NULL | |
10861 | }; | |
10862 | ||
10863 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
10864 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10865 | if (!SWIG_IsOK(res1)) { | |
10866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10867 | } | |
10868 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10869 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10870 | if (!SWIG_IsOK(ecode2)) { | |
10871 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'"); | |
10872 | } | |
10873 | arg2 = static_cast< long >(val2); | |
10874 | { | |
10875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10876 | (arg1)->SetFlags(arg2); | |
10877 | wxPyEndAllowThreads(__tstate); | |
10878 | if (PyErr_Occurred()) SWIG_fail; | |
10879 | } | |
10880 | resultobj = SWIG_Py_Void(); | |
10881 | return resultobj; | |
10882 | fail: | |
10883 | return NULL; | |
d14a1e28 RD |
10884 | } |
10885 | ||
10886 | ||
0085ce49 RD |
10887 | SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10888 | PyObject *resultobj = 0; | |
10889 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10890 | bool result; | |
10891 | void *argp1 = 0 ; | |
10892 | int res1 = 0 ; | |
10893 | PyObject *swig_obj[1] ; | |
10894 | ||
10895 | if (!args) SWIG_fail; | |
10896 | swig_obj[0] = args; | |
10897 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10898 | if (!SWIG_IsOK(res1)) { | |
10899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
10900 | } | |
10901 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10902 | { | |
10903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10904 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
10905 | wxPyEndAllowThreads(__tstate); | |
10906 | if (PyErr_Occurred()) SWIG_fail; | |
10907 | } | |
10908 | { | |
10909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10910 | } | |
10911 | return resultobj; | |
10912 | fail: | |
10913 | return NULL; | |
d14a1e28 RD |
10914 | } |
10915 | ||
10916 | ||
0085ce49 RD |
10917 | SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10918 | PyObject *resultobj = 0; | |
10919 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10920 | bool result; | |
10921 | void *argp1 = 0 ; | |
10922 | int res1 = 0 ; | |
10923 | PyObject *swig_obj[1] ; | |
10924 | ||
10925 | if (!args) SWIG_fail; | |
10926 | swig_obj[0] = args; | |
10927 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10928 | if (!SWIG_IsOK(res1)) { | |
10929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
10930 | } | |
10931 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10932 | { | |
10933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10934 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
10935 | wxPyEndAllowThreads(__tstate); | |
10936 | if (PyErr_Occurred()) SWIG_fail; | |
10937 | } | |
10938 | { | |
10939 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10940 | } | |
10941 | return resultobj; | |
10942 | fail: | |
10943 | return NULL; | |
d14a1e28 RD |
10944 | } |
10945 | ||
10946 | ||
0085ce49 RD |
10947 | SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10948 | PyObject *resultobj = 0; | |
10949 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10950 | bool result; | |
10951 | void *argp1 = 0 ; | |
10952 | int res1 = 0 ; | |
10953 | PyObject *swig_obj[1] ; | |
10954 | ||
10955 | if (!args) SWIG_fail; | |
10956 | swig_obj[0] = args; | |
10957 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10958 | if (!SWIG_IsOK(res1)) { | |
10959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
10960 | } | |
10961 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10962 | { | |
10963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10964 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
10965 | wxPyEndAllowThreads(__tstate); | |
10966 | if (PyErr_Occurred()) SWIG_fail; | |
10967 | } | |
10968 | { | |
10969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10970 | } | |
10971 | return resultobj; | |
10972 | fail: | |
10973 | return NULL; | |
d14a1e28 RD |
10974 | } |
10975 | ||
10976 | ||
0085ce49 RD |
10977 | SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10978 | PyObject *resultobj = 0; | |
10979 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10980 | bool result; | |
10981 | void *argp1 = 0 ; | |
10982 | int res1 = 0 ; | |
10983 | PyObject *swig_obj[1] ; | |
10984 | ||
10985 | if (!args) SWIG_fail; | |
10986 | swig_obj[0] = args; | |
10987 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10988 | if (!SWIG_IsOK(res1)) { | |
10989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
10990 | } | |
10991 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10992 | { | |
10993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10994 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
10995 | wxPyEndAllowThreads(__tstate); | |
10996 | if (PyErr_Occurred()) SWIG_fail; | |
10997 | } | |
10998 | { | |
10999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11000 | } | |
11001 | return resultobj; | |
11002 | fail: | |
11003 | return NULL; | |
22bfe96c RD |
11004 | } |
11005 | ||
11006 | ||
0085ce49 RD |
11007 | SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11008 | PyObject *resultobj = 0; | |
11009 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11010 | bool result; | |
11011 | void *argp1 = 0 ; | |
11012 | int res1 = 0 ; | |
11013 | PyObject *swig_obj[1] ; | |
11014 | ||
11015 | if (!args) SWIG_fail; | |
11016 | swig_obj[0] = args; | |
11017 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11018 | if (!SWIG_IsOK(res1)) { | |
11019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11020 | } | |
11021 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11022 | { | |
11023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11024 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
11025 | wxPyEndAllowThreads(__tstate); | |
11026 | if (PyErr_Occurred()) SWIG_fail; | |
11027 | } | |
11028 | { | |
11029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11030 | } | |
11031 | return resultobj; | |
11032 | fail: | |
11033 | return NULL; | |
b2dc1044 RD |
11034 | } |
11035 | ||
11036 | ||
0085ce49 RD |
11037 | SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11038 | PyObject *resultobj = 0; | |
11039 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11040 | bool result; | |
11041 | void *argp1 = 0 ; | |
11042 | int res1 = 0 ; | |
11043 | PyObject *swig_obj[1] ; | |
11044 | ||
11045 | if (!args) SWIG_fail; | |
11046 | swig_obj[0] = args; | |
11047 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11048 | if (!SWIG_IsOK(res1)) { | |
11049 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11050 | } | |
11051 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11052 | { | |
11053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11054 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
11055 | wxPyEndAllowThreads(__tstate); | |
11056 | if (PyErr_Occurred()) SWIG_fail; | |
11057 | } | |
11058 | { | |
11059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11060 | } | |
11061 | return resultobj; | |
11062 | fail: | |
11063 | return NULL; | |
d14a1e28 RD |
11064 | } |
11065 | ||
11066 | ||
0085ce49 RD |
11067 | SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11068 | PyObject *resultobj = 0; | |
11069 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11070 | bool result; | |
11071 | void *argp1 = 0 ; | |
11072 | int res1 = 0 ; | |
11073 | PyObject *swig_obj[1] ; | |
11074 | ||
11075 | if (!args) SWIG_fail; | |
11076 | swig_obj[0] = args; | |
11077 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11078 | if (!SWIG_IsOK(res1)) { | |
11079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11080 | } | |
11081 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11082 | { | |
11083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11084 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
11085 | wxPyEndAllowThreads(__tstate); | |
11086 | if (PyErr_Occurred()) SWIG_fail; | |
11087 | } | |
11088 | { | |
11089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11090 | } | |
11091 | return resultobj; | |
11092 | fail: | |
11093 | return NULL; | |
11094 | } | |
11095 | ||
11096 | ||
11097 | SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11098 | PyObject *resultobj = 0; | |
11099 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11100 | long arg2 ; | |
11101 | bool result; | |
11102 | void *argp1 = 0 ; | |
11103 | int res1 = 0 ; | |
11104 | long val2 ; | |
11105 | int ecode2 = 0 ; | |
11106 | PyObject * obj0 = 0 ; | |
11107 | PyObject * obj1 = 0 ; | |
11108 | char * kwnames[] = { | |
11109 | (char *) "self",(char *) "flag", NULL | |
11110 | }; | |
11111 | ||
11112 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail; | |
11113 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11114 | if (!SWIG_IsOK(res1)) { | |
11115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11116 | } | |
11117 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11118 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
11119 | if (!SWIG_IsOK(ecode2)) { | |
11120 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'"); | |
11121 | } | |
11122 | arg2 = static_cast< long >(val2); | |
11123 | { | |
11124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11125 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
11126 | wxPyEndAllowThreads(__tstate); | |
11127 | if (PyErr_Occurred()) SWIG_fail; | |
11128 | } | |
11129 | { | |
11130 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11131 | } | |
11132 | return resultobj; | |
11133 | fail: | |
11134 | return NULL; | |
d14a1e28 RD |
11135 | } |
11136 | ||
11137 | ||
0085ce49 RD |
11138 | SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11139 | PyObject *resultobj = 0; | |
11140 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11141 | wxColour *result = 0 ; | |
11142 | void *argp1 = 0 ; | |
11143 | int res1 = 0 ; | |
11144 | PyObject *swig_obj[1] ; | |
11145 | ||
11146 | if (!args) SWIG_fail; | |
11147 | swig_obj[0] = args; | |
11148 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11149 | if (!SWIG_IsOK(res1)) { | |
11150 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11151 | } | |
11152 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11153 | { | |
11154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 11155 | { |
0085ce49 RD |
11156 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); |
11157 | result = (wxColour *) &_result_ref; | |
d14a1e28 | 11158 | } |
0085ce49 RD |
11159 | wxPyEndAllowThreads(__tstate); |
11160 | if (PyErr_Occurred()) SWIG_fail; | |
11161 | } | |
11162 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
11163 | return resultobj; | |
11164 | fail: | |
11165 | return NULL; | |
d14a1e28 RD |
11166 | } |
11167 | ||
11168 | ||
0085ce49 RD |
11169 | SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11170 | PyObject *resultobj = 0; | |
11171 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11172 | wxColour *result = 0 ; | |
11173 | void *argp1 = 0 ; | |
11174 | int res1 = 0 ; | |
11175 | PyObject *swig_obj[1] ; | |
11176 | ||
11177 | if (!args) SWIG_fail; | |
11178 | swig_obj[0] = args; | |
11179 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11180 | if (!SWIG_IsOK(res1)) { | |
11181 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11182 | } | |
11183 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11184 | { | |
11185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 11186 | { |
0085ce49 RD |
11187 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); |
11188 | result = (wxColour *) &_result_ref; | |
d14a1e28 | 11189 | } |
0085ce49 RD |
11190 | wxPyEndAllowThreads(__tstate); |
11191 | if (PyErr_Occurred()) SWIG_fail; | |
11192 | } | |
11193 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
11194 | return resultobj; | |
11195 | fail: | |
11196 | return NULL; | |
d14a1e28 RD |
11197 | } |
11198 | ||
11199 | ||
0085ce49 RD |
11200 | SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11201 | PyObject *resultobj = 0; | |
11202 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11203 | wxFont *result = 0 ; | |
11204 | void *argp1 = 0 ; | |
11205 | int res1 = 0 ; | |
11206 | PyObject *swig_obj[1] ; | |
11207 | ||
11208 | if (!args) SWIG_fail; | |
11209 | swig_obj[0] = args; | |
11210 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11211 | if (!SWIG_IsOK(res1)) { | |
11212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11213 | } | |
11214 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11215 | { | |
11216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 11217 | { |
0085ce49 RD |
11218 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); |
11219 | result = (wxFont *) &_result_ref; | |
d14a1e28 | 11220 | } |
0085ce49 RD |
11221 | wxPyEndAllowThreads(__tstate); |
11222 | if (PyErr_Occurred()) SWIG_fail; | |
11223 | } | |
11224 | { | |
11225 | wxFont* resultptr = new wxFont(*result); | |
11226 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
11227 | } | |
11228 | return resultobj; | |
11229 | fail: | |
11230 | return NULL; | |
d14a1e28 RD |
11231 | } |
11232 | ||
11233 | ||
0085ce49 RD |
11234 | SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11235 | PyObject *resultobj = 0; | |
11236 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11237 | wxTextAttrAlignment result; | |
11238 | void *argp1 = 0 ; | |
11239 | int res1 = 0 ; | |
11240 | PyObject *swig_obj[1] ; | |
11241 | ||
11242 | if (!args) SWIG_fail; | |
11243 | swig_obj[0] = args; | |
11244 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11245 | if (!SWIG_IsOK(res1)) { | |
11246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11247 | } | |
11248 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11249 | { | |
11250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11251 | result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment(); | |
11252 | wxPyEndAllowThreads(__tstate); | |
11253 | if (PyErr_Occurred()) SWIG_fail; | |
11254 | } | |
11255 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11256 | return resultobj; | |
11257 | fail: | |
11258 | return NULL; | |
d14a1e28 RD |
11259 | } |
11260 | ||
11261 | ||
0085ce49 RD |
11262 | SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11263 | PyObject *resultobj = 0; | |
11264 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11265 | wxArrayInt *result = 0 ; | |
11266 | void *argp1 = 0 ; | |
11267 | int res1 = 0 ; | |
11268 | PyObject *swig_obj[1] ; | |
11269 | ||
11270 | if (!args) SWIG_fail; | |
11271 | swig_obj[0] = args; | |
11272 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11273 | if (!SWIG_IsOK(res1)) { | |
11274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11275 | } | |
11276 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11277 | { | |
11278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 11279 | { |
0085ce49 RD |
11280 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); |
11281 | result = (wxArrayInt *) &_result_ref; | |
d14a1e28 | 11282 | } |
0085ce49 RD |
11283 | wxPyEndAllowThreads(__tstate); |
11284 | if (PyErr_Occurred()) SWIG_fail; | |
11285 | } | |
11286 | { | |
11287 | resultobj = PyList_New(0); | |
11288 | size_t idx; | |
11289 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
11290 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
11291 | PyList_Append(resultobj, val); | |
11292 | Py_DECREF(val); | |
4f89f6a3 | 11293 | } |
0085ce49 RD |
11294 | } |
11295 | return resultobj; | |
11296 | fail: | |
11297 | return NULL; | |
d14a1e28 RD |
11298 | } |
11299 | ||
11300 | ||
0085ce49 RD |
11301 | SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11302 | PyObject *resultobj = 0; | |
11303 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11304 | long result; | |
11305 | void *argp1 = 0 ; | |
11306 | int res1 = 0 ; | |
11307 | PyObject *swig_obj[1] ; | |
11308 | ||
11309 | if (!args) SWIG_fail; | |
11310 | swig_obj[0] = args; | |
11311 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11312 | if (!SWIG_IsOK(res1)) { | |
11313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11314 | } | |
11315 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11316 | { | |
11317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11318 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
11319 | wxPyEndAllowThreads(__tstate); | |
11320 | if (PyErr_Occurred()) SWIG_fail; | |
11321 | } | |
11322 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11323 | return resultobj; | |
11324 | fail: | |
11325 | return NULL; | |
d14a1e28 RD |
11326 | } |
11327 | ||
11328 | ||
0085ce49 RD |
11329 | SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11330 | PyObject *resultobj = 0; | |
11331 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11332 | long result; | |
11333 | void *argp1 = 0 ; | |
11334 | int res1 = 0 ; | |
11335 | PyObject *swig_obj[1] ; | |
11336 | ||
11337 | if (!args) SWIG_fail; | |
11338 | swig_obj[0] = args; | |
11339 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11340 | if (!SWIG_IsOK(res1)) { | |
11341 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11342 | } | |
11343 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11344 | { | |
11345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11346 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
11347 | wxPyEndAllowThreads(__tstate); | |
11348 | if (PyErr_Occurred()) SWIG_fail; | |
11349 | } | |
11350 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11351 | return resultobj; | |
11352 | fail: | |
11353 | return NULL; | |
d14a1e28 RD |
11354 | } |
11355 | ||
11356 | ||
0085ce49 RD |
11357 | SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11358 | PyObject *resultobj = 0; | |
11359 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11360 | long result; | |
11361 | void *argp1 = 0 ; | |
11362 | int res1 = 0 ; | |
11363 | PyObject *swig_obj[1] ; | |
11364 | ||
11365 | if (!args) SWIG_fail; | |
11366 | swig_obj[0] = args; | |
11367 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11368 | if (!SWIG_IsOK(res1)) { | |
11369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11370 | } | |
11371 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11372 | { | |
11373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11374 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
11375 | wxPyEndAllowThreads(__tstate); | |
11376 | if (PyErr_Occurred()) SWIG_fail; | |
11377 | } | |
11378 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11379 | return resultobj; | |
11380 | fail: | |
11381 | return NULL; | |
d14a1e28 RD |
11382 | } |
11383 | ||
11384 | ||
0085ce49 RD |
11385 | SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11386 | PyObject *resultobj = 0; | |
11387 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11388 | long result; | |
11389 | void *argp1 = 0 ; | |
11390 | int res1 = 0 ; | |
11391 | PyObject *swig_obj[1] ; | |
11392 | ||
11393 | if (!args) SWIG_fail; | |
11394 | swig_obj[0] = args; | |
11395 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11396 | if (!SWIG_IsOK(res1)) { | |
11397 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11398 | } | |
11399 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11400 | { | |
11401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11402 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
11403 | wxPyEndAllowThreads(__tstate); | |
11404 | if (PyErr_Occurred()) SWIG_fail; | |
11405 | } | |
11406 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11407 | return resultobj; | |
11408 | fail: | |
11409 | return NULL; | |
d14a1e28 RD |
11410 | } |
11411 | ||
11412 | ||
0085ce49 RD |
11413 | SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11414 | PyObject *resultobj = 0; | |
11415 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11416 | bool result; | |
11417 | void *argp1 = 0 ; | |
11418 | int res1 = 0 ; | |
11419 | PyObject *swig_obj[1] ; | |
11420 | ||
11421 | if (!args) SWIG_fail; | |
11422 | swig_obj[0] = args; | |
11423 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11424 | if (!SWIG_IsOK(res1)) { | |
11425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11426 | } | |
11427 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11428 | { | |
11429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11430 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
11431 | wxPyEndAllowThreads(__tstate); | |
11432 | if (PyErr_Occurred()) SWIG_fail; | |
11433 | } | |
11434 | { | |
11435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11436 | } | |
11437 | return resultobj; | |
11438 | fail: | |
11439 | return NULL; | |
11440 | } | |
11441 | ||
11442 | ||
11443 | SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11444 | PyObject *resultobj = 0; | |
11445 | wxTextAttr *arg1 = 0 ; | |
11446 | wxTextAttr *arg2 = 0 ; | |
11447 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
11448 | wxTextAttr result; | |
11449 | void *argp1 = 0 ; | |
11450 | int res1 = 0 ; | |
11451 | void *argp2 = 0 ; | |
11452 | int res2 = 0 ; | |
11453 | void *argp3 = 0 ; | |
11454 | int res3 = 0 ; | |
11455 | PyObject * obj0 = 0 ; | |
11456 | PyObject * obj1 = 0 ; | |
11457 | PyObject * obj2 = 0 ; | |
11458 | char * kwnames[] = { | |
11459 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
11460 | }; | |
11461 | ||
11462 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11463 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
11464 | if (!SWIG_IsOK(res1)) { | |
11465 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
11466 | } | |
11467 | if (!argp1) { | |
11468 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
11469 | } | |
11470 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11471 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
11472 | if (!SWIG_IsOK(res2)) { | |
11473 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
11474 | } | |
11475 | if (!argp2) { | |
11476 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
11477 | } | |
11478 | arg2 = reinterpret_cast< wxTextAttr * >(argp2); | |
11479 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11480 | if (!SWIG_IsOK(res3)) { | |
11481 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'"); | |
11482 | } | |
11483 | arg3 = reinterpret_cast< wxTextCtrl * >(argp3); | |
11484 | { | |
11485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11486 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
11487 | wxPyEndAllowThreads(__tstate); | |
11488 | if (PyErr_Occurred()) SWIG_fail; | |
11489 | } | |
11490 | resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 ); | |
11491 | return resultobj; | |
11492 | fail: | |
11493 | return NULL; | |
11494 | } | |
11495 | ||
11496 | ||
11497 | SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11498 | PyObject *obj; | |
11499 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11500 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj)); | |
11501 | return SWIG_Py_Void(); | |
11502 | } | |
11503 | ||
11504 | SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11505 | return SWIG_Python_InitShadowInstance(args); | |
11506 | } | |
11507 | ||
11508 | SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11509 | PyObject *resultobj = 0; | |
11510 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11511 | int arg2 = (int) -1 ; | |
11512 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11513 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11514 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11515 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11516 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11517 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11518 | long arg6 = (long) 0 ; | |
11519 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11520 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11521 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
11522 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11523 | wxTextCtrl *result = 0 ; | |
11524 | void *argp1 = 0 ; | |
11525 | int res1 = 0 ; | |
11526 | int val2 ; | |
11527 | int ecode2 = 0 ; | |
11528 | bool temp3 = false ; | |
11529 | wxPoint temp4 ; | |
11530 | wxSize temp5 ; | |
11531 | long val6 ; | |
11532 | int ecode6 = 0 ; | |
11533 | void *argp7 = 0 ; | |
11534 | int res7 = 0 ; | |
11535 | bool temp8 = false ; | |
11536 | PyObject * obj0 = 0 ; | |
11537 | PyObject * obj1 = 0 ; | |
11538 | PyObject * obj2 = 0 ; | |
11539 | PyObject * obj3 = 0 ; | |
11540 | PyObject * obj4 = 0 ; | |
11541 | PyObject * obj5 = 0 ; | |
11542 | PyObject * obj6 = 0 ; | |
11543 | PyObject * obj7 = 0 ; | |
11544 | char * kwnames[] = { | |
11545 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11546 | }; | |
11547 | ||
11548 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
11549 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
11550 | if (!SWIG_IsOK(res1)) { | |
11551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
11552 | } | |
11553 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
11554 | if (obj1) { | |
11555 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11556 | if (!SWIG_IsOK(ecode2)) { | |
11557 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'"); | |
11558 | } | |
11559 | arg2 = static_cast< int >(val2); | |
11560 | } | |
11561 | if (obj2) { | |
4f89f6a3 | 11562 | { |
0085ce49 RD |
11563 | arg3 = wxString_in_helper(obj2); |
11564 | if (arg3 == NULL) SWIG_fail; | |
11565 | temp3 = true; | |
4f89f6a3 | 11566 | } |
0085ce49 RD |
11567 | } |
11568 | if (obj3) { | |
d14a1e28 | 11569 | { |
0085ce49 RD |
11570 | arg4 = &temp4; |
11571 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 11572 | } |
0085ce49 RD |
11573 | } |
11574 | if (obj4) { | |
d14a1e28 | 11575 | { |
0085ce49 RD |
11576 | arg5 = &temp5; |
11577 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 11578 | } |
0085ce49 RD |
11579 | } |
11580 | if (obj5) { | |
11581 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
11582 | if (!SWIG_IsOK(ecode6)) { | |
11583 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'"); | |
11584 | } | |
11585 | arg6 = static_cast< long >(val6); | |
11586 | } | |
11587 | if (obj6) { | |
11588 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
11589 | if (!SWIG_IsOK(res7)) { | |
11590 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 11591 | } |
0085ce49 RD |
11592 | if (!argp7) { |
11593 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
093d3ff1 | 11594 | } |
0085ce49 RD |
11595 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
11596 | } | |
11597 | if (obj7) { | |
d14a1e28 | 11598 | { |
0085ce49 RD |
11599 | arg8 = wxString_in_helper(obj7); |
11600 | if (arg8 == NULL) SWIG_fail; | |
11601 | temp8 = true; | |
d14a1e28 | 11602 | } |
0085ce49 RD |
11603 | } |
11604 | { | |
11605 | if (!wxPyCheckForApp()) SWIG_fail; | |
11606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11607 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11608 | wxPyEndAllowThreads(__tstate); | |
11609 | if (PyErr_Occurred()) SWIG_fail; | |
11610 | } | |
11611 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 ); | |
11612 | { | |
11613 | if (temp3) | |
11614 | delete arg3; | |
11615 | } | |
11616 | { | |
11617 | if (temp8) | |
11618 | delete arg8; | |
11619 | } | |
11620 | return resultobj; | |
11621 | fail: | |
11622 | { | |
11623 | if (temp3) | |
11624 | delete arg3; | |
11625 | } | |
11626 | { | |
11627 | if (temp8) | |
11628 | delete arg8; | |
11629 | } | |
11630 | return NULL; | |
d14a1e28 RD |
11631 | } |
11632 | ||
11633 | ||
0085ce49 RD |
11634 | SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11635 | PyObject *resultobj = 0; | |
11636 | wxTextCtrl *result = 0 ; | |
11637 | ||
11638 | if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail; | |
11639 | { | |
11640 | if (!wxPyCheckForApp()) SWIG_fail; | |
11641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11642 | result = (wxTextCtrl *)new wxTextCtrl(); | |
11643 | wxPyEndAllowThreads(__tstate); | |
11644 | if (PyErr_Occurred()) SWIG_fail; | |
11645 | } | |
11646 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 ); | |
11647 | return resultobj; | |
11648 | fail: | |
11649 | return NULL; | |
11650 | } | |
11651 | ||
11652 | ||
11653 | SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11654 | PyObject *resultobj = 0; | |
11655 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11656 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11657 | int arg3 = (int) -1 ; | |
11658 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11659 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11660 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11661 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11662 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11663 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11664 | long arg7 = (long) 0 ; | |
11665 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11666 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11667 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
11668 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11669 | bool result; | |
11670 | void *argp1 = 0 ; | |
11671 | int res1 = 0 ; | |
11672 | void *argp2 = 0 ; | |
11673 | int res2 = 0 ; | |
11674 | int val3 ; | |
11675 | int ecode3 = 0 ; | |
11676 | bool temp4 = false ; | |
11677 | wxPoint temp5 ; | |
11678 | wxSize temp6 ; | |
11679 | long val7 ; | |
11680 | int ecode7 = 0 ; | |
11681 | void *argp8 = 0 ; | |
11682 | int res8 = 0 ; | |
11683 | bool temp9 = false ; | |
11684 | PyObject * obj0 = 0 ; | |
11685 | PyObject * obj1 = 0 ; | |
11686 | PyObject * obj2 = 0 ; | |
11687 | PyObject * obj3 = 0 ; | |
11688 | PyObject * obj4 = 0 ; | |
11689 | PyObject * obj5 = 0 ; | |
11690 | PyObject * obj6 = 0 ; | |
11691 | PyObject * obj7 = 0 ; | |
11692 | PyObject * obj8 = 0 ; | |
11693 | char * kwnames[] = { | |
11694 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11695 | }; | |
11696 | ||
11697 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
11698 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11699 | if (!SWIG_IsOK(res1)) { | |
11700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
11701 | } | |
11702 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11703 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
11704 | if (!SWIG_IsOK(res2)) { | |
11705 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
11706 | } | |
11707 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
11708 | if (obj2) { | |
11709 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11710 | if (!SWIG_IsOK(ecode3)) { | |
11711 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
11712 | } | |
11713 | arg3 = static_cast< int >(val3); | |
11714 | } | |
11715 | if (obj3) { | |
d14a1e28 | 11716 | { |
0085ce49 RD |
11717 | arg4 = wxString_in_helper(obj3); |
11718 | if (arg4 == NULL) SWIG_fail; | |
11719 | temp4 = true; | |
d14a1e28 | 11720 | } |
0085ce49 RD |
11721 | } |
11722 | if (obj4) { | |
d14a1e28 | 11723 | { |
0085ce49 RD |
11724 | arg5 = &temp5; |
11725 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 11726 | } |
0085ce49 RD |
11727 | } |
11728 | if (obj5) { | |
d14a1e28 | 11729 | { |
0085ce49 RD |
11730 | arg6 = &temp6; |
11731 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 11732 | } |
0085ce49 RD |
11733 | } |
11734 | if (obj6) { | |
11735 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
11736 | if (!SWIG_IsOK(ecode7)) { | |
11737 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
11738 | } | |
11739 | arg7 = static_cast< long >(val7); | |
11740 | } | |
11741 | if (obj7) { | |
11742 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
11743 | if (!SWIG_IsOK(res8)) { | |
11744 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 11745 | } |
0085ce49 RD |
11746 | if (!argp8) { |
11747 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
093d3ff1 | 11748 | } |
0085ce49 RD |
11749 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
11750 | } | |
11751 | if (obj8) { | |
d14a1e28 | 11752 | { |
0085ce49 RD |
11753 | arg9 = wxString_in_helper(obj8); |
11754 | if (arg9 == NULL) SWIG_fail; | |
11755 | temp9 = true; | |
d14a1e28 | 11756 | } |
0085ce49 RD |
11757 | } |
11758 | { | |
11759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11760 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11761 | wxPyEndAllowThreads(__tstate); | |
11762 | if (PyErr_Occurred()) SWIG_fail; | |
11763 | } | |
11764 | { | |
11765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11766 | } | |
11767 | { | |
11768 | if (temp4) | |
11769 | delete arg4; | |
11770 | } | |
11771 | { | |
11772 | if (temp9) | |
11773 | delete arg9; | |
11774 | } | |
11775 | return resultobj; | |
11776 | fail: | |
11777 | { | |
11778 | if (temp4) | |
11779 | delete arg4; | |
11780 | } | |
11781 | { | |
11782 | if (temp9) | |
11783 | delete arg9; | |
11784 | } | |
11785 | return NULL; | |
d14a1e28 RD |
11786 | } |
11787 | ||
11788 | ||
0085ce49 RD |
11789 | SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11790 | PyObject *resultobj = 0; | |
11791 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11792 | wxString result; | |
11793 | void *argp1 = 0 ; | |
11794 | int res1 = 0 ; | |
11795 | PyObject *swig_obj[1] ; | |
11796 | ||
11797 | if (!args) SWIG_fail; | |
11798 | swig_obj[0] = args; | |
11799 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11800 | if (!SWIG_IsOK(res1)) { | |
11801 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11802 | } | |
11803 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11804 | { | |
11805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11806 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
11807 | wxPyEndAllowThreads(__tstate); | |
11808 | if (PyErr_Occurred()) SWIG_fail; | |
11809 | } | |
11810 | { | |
11811 | #if wxUSE_UNICODE | |
11812 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11813 | #else | |
11814 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11815 | #endif | |
11816 | } | |
11817 | return resultobj; | |
11818 | fail: | |
11819 | return NULL; | |
11820 | } | |
11821 | ||
11822 | ||
11823 | SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11824 | PyObject *resultobj = 0; | |
11825 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11826 | wxString *arg2 = 0 ; | |
11827 | void *argp1 = 0 ; | |
11828 | int res1 = 0 ; | |
11829 | bool temp2 = false ; | |
11830 | PyObject * obj0 = 0 ; | |
11831 | PyObject * obj1 = 0 ; | |
11832 | char * kwnames[] = { | |
11833 | (char *) "self",(char *) "value", NULL | |
11834 | }; | |
11835 | ||
11836 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
11837 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11838 | if (!SWIG_IsOK(res1)) { | |
11839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
11840 | } | |
11841 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11842 | { | |
11843 | arg2 = wxString_in_helper(obj1); | |
11844 | if (arg2 == NULL) SWIG_fail; | |
11845 | temp2 = true; | |
11846 | } | |
11847 | { | |
11848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11849 | (arg1)->SetValue((wxString const &)*arg2); | |
11850 | wxPyEndAllowThreads(__tstate); | |
11851 | if (PyErr_Occurred()) SWIG_fail; | |
11852 | } | |
11853 | resultobj = SWIG_Py_Void(); | |
11854 | { | |
11855 | if (temp2) | |
11856 | delete arg2; | |
11857 | } | |
11858 | return resultobj; | |
11859 | fail: | |
11860 | { | |
11861 | if (temp2) | |
11862 | delete arg2; | |
11863 | } | |
11864 | return NULL; | |
11865 | } | |
11866 | ||
11867 | ||
11868 | SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11869 | PyObject *resultobj = 0; | |
11870 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11871 | long arg2 ; | |
11872 | long arg3 ; | |
11873 | wxString result; | |
11874 | void *argp1 = 0 ; | |
11875 | int res1 = 0 ; | |
11876 | long val2 ; | |
11877 | int ecode2 = 0 ; | |
11878 | long val3 ; | |
11879 | int ecode3 = 0 ; | |
11880 | PyObject * obj0 = 0 ; | |
11881 | PyObject * obj1 = 0 ; | |
11882 | PyObject * obj2 = 0 ; | |
11883 | char * kwnames[] = { | |
11884 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
11885 | }; | |
11886 | ||
11887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11889 | if (!SWIG_IsOK(res1)) { | |
11890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11891 | } | |
11892 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11893 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
11894 | if (!SWIG_IsOK(ecode2)) { | |
11895 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'"); | |
11896 | } | |
11897 | arg2 = static_cast< long >(val2); | |
11898 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
11899 | if (!SWIG_IsOK(ecode3)) { | |
11900 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'"); | |
11901 | } | |
11902 | arg3 = static_cast< long >(val3); | |
11903 | { | |
11904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11905 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
11906 | wxPyEndAllowThreads(__tstate); | |
11907 | if (PyErr_Occurred()) SWIG_fail; | |
11908 | } | |
11909 | { | |
11910 | #if wxUSE_UNICODE | |
11911 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11912 | #else | |
11913 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11914 | #endif | |
11915 | } | |
11916 | return resultobj; | |
11917 | fail: | |
11918 | return NULL; | |
11919 | } | |
11920 | ||
11921 | ||
11922 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11923 | PyObject *resultobj = 0; | |
11924 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11925 | long arg2 ; | |
11926 | int result; | |
11927 | void *argp1 = 0 ; | |
11928 | int res1 = 0 ; | |
11929 | long val2 ; | |
11930 | int ecode2 = 0 ; | |
11931 | PyObject * obj0 = 0 ; | |
11932 | PyObject * obj1 = 0 ; | |
11933 | char * kwnames[] = { | |
11934 | (char *) "self",(char *) "lineNo", NULL | |
11935 | }; | |
11936 | ||
11937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
11938 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11939 | if (!SWIG_IsOK(res1)) { | |
11940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11941 | } | |
11942 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11943 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
11944 | if (!SWIG_IsOK(ecode2)) { | |
11945 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'"); | |
11946 | } | |
11947 | arg2 = static_cast< long >(val2); | |
11948 | { | |
11949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11950 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
11951 | wxPyEndAllowThreads(__tstate); | |
11952 | if (PyErr_Occurred()) SWIG_fail; | |
11953 | } | |
11954 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11955 | return resultobj; | |
11956 | fail: | |
11957 | return NULL; | |
11958 | } | |
11959 | ||
11960 | ||
11961 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11962 | PyObject *resultobj = 0; | |
11963 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11964 | long arg2 ; | |
11965 | wxString result; | |
11966 | void *argp1 = 0 ; | |
11967 | int res1 = 0 ; | |
11968 | long val2 ; | |
11969 | int ecode2 = 0 ; | |
11970 | PyObject * obj0 = 0 ; | |
11971 | PyObject * obj1 = 0 ; | |
11972 | char * kwnames[] = { | |
11973 | (char *) "self",(char *) "lineNo", NULL | |
11974 | }; | |
11975 | ||
11976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail; | |
11977 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11978 | if (!SWIG_IsOK(res1)) { | |
11979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11980 | } | |
11981 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11982 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
11983 | if (!SWIG_IsOK(ecode2)) { | |
11984 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'"); | |
11985 | } | |
11986 | arg2 = static_cast< long >(val2); | |
11987 | { | |
11988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11989 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
11990 | wxPyEndAllowThreads(__tstate); | |
11991 | if (PyErr_Occurred()) SWIG_fail; | |
11992 | } | |
11993 | { | |
11994 | #if wxUSE_UNICODE | |
11995 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11996 | #else | |
11997 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11998 | #endif | |
11999 | } | |
12000 | return resultobj; | |
12001 | fail: | |
12002 | return NULL; | |
d14a1e28 RD |
12003 | } |
12004 | ||
12005 | ||
0085ce49 RD |
12006 | SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12007 | PyObject *resultobj = 0; | |
12008 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12009 | int result; | |
12010 | void *argp1 = 0 ; | |
12011 | int res1 = 0 ; | |
12012 | PyObject *swig_obj[1] ; | |
12013 | ||
12014 | if (!args) SWIG_fail; | |
12015 | swig_obj[0] = args; | |
12016 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12017 | if (!SWIG_IsOK(res1)) { | |
12018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12019 | } | |
12020 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12021 | { | |
12022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12023 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
12024 | wxPyEndAllowThreads(__tstate); | |
12025 | if (PyErr_Occurred()) SWIG_fail; | |
12026 | } | |
12027 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12028 | return resultobj; | |
12029 | fail: | |
12030 | return NULL; | |
d14a1e28 RD |
12031 | } |
12032 | ||
12033 | ||
0085ce49 RD |
12034 | SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12035 | PyObject *resultobj = 0; | |
12036 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12037 | bool result; | |
12038 | void *argp1 = 0 ; | |
12039 | int res1 = 0 ; | |
12040 | PyObject *swig_obj[1] ; | |
12041 | ||
12042 | if (!args) SWIG_fail; | |
12043 | swig_obj[0] = args; | |
12044 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12045 | if (!SWIG_IsOK(res1)) { | |
12046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12047 | } | |
12048 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12049 | { | |
12050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12051 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
12052 | wxPyEndAllowThreads(__tstate); | |
12053 | if (PyErr_Occurred()) SWIG_fail; | |
12054 | } | |
12055 | { | |
12056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12057 | } | |
12058 | return resultobj; | |
12059 | fail: | |
12060 | return NULL; | |
c3eb6258 RD |
12061 | } |
12062 | ||
12063 | ||
0085ce49 RD |
12064 | SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12065 | PyObject *resultobj = 0; | |
12066 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12067 | bool result; | |
12068 | void *argp1 = 0 ; | |
12069 | int res1 = 0 ; | |
12070 | PyObject *swig_obj[1] ; | |
12071 | ||
12072 | if (!args) SWIG_fail; | |
12073 | swig_obj[0] = args; | |
12074 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12075 | if (!SWIG_IsOK(res1)) { | |
12076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12077 | } | |
12078 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12079 | { | |
12080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12081 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
12082 | wxPyEndAllowThreads(__tstate); | |
12083 | if (PyErr_Occurred()) SWIG_fail; | |
12084 | } | |
12085 | { | |
12086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12087 | } | |
12088 | return resultobj; | |
12089 | fail: | |
12090 | return NULL; | |
74a57fcd RD |
12091 | } |
12092 | ||
12093 | ||
0085ce49 RD |
12094 | SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12095 | PyObject *resultobj = 0; | |
12096 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12097 | bool result; | |
12098 | void *argp1 = 0 ; | |
12099 | int res1 = 0 ; | |
12100 | PyObject *swig_obj[1] ; | |
12101 | ||
12102 | if (!args) SWIG_fail; | |
12103 | swig_obj[0] = args; | |
12104 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12105 | if (!SWIG_IsOK(res1)) { | |
12106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12107 | } | |
12108 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12109 | { | |
12110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12111 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
12112 | wxPyEndAllowThreads(__tstate); | |
12113 | if (PyErr_Occurred()) SWIG_fail; | |
12114 | } | |
12115 | { | |
12116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12117 | } | |
12118 | return resultobj; | |
12119 | fail: | |
12120 | return NULL; | |
d14a1e28 RD |
12121 | } |
12122 | ||
12123 | ||
0085ce49 RD |
12124 | SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12125 | PyObject *resultobj = 0; | |
12126 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12127 | bool result; | |
12128 | void *argp1 = 0 ; | |
12129 | int res1 = 0 ; | |
12130 | PyObject *swig_obj[1] ; | |
12131 | ||
12132 | if (!args) SWIG_fail; | |
12133 | swig_obj[0] = args; | |
12134 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12135 | if (!SWIG_IsOK(res1)) { | |
12136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12137 | } | |
12138 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12139 | { | |
12140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12141 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
12142 | wxPyEndAllowThreads(__tstate); | |
12143 | if (PyErr_Occurred()) SWIG_fail; | |
12144 | } | |
12145 | { | |
12146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12147 | } | |
12148 | return resultobj; | |
12149 | fail: | |
12150 | return NULL; | |
12151 | } | |
12152 | ||
12153 | ||
12154 | SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12155 | PyObject *resultobj = 0; | |
12156 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12157 | long *arg2 = (long *) 0 ; | |
12158 | long *arg3 = (long *) 0 ; | |
12159 | void *argp1 = 0 ; | |
12160 | int res1 = 0 ; | |
12161 | long temp2 ; | |
12162 | int res2 = SWIG_TMPOBJ ; | |
12163 | long temp3 ; | |
12164 | int res3 = SWIG_TMPOBJ ; | |
12165 | PyObject *swig_obj[1] ; | |
12166 | ||
12167 | arg2 = &temp2; | |
12168 | arg3 = &temp3; | |
12169 | if (!args) SWIG_fail; | |
12170 | swig_obj[0] = args; | |
12171 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12172 | if (!SWIG_IsOK(res1)) { | |
12173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12174 | } | |
12175 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12176 | { | |
12177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12178 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
12179 | wxPyEndAllowThreads(__tstate); | |
12180 | if (PyErr_Occurred()) SWIG_fail; | |
12181 | } | |
12182 | resultobj = SWIG_Py_Void(); | |
12183 | if (SWIG_IsTmpObj(res2)) { | |
12184 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2))); | |
12185 | } else { | |
12186 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12187 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags)); | |
12188 | } | |
12189 | if (SWIG_IsTmpObj(res3)) { | |
12190 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
12191 | } else { | |
12192 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12193 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
12194 | } | |
12195 | return resultobj; | |
12196 | fail: | |
12197 | return NULL; | |
d14a1e28 RD |
12198 | } |
12199 | ||
12200 | ||
0085ce49 RD |
12201 | SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12202 | PyObject *resultobj = 0; | |
12203 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12204 | wxString result; | |
12205 | void *argp1 = 0 ; | |
12206 | int res1 = 0 ; | |
12207 | PyObject *swig_obj[1] ; | |
12208 | ||
12209 | if (!args) SWIG_fail; | |
12210 | swig_obj[0] = args; | |
12211 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12212 | if (!SWIG_IsOK(res1)) { | |
12213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12214 | } | |
12215 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12216 | { | |
12217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12218 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
12219 | wxPyEndAllowThreads(__tstate); | |
12220 | if (PyErr_Occurred()) SWIG_fail; | |
12221 | } | |
12222 | { | |
12223 | #if wxUSE_UNICODE | |
12224 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12225 | #else | |
12226 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12227 | #endif | |
12228 | } | |
12229 | return resultobj; | |
12230 | fail: | |
12231 | return NULL; | |
d14a1e28 RD |
12232 | } |
12233 | ||
12234 | ||
0085ce49 RD |
12235 | SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12236 | PyObject *resultobj = 0; | |
12237 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12238 | void *argp1 = 0 ; | |
12239 | int res1 = 0 ; | |
12240 | PyObject *swig_obj[1] ; | |
12241 | ||
12242 | if (!args) SWIG_fail; | |
12243 | swig_obj[0] = args; | |
12244 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12245 | if (!SWIG_IsOK(res1)) { | |
12246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12247 | } | |
12248 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12249 | { | |
12250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12251 | (arg1)->Clear(); | |
12252 | wxPyEndAllowThreads(__tstate); | |
12253 | if (PyErr_Occurred()) SWIG_fail; | |
12254 | } | |
12255 | resultobj = SWIG_Py_Void(); | |
12256 | return resultobj; | |
12257 | fail: | |
12258 | return NULL; | |
12259 | } | |
12260 | ||
12261 | ||
12262 | SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12263 | PyObject *resultobj = 0; | |
12264 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12265 | long arg2 ; | |
12266 | long arg3 ; | |
12267 | wxString *arg4 = 0 ; | |
12268 | void *argp1 = 0 ; | |
12269 | int res1 = 0 ; | |
12270 | long val2 ; | |
12271 | int ecode2 = 0 ; | |
12272 | long val3 ; | |
12273 | int ecode3 = 0 ; | |
12274 | bool temp4 = false ; | |
12275 | PyObject * obj0 = 0 ; | |
12276 | PyObject * obj1 = 0 ; | |
12277 | PyObject * obj2 = 0 ; | |
12278 | PyObject * obj3 = 0 ; | |
12279 | char * kwnames[] = { | |
12280 | (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL | |
12281 | }; | |
12282 | ||
12283 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
12284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12285 | if (!SWIG_IsOK(res1)) { | |
12286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12287 | } | |
12288 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12289 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12290 | if (!SWIG_IsOK(ecode2)) { | |
12291 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'"); | |
12292 | } | |
12293 | arg2 = static_cast< long >(val2); | |
12294 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12295 | if (!SWIG_IsOK(ecode3)) { | |
12296 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'"); | |
12297 | } | |
12298 | arg3 = static_cast< long >(val3); | |
12299 | { | |
12300 | arg4 = wxString_in_helper(obj3); | |
12301 | if (arg4 == NULL) SWIG_fail; | |
12302 | temp4 = true; | |
12303 | } | |
12304 | { | |
12305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12306 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
12307 | wxPyEndAllowThreads(__tstate); | |
12308 | if (PyErr_Occurred()) SWIG_fail; | |
12309 | } | |
12310 | resultobj = SWIG_Py_Void(); | |
12311 | { | |
12312 | if (temp4) | |
12313 | delete arg4; | |
12314 | } | |
12315 | return resultobj; | |
12316 | fail: | |
12317 | { | |
12318 | if (temp4) | |
12319 | delete arg4; | |
12320 | } | |
12321 | return NULL; | |
12322 | } | |
12323 | ||
12324 | ||
12325 | SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12326 | PyObject *resultobj = 0; | |
12327 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12328 | long arg2 ; | |
12329 | long arg3 ; | |
12330 | void *argp1 = 0 ; | |
12331 | int res1 = 0 ; | |
12332 | long val2 ; | |
12333 | int ecode2 = 0 ; | |
12334 | long val3 ; | |
12335 | int ecode3 = 0 ; | |
12336 | PyObject * obj0 = 0 ; | |
12337 | PyObject * obj1 = 0 ; | |
12338 | PyObject * obj2 = 0 ; | |
12339 | char * kwnames[] = { | |
12340 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
12341 | }; | |
12342 | ||
12343 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12344 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12345 | if (!SWIG_IsOK(res1)) { | |
12346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12347 | } | |
12348 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12349 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12350 | if (!SWIG_IsOK(ecode2)) { | |
12351 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'"); | |
12352 | } | |
12353 | arg2 = static_cast< long >(val2); | |
12354 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12355 | if (!SWIG_IsOK(ecode3)) { | |
12356 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'"); | |
12357 | } | |
12358 | arg3 = static_cast< long >(val3); | |
12359 | { | |
12360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12361 | (arg1)->Remove(arg2,arg3); | |
12362 | wxPyEndAllowThreads(__tstate); | |
12363 | if (PyErr_Occurred()) SWIG_fail; | |
12364 | } | |
12365 | resultobj = SWIG_Py_Void(); | |
12366 | return resultobj; | |
12367 | fail: | |
12368 | return NULL; | |
12369 | } | |
12370 | ||
12371 | ||
12372 | SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12373 | PyObject *resultobj = 0; | |
12374 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12375 | wxString *arg2 = 0 ; | |
12376 | bool result; | |
12377 | void *argp1 = 0 ; | |
12378 | int res1 = 0 ; | |
12379 | bool temp2 = false ; | |
12380 | PyObject * obj0 = 0 ; | |
12381 | PyObject * obj1 = 0 ; | |
12382 | char * kwnames[] = { | |
12383 | (char *) "self",(char *) "file", NULL | |
12384 | }; | |
12385 | ||
12386 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
12387 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12388 | if (!SWIG_IsOK(res1)) { | |
12389 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12390 | } | |
12391 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12392 | { | |
12393 | arg2 = wxString_in_helper(obj1); | |
12394 | if (arg2 == NULL) SWIG_fail; | |
12395 | temp2 = true; | |
12396 | } | |
12397 | { | |
12398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12399 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
12400 | wxPyEndAllowThreads(__tstate); | |
12401 | if (PyErr_Occurred()) SWIG_fail; | |
12402 | } | |
12403 | { | |
12404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12405 | } | |
12406 | { | |
12407 | if (temp2) | |
12408 | delete arg2; | |
12409 | } | |
12410 | return resultobj; | |
12411 | fail: | |
12412 | { | |
12413 | if (temp2) | |
12414 | delete arg2; | |
12415 | } | |
12416 | return NULL; | |
12417 | } | |
12418 | ||
12419 | ||
12420 | SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12421 | PyObject *resultobj = 0; | |
12422 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12423 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12424 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12425 | bool result; | |
12426 | void *argp1 = 0 ; | |
12427 | int res1 = 0 ; | |
12428 | bool temp2 = false ; | |
12429 | PyObject * obj0 = 0 ; | |
12430 | PyObject * obj1 = 0 ; | |
12431 | char * kwnames[] = { | |
12432 | (char *) "self",(char *) "file", NULL | |
12433 | }; | |
12434 | ||
12435 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
12436 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12437 | if (!SWIG_IsOK(res1)) { | |
12438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12439 | } | |
12440 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12441 | if (obj1) { | |
4f89f6a3 | 12442 | { |
0085ce49 RD |
12443 | arg2 = wxString_in_helper(obj1); |
12444 | if (arg2 == NULL) SWIG_fail; | |
12445 | temp2 = true; | |
4f89f6a3 | 12446 | } |
0085ce49 RD |
12447 | } |
12448 | { | |
12449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12450 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
12451 | wxPyEndAllowThreads(__tstate); | |
12452 | if (PyErr_Occurred()) SWIG_fail; | |
12453 | } | |
12454 | { | |
12455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12456 | } | |
12457 | { | |
12458 | if (temp2) | |
12459 | delete arg2; | |
12460 | } | |
12461 | return resultobj; | |
12462 | fail: | |
12463 | { | |
12464 | if (temp2) | |
12465 | delete arg2; | |
12466 | } | |
12467 | return NULL; | |
d14a1e28 RD |
12468 | } |
12469 | ||
12470 | ||
0085ce49 RD |
12471 | SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12472 | PyObject *resultobj = 0; | |
12473 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12474 | void *argp1 = 0 ; | |
12475 | int res1 = 0 ; | |
12476 | PyObject *swig_obj[1] ; | |
12477 | ||
12478 | if (!args) SWIG_fail; | |
12479 | swig_obj[0] = args; | |
12480 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12481 | if (!SWIG_IsOK(res1)) { | |
12482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12483 | } | |
12484 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12485 | { | |
12486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12487 | (arg1)->MarkDirty(); | |
12488 | wxPyEndAllowThreads(__tstate); | |
12489 | if (PyErr_Occurred()) SWIG_fail; | |
12490 | } | |
12491 | resultobj = SWIG_Py_Void(); | |
12492 | return resultobj; | |
12493 | fail: | |
12494 | return NULL; | |
d14a1e28 RD |
12495 | } |
12496 | ||
12497 | ||
0085ce49 RD |
12498 | SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12499 | PyObject *resultobj = 0; | |
12500 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12501 | void *argp1 = 0 ; | |
12502 | int res1 = 0 ; | |
12503 | PyObject *swig_obj[1] ; | |
12504 | ||
12505 | if (!args) SWIG_fail; | |
12506 | swig_obj[0] = args; | |
12507 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12508 | if (!SWIG_IsOK(res1)) { | |
12509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12510 | } | |
12511 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12512 | { | |
12513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12514 | (arg1)->DiscardEdits(); | |
12515 | wxPyEndAllowThreads(__tstate); | |
12516 | if (PyErr_Occurred()) SWIG_fail; | |
12517 | } | |
12518 | resultobj = SWIG_Py_Void(); | |
12519 | return resultobj; | |
12520 | fail: | |
12521 | return NULL; | |
12522 | } | |
12523 | ||
12524 | ||
12525 | SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12526 | PyObject *resultobj = 0; | |
12527 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12528 | unsigned long arg2 ; | |
12529 | void *argp1 = 0 ; | |
12530 | int res1 = 0 ; | |
12531 | unsigned long val2 ; | |
12532 | int ecode2 = 0 ; | |
12533 | PyObject * obj0 = 0 ; | |
12534 | PyObject * obj1 = 0 ; | |
12535 | char * kwnames[] = { | |
12536 | (char *) "self",(char *) "len", NULL | |
12537 | }; | |
12538 | ||
12539 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
12540 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12541 | if (!SWIG_IsOK(res1)) { | |
12542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12543 | } | |
12544 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12545 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
12546 | if (!SWIG_IsOK(ecode2)) { | |
12547 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'"); | |
12548 | } | |
12549 | arg2 = static_cast< unsigned long >(val2); | |
12550 | { | |
12551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12552 | (arg1)->SetMaxLength(arg2); | |
12553 | wxPyEndAllowThreads(__tstate); | |
12554 | if (PyErr_Occurred()) SWIG_fail; | |
12555 | } | |
12556 | resultobj = SWIG_Py_Void(); | |
12557 | return resultobj; | |
12558 | fail: | |
12559 | return NULL; | |
12560 | } | |
12561 | ||
12562 | ||
12563 | SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12564 | PyObject *resultobj = 0; | |
12565 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12566 | wxString *arg2 = 0 ; | |
12567 | void *argp1 = 0 ; | |
12568 | int res1 = 0 ; | |
12569 | bool temp2 = false ; | |
12570 | PyObject * obj0 = 0 ; | |
12571 | PyObject * obj1 = 0 ; | |
12572 | char * kwnames[] = { | |
12573 | (char *) "self",(char *) "text", NULL | |
12574 | }; | |
12575 | ||
12576 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail; | |
12577 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12578 | if (!SWIG_IsOK(res1)) { | |
12579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12580 | } | |
12581 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12582 | { | |
12583 | arg2 = wxString_in_helper(obj1); | |
12584 | if (arg2 == NULL) SWIG_fail; | |
12585 | temp2 = true; | |
12586 | } | |
12587 | { | |
12588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12589 | (arg1)->WriteText((wxString const &)*arg2); | |
12590 | wxPyEndAllowThreads(__tstate); | |
12591 | if (PyErr_Occurred()) SWIG_fail; | |
12592 | } | |
12593 | resultobj = SWIG_Py_Void(); | |
12594 | { | |
12595 | if (temp2) | |
12596 | delete arg2; | |
12597 | } | |
12598 | return resultobj; | |
12599 | fail: | |
12600 | { | |
12601 | if (temp2) | |
12602 | delete arg2; | |
12603 | } | |
12604 | return NULL; | |
d14a1e28 RD |
12605 | } |
12606 | ||
12607 | ||
0085ce49 RD |
12608 | SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12609 | PyObject *resultobj = 0; | |
12610 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12611 | wxString *arg2 = 0 ; | |
12612 | void *argp1 = 0 ; | |
12613 | int res1 = 0 ; | |
12614 | bool temp2 = false ; | |
12615 | PyObject * obj0 = 0 ; | |
12616 | PyObject * obj1 = 0 ; | |
12617 | char * kwnames[] = { | |
12618 | (char *) "self",(char *) "text", NULL | |
12619 | }; | |
12620 | ||
12621 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail; | |
12622 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12623 | if (!SWIG_IsOK(res1)) { | |
12624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12625 | } | |
12626 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12627 | { | |
12628 | arg2 = wxString_in_helper(obj1); | |
12629 | if (arg2 == NULL) SWIG_fail; | |
12630 | temp2 = true; | |
12631 | } | |
12632 | { | |
12633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12634 | (arg1)->AppendText((wxString const &)*arg2); | |
12635 | wxPyEndAllowThreads(__tstate); | |
12636 | if (PyErr_Occurred()) SWIG_fail; | |
12637 | } | |
12638 | resultobj = SWIG_Py_Void(); | |
12639 | { | |
12640 | if (temp2) | |
12641 | delete arg2; | |
12642 | } | |
12643 | return resultobj; | |
12644 | fail: | |
12645 | { | |
12646 | if (temp2) | |
12647 | delete arg2; | |
12648 | } | |
12649 | return NULL; | |
12650 | } | |
12651 | ||
12652 | ||
12653 | SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12654 | PyObject *resultobj = 0; | |
12655 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12656 | wxKeyEvent *arg2 = 0 ; | |
12657 | bool result; | |
12658 | void *argp1 = 0 ; | |
12659 | int res1 = 0 ; | |
12660 | void *argp2 = 0 ; | |
12661 | int res2 = 0 ; | |
12662 | PyObject * obj0 = 0 ; | |
12663 | PyObject * obj1 = 0 ; | |
12664 | char * kwnames[] = { | |
12665 | (char *) "self",(char *) "event", NULL | |
12666 | }; | |
12667 | ||
12668 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail; | |
12669 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12670 | if (!SWIG_IsOK(res1)) { | |
12671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12672 | } | |
12673 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12674 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0); | |
12675 | if (!SWIG_IsOK(res2)) { | |
12676 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
12677 | } | |
12678 | if (!argp2) { | |
12679 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
12680 | } | |
12681 | arg2 = reinterpret_cast< wxKeyEvent * >(argp2); | |
12682 | { | |
12683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12684 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
12685 | wxPyEndAllowThreads(__tstate); | |
12686 | if (PyErr_Occurred()) SWIG_fail; | |
12687 | } | |
12688 | { | |
12689 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12690 | } | |
12691 | return resultobj; | |
12692 | fail: | |
12693 | return NULL; | |
12694 | } | |
12695 | ||
12696 | ||
12697 | SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12698 | PyObject *resultobj = 0; | |
12699 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12700 | long arg2 ; | |
12701 | long arg3 ; | |
12702 | wxTextAttr *arg4 = 0 ; | |
12703 | bool result; | |
12704 | void *argp1 = 0 ; | |
12705 | int res1 = 0 ; | |
12706 | long val2 ; | |
12707 | int ecode2 = 0 ; | |
12708 | long val3 ; | |
12709 | int ecode3 = 0 ; | |
12710 | void *argp4 = 0 ; | |
12711 | int res4 = 0 ; | |
12712 | PyObject * obj0 = 0 ; | |
12713 | PyObject * obj1 = 0 ; | |
12714 | PyObject * obj2 = 0 ; | |
12715 | PyObject * obj3 = 0 ; | |
12716 | char * kwnames[] = { | |
12717 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
12718 | }; | |
12719 | ||
12720 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
12721 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12722 | if (!SWIG_IsOK(res1)) { | |
12723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12724 | } | |
12725 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12726 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12727 | if (!SWIG_IsOK(ecode2)) { | |
12728 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'"); | |
12729 | } | |
12730 | arg2 = static_cast< long >(val2); | |
12731 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12732 | if (!SWIG_IsOK(ecode3)) { | |
12733 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'"); | |
12734 | } | |
12735 | arg3 = static_cast< long >(val3); | |
12736 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
12737 | if (!SWIG_IsOK(res4)) { | |
12738 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'"); | |
12739 | } | |
12740 | if (!argp4) { | |
12741 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'"); | |
12742 | } | |
12743 | arg4 = reinterpret_cast< wxTextAttr * >(argp4); | |
12744 | { | |
12745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12746 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
12747 | wxPyEndAllowThreads(__tstate); | |
12748 | if (PyErr_Occurred()) SWIG_fail; | |
12749 | } | |
12750 | { | |
12751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12752 | } | |
12753 | return resultobj; | |
12754 | fail: | |
12755 | return NULL; | |
12756 | } | |
12757 | ||
12758 | ||
12759 | SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12760 | PyObject *resultobj = 0; | |
12761 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12762 | long arg2 ; | |
12763 | wxTextAttr *arg3 = 0 ; | |
12764 | bool result; | |
12765 | void *argp1 = 0 ; | |
12766 | int res1 = 0 ; | |
12767 | long val2 ; | |
12768 | int ecode2 = 0 ; | |
12769 | void *argp3 = 0 ; | |
12770 | int res3 = 0 ; | |
12771 | PyObject * obj0 = 0 ; | |
12772 | PyObject * obj1 = 0 ; | |
12773 | PyObject * obj2 = 0 ; | |
12774 | char * kwnames[] = { | |
12775 | (char *) "self",(char *) "position",(char *) "style", NULL | |
12776 | }; | |
12777 | ||
12778 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12779 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12780 | if (!SWIG_IsOK(res1)) { | |
12781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12782 | } | |
12783 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12784 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12785 | if (!SWIG_IsOK(ecode2)) { | |
12786 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'"); | |
12787 | } | |
12788 | arg2 = static_cast< long >(val2); | |
12789 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 ); | |
12790 | if (!SWIG_IsOK(res3)) { | |
12791 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'"); | |
12792 | } | |
12793 | if (!argp3) { | |
12794 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'"); | |
12795 | } | |
12796 | arg3 = reinterpret_cast< wxTextAttr * >(argp3); | |
12797 | { | |
12798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12799 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
12800 | wxPyEndAllowThreads(__tstate); | |
12801 | if (PyErr_Occurred()) SWIG_fail; | |
12802 | } | |
12803 | { | |
12804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12805 | } | |
12806 | return resultobj; | |
12807 | fail: | |
12808 | return NULL; | |
12809 | } | |
12810 | ||
12811 | ||
12812 | SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12813 | PyObject *resultobj = 0; | |
12814 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12815 | wxTextAttr *arg2 = 0 ; | |
12816 | bool result; | |
12817 | void *argp1 = 0 ; | |
12818 | int res1 = 0 ; | |
12819 | void *argp2 = 0 ; | |
12820 | int res2 = 0 ; | |
12821 | PyObject * obj0 = 0 ; | |
12822 | PyObject * obj1 = 0 ; | |
12823 | char * kwnames[] = { | |
12824 | (char *) "self",(char *) "style", NULL | |
12825 | }; | |
12826 | ||
12827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) 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_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12831 | } | |
12832 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12833 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
12834 | if (!SWIG_IsOK(res2)) { | |
12835 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
12836 | } | |
12837 | if (!argp2) { | |
12838 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
12839 | } | |
12840 | arg2 = reinterpret_cast< wxTextAttr * >(argp2); | |
12841 | { | |
12842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12843 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
12844 | wxPyEndAllowThreads(__tstate); | |
12845 | if (PyErr_Occurred()) SWIG_fail; | |
12846 | } | |
12847 | { | |
12848 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12849 | } | |
12850 | return resultobj; | |
12851 | fail: | |
12852 | return NULL; | |
d14a1e28 RD |
12853 | } |
12854 | ||
12855 | ||
0085ce49 RD |
12856 | SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12857 | PyObject *resultobj = 0; | |
12858 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12859 | wxTextAttr *result = 0 ; | |
12860 | void *argp1 = 0 ; | |
12861 | int res1 = 0 ; | |
12862 | PyObject *swig_obj[1] ; | |
12863 | ||
12864 | if (!args) SWIG_fail; | |
12865 | swig_obj[0] = args; | |
12866 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12867 | if (!SWIG_IsOK(res1)) { | |
12868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12869 | } | |
12870 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12871 | { | |
12872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12873 | { |
0085ce49 RD |
12874 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); |
12875 | result = (wxTextAttr *) &_result_ref; | |
093d3ff1 | 12876 | } |
0085ce49 RD |
12877 | wxPyEndAllowThreads(__tstate); |
12878 | if (PyErr_Occurred()) SWIG_fail; | |
12879 | } | |
12880 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
12881 | return resultobj; | |
12882 | fail: | |
12883 | return NULL; | |
12884 | } | |
12885 | ||
12886 | ||
12887 | SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12888 | PyObject *resultobj = 0; | |
12889 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12890 | long arg2 ; | |
12891 | long arg3 ; | |
12892 | long result; | |
12893 | void *argp1 = 0 ; | |
12894 | int res1 = 0 ; | |
12895 | long val2 ; | |
12896 | int ecode2 = 0 ; | |
12897 | long val3 ; | |
12898 | int ecode3 = 0 ; | |
12899 | PyObject * obj0 = 0 ; | |
12900 | PyObject * obj1 = 0 ; | |
12901 | PyObject * obj2 = 0 ; | |
12902 | char * kwnames[] = { | |
12903 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12904 | }; | |
12905 | ||
12906 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12907 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12908 | if (!SWIG_IsOK(res1)) { | |
12909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12910 | } | |
12911 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12912 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12913 | if (!SWIG_IsOK(ecode2)) { | |
12914 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'"); | |
12915 | } | |
12916 | arg2 = static_cast< long >(val2); | |
12917 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12918 | if (!SWIG_IsOK(ecode3)) { | |
12919 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'"); | |
12920 | } | |
12921 | arg3 = static_cast< long >(val3); | |
12922 | { | |
12923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12924 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
12925 | wxPyEndAllowThreads(__tstate); | |
12926 | if (PyErr_Occurred()) SWIG_fail; | |
12927 | } | |
12928 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
12929 | return resultobj; | |
12930 | fail: | |
12931 | return NULL; | |
12932 | } | |
12933 | ||
12934 | ||
12935 | SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12936 | PyObject *resultobj = 0; | |
12937 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12938 | long arg2 ; | |
12939 | long *arg3 = (long *) 0 ; | |
12940 | long *arg4 = (long *) 0 ; | |
12941 | void *argp1 = 0 ; | |
12942 | int res1 = 0 ; | |
12943 | long val2 ; | |
12944 | int ecode2 = 0 ; | |
12945 | long temp3 ; | |
12946 | int res3 = SWIG_TMPOBJ ; | |
12947 | long temp4 ; | |
12948 | int res4 = SWIG_TMPOBJ ; | |
12949 | PyObject * obj0 = 0 ; | |
12950 | PyObject * obj1 = 0 ; | |
12951 | char * kwnames[] = { | |
12952 | (char *) "self",(char *) "pos", NULL | |
12953 | }; | |
12954 | ||
12955 | arg3 = &temp3; | |
12956 | arg4 = &temp4; | |
12957 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail; | |
12958 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12959 | if (!SWIG_IsOK(res1)) { | |
12960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12961 | } | |
12962 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12963 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12964 | if (!SWIG_IsOK(ecode2)) { | |
12965 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'"); | |
12966 | } | |
12967 | arg2 = static_cast< long >(val2); | |
12968 | { | |
12969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12970 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
12971 | wxPyEndAllowThreads(__tstate); | |
12972 | if (PyErr_Occurred()) SWIG_fail; | |
12973 | } | |
12974 | resultobj = SWIG_Py_Void(); | |
12975 | if (SWIG_IsTmpObj(res3)) { | |
12976 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
12977 | } else { | |
12978 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12979 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
12980 | } | |
12981 | if (SWIG_IsTmpObj(res4)) { | |
12982 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
12983 | } else { | |
12984 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12985 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
12986 | } | |
12987 | return resultobj; | |
12988 | fail: | |
12989 | return NULL; | |
12990 | } | |
12991 | ||
12992 | ||
12993 | SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12994 | PyObject *resultobj = 0; | |
12995 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12996 | long arg2 ; | |
12997 | void *argp1 = 0 ; | |
12998 | int res1 = 0 ; | |
12999 | long val2 ; | |
13000 | int ecode2 = 0 ; | |
13001 | PyObject * obj0 = 0 ; | |
13002 | PyObject * obj1 = 0 ; | |
13003 | char * kwnames[] = { | |
13004 | (char *) "self",(char *) "pos", NULL | |
13005 | }; | |
13006 | ||
13007 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
13008 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13009 | if (!SWIG_IsOK(res1)) { | |
13010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13011 | } | |
13012 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13013 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13014 | if (!SWIG_IsOK(ecode2)) { | |
13015 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'"); | |
13016 | } | |
13017 | arg2 = static_cast< long >(val2); | |
13018 | { | |
13019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13020 | (arg1)->ShowPosition(arg2); | |
13021 | wxPyEndAllowThreads(__tstate); | |
13022 | if (PyErr_Occurred()) SWIG_fail; | |
13023 | } | |
13024 | resultobj = SWIG_Py_Void(); | |
13025 | return resultobj; | |
13026 | fail: | |
13027 | return NULL; | |
13028 | } | |
13029 | ||
13030 | ||
13031 | SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13032 | PyObject *resultobj = 0; | |
13033 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13034 | wxPoint *arg2 = 0 ; | |
13035 | long *arg3 = (long *) 0 ; | |
13036 | long *arg4 = (long *) 0 ; | |
13037 | wxTextCtrlHitTestResult result; | |
13038 | void *argp1 = 0 ; | |
13039 | int res1 = 0 ; | |
13040 | wxPoint temp2 ; | |
13041 | long temp3 ; | |
13042 | int res3 = SWIG_TMPOBJ ; | |
13043 | long temp4 ; | |
13044 | int res4 = SWIG_TMPOBJ ; | |
13045 | PyObject * obj0 = 0 ; | |
13046 | PyObject * obj1 = 0 ; | |
13047 | char * kwnames[] = { | |
13048 | (char *) "self",(char *) "pt", NULL | |
13049 | }; | |
13050 | ||
13051 | arg3 = &temp3; | |
13052 | arg4 = &temp4; | |
13053 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
13054 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13055 | if (!SWIG_IsOK(res1)) { | |
13056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13057 | } | |
13058 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13059 | { | |
13060 | arg2 = &temp2; | |
13061 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13062 | } | |
13063 | { | |
13064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13065 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
13066 | wxPyEndAllowThreads(__tstate); | |
13067 | if (PyErr_Occurred()) SWIG_fail; | |
13068 | } | |
13069 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13070 | if (SWIG_IsTmpObj(res3)) { | |
13071 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
13072 | } else { | |
13073 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13074 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
13075 | } | |
13076 | if (SWIG_IsTmpObj(res4)) { | |
13077 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
13078 | } else { | |
13079 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13080 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
13081 | } | |
13082 | return resultobj; | |
13083 | fail: | |
13084 | return NULL; | |
13085 | } | |
13086 | ||
13087 | ||
13088 | SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13089 | PyObject *resultobj = 0; | |
13090 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13091 | wxPoint *arg2 = 0 ; | |
13092 | long *arg3 = (long *) 0 ; | |
13093 | wxTextCtrlHitTestResult result; | |
13094 | void *argp1 = 0 ; | |
13095 | int res1 = 0 ; | |
13096 | wxPoint temp2 ; | |
13097 | long temp3 ; | |
13098 | int res3 = SWIG_TMPOBJ ; | |
13099 | PyObject * obj0 = 0 ; | |
13100 | PyObject * obj1 = 0 ; | |
13101 | char * kwnames[] = { | |
13102 | (char *) "self",(char *) "pt", NULL | |
13103 | }; | |
13104 | ||
13105 | arg3 = &temp3; | |
13106 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
13107 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13108 | if (!SWIG_IsOK(res1)) { | |
13109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13110 | } | |
13111 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13112 | { | |
13113 | arg2 = &temp2; | |
13114 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13115 | } | |
13116 | { | |
13117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13118 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
13119 | wxPyEndAllowThreads(__tstate); | |
13120 | if (PyErr_Occurred()) SWIG_fail; | |
13121 | } | |
13122 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13123 | if (SWIG_IsTmpObj(res3)) { | |
13124 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
13125 | } else { | |
13126 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13127 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
13128 | } | |
13129 | return resultobj; | |
13130 | fail: | |
13131 | return NULL; | |
d14a1e28 RD |
13132 | } |
13133 | ||
13134 | ||
0085ce49 RD |
13135 | SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13136 | PyObject *resultobj = 0; | |
13137 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13138 | void *argp1 = 0 ; | |
13139 | int res1 = 0 ; | |
13140 | PyObject *swig_obj[1] ; | |
13141 | ||
13142 | if (!args) SWIG_fail; | |
13143 | swig_obj[0] = args; | |
13144 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13145 | if (!SWIG_IsOK(res1)) { | |
13146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13147 | } | |
13148 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13149 | { | |
13150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13151 | (arg1)->Copy(); | |
13152 | wxPyEndAllowThreads(__tstate); | |
13153 | if (PyErr_Occurred()) SWIG_fail; | |
13154 | } | |
13155 | resultobj = SWIG_Py_Void(); | |
13156 | return resultobj; | |
13157 | fail: | |
13158 | return NULL; | |
d14a1e28 | 13159 | } |
0085ce49 RD |
13160 | |
13161 | ||
13162 | SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13163 | PyObject *resultobj = 0; | |
13164 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13165 | void *argp1 = 0 ; | |
13166 | int res1 = 0 ; | |
13167 | PyObject *swig_obj[1] ; | |
13168 | ||
13169 | if (!args) SWIG_fail; | |
13170 | swig_obj[0] = args; | |
13171 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13172 | if (!SWIG_IsOK(res1)) { | |
13173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13174 | } | |
13175 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13176 | { | |
13177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13178 | (arg1)->Cut(); | |
13179 | wxPyEndAllowThreads(__tstate); | |
13180 | if (PyErr_Occurred()) SWIG_fail; | |
13181 | } | |
13182 | resultobj = SWIG_Py_Void(); | |
13183 | return resultobj; | |
13184 | fail: | |
13185 | return NULL; | |
b2dc1044 RD |
13186 | } |
13187 | ||
13188 | ||
0085ce49 RD |
13189 | SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13190 | PyObject *resultobj = 0; | |
13191 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13192 | void *argp1 = 0 ; | |
13193 | int res1 = 0 ; | |
13194 | PyObject *swig_obj[1] ; | |
13195 | ||
13196 | if (!args) SWIG_fail; | |
13197 | swig_obj[0] = args; | |
13198 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13199 | if (!SWIG_IsOK(res1)) { | |
13200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13201 | } | |
13202 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13203 | { | |
13204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13205 | (arg1)->Paste(); | |
13206 | wxPyEndAllowThreads(__tstate); | |
13207 | if (PyErr_Occurred()) SWIG_fail; | |
13208 | } | |
13209 | resultobj = SWIG_Py_Void(); | |
13210 | return resultobj; | |
13211 | fail: | |
13212 | return NULL; | |
d14a1e28 RD |
13213 | } |
13214 | ||
13215 | ||
0085ce49 RD |
13216 | SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13217 | PyObject *resultobj = 0; | |
13218 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13219 | bool result; | |
13220 | void *argp1 = 0 ; | |
13221 | int res1 = 0 ; | |
13222 | PyObject *swig_obj[1] ; | |
13223 | ||
13224 | if (!args) SWIG_fail; | |
13225 | swig_obj[0] = args; | |
13226 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13227 | if (!SWIG_IsOK(res1)) { | |
13228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13229 | } | |
13230 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13231 | { | |
13232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13233 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
13234 | wxPyEndAllowThreads(__tstate); | |
13235 | if (PyErr_Occurred()) SWIG_fail; | |
13236 | } | |
13237 | { | |
13238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13239 | } | |
13240 | return resultobj; | |
13241 | fail: | |
13242 | return NULL; | |
d14a1e28 RD |
13243 | } |
13244 | ||
13245 | ||
0085ce49 RD |
13246 | SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13247 | PyObject *resultobj = 0; | |
13248 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13249 | bool result; | |
13250 | void *argp1 = 0 ; | |
13251 | int res1 = 0 ; | |
13252 | PyObject *swig_obj[1] ; | |
13253 | ||
13254 | if (!args) SWIG_fail; | |
13255 | swig_obj[0] = args; | |
13256 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13257 | if (!SWIG_IsOK(res1)) { | |
13258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13259 | } | |
13260 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13261 | { | |
13262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13263 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
13264 | wxPyEndAllowThreads(__tstate); | |
13265 | if (PyErr_Occurred()) SWIG_fail; | |
13266 | } | |
13267 | { | |
13268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13269 | } | |
13270 | return resultobj; | |
13271 | fail: | |
13272 | return NULL; | |
994141e6 RD |
13273 | } |
13274 | ||
13275 | ||
0085ce49 RD |
13276 | SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13277 | PyObject *resultobj = 0; | |
13278 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13279 | bool result; | |
13280 | void *argp1 = 0 ; | |
13281 | int res1 = 0 ; | |
13282 | PyObject *swig_obj[1] ; | |
13283 | ||
13284 | if (!args) SWIG_fail; | |
13285 | swig_obj[0] = args; | |
13286 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13287 | if (!SWIG_IsOK(res1)) { | |
13288 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13289 | } | |
13290 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13291 | { | |
13292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13293 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
13294 | wxPyEndAllowThreads(__tstate); | |
13295 | if (PyErr_Occurred()) SWIG_fail; | |
13296 | } | |
13297 | { | |
13298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13299 | } | |
13300 | return resultobj; | |
13301 | fail: | |
13302 | return NULL; | |
d14a1e28 RD |
13303 | } |
13304 | ||
13305 | ||
0085ce49 RD |
13306 | SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13307 | PyObject *resultobj = 0; | |
13308 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13309 | void *argp1 = 0 ; | |
13310 | int res1 = 0 ; | |
13311 | PyObject *swig_obj[1] ; | |
13312 | ||
13313 | if (!args) SWIG_fail; | |
13314 | swig_obj[0] = args; | |
13315 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13316 | if (!SWIG_IsOK(res1)) { | |
13317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13318 | } | |
13319 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13320 | { | |
13321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13322 | (arg1)->Undo(); | |
13323 | wxPyEndAllowThreads(__tstate); | |
13324 | if (PyErr_Occurred()) SWIG_fail; | |
13325 | } | |
13326 | resultobj = SWIG_Py_Void(); | |
13327 | return resultobj; | |
13328 | fail: | |
13329 | return NULL; | |
d14a1e28 RD |
13330 | } |
13331 | ||
13332 | ||
0085ce49 RD |
13333 | SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13334 | PyObject *resultobj = 0; | |
13335 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13336 | void *argp1 = 0 ; | |
13337 | int res1 = 0 ; | |
13338 | PyObject *swig_obj[1] ; | |
13339 | ||
13340 | if (!args) SWIG_fail; | |
13341 | swig_obj[0] = args; | |
13342 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13343 | if (!SWIG_IsOK(res1)) { | |
13344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13345 | } | |
13346 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13347 | { | |
13348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13349 | (arg1)->Redo(); | |
13350 | wxPyEndAllowThreads(__tstate); | |
13351 | if (PyErr_Occurred()) SWIG_fail; | |
13352 | } | |
13353 | resultobj = SWIG_Py_Void(); | |
13354 | return resultobj; | |
13355 | fail: | |
13356 | return NULL; | |
d14a1e28 RD |
13357 | } |
13358 | ||
13359 | ||
0085ce49 RD |
13360 | SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13361 | PyObject *resultobj = 0; | |
13362 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13363 | bool result; | |
13364 | void *argp1 = 0 ; | |
13365 | int res1 = 0 ; | |
13366 | PyObject *swig_obj[1] ; | |
13367 | ||
13368 | if (!args) SWIG_fail; | |
13369 | swig_obj[0] = args; | |
13370 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13371 | if (!SWIG_IsOK(res1)) { | |
13372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13373 | } | |
13374 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13375 | { | |
13376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13377 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
13378 | wxPyEndAllowThreads(__tstate); | |
13379 | if (PyErr_Occurred()) SWIG_fail; | |
13380 | } | |
13381 | { | |
13382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13383 | } | |
13384 | return resultobj; | |
13385 | fail: | |
13386 | return NULL; | |
d14a1e28 RD |
13387 | } |
13388 | ||
13389 | ||
0085ce49 RD |
13390 | SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13391 | PyObject *resultobj = 0; | |
13392 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13393 | bool result; | |
13394 | void *argp1 = 0 ; | |
13395 | int res1 = 0 ; | |
13396 | PyObject *swig_obj[1] ; | |
13397 | ||
13398 | if (!args) SWIG_fail; | |
13399 | swig_obj[0] = args; | |
13400 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13401 | if (!SWIG_IsOK(res1)) { | |
13402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13403 | } | |
13404 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13405 | { | |
13406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13407 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
13408 | wxPyEndAllowThreads(__tstate); | |
13409 | if (PyErr_Occurred()) SWIG_fail; | |
13410 | } | |
13411 | { | |
13412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13413 | } | |
13414 | return resultobj; | |
13415 | fail: | |
13416 | return NULL; | |
13417 | } | |
13418 | ||
13419 | ||
13420 | SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13421 | PyObject *resultobj = 0; | |
13422 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13423 | long arg2 ; | |
13424 | void *argp1 = 0 ; | |
13425 | int res1 = 0 ; | |
13426 | long val2 ; | |
13427 | int ecode2 = 0 ; | |
13428 | PyObject * obj0 = 0 ; | |
13429 | PyObject * obj1 = 0 ; | |
13430 | char * kwnames[] = { | |
13431 | (char *) "self",(char *) "pos", NULL | |
13432 | }; | |
13433 | ||
13434 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
13435 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13436 | if (!SWIG_IsOK(res1)) { | |
13437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13438 | } | |
13439 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13440 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13441 | if (!SWIG_IsOK(ecode2)) { | |
13442 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'"); | |
13443 | } | |
13444 | arg2 = static_cast< long >(val2); | |
13445 | { | |
13446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13447 | (arg1)->SetInsertionPoint(arg2); | |
13448 | wxPyEndAllowThreads(__tstate); | |
13449 | if (PyErr_Occurred()) SWIG_fail; | |
13450 | } | |
13451 | resultobj = SWIG_Py_Void(); | |
13452 | return resultobj; | |
13453 | fail: | |
13454 | return NULL; | |
d14a1e28 RD |
13455 | } |
13456 | ||
13457 | ||
0085ce49 RD |
13458 | SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13459 | PyObject *resultobj = 0; | |
13460 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13461 | void *argp1 = 0 ; | |
13462 | int res1 = 0 ; | |
13463 | PyObject *swig_obj[1] ; | |
13464 | ||
13465 | if (!args) SWIG_fail; | |
13466 | swig_obj[0] = args; | |
13467 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13468 | if (!SWIG_IsOK(res1)) { | |
13469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13470 | } | |
13471 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13472 | { | |
13473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13474 | (arg1)->SetInsertionPointEnd(); | |
13475 | wxPyEndAllowThreads(__tstate); | |
13476 | if (PyErr_Occurred()) SWIG_fail; | |
13477 | } | |
13478 | resultobj = SWIG_Py_Void(); | |
13479 | return resultobj; | |
13480 | fail: | |
13481 | return NULL; | |
d14a1e28 RD |
13482 | } |
13483 | ||
13484 | ||
0085ce49 RD |
13485 | SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13486 | PyObject *resultobj = 0; | |
13487 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13488 | long result; | |
13489 | void *argp1 = 0 ; | |
13490 | int res1 = 0 ; | |
13491 | PyObject *swig_obj[1] ; | |
13492 | ||
13493 | if (!args) SWIG_fail; | |
13494 | swig_obj[0] = args; | |
13495 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13496 | if (!SWIG_IsOK(res1)) { | |
13497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13498 | } | |
13499 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13500 | { | |
13501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13502 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
13503 | wxPyEndAllowThreads(__tstate); | |
13504 | if (PyErr_Occurred()) SWIG_fail; | |
13505 | } | |
13506 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13507 | return resultobj; | |
13508 | fail: | |
13509 | return NULL; | |
d14a1e28 RD |
13510 | } |
13511 | ||
13512 | ||
0085ce49 RD |
13513 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13514 | PyObject *resultobj = 0; | |
13515 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13516 | long result; | |
13517 | void *argp1 = 0 ; | |
13518 | int res1 = 0 ; | |
13519 | PyObject *swig_obj[1] ; | |
13520 | ||
13521 | if (!args) SWIG_fail; | |
13522 | swig_obj[0] = args; | |
13523 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13524 | if (!SWIG_IsOK(res1)) { | |
13525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13526 | } | |
13527 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13528 | { | |
13529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13530 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
13531 | wxPyEndAllowThreads(__tstate); | |
13532 | if (PyErr_Occurred()) SWIG_fail; | |
13533 | } | |
13534 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13535 | return resultobj; | |
13536 | fail: | |
13537 | return NULL; | |
13538 | } | |
13539 | ||
13540 | ||
13541 | SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13542 | PyObject *resultobj = 0; | |
13543 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13544 | long arg2 ; | |
13545 | long arg3 ; | |
13546 | void *argp1 = 0 ; | |
13547 | int res1 = 0 ; | |
13548 | long val2 ; | |
13549 | int ecode2 = 0 ; | |
13550 | long val3 ; | |
13551 | int ecode3 = 0 ; | |
13552 | PyObject * obj0 = 0 ; | |
13553 | PyObject * obj1 = 0 ; | |
13554 | PyObject * obj2 = 0 ; | |
13555 | char * kwnames[] = { | |
13556 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
13557 | }; | |
13558 | ||
13559 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13560 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13561 | if (!SWIG_IsOK(res1)) { | |
13562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13563 | } | |
13564 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13565 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13566 | if (!SWIG_IsOK(ecode2)) { | |
13567 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'"); | |
13568 | } | |
13569 | arg2 = static_cast< long >(val2); | |
13570 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13571 | if (!SWIG_IsOK(ecode3)) { | |
13572 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'"); | |
13573 | } | |
13574 | arg3 = static_cast< long >(val3); | |
13575 | { | |
13576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13577 | (arg1)->SetSelection(arg2,arg3); | |
13578 | wxPyEndAllowThreads(__tstate); | |
13579 | if (PyErr_Occurred()) SWIG_fail; | |
13580 | } | |
13581 | resultobj = SWIG_Py_Void(); | |
13582 | return resultobj; | |
13583 | fail: | |
13584 | return NULL; | |
d14a1e28 RD |
13585 | } |
13586 | ||
13587 | ||
0085ce49 RD |
13588 | SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13589 | PyObject *resultobj = 0; | |
13590 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13591 | void *argp1 = 0 ; | |
13592 | int res1 = 0 ; | |
13593 | PyObject *swig_obj[1] ; | |
13594 | ||
13595 | if (!args) SWIG_fail; | |
13596 | swig_obj[0] = args; | |
13597 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13598 | if (!SWIG_IsOK(res1)) { | |
13599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13600 | } | |
13601 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13602 | { | |
13603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13604 | (arg1)->SelectAll(); | |
13605 | wxPyEndAllowThreads(__tstate); | |
13606 | if (PyErr_Occurred()) SWIG_fail; | |
13607 | } | |
13608 | resultobj = SWIG_Py_Void(); | |
13609 | return resultobj; | |
13610 | fail: | |
13611 | return NULL; | |
13612 | } | |
13613 | ||
13614 | ||
13615 | SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13616 | PyObject *resultobj = 0; | |
13617 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13618 | bool arg2 ; | |
13619 | void *argp1 = 0 ; | |
13620 | int res1 = 0 ; | |
13621 | bool val2 ; | |
13622 | int ecode2 = 0 ; | |
13623 | PyObject * obj0 = 0 ; | |
13624 | PyObject * obj1 = 0 ; | |
13625 | char * kwnames[] = { | |
13626 | (char *) "self",(char *) "editable", NULL | |
13627 | }; | |
13628 | ||
13629 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail; | |
13630 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13631 | if (!SWIG_IsOK(res1)) { | |
13632 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13633 | } | |
13634 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13635 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
13636 | if (!SWIG_IsOK(ecode2)) { | |
13637 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'"); | |
13638 | } | |
13639 | arg2 = static_cast< bool >(val2); | |
13640 | { | |
13641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13642 | (arg1)->SetEditable(arg2); | |
13643 | wxPyEndAllowThreads(__tstate); | |
13644 | if (PyErr_Occurred()) SWIG_fail; | |
13645 | } | |
13646 | resultobj = SWIG_Py_Void(); | |
13647 | return resultobj; | |
13648 | fail: | |
13649 | return NULL; | |
13650 | } | |
13651 | ||
13652 | ||
13653 | SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13654 | PyObject *resultobj = 0; | |
13655 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13656 | wxString *arg2 = 0 ; | |
13657 | void *argp1 = 0 ; | |
13658 | int res1 = 0 ; | |
13659 | bool temp2 = false ; | |
13660 | PyObject * obj0 = 0 ; | |
13661 | PyObject * obj1 = 0 ; | |
13662 | char * kwnames[] = { | |
13663 | (char *) "self",(char *) "text", NULL | |
13664 | }; | |
13665 | ||
13666 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail; | |
13667 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13668 | if (!SWIG_IsOK(res1)) { | |
13669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13670 | } | |
13671 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13672 | { | |
13673 | arg2 = wxString_in_helper(obj1); | |
13674 | if (arg2 == NULL) SWIG_fail; | |
13675 | temp2 = true; | |
13676 | } | |
13677 | { | |
13678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13679 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
13680 | wxPyEndAllowThreads(__tstate); | |
13681 | if (PyErr_Occurred()) SWIG_fail; | |
13682 | } | |
13683 | resultobj = SWIG_Py_Void(); | |
13684 | { | |
13685 | if (temp2) | |
13686 | delete arg2; | |
13687 | } | |
13688 | return resultobj; | |
13689 | fail: | |
13690 | { | |
13691 | if (temp2) | |
13692 | delete arg2; | |
13693 | } | |
13694 | return NULL; | |
13695 | } | |
13696 | ||
13697 | ||
13698 | SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13699 | PyObject *resultobj = 0; | |
13700 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13701 | long arg2 ; | |
13702 | long arg3 ; | |
13703 | wxString result; | |
13704 | void *argp1 = 0 ; | |
13705 | int res1 = 0 ; | |
13706 | long val2 ; | |
13707 | int ecode2 = 0 ; | |
13708 | long val3 ; | |
13709 | int ecode3 = 0 ; | |
13710 | PyObject * obj0 = 0 ; | |
13711 | PyObject * obj1 = 0 ; | |
13712 | PyObject * obj2 = 0 ; | |
13713 | char * kwnames[] = { | |
13714 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
13715 | }; | |
13716 | ||
13717 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13718 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13719 | if (!SWIG_IsOK(res1)) { | |
13720 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13721 | } | |
13722 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13723 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13724 | if (!SWIG_IsOK(ecode2)) { | |
13725 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'"); | |
13726 | } | |
13727 | arg2 = static_cast< long >(val2); | |
13728 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13729 | if (!SWIG_IsOK(ecode3)) { | |
13730 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'"); | |
13731 | } | |
13732 | arg3 = static_cast< long >(val3); | |
13733 | { | |
13734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13735 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
13736 | wxPyEndAllowThreads(__tstate); | |
13737 | if (PyErr_Occurred()) SWIG_fail; | |
13738 | } | |
13739 | { | |
13740 | #if wxUSE_UNICODE | |
13741 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13742 | #else | |
13743 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13744 | #endif | |
13745 | } | |
13746 | return resultobj; | |
13747 | fail: | |
13748 | return NULL; | |
d14a1e28 RD |
13749 | } |
13750 | ||
13751 | ||
0085ce49 RD |
13752 | SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13753 | PyObject *resultobj = 0; | |
13754 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
13755 | SwigValueWrapper<wxVisualAttributes > result; | |
13756 | int val1 ; | |
13757 | int ecode1 = 0 ; | |
13758 | PyObject * obj0 = 0 ; | |
13759 | char * kwnames[] = { | |
13760 | (char *) "variant", NULL | |
13761 | }; | |
13762 | ||
13763 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
13764 | if (obj0) { | |
13765 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13766 | if (!SWIG_IsOK(ecode1)) { | |
13767 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
13768 | } | |
13769 | arg1 = static_cast< wxWindowVariant >(val1); | |
13770 | } | |
13771 | { | |
13772 | if (!wxPyCheckForApp()) SWIG_fail; | |
13773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13774 | result = wxTextCtrl::GetClassDefaultAttributes(arg1); | |
13775 | wxPyEndAllowThreads(__tstate); | |
13776 | if (PyErr_Occurred()) SWIG_fail; | |
13777 | } | |
13778 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
13779 | return resultobj; | |
13780 | fail: | |
13781 | return NULL; | |
13782 | } | |
13783 | ||
13784 | ||
13785 | SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13786 | PyObject *obj; | |
13787 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13788 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj)); | |
13789 | return SWIG_Py_Void(); | |
13790 | } | |
13791 | ||
13792 | SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13793 | return SWIG_Python_InitShadowInstance(args); | |
13794 | } | |
13795 | ||
13796 | SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13797 | PyObject *resultobj = 0; | |
13798 | int arg1 ; | |
13799 | wxMouseEvent *arg2 = 0 ; | |
13800 | long arg3 ; | |
13801 | long arg4 ; | |
13802 | wxTextUrlEvent *result = 0 ; | |
13803 | int val1 ; | |
13804 | int ecode1 = 0 ; | |
13805 | void *argp2 = 0 ; | |
13806 | int res2 = 0 ; | |
13807 | long val3 ; | |
13808 | int ecode3 = 0 ; | |
13809 | long val4 ; | |
13810 | int ecode4 = 0 ; | |
13811 | PyObject * obj0 = 0 ; | |
13812 | PyObject * obj1 = 0 ; | |
13813 | PyObject * obj2 = 0 ; | |
13814 | PyObject * obj3 = 0 ; | |
13815 | char * kwnames[] = { | |
13816 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
13817 | }; | |
13818 | ||
13819 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13820 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13821 | if (!SWIG_IsOK(ecode1)) { | |
13822 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'"); | |
13823 | } | |
13824 | arg1 = static_cast< int >(val1); | |
13825 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0); | |
13826 | if (!SWIG_IsOK(res2)) { | |
13827 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'"); | |
13828 | } | |
13829 | if (!argp2) { | |
13830 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'"); | |
13831 | } | |
13832 | arg2 = reinterpret_cast< wxMouseEvent * >(argp2); | |
13833 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13834 | if (!SWIG_IsOK(ecode3)) { | |
13835 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'"); | |
13836 | } | |
13837 | arg3 = static_cast< long >(val3); | |
13838 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
13839 | if (!SWIG_IsOK(ecode4)) { | |
13840 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'"); | |
13841 | } | |
13842 | arg4 = static_cast< long >(val4); | |
13843 | { | |
13844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13845 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
13846 | wxPyEndAllowThreads(__tstate); | |
13847 | if (PyErr_Occurred()) SWIG_fail; | |
13848 | } | |
13849 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 ); | |
13850 | return resultobj; | |
13851 | fail: | |
13852 | return NULL; | |
d14a1e28 RD |
13853 | } |
13854 | ||
13855 | ||
0085ce49 RD |
13856 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13857 | PyObject *resultobj = 0; | |
13858 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
13859 | wxMouseEvent *result = 0 ; | |
13860 | void *argp1 = 0 ; | |
13861 | int res1 = 0 ; | |
13862 | PyObject *swig_obj[1] ; | |
13863 | ||
13864 | if (!args) SWIG_fail; | |
13865 | swig_obj[0] = args; | |
13866 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
13867 | if (!SWIG_IsOK(res1)) { | |
13868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'"); | |
13869 | } | |
13870 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
13871 | { | |
13872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 13873 | { |
0085ce49 RD |
13874 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); |
13875 | result = (wxMouseEvent *) &_result_ref; | |
4f89f6a3 | 13876 | } |
0085ce49 RD |
13877 | wxPyEndAllowThreads(__tstate); |
13878 | if (PyErr_Occurred()) SWIG_fail; | |
13879 | } | |
13880 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 ); | |
13881 | return resultobj; | |
13882 | fail: | |
13883 | return NULL; | |
d14a1e28 RD |
13884 | } |
13885 | ||
13886 | ||
0085ce49 RD |
13887 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13888 | PyObject *resultobj = 0; | |
13889 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
13890 | long result; | |
13891 | void *argp1 = 0 ; | |
13892 | int res1 = 0 ; | |
13893 | PyObject *swig_obj[1] ; | |
13894 | ||
13895 | if (!args) SWIG_fail; | |
13896 | swig_obj[0] = args; | |
13897 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
13898 | if (!SWIG_IsOK(res1)) { | |
13899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'"); | |
13900 | } | |
13901 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
13902 | { | |
13903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13904 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
13905 | wxPyEndAllowThreads(__tstate); | |
13906 | if (PyErr_Occurred()) SWIG_fail; | |
13907 | } | |
13908 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13909 | return resultobj; | |
13910 | fail: | |
13911 | return NULL; | |
d14a1e28 RD |
13912 | } |
13913 | ||
13914 | ||
0085ce49 RD |
13915 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13916 | PyObject *resultobj = 0; | |
13917 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
13918 | long result; | |
13919 | void *argp1 = 0 ; | |
13920 | int res1 = 0 ; | |
13921 | PyObject *swig_obj[1] ; | |
13922 | ||
13923 | if (!args) SWIG_fail; | |
13924 | swig_obj[0] = args; | |
13925 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
13926 | if (!SWIG_IsOK(res1)) { | |
13927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'"); | |
13928 | } | |
13929 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
13930 | { | |
13931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13932 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
13933 | wxPyEndAllowThreads(__tstate); | |
13934 | if (PyErr_Occurred()) SWIG_fail; | |
13935 | } | |
13936 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13937 | return resultobj; | |
13938 | fail: | |
13939 | return NULL; | |
d14a1e28 RD |
13940 | } |
13941 | ||
13942 | ||
0085ce49 RD |
13943 | SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13944 | PyObject *obj; | |
13945 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13946 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj)); | |
13947 | return SWIG_Py_Void(); | |
d14a1e28 RD |
13948 | } |
13949 | ||
0085ce49 RD |
13950 | SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13951 | return SWIG_Python_InitShadowInstance(args); | |
13952 | } | |
d14a1e28 | 13953 | |
0085ce49 RD |
13954 | SWIGINTERN int ScrollBarNameStr_set(PyObject *) { |
13955 | SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only."); | |
13956 | return 1; | |
13957 | } | |
13958 | ||
13959 | ||
13960 | SWIGINTERN PyObject *ScrollBarNameStr_get(void) { | |
13961 | PyObject *pyobj = 0; | |
13962 | ||
13963 | { | |
13964 | #if wxUSE_UNICODE | |
13965 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
13966 | #else | |
13967 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
13968 | #endif | |
13969 | } | |
13970 | return pyobj; | |
13971 | } | |
13972 | ||
13973 | ||
13974 | SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13975 | PyObject *resultobj = 0; | |
13976 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13977 | int arg2 = (int) -1 ; | |
13978 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
13979 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13980 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13981 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13982 | long arg5 = (long) wxSB_HORIZONTAL ; | |
13983 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
13984 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
13985 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
13986 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13987 | wxScrollBar *result = 0 ; | |
13988 | void *argp1 = 0 ; | |
13989 | int res1 = 0 ; | |
13990 | int val2 ; | |
13991 | int ecode2 = 0 ; | |
13992 | wxPoint temp3 ; | |
13993 | wxSize temp4 ; | |
13994 | long val5 ; | |
13995 | int ecode5 = 0 ; | |
13996 | void *argp6 = 0 ; | |
13997 | int res6 = 0 ; | |
13998 | bool temp7 = false ; | |
13999 | PyObject * obj0 = 0 ; | |
14000 | PyObject * obj1 = 0 ; | |
14001 | PyObject * obj2 = 0 ; | |
14002 | PyObject * obj3 = 0 ; | |
14003 | PyObject * obj4 = 0 ; | |
14004 | PyObject * obj5 = 0 ; | |
14005 | PyObject * obj6 = 0 ; | |
14006 | char * kwnames[] = { | |
14007 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14008 | }; | |
14009 | ||
14010 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14011 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14012 | if (!SWIG_IsOK(res1)) { | |
14013 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14014 | } | |
14015 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14016 | if (obj1) { | |
14017 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14018 | if (!SWIG_IsOK(ecode2)) { | |
14019 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'"); | |
14020 | } | |
14021 | arg2 = static_cast< int >(val2); | |
14022 | } | |
14023 | if (obj2) { | |
d14a1e28 | 14024 | { |
0085ce49 RD |
14025 | arg3 = &temp3; |
14026 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 14027 | } |
0085ce49 RD |
14028 | } |
14029 | if (obj3) { | |
4f89f6a3 | 14030 | { |
0085ce49 RD |
14031 | arg4 = &temp4; |
14032 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 14033 | } |
0085ce49 RD |
14034 | } |
14035 | if (obj4) { | |
14036 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14037 | if (!SWIG_IsOK(ecode5)) { | |
14038 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'"); | |
14039 | } | |
14040 | arg5 = static_cast< long >(val5); | |
14041 | } | |
14042 | if (obj5) { | |
14043 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
14044 | if (!SWIG_IsOK(res6)) { | |
14045 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
14046 | } | |
14047 | if (!argp6) { | |
14048 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
14049 | } | |
14050 | arg6 = reinterpret_cast< wxValidator * >(argp6); | |
14051 | } | |
14052 | if (obj6) { | |
14053 | { | |
14054 | arg7 = wxString_in_helper(obj6); | |
14055 | if (arg7 == NULL) SWIG_fail; | |
14056 | temp7 = true; | |
14057 | } | |
14058 | } | |
14059 | { | |
14060 | if (!wxPyCheckForApp()) SWIG_fail; | |
14061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14062 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
14063 | wxPyEndAllowThreads(__tstate); | |
14064 | if (PyErr_Occurred()) SWIG_fail; | |
14065 | } | |
14066 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 ); | |
14067 | { | |
14068 | if (temp7) | |
14069 | delete arg7; | |
14070 | } | |
14071 | return resultobj; | |
14072 | fail: | |
14073 | { | |
14074 | if (temp7) | |
14075 | delete arg7; | |
14076 | } | |
14077 | return NULL; | |
d14a1e28 RD |
14078 | } |
14079 | ||
14080 | ||
0085ce49 RD |
14081 | SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14082 | PyObject *resultobj = 0; | |
14083 | wxScrollBar *result = 0 ; | |
14084 | ||
14085 | if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail; | |
14086 | { | |
14087 | if (!wxPyCheckForApp()) SWIG_fail; | |
14088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14089 | result = (wxScrollBar *)new wxScrollBar(); | |
14090 | wxPyEndAllowThreads(__tstate); | |
14091 | if (PyErr_Occurred()) SWIG_fail; | |
14092 | } | |
14093 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 ); | |
14094 | return resultobj; | |
14095 | fail: | |
14096 | return NULL; | |
14097 | } | |
14098 | ||
14099 | ||
14100 | SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14101 | PyObject *resultobj = 0; | |
14102 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14103 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14104 | int arg3 = (int) -1 ; | |
14105 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14106 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14107 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14108 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14109 | long arg6 = (long) wxSB_HORIZONTAL ; | |
14110 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
14111 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
14112 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
14113 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14114 | bool result; | |
14115 | void *argp1 = 0 ; | |
14116 | int res1 = 0 ; | |
14117 | void *argp2 = 0 ; | |
14118 | int res2 = 0 ; | |
14119 | int val3 ; | |
14120 | int ecode3 = 0 ; | |
14121 | wxPoint temp4 ; | |
14122 | wxSize temp5 ; | |
14123 | long val6 ; | |
14124 | int ecode6 = 0 ; | |
14125 | void *argp7 = 0 ; | |
14126 | int res7 = 0 ; | |
14127 | bool temp8 = false ; | |
14128 | PyObject * obj0 = 0 ; | |
14129 | PyObject * obj1 = 0 ; | |
14130 | PyObject * obj2 = 0 ; | |
14131 | PyObject * obj3 = 0 ; | |
14132 | PyObject * obj4 = 0 ; | |
14133 | PyObject * obj5 = 0 ; | |
14134 | PyObject * obj6 = 0 ; | |
14135 | PyObject * obj7 = 0 ; | |
14136 | char * kwnames[] = { | |
14137 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14138 | }; | |
14139 | ||
14140 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
14141 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14142 | if (!SWIG_IsOK(res1)) { | |
14143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'"); | |
14144 | } | |
14145 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14146 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14147 | if (!SWIG_IsOK(res2)) { | |
14148 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14149 | } | |
14150 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14151 | if (obj2) { | |
14152 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14153 | if (!SWIG_IsOK(ecode3)) { | |
14154 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
14155 | } | |
14156 | arg3 = static_cast< int >(val3); | |
14157 | } | |
14158 | if (obj3) { | |
093d3ff1 | 14159 | { |
0085ce49 RD |
14160 | arg4 = &temp4; |
14161 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 14162 | } |
0085ce49 RD |
14163 | } |
14164 | if (obj4) { | |
d14a1e28 | 14165 | { |
0085ce49 RD |
14166 | arg5 = &temp5; |
14167 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14168 | } | |
14169 | } | |
14170 | if (obj5) { | |
14171 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14172 | if (!SWIG_IsOK(ecode6)) { | |
14173 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'"); | |
14174 | } | |
14175 | arg6 = static_cast< long >(val6); | |
14176 | } | |
14177 | if (obj6) { | |
14178 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
14179 | if (!SWIG_IsOK(res7)) { | |
14180 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 14181 | } |
0085ce49 RD |
14182 | if (!argp7) { |
14183 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
14184 | } | |
14185 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
14186 | } | |
14187 | if (obj7) { | |
4f89f6a3 | 14188 | { |
0085ce49 RD |
14189 | arg8 = wxString_in_helper(obj7); |
14190 | if (arg8 == NULL) SWIG_fail; | |
14191 | temp8 = true; | |
4f89f6a3 | 14192 | } |
0085ce49 RD |
14193 | } |
14194 | { | |
14195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14196 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
14197 | wxPyEndAllowThreads(__tstate); | |
14198 | if (PyErr_Occurred()) SWIG_fail; | |
14199 | } | |
14200 | { | |
14201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14202 | } | |
14203 | { | |
14204 | if (temp8) | |
14205 | delete arg8; | |
14206 | } | |
14207 | return resultobj; | |
14208 | fail: | |
14209 | { | |
14210 | if (temp8) | |
14211 | delete arg8; | |
14212 | } | |
14213 | return NULL; | |
d14a1e28 RD |
14214 | } |
14215 | ||
14216 | ||
0085ce49 RD |
14217 | SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14218 | PyObject *resultobj = 0; | |
14219 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14220 | int result; | |
14221 | void *argp1 = 0 ; | |
14222 | int res1 = 0 ; | |
14223 | PyObject *swig_obj[1] ; | |
14224 | ||
14225 | if (!args) SWIG_fail; | |
14226 | swig_obj[0] = args; | |
14227 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14228 | if (!SWIG_IsOK(res1)) { | |
14229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14230 | } | |
14231 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14232 | { | |
14233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14234 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
14235 | wxPyEndAllowThreads(__tstate); | |
14236 | if (PyErr_Occurred()) SWIG_fail; | |
14237 | } | |
14238 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14239 | return resultobj; | |
14240 | fail: | |
14241 | return NULL; | |
d14a1e28 RD |
14242 | } |
14243 | ||
14244 | ||
0085ce49 RD |
14245 | SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14246 | PyObject *resultobj = 0; | |
14247 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14248 | int result; | |
14249 | void *argp1 = 0 ; | |
14250 | int res1 = 0 ; | |
14251 | PyObject *swig_obj[1] ; | |
14252 | ||
14253 | if (!args) SWIG_fail; | |
14254 | swig_obj[0] = args; | |
14255 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14256 | if (!SWIG_IsOK(res1)) { | |
14257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14258 | } | |
14259 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14260 | { | |
14261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14262 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
14263 | wxPyEndAllowThreads(__tstate); | |
14264 | if (PyErr_Occurred()) SWIG_fail; | |
14265 | } | |
14266 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14267 | return resultobj; | |
14268 | fail: | |
14269 | return NULL; | |
d14a1e28 RD |
14270 | } |
14271 | ||
14272 | ||
0085ce49 RD |
14273 | SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14274 | PyObject *resultobj = 0; | |
14275 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14276 | int result; | |
14277 | void *argp1 = 0 ; | |
14278 | int res1 = 0 ; | |
14279 | PyObject *swig_obj[1] ; | |
14280 | ||
14281 | if (!args) SWIG_fail; | |
14282 | swig_obj[0] = args; | |
14283 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14284 | if (!SWIG_IsOK(res1)) { | |
14285 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14286 | } | |
14287 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14288 | { | |
14289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14290 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
14291 | wxPyEndAllowThreads(__tstate); | |
14292 | if (PyErr_Occurred()) SWIG_fail; | |
14293 | } | |
14294 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14295 | return resultobj; | |
14296 | fail: | |
14297 | return NULL; | |
d14a1e28 RD |
14298 | } |
14299 | ||
14300 | ||
0085ce49 RD |
14301 | SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14302 | PyObject *resultobj = 0; | |
14303 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14304 | int result; | |
14305 | void *argp1 = 0 ; | |
14306 | int res1 = 0 ; | |
14307 | PyObject *swig_obj[1] ; | |
14308 | ||
14309 | if (!args) SWIG_fail; | |
14310 | swig_obj[0] = args; | |
14311 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14312 | if (!SWIG_IsOK(res1)) { | |
14313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14314 | } | |
14315 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14316 | { | |
14317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14318 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
14319 | wxPyEndAllowThreads(__tstate); | |
14320 | if (PyErr_Occurred()) SWIG_fail; | |
14321 | } | |
14322 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14323 | return resultobj; | |
14324 | fail: | |
14325 | return NULL; | |
d14a1e28 RD |
14326 | } |
14327 | ||
14328 | ||
0085ce49 RD |
14329 | SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14330 | PyObject *resultobj = 0; | |
14331 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14332 | bool result; | |
14333 | void *argp1 = 0 ; | |
14334 | int res1 = 0 ; | |
14335 | PyObject *swig_obj[1] ; | |
14336 | ||
14337 | if (!args) SWIG_fail; | |
14338 | swig_obj[0] = args; | |
14339 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14340 | if (!SWIG_IsOK(res1)) { | |
14341 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14342 | } | |
14343 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14344 | { | |
14345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14346 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
14347 | wxPyEndAllowThreads(__tstate); | |
14348 | if (PyErr_Occurred()) SWIG_fail; | |
14349 | } | |
14350 | { | |
14351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14352 | } | |
14353 | return resultobj; | |
14354 | fail: | |
14355 | return NULL; | |
14356 | } | |
14357 | ||
14358 | ||
14359 | SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14360 | PyObject *resultobj = 0; | |
14361 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14362 | int arg2 ; | |
14363 | void *argp1 = 0 ; | |
14364 | int res1 = 0 ; | |
14365 | int val2 ; | |
14366 | int ecode2 = 0 ; | |
14367 | PyObject * obj0 = 0 ; | |
14368 | PyObject * obj1 = 0 ; | |
14369 | char * kwnames[] = { | |
14370 | (char *) "self",(char *) "viewStart", NULL | |
14371 | }; | |
14372 | ||
14373 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
14374 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14375 | if (!SWIG_IsOK(res1)) { | |
14376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'"); | |
14377 | } | |
14378 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14379 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14380 | if (!SWIG_IsOK(ecode2)) { | |
14381 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'"); | |
14382 | } | |
14383 | arg2 = static_cast< int >(val2); | |
14384 | { | |
14385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14386 | (arg1)->SetThumbPosition(arg2); | |
14387 | wxPyEndAllowThreads(__tstate); | |
14388 | if (PyErr_Occurred()) SWIG_fail; | |
14389 | } | |
14390 | resultobj = SWIG_Py_Void(); | |
14391 | return resultobj; | |
14392 | fail: | |
14393 | return NULL; | |
14394 | } | |
14395 | ||
14396 | ||
14397 | SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14398 | PyObject *resultobj = 0; | |
14399 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
14400 | SwigValueWrapper<wxVisualAttributes > result; | |
14401 | int val1 ; | |
14402 | int ecode1 = 0 ; | |
14403 | PyObject * obj0 = 0 ; | |
14404 | char * kwnames[] = { | |
14405 | (char *) "variant", NULL | |
14406 | }; | |
14407 | ||
14408 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
14409 | if (obj0) { | |
14410 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14411 | if (!SWIG_IsOK(ecode1)) { | |
14412 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
14413 | } | |
14414 | arg1 = static_cast< wxWindowVariant >(val1); | |
14415 | } | |
14416 | { | |
14417 | if (!wxPyCheckForApp()) SWIG_fail; | |
14418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14419 | result = wxScrollBar::GetClassDefaultAttributes(arg1); | |
14420 | wxPyEndAllowThreads(__tstate); | |
14421 | if (PyErr_Occurred()) SWIG_fail; | |
14422 | } | |
14423 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
14424 | return resultobj; | |
14425 | fail: | |
14426 | return NULL; | |
d14a1e28 RD |
14427 | } |
14428 | ||
14429 | ||
0085ce49 RD |
14430 | SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14431 | PyObject *obj; | |
14432 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14433 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj)); | |
14434 | return SWIG_Py_Void(); | |
d14a1e28 RD |
14435 | } |
14436 | ||
0085ce49 RD |
14437 | SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14438 | return SWIG_Python_InitShadowInstance(args); | |
14439 | } | |
d14a1e28 | 14440 | |
0085ce49 RD |
14441 | SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) { |
14442 | SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
14443 | return 1; | |
d14a1e28 RD |
14444 | } |
14445 | ||
14446 | ||
0085ce49 RD |
14447 | SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) { |
14448 | PyObject *pyobj = 0; | |
14449 | ||
14450 | { | |
14451 | #if wxUSE_UNICODE | |
14452 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
14453 | #else | |
14454 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
14455 | #endif | |
14456 | } | |
14457 | return pyobj; | |
d14a1e28 RD |
14458 | } |
14459 | ||
14460 | ||
0085ce49 RD |
14461 | SWIGINTERN int SpinCtrlNameStr_set(PyObject *) { |
14462 | SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only."); | |
14463 | return 1; | |
d14a1e28 RD |
14464 | } |
14465 | ||
14466 | ||
0085ce49 RD |
14467 | SWIGINTERN PyObject *SpinCtrlNameStr_get(void) { |
14468 | PyObject *pyobj = 0; | |
14469 | ||
14470 | { | |
14471 | #if wxUSE_UNICODE | |
14472 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
14473 | #else | |
14474 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
14475 | #endif | |
14476 | } | |
14477 | return pyobj; | |
14478 | } | |
14479 | ||
14480 | ||
14481 | SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14482 | PyObject *resultobj = 0; | |
14483 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14484 | int arg2 = (int) -1 ; | |
14485 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14486 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14487 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14488 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14489 | long arg5 = (long) wxSP_HORIZONTAL ; | |
14490 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
14491 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14492 | wxSpinButton *result = 0 ; | |
14493 | void *argp1 = 0 ; | |
14494 | int res1 = 0 ; | |
14495 | int val2 ; | |
14496 | int ecode2 = 0 ; | |
14497 | wxPoint temp3 ; | |
14498 | wxSize temp4 ; | |
14499 | long val5 ; | |
14500 | int ecode5 = 0 ; | |
14501 | bool temp6 = false ; | |
14502 | PyObject * obj0 = 0 ; | |
14503 | PyObject * obj1 = 0 ; | |
14504 | PyObject * obj2 = 0 ; | |
14505 | PyObject * obj3 = 0 ; | |
14506 | PyObject * obj4 = 0 ; | |
14507 | PyObject * obj5 = 0 ; | |
14508 | char * kwnames[] = { | |
14509 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14510 | }; | |
14511 | ||
14512 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
14513 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14514 | if (!SWIG_IsOK(res1)) { | |
14515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14516 | } | |
14517 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14518 | if (obj1) { | |
14519 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14520 | if (!SWIG_IsOK(ecode2)) { | |
14521 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'"); | |
14522 | } | |
14523 | arg2 = static_cast< int >(val2); | |
14524 | } | |
14525 | if (obj2) { | |
093d3ff1 | 14526 | { |
0085ce49 RD |
14527 | arg3 = &temp3; |
14528 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 14529 | } |
0085ce49 RD |
14530 | } |
14531 | if (obj3) { | |
d14a1e28 | 14532 | { |
0085ce49 RD |
14533 | arg4 = &temp4; |
14534 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 14535 | } |
0085ce49 RD |
14536 | } |
14537 | if (obj4) { | |
14538 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14539 | if (!SWIG_IsOK(ecode5)) { | |
14540 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'"); | |
14541 | } | |
14542 | arg5 = static_cast< long >(val5); | |
14543 | } | |
14544 | if (obj5) { | |
d14a1e28 | 14545 | { |
0085ce49 RD |
14546 | arg6 = wxString_in_helper(obj5); |
14547 | if (arg6 == NULL) SWIG_fail; | |
14548 | temp6 = true; | |
d14a1e28 | 14549 | } |
0085ce49 RD |
14550 | } |
14551 | { | |
14552 | if (!wxPyCheckForApp()) SWIG_fail; | |
14553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14554 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14555 | wxPyEndAllowThreads(__tstate); | |
14556 | if (PyErr_Occurred()) SWIG_fail; | |
14557 | } | |
14558 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 ); | |
14559 | { | |
14560 | if (temp6) | |
14561 | delete arg6; | |
14562 | } | |
14563 | return resultobj; | |
14564 | fail: | |
14565 | { | |
14566 | if (temp6) | |
14567 | delete arg6; | |
14568 | } | |
14569 | return NULL; | |
d14a1e28 RD |
14570 | } |
14571 | ||
14572 | ||
0085ce49 RD |
14573 | SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14574 | PyObject *resultobj = 0; | |
14575 | wxSpinButton *result = 0 ; | |
14576 | ||
14577 | if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail; | |
14578 | { | |
14579 | if (!wxPyCheckForApp()) SWIG_fail; | |
14580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14581 | result = (wxSpinButton *)new wxSpinButton(); | |
14582 | wxPyEndAllowThreads(__tstate); | |
14583 | if (PyErr_Occurred()) SWIG_fail; | |
14584 | } | |
14585 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 ); | |
14586 | return resultobj; | |
14587 | fail: | |
14588 | return NULL; | |
14589 | } | |
14590 | ||
14591 | ||
14592 | SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14593 | PyObject *resultobj = 0; | |
14594 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14595 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14596 | int arg3 = (int) -1 ; | |
14597 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14598 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14599 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14600 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14601 | long arg6 = (long) wxSP_HORIZONTAL ; | |
14602 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
14603 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14604 | bool result; | |
14605 | void *argp1 = 0 ; | |
14606 | int res1 = 0 ; | |
14607 | void *argp2 = 0 ; | |
14608 | int res2 = 0 ; | |
14609 | int val3 ; | |
14610 | int ecode3 = 0 ; | |
14611 | wxPoint temp4 ; | |
14612 | wxSize temp5 ; | |
14613 | long val6 ; | |
14614 | int ecode6 = 0 ; | |
14615 | bool temp7 = false ; | |
14616 | PyObject * obj0 = 0 ; | |
14617 | PyObject * obj1 = 0 ; | |
14618 | PyObject * obj2 = 0 ; | |
14619 | PyObject * obj3 = 0 ; | |
14620 | PyObject * obj4 = 0 ; | |
14621 | PyObject * obj5 = 0 ; | |
14622 | PyObject * obj6 = 0 ; | |
14623 | char * kwnames[] = { | |
14624 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14625 | }; | |
14626 | ||
14627 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14628 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14629 | if (!SWIG_IsOK(res1)) { | |
14630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
14631 | } | |
14632 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14633 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14634 | if (!SWIG_IsOK(res2)) { | |
14635 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14636 | } | |
14637 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14638 | if (obj2) { | |
14639 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14640 | if (!SWIG_IsOK(ecode3)) { | |
14641 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
14642 | } | |
14643 | arg3 = static_cast< int >(val3); | |
14644 | } | |
14645 | if (obj3) { | |
d14a1e28 | 14646 | { |
0085ce49 RD |
14647 | arg4 = &temp4; |
14648 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 14649 | } |
0085ce49 RD |
14650 | } |
14651 | if (obj4) { | |
d14a1e28 | 14652 | { |
0085ce49 RD |
14653 | arg5 = &temp5; |
14654 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 14655 | } |
0085ce49 RD |
14656 | } |
14657 | if (obj5) { | |
14658 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14659 | if (!SWIG_IsOK(ecode6)) { | |
14660 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'"); | |
14661 | } | |
14662 | arg6 = static_cast< long >(val6); | |
14663 | } | |
14664 | if (obj6) { | |
d14a1e28 | 14665 | { |
0085ce49 RD |
14666 | arg7 = wxString_in_helper(obj6); |
14667 | if (arg7 == NULL) SWIG_fail; | |
14668 | temp7 = true; | |
d14a1e28 | 14669 | } |
0085ce49 RD |
14670 | } |
14671 | { | |
14672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14673 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14674 | wxPyEndAllowThreads(__tstate); | |
14675 | if (PyErr_Occurred()) SWIG_fail; | |
14676 | } | |
14677 | { | |
14678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14679 | } | |
14680 | { | |
14681 | if (temp7) | |
14682 | delete arg7; | |
14683 | } | |
14684 | return resultobj; | |
14685 | fail: | |
14686 | { | |
14687 | if (temp7) | |
14688 | delete arg7; | |
14689 | } | |
14690 | return NULL; | |
d14a1e28 RD |
14691 | } |
14692 | ||
14693 | ||
0085ce49 RD |
14694 | SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14695 | PyObject *resultobj = 0; | |
14696 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14697 | int result; | |
14698 | void *argp1 = 0 ; | |
14699 | int res1 = 0 ; | |
14700 | PyObject *swig_obj[1] ; | |
14701 | ||
14702 | if (!args) SWIG_fail; | |
14703 | swig_obj[0] = args; | |
14704 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14705 | if (!SWIG_IsOK(res1)) { | |
14706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
14707 | } | |
14708 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14709 | { | |
14710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14711 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
14712 | wxPyEndAllowThreads(__tstate); | |
14713 | if (PyErr_Occurred()) SWIG_fail; | |
14714 | } | |
14715 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14716 | return resultobj; | |
14717 | fail: | |
14718 | return NULL; | |
d14a1e28 RD |
14719 | } |
14720 | ||
14721 | ||
0085ce49 RD |
14722 | SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14723 | PyObject *resultobj = 0; | |
14724 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14725 | int result; | |
14726 | void *argp1 = 0 ; | |
14727 | int res1 = 0 ; | |
14728 | PyObject *swig_obj[1] ; | |
14729 | ||
14730 | if (!args) SWIG_fail; | |
14731 | swig_obj[0] = args; | |
14732 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14733 | if (!SWIG_IsOK(res1)) { | |
14734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
14735 | } | |
14736 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14737 | { | |
14738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14739 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
14740 | wxPyEndAllowThreads(__tstate); | |
14741 | if (PyErr_Occurred()) SWIG_fail; | |
14742 | } | |
14743 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14744 | return resultobj; | |
14745 | fail: | |
14746 | return NULL; | |
d14a1e28 RD |
14747 | } |
14748 | ||
14749 | ||
0085ce49 RD |
14750 | SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14751 | PyObject *resultobj = 0; | |
14752 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14753 | int result; | |
14754 | void *argp1 = 0 ; | |
14755 | int res1 = 0 ; | |
14756 | PyObject *swig_obj[1] ; | |
14757 | ||
14758 | if (!args) SWIG_fail; | |
14759 | swig_obj[0] = args; | |
14760 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14761 | if (!SWIG_IsOK(res1)) { | |
14762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
14763 | } | |
14764 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14765 | { | |
14766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14767 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
14768 | wxPyEndAllowThreads(__tstate); | |
14769 | if (PyErr_Occurred()) SWIG_fail; | |
14770 | } | |
14771 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14772 | return resultobj; | |
14773 | fail: | |
14774 | return NULL; | |
14775 | } | |
14776 | ||
14777 | ||
14778 | SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14779 | PyObject *resultobj = 0; | |
14780 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14781 | int arg2 ; | |
14782 | void *argp1 = 0 ; | |
14783 | int res1 = 0 ; | |
14784 | int val2 ; | |
14785 | int ecode2 = 0 ; | |
14786 | PyObject * obj0 = 0 ; | |
14787 | PyObject * obj1 = 0 ; | |
14788 | char * kwnames[] = { | |
14789 | (char *) "self",(char *) "val", NULL | |
14790 | }; | |
14791 | ||
14792 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
14793 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14794 | if (!SWIG_IsOK(res1)) { | |
14795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
14796 | } | |
14797 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14798 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14799 | if (!SWIG_IsOK(ecode2)) { | |
14800 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
14801 | } | |
14802 | arg2 = static_cast< int >(val2); | |
14803 | { | |
14804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14805 | (arg1)->SetValue(arg2); | |
14806 | wxPyEndAllowThreads(__tstate); | |
14807 | if (PyErr_Occurred()) SWIG_fail; | |
14808 | } | |
14809 | resultobj = SWIG_Py_Void(); | |
14810 | return resultobj; | |
14811 | fail: | |
14812 | return NULL; | |
14813 | } | |
14814 | ||
14815 | ||
14816 | SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14817 | PyObject *resultobj = 0; | |
14818 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14819 | int arg2 ; | |
14820 | void *argp1 = 0 ; | |
14821 | int res1 = 0 ; | |
14822 | int val2 ; | |
14823 | int ecode2 = 0 ; | |
14824 | PyObject * obj0 = 0 ; | |
14825 | PyObject * obj1 = 0 ; | |
14826 | char * kwnames[] = { | |
14827 | (char *) "self",(char *) "minVal", NULL | |
14828 | }; | |
14829 | ||
14830 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail; | |
14831 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14832 | if (!SWIG_IsOK(res1)) { | |
14833 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
14834 | } | |
14835 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14836 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14837 | if (!SWIG_IsOK(ecode2)) { | |
14838 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'"); | |
14839 | } | |
14840 | arg2 = static_cast< int >(val2); | |
14841 | { | |
14842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14843 | (arg1)->SetMin(arg2); | |
14844 | wxPyEndAllowThreads(__tstate); | |
14845 | if (PyErr_Occurred()) SWIG_fail; | |
14846 | } | |
14847 | resultobj = SWIG_Py_Void(); | |
14848 | return resultobj; | |
14849 | fail: | |
14850 | return NULL; | |
14851 | } | |
14852 | ||
14853 | ||
14854 | SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14855 | PyObject *resultobj = 0; | |
14856 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14857 | int arg2 ; | |
14858 | void *argp1 = 0 ; | |
14859 | int res1 = 0 ; | |
14860 | int val2 ; | |
14861 | int ecode2 = 0 ; | |
14862 | PyObject * obj0 = 0 ; | |
14863 | PyObject * obj1 = 0 ; | |
14864 | char * kwnames[] = { | |
14865 | (char *) "self",(char *) "maxVal", NULL | |
14866 | }; | |
14867 | ||
14868 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail; | |
14869 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14870 | if (!SWIG_IsOK(res1)) { | |
14871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
14872 | } | |
14873 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14874 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14875 | if (!SWIG_IsOK(ecode2)) { | |
14876 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'"); | |
14877 | } | |
14878 | arg2 = static_cast< int >(val2); | |
14879 | { | |
14880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14881 | (arg1)->SetMax(arg2); | |
14882 | wxPyEndAllowThreads(__tstate); | |
14883 | if (PyErr_Occurred()) SWIG_fail; | |
14884 | } | |
14885 | resultobj = SWIG_Py_Void(); | |
14886 | return resultobj; | |
14887 | fail: | |
14888 | return NULL; | |
14889 | } | |
14890 | ||
14891 | ||
14892 | SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14893 | PyObject *resultobj = 0; | |
14894 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14895 | int arg2 ; | |
14896 | int arg3 ; | |
14897 | void *argp1 = 0 ; | |
14898 | int res1 = 0 ; | |
14899 | int val2 ; | |
14900 | int ecode2 = 0 ; | |
14901 | int val3 ; | |
14902 | int ecode3 = 0 ; | |
14903 | PyObject * obj0 = 0 ; | |
14904 | PyObject * obj1 = 0 ; | |
14905 | PyObject * obj2 = 0 ; | |
14906 | char * kwnames[] = { | |
14907 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
14908 | }; | |
14909 | ||
14910 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14911 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14912 | if (!SWIG_IsOK(res1)) { | |
14913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
14914 | } | |
14915 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14916 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14917 | if (!SWIG_IsOK(ecode2)) { | |
14918 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
14919 | } | |
14920 | arg2 = static_cast< int >(val2); | |
14921 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14922 | if (!SWIG_IsOK(ecode3)) { | |
14923 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
14924 | } | |
14925 | arg3 = static_cast< int >(val3); | |
14926 | { | |
14927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14928 | (arg1)->SetRange(arg2,arg3); | |
14929 | wxPyEndAllowThreads(__tstate); | |
14930 | if (PyErr_Occurred()) SWIG_fail; | |
14931 | } | |
14932 | resultobj = SWIG_Py_Void(); | |
14933 | return resultobj; | |
14934 | fail: | |
14935 | return NULL; | |
d14a1e28 RD |
14936 | } |
14937 | ||
14938 | ||
0085ce49 RD |
14939 | SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14940 | PyObject *resultobj = 0; | |
14941 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14942 | bool result; | |
14943 | void *argp1 = 0 ; | |
14944 | int res1 = 0 ; | |
14945 | PyObject *swig_obj[1] ; | |
14946 | ||
14947 | if (!args) SWIG_fail; | |
14948 | swig_obj[0] = args; | |
14949 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14950 | if (!SWIG_IsOK(res1)) { | |
14951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
14952 | } | |
14953 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14954 | { | |
14955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14956 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
14957 | wxPyEndAllowThreads(__tstate); | |
14958 | if (PyErr_Occurred()) SWIG_fail; | |
14959 | } | |
14960 | { | |
14961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14962 | } | |
14963 | return resultobj; | |
14964 | fail: | |
14965 | return NULL; | |
d14a1e28 RD |
14966 | } |
14967 | ||
14968 | ||
0085ce49 RD |
14969 | SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14970 | PyObject *resultobj = 0; | |
14971 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
14972 | SwigValueWrapper<wxVisualAttributes > result; | |
14973 | int val1 ; | |
14974 | int ecode1 = 0 ; | |
14975 | PyObject * obj0 = 0 ; | |
14976 | char * kwnames[] = { | |
14977 | (char *) "variant", NULL | |
14978 | }; | |
14979 | ||
14980 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
14981 | if (obj0) { | |
14982 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14983 | if (!SWIG_IsOK(ecode1)) { | |
14984 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
14985 | } | |
14986 | arg1 = static_cast< wxWindowVariant >(val1); | |
14987 | } | |
14988 | { | |
14989 | if (!wxPyCheckForApp()) SWIG_fail; | |
14990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14991 | result = wxSpinButton::GetClassDefaultAttributes(arg1); | |
14992 | wxPyEndAllowThreads(__tstate); | |
14993 | if (PyErr_Occurred()) SWIG_fail; | |
14994 | } | |
14995 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
14996 | return resultobj; | |
14997 | fail: | |
14998 | return NULL; | |
14999 | } | |
15000 | ||
15001 | ||
15002 | SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15003 | PyObject *obj; | |
15004 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15005 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj)); | |
15006 | return SWIG_Py_Void(); | |
15007 | } | |
15008 | ||
15009 | SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15010 | return SWIG_Python_InitShadowInstance(args); | |
15011 | } | |
15012 | ||
15013 | SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15014 | PyObject *resultobj = 0; | |
15015 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15016 | int arg2 = (int) -1 ; | |
15017 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15018 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15019 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15020 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15021 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15022 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15023 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
15024 | int arg7 = (int) 0 ; | |
15025 | int arg8 = (int) 100 ; | |
15026 | int arg9 = (int) 0 ; | |
15027 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
15028 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
15029 | wxSpinCtrl *result = 0 ; | |
15030 | void *argp1 = 0 ; | |
15031 | int res1 = 0 ; | |
15032 | int val2 ; | |
15033 | int ecode2 = 0 ; | |
15034 | bool temp3 = false ; | |
15035 | wxPoint temp4 ; | |
15036 | wxSize temp5 ; | |
15037 | long val6 ; | |
15038 | int ecode6 = 0 ; | |
15039 | int val7 ; | |
15040 | int ecode7 = 0 ; | |
15041 | int val8 ; | |
15042 | int ecode8 = 0 ; | |
15043 | int val9 ; | |
15044 | int ecode9 = 0 ; | |
15045 | bool temp10 = false ; | |
15046 | PyObject * obj0 = 0 ; | |
15047 | PyObject * obj1 = 0 ; | |
15048 | PyObject * obj2 = 0 ; | |
15049 | PyObject * obj3 = 0 ; | |
15050 | PyObject * obj4 = 0 ; | |
15051 | PyObject * obj5 = 0 ; | |
15052 | PyObject * obj6 = 0 ; | |
15053 | PyObject * obj7 = 0 ; | |
15054 | PyObject * obj8 = 0 ; | |
15055 | PyObject * obj9 = 0 ; | |
15056 | char * kwnames[] = { | |
15057 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
15058 | }; | |
15059 | ||
15060 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
15061 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15062 | if (!SWIG_IsOK(res1)) { | |
15063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
15064 | } | |
15065 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
15066 | if (obj1) { | |
15067 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15068 | if (!SWIG_IsOK(ecode2)) { | |
15069 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'"); | |
15070 | } | |
15071 | arg2 = static_cast< int >(val2); | |
15072 | } | |
15073 | if (obj2) { | |
093d3ff1 | 15074 | { |
0085ce49 RD |
15075 | arg3 = wxString_in_helper(obj2); |
15076 | if (arg3 == NULL) SWIG_fail; | |
15077 | temp3 = true; | |
093d3ff1 | 15078 | } |
0085ce49 RD |
15079 | } |
15080 | if (obj3) { | |
093d3ff1 | 15081 | { |
0085ce49 RD |
15082 | arg4 = &temp4; |
15083 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 15084 | } |
0085ce49 RD |
15085 | } |
15086 | if (obj4) { | |
d14a1e28 | 15087 | { |
0085ce49 RD |
15088 | arg5 = &temp5; |
15089 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 15090 | } |
0085ce49 RD |
15091 | } |
15092 | if (obj5) { | |
15093 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
15094 | if (!SWIG_IsOK(ecode6)) { | |
15095 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'"); | |
15096 | } | |
15097 | arg6 = static_cast< long >(val6); | |
15098 | } | |
15099 | if (obj6) { | |
15100 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
15101 | if (!SWIG_IsOK(ecode7)) { | |
15102 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'"); | |
15103 | } | |
15104 | arg7 = static_cast< int >(val7); | |
15105 | } | |
15106 | if (obj7) { | |
15107 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
15108 | if (!SWIG_IsOK(ecode8)) { | |
15109 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'"); | |
15110 | } | |
15111 | arg8 = static_cast< int >(val8); | |
15112 | } | |
15113 | if (obj8) { | |
15114 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
15115 | if (!SWIG_IsOK(ecode9)) { | |
15116 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'"); | |
15117 | } | |
15118 | arg9 = static_cast< int >(val9); | |
15119 | } | |
15120 | if (obj9) { | |
d14a1e28 | 15121 | { |
0085ce49 RD |
15122 | arg10 = wxString_in_helper(obj9); |
15123 | if (arg10 == NULL) SWIG_fail; | |
15124 | temp10 = true; | |
d14a1e28 | 15125 | } |
0085ce49 RD |
15126 | } |
15127 | { | |
15128 | if (!wxPyCheckForApp()) SWIG_fail; | |
15129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15130 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
15131 | wxPyEndAllowThreads(__tstate); | |
15132 | if (PyErr_Occurred()) SWIG_fail; | |
15133 | } | |
15134 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 ); | |
15135 | { | |
15136 | if (temp3) | |
15137 | delete arg3; | |
15138 | } | |
15139 | { | |
15140 | if (temp10) | |
15141 | delete arg10; | |
15142 | } | |
15143 | return resultobj; | |
15144 | fail: | |
15145 | { | |
15146 | if (temp3) | |
15147 | delete arg3; | |
15148 | } | |
15149 | { | |
15150 | if (temp10) | |
15151 | delete arg10; | |
15152 | } | |
15153 | return NULL; | |
d14a1e28 RD |
15154 | } |
15155 | ||
15156 | ||
0085ce49 RD |
15157 | SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15158 | PyObject *resultobj = 0; | |
15159 | wxSpinCtrl *result = 0 ; | |
15160 | ||
15161 | if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail; | |
15162 | { | |
15163 | if (!wxPyCheckForApp()) SWIG_fail; | |
15164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15165 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
15166 | wxPyEndAllowThreads(__tstate); | |
15167 | if (PyErr_Occurred()) SWIG_fail; | |
15168 | } | |
15169 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 ); | |
15170 | return resultobj; | |
15171 | fail: | |
15172 | return NULL; | |
15173 | } | |
15174 | ||
15175 | ||
15176 | SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15177 | PyObject *resultobj = 0; | |
15178 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15179 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15180 | int arg3 = (int) -1 ; | |
15181 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15182 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15183 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
15184 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15185 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15186 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15187 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
15188 | int arg8 = (int) 0 ; | |
15189 | int arg9 = (int) 100 ; | |
15190 | int arg10 = (int) 0 ; | |
15191 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
15192 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
15193 | bool result; | |
15194 | void *argp1 = 0 ; | |
15195 | int res1 = 0 ; | |
15196 | void *argp2 = 0 ; | |
15197 | int res2 = 0 ; | |
15198 | int val3 ; | |
15199 | int ecode3 = 0 ; | |
15200 | bool temp4 = false ; | |
15201 | wxPoint temp5 ; | |
15202 | wxSize temp6 ; | |
15203 | long val7 ; | |
15204 | int ecode7 = 0 ; | |
15205 | int val8 ; | |
15206 | int ecode8 = 0 ; | |
15207 | int val9 ; | |
15208 | int ecode9 = 0 ; | |
15209 | int val10 ; | |
15210 | int ecode10 = 0 ; | |
15211 | bool temp11 = false ; | |
15212 | PyObject * obj0 = 0 ; | |
15213 | PyObject * obj1 = 0 ; | |
15214 | PyObject * obj2 = 0 ; | |
15215 | PyObject * obj3 = 0 ; | |
15216 | PyObject * obj4 = 0 ; | |
15217 | PyObject * obj5 = 0 ; | |
15218 | PyObject * obj6 = 0 ; | |
15219 | PyObject * obj7 = 0 ; | |
15220 | PyObject * obj8 = 0 ; | |
15221 | PyObject * obj9 = 0 ; | |
15222 | PyObject * obj10 = 0 ; | |
15223 | char * kwnames[] = { | |
15224 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
15225 | }; | |
15226 | ||
15227 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
15228 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15229 | if (!SWIG_IsOK(res1)) { | |
15230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15231 | } | |
15232 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15233 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15234 | if (!SWIG_IsOK(res2)) { | |
15235 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
15236 | } | |
15237 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
15238 | if (obj2) { | |
15239 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15240 | if (!SWIG_IsOK(ecode3)) { | |
15241 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
15242 | } | |
15243 | arg3 = static_cast< int >(val3); | |
15244 | } | |
15245 | if (obj3) { | |
093d3ff1 | 15246 | { |
0085ce49 RD |
15247 | arg4 = wxString_in_helper(obj3); |
15248 | if (arg4 == NULL) SWIG_fail; | |
15249 | temp4 = true; | |
093d3ff1 | 15250 | } |
0085ce49 RD |
15251 | } |
15252 | if (obj4) { | |
d14a1e28 | 15253 | { |
0085ce49 RD |
15254 | arg5 = &temp5; |
15255 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 15256 | } |
0085ce49 RD |
15257 | } |
15258 | if (obj5) { | |
093d3ff1 | 15259 | { |
0085ce49 RD |
15260 | arg6 = &temp6; |
15261 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 15262 | } |
0085ce49 RD |
15263 | } |
15264 | if (obj6) { | |
15265 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
15266 | if (!SWIG_IsOK(ecode7)) { | |
15267 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
15268 | } | |
15269 | arg7 = static_cast< long >(val7); | |
15270 | } | |
15271 | if (obj7) { | |
15272 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
15273 | if (!SWIG_IsOK(ecode8)) { | |
15274 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'"); | |
15275 | } | |
15276 | arg8 = static_cast< int >(val8); | |
15277 | } | |
15278 | if (obj8) { | |
15279 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
15280 | if (!SWIG_IsOK(ecode9)) { | |
15281 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'"); | |
15282 | } | |
15283 | arg9 = static_cast< int >(val9); | |
15284 | } | |
15285 | if (obj9) { | |
15286 | ecode10 = SWIG_AsVal_int(obj9, &val10); | |
15287 | if (!SWIG_IsOK(ecode10)) { | |
15288 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'"); | |
15289 | } | |
15290 | arg10 = static_cast< int >(val10); | |
15291 | } | |
15292 | if (obj10) { | |
d14a1e28 | 15293 | { |
0085ce49 RD |
15294 | arg11 = wxString_in_helper(obj10); |
15295 | if (arg11 == NULL) SWIG_fail; | |
15296 | temp11 = true; | |
d14a1e28 | 15297 | } |
0085ce49 RD |
15298 | } |
15299 | { | |
15300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15301 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
15302 | wxPyEndAllowThreads(__tstate); | |
15303 | if (PyErr_Occurred()) SWIG_fail; | |
15304 | } | |
15305 | { | |
15306 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15307 | } | |
15308 | { | |
15309 | if (temp4) | |
15310 | delete arg4; | |
15311 | } | |
15312 | { | |
15313 | if (temp11) | |
15314 | delete arg11; | |
15315 | } | |
15316 | return resultobj; | |
15317 | fail: | |
15318 | { | |
15319 | if (temp4) | |
15320 | delete arg4; | |
15321 | } | |
15322 | { | |
15323 | if (temp11) | |
15324 | delete arg11; | |
15325 | } | |
15326 | return NULL; | |
d14a1e28 RD |
15327 | } |
15328 | ||
15329 | ||
0085ce49 RD |
15330 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15331 | PyObject *resultobj = 0; | |
15332 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15333 | int result; | |
15334 | void *argp1 = 0 ; | |
15335 | int res1 = 0 ; | |
15336 | PyObject *swig_obj[1] ; | |
15337 | ||
15338 | if (!args) SWIG_fail; | |
15339 | swig_obj[0] = args; | |
15340 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15341 | if (!SWIG_IsOK(res1)) { | |
15342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15343 | } | |
15344 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15345 | { | |
15346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15347 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
15348 | wxPyEndAllowThreads(__tstate); | |
15349 | if (PyErr_Occurred()) SWIG_fail; | |
15350 | } | |
15351 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15352 | return resultobj; | |
15353 | fail: | |
15354 | return NULL; | |
15355 | } | |
15356 | ||
15357 | ||
15358 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15359 | PyObject *resultobj = 0; | |
15360 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15361 | int arg2 ; | |
15362 | void *argp1 = 0 ; | |
15363 | int res1 = 0 ; | |
15364 | int val2 ; | |
15365 | int ecode2 = 0 ; | |
15366 | PyObject * obj0 = 0 ; | |
15367 | PyObject * obj1 = 0 ; | |
15368 | char * kwnames[] = { | |
15369 | (char *) "self",(char *) "value", NULL | |
15370 | }; | |
15371 | ||
15372 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
15373 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15374 | if (!SWIG_IsOK(res1)) { | |
15375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15376 | } | |
15377 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15378 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15379 | if (!SWIG_IsOK(ecode2)) { | |
15380 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
15381 | } | |
15382 | arg2 = static_cast< int >(val2); | |
15383 | { | |
15384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15385 | (arg1)->SetValue(arg2); | |
15386 | wxPyEndAllowThreads(__tstate); | |
15387 | if (PyErr_Occurred()) SWIG_fail; | |
15388 | } | |
15389 | resultobj = SWIG_Py_Void(); | |
15390 | return resultobj; | |
15391 | fail: | |
15392 | return NULL; | |
15393 | } | |
15394 | ||
15395 | ||
15396 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15397 | PyObject *resultobj = 0; | |
15398 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15399 | wxString *arg2 = 0 ; | |
15400 | void *argp1 = 0 ; | |
15401 | int res1 = 0 ; | |
15402 | bool temp2 = false ; | |
15403 | PyObject * obj0 = 0 ; | |
15404 | PyObject * obj1 = 0 ; | |
15405 | char * kwnames[] = { | |
15406 | (char *) "self",(char *) "text", NULL | |
15407 | }; | |
15408 | ||
15409 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail; | |
15410 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15411 | if (!SWIG_IsOK(res1)) { | |
15412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15413 | } | |
15414 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15415 | { | |
15416 | arg2 = wxString_in_helper(obj1); | |
15417 | if (arg2 == NULL) SWIG_fail; | |
15418 | temp2 = true; | |
15419 | } | |
15420 | { | |
15421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15422 | (arg1)->SetValue((wxString const &)*arg2); | |
15423 | wxPyEndAllowThreads(__tstate); | |
15424 | if (PyErr_Occurred()) SWIG_fail; | |
15425 | } | |
15426 | resultobj = SWIG_Py_Void(); | |
15427 | { | |
15428 | if (temp2) | |
15429 | delete arg2; | |
15430 | } | |
15431 | return resultobj; | |
15432 | fail: | |
15433 | { | |
15434 | if (temp2) | |
15435 | delete arg2; | |
15436 | } | |
15437 | return NULL; | |
15438 | } | |
15439 | ||
15440 | ||
15441 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15442 | PyObject *resultobj = 0; | |
15443 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15444 | int arg2 ; | |
15445 | int arg3 ; | |
15446 | void *argp1 = 0 ; | |
15447 | int res1 = 0 ; | |
15448 | int val2 ; | |
15449 | int ecode2 = 0 ; | |
15450 | int val3 ; | |
15451 | int ecode3 = 0 ; | |
15452 | PyObject * obj0 = 0 ; | |
15453 | PyObject * obj1 = 0 ; | |
15454 | PyObject * obj2 = 0 ; | |
15455 | char * kwnames[] = { | |
15456 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
15457 | }; | |
15458 | ||
15459 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15460 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15461 | if (!SWIG_IsOK(res1)) { | |
15462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15463 | } | |
15464 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15465 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15466 | if (!SWIG_IsOK(ecode2)) { | |
15467 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
15468 | } | |
15469 | arg2 = static_cast< int >(val2); | |
15470 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15471 | if (!SWIG_IsOK(ecode3)) { | |
15472 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
15473 | } | |
15474 | arg3 = static_cast< int >(val3); | |
15475 | { | |
15476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15477 | (arg1)->SetRange(arg2,arg3); | |
15478 | wxPyEndAllowThreads(__tstate); | |
15479 | if (PyErr_Occurred()) SWIG_fail; | |
15480 | } | |
15481 | resultobj = SWIG_Py_Void(); | |
15482 | return resultobj; | |
15483 | fail: | |
15484 | return NULL; | |
d14a1e28 RD |
15485 | } |
15486 | ||
15487 | ||
0085ce49 RD |
15488 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15489 | PyObject *resultobj = 0; | |
15490 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15491 | int result; | |
15492 | void *argp1 = 0 ; | |
15493 | int res1 = 0 ; | |
15494 | PyObject *swig_obj[1] ; | |
15495 | ||
15496 | if (!args) SWIG_fail; | |
15497 | swig_obj[0] = args; | |
15498 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15499 | if (!SWIG_IsOK(res1)) { | |
15500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15501 | } | |
15502 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15503 | { | |
15504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15505 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
15506 | wxPyEndAllowThreads(__tstate); | |
15507 | if (PyErr_Occurred()) SWIG_fail; | |
15508 | } | |
15509 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15510 | return resultobj; | |
15511 | fail: | |
15512 | return NULL; | |
d14a1e28 RD |
15513 | } |
15514 | ||
15515 | ||
0085ce49 RD |
15516 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15517 | PyObject *resultobj = 0; | |
15518 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15519 | int result; | |
15520 | void *argp1 = 0 ; | |
15521 | int res1 = 0 ; | |
15522 | PyObject *swig_obj[1] ; | |
15523 | ||
15524 | if (!args) SWIG_fail; | |
15525 | swig_obj[0] = args; | |
15526 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15527 | if (!SWIG_IsOK(res1)) { | |
15528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15529 | } | |
15530 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15531 | { | |
15532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15533 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
15534 | wxPyEndAllowThreads(__tstate); | |
15535 | if (PyErr_Occurred()) SWIG_fail; | |
15536 | } | |
15537 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15538 | return resultobj; | |
15539 | fail: | |
15540 | return NULL; | |
15541 | } | |
15542 | ||
15543 | ||
15544 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15545 | PyObject *resultobj = 0; | |
15546 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15547 | long arg2 ; | |
15548 | long arg3 ; | |
15549 | void *argp1 = 0 ; | |
15550 | int res1 = 0 ; | |
15551 | long val2 ; | |
15552 | int ecode2 = 0 ; | |
15553 | long val3 ; | |
15554 | int ecode3 = 0 ; | |
15555 | PyObject * obj0 = 0 ; | |
15556 | PyObject * obj1 = 0 ; | |
15557 | PyObject * obj2 = 0 ; | |
15558 | char * kwnames[] = { | |
15559 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
15560 | }; | |
15561 | ||
15562 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15563 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15564 | if (!SWIG_IsOK(res1)) { | |
15565 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15566 | } | |
15567 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15568 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
15569 | if (!SWIG_IsOK(ecode2)) { | |
15570 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'"); | |
15571 | } | |
15572 | arg2 = static_cast< long >(val2); | |
15573 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
15574 | if (!SWIG_IsOK(ecode3)) { | |
15575 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'"); | |
15576 | } | |
15577 | arg3 = static_cast< long >(val3); | |
15578 | { | |
15579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15580 | (arg1)->SetSelection(arg2,arg3); | |
15581 | wxPyEndAllowThreads(__tstate); | |
15582 | if (PyErr_Occurred()) SWIG_fail; | |
15583 | } | |
15584 | resultobj = SWIG_Py_Void(); | |
15585 | return resultobj; | |
15586 | fail: | |
15587 | return NULL; | |
15588 | } | |
15589 | ||
15590 | ||
15591 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15592 | PyObject *resultobj = 0; | |
15593 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
15594 | SwigValueWrapper<wxVisualAttributes > result; | |
15595 | int val1 ; | |
15596 | int ecode1 = 0 ; | |
15597 | PyObject * obj0 = 0 ; | |
15598 | char * kwnames[] = { | |
15599 | (char *) "variant", NULL | |
15600 | }; | |
15601 | ||
15602 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
15603 | if (obj0) { | |
15604 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15605 | if (!SWIG_IsOK(ecode1)) { | |
15606 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
15607 | } | |
15608 | arg1 = static_cast< wxWindowVariant >(val1); | |
15609 | } | |
15610 | { | |
15611 | if (!wxPyCheckForApp()) SWIG_fail; | |
15612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15613 | result = wxSpinCtrl::GetClassDefaultAttributes(arg1); | |
15614 | wxPyEndAllowThreads(__tstate); | |
15615 | if (PyErr_Occurred()) SWIG_fail; | |
15616 | } | |
15617 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
15618 | return resultobj; | |
15619 | fail: | |
15620 | return NULL; | |
d14a1e28 RD |
15621 | } |
15622 | ||
15623 | ||
0085ce49 RD |
15624 | SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15625 | PyObject *obj; | |
15626 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15627 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj)); | |
15628 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15629 | } |
15630 | ||
0085ce49 RD |
15631 | SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15632 | return SWIG_Python_InitShadowInstance(args); | |
15633 | } | |
d14a1e28 | 15634 | |
0085ce49 RD |
15635 | SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15636 | PyObject *resultobj = 0; | |
15637 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15638 | int arg2 = (int) 0 ; | |
15639 | wxSpinEvent *result = 0 ; | |
15640 | int val1 ; | |
15641 | int ecode1 = 0 ; | |
15642 | int val2 ; | |
15643 | int ecode2 = 0 ; | |
15644 | PyObject * obj0 = 0 ; | |
15645 | PyObject * obj1 = 0 ; | |
15646 | char * kwnames[] = { | |
15647 | (char *) "commandType",(char *) "winid", NULL | |
15648 | }; | |
15649 | ||
15650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
15651 | if (obj0) { | |
15652 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15653 | if (!SWIG_IsOK(ecode1)) { | |
15654 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
15655 | } | |
15656 | arg1 = static_cast< wxEventType >(val1); | |
15657 | } | |
15658 | if (obj1) { | |
15659 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15660 | if (!SWIG_IsOK(ecode2)) { | |
15661 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'"); | |
15662 | } | |
15663 | arg2 = static_cast< int >(val2); | |
15664 | } | |
15665 | { | |
15666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15667 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
15668 | wxPyEndAllowThreads(__tstate); | |
15669 | if (PyErr_Occurred()) SWIG_fail; | |
15670 | } | |
15671 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 ); | |
15672 | return resultobj; | |
15673 | fail: | |
15674 | return NULL; | |
d14a1e28 RD |
15675 | } |
15676 | ||
15677 | ||
0085ce49 RD |
15678 | SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15679 | PyObject *resultobj = 0; | |
15680 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
15681 | int result; | |
15682 | void *argp1 = 0 ; | |
15683 | int res1 = 0 ; | |
15684 | PyObject *swig_obj[1] ; | |
15685 | ||
15686 | if (!args) SWIG_fail; | |
15687 | swig_obj[0] = args; | |
15688 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 ); | |
15689 | if (!SWIG_IsOK(res1)) { | |
15690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'"); | |
15691 | } | |
15692 | arg1 = reinterpret_cast< wxSpinEvent * >(argp1); | |
15693 | { | |
15694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15695 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
15696 | wxPyEndAllowThreads(__tstate); | |
15697 | if (PyErr_Occurred()) SWIG_fail; | |
15698 | } | |
15699 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15700 | return resultobj; | |
15701 | fail: | |
15702 | return NULL; | |
15703 | } | |
15704 | ||
15705 | ||
15706 | SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15707 | PyObject *resultobj = 0; | |
15708 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
15709 | int arg2 ; | |
15710 | void *argp1 = 0 ; | |
15711 | int res1 = 0 ; | |
15712 | int val2 ; | |
15713 | int ecode2 = 0 ; | |
15714 | PyObject * obj0 = 0 ; | |
15715 | PyObject * obj1 = 0 ; | |
15716 | char * kwnames[] = { | |
15717 | (char *) "self",(char *) "pos", NULL | |
15718 | }; | |
15719 | ||
15720 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
15721 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 ); | |
15722 | if (!SWIG_IsOK(res1)) { | |
15723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'"); | |
15724 | } | |
15725 | arg1 = reinterpret_cast< wxSpinEvent * >(argp1); | |
15726 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15727 | if (!SWIG_IsOK(ecode2)) { | |
15728 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'"); | |
15729 | } | |
15730 | arg2 = static_cast< int >(val2); | |
15731 | { | |
15732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15733 | (arg1)->SetPosition(arg2); | |
15734 | wxPyEndAllowThreads(__tstate); | |
15735 | if (PyErr_Occurred()) SWIG_fail; | |
15736 | } | |
15737 | resultobj = SWIG_Py_Void(); | |
15738 | return resultobj; | |
15739 | fail: | |
15740 | return NULL; | |
d14a1e28 RD |
15741 | } |
15742 | ||
15743 | ||
0085ce49 RD |
15744 | SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15745 | PyObject *obj; | |
15746 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15747 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj)); | |
15748 | return SWIG_Py_Void(); | |
15749 | } | |
15750 | ||
15751 | SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15752 | return SWIG_Python_InitShadowInstance(args); | |
15753 | } | |
15754 | ||
15755 | SWIGINTERN int RadioBoxNameStr_set(PyObject *) { | |
15756 | SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only."); | |
15757 | return 1; | |
15758 | } | |
15759 | ||
15760 | ||
15761 | SWIGINTERN PyObject *RadioBoxNameStr_get(void) { | |
15762 | PyObject *pyobj = 0; | |
15763 | ||
15764 | { | |
d14a1e28 | 15765 | #if wxUSE_UNICODE |
0085ce49 | 15766 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); |
d14a1e28 | 15767 | #else |
0085ce49 | 15768 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); |
d14a1e28 | 15769 | #endif |
0085ce49 RD |
15770 | } |
15771 | return pyobj; | |
d14a1e28 RD |
15772 | } |
15773 | ||
15774 | ||
0085ce49 RD |
15775 | SWIGINTERN int RadioButtonNameStr_set(PyObject *) { |
15776 | SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only."); | |
15777 | return 1; | |
d14a1e28 RD |
15778 | } |
15779 | ||
15780 | ||
0085ce49 RD |
15781 | SWIGINTERN PyObject *RadioButtonNameStr_get(void) { |
15782 | PyObject *pyobj = 0; | |
15783 | ||
15784 | { | |
15785 | #if wxUSE_UNICODE | |
15786 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
15787 | #else | |
15788 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
15789 | #endif | |
15790 | } | |
15791 | return pyobj; | |
15792 | } | |
15793 | ||
15794 | ||
15795 | SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15796 | PyObject *resultobj = 0; | |
15797 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15798 | int arg2 = (int) -1 ; | |
15799 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15800 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15801 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15802 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15803 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15804 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15805 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
15806 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
15807 | int arg7 = (int) 0 ; | |
15808 | long arg8 = (long) wxRA_HORIZONTAL ; | |
15809 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
15810 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
15811 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
15812 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
15813 | wxRadioBox *result = 0 ; | |
15814 | void *argp1 = 0 ; | |
15815 | int res1 = 0 ; | |
15816 | int val2 ; | |
15817 | int ecode2 = 0 ; | |
15818 | bool temp3 = false ; | |
15819 | wxPoint temp4 ; | |
15820 | wxSize temp5 ; | |
15821 | bool temp6 = false ; | |
15822 | int val7 ; | |
15823 | int ecode7 = 0 ; | |
15824 | long val8 ; | |
15825 | int ecode8 = 0 ; | |
15826 | void *argp9 = 0 ; | |
15827 | int res9 = 0 ; | |
15828 | bool temp10 = false ; | |
15829 | PyObject * obj0 = 0 ; | |
15830 | PyObject * obj1 = 0 ; | |
15831 | PyObject * obj2 = 0 ; | |
15832 | PyObject * obj3 = 0 ; | |
15833 | PyObject * obj4 = 0 ; | |
15834 | PyObject * obj5 = 0 ; | |
15835 | PyObject * obj6 = 0 ; | |
15836 | PyObject * obj7 = 0 ; | |
15837 | PyObject * obj8 = 0 ; | |
15838 | PyObject * obj9 = 0 ; | |
15839 | char * kwnames[] = { | |
15840 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15841 | }; | |
15842 | ||
15843 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
15844 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15845 | if (!SWIG_IsOK(res1)) { | |
15846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
15847 | } | |
15848 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
15849 | if (obj1) { | |
15850 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15851 | if (!SWIG_IsOK(ecode2)) { | |
15852 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'"); | |
15853 | } | |
15854 | arg2 = static_cast< int >(val2); | |
15855 | } | |
15856 | if (obj2) { | |
093d3ff1 | 15857 | { |
0085ce49 RD |
15858 | arg3 = wxString_in_helper(obj2); |
15859 | if (arg3 == NULL) SWIG_fail; | |
15860 | temp3 = true; | |
093d3ff1 | 15861 | } |
0085ce49 RD |
15862 | } |
15863 | if (obj3) { | |
093d3ff1 | 15864 | { |
0085ce49 RD |
15865 | arg4 = &temp4; |
15866 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 15867 | } |
0085ce49 RD |
15868 | } |
15869 | if (obj4) { | |
d14a1e28 | 15870 | { |
0085ce49 RD |
15871 | arg5 = &temp5; |
15872 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 15873 | } |
0085ce49 RD |
15874 | } |
15875 | if (obj5) { | |
d14a1e28 | 15876 | { |
0085ce49 RD |
15877 | if (! PySequence_Check(obj5)) { |
15878 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
15879 | SWIG_fail; | |
15880 | } | |
15881 | arg6 = new wxArrayString; | |
15882 | temp6 = true; | |
15883 | int i, len=PySequence_Length(obj5); | |
15884 | for (i=0; i<len; i++) { | |
15885 | PyObject* item = PySequence_GetItem(obj5, i); | |
15886 | wxString* s = wxString_in_helper(item); | |
15887 | if (PyErr_Occurred()) SWIG_fail; | |
15888 | arg6->Add(*s); | |
15889 | delete s; | |
15890 | Py_DECREF(item); | |
15891 | } | |
d14a1e28 | 15892 | } |
0085ce49 RD |
15893 | } |
15894 | if (obj6) { | |
15895 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
15896 | if (!SWIG_IsOK(ecode7)) { | |
15897 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'"); | |
15898 | } | |
15899 | arg7 = static_cast< int >(val7); | |
15900 | } | |
15901 | if (obj7) { | |
15902 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
15903 | if (!SWIG_IsOK(ecode8)) { | |
15904 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'"); | |
15905 | } | |
15906 | arg8 = static_cast< long >(val8); | |
15907 | } | |
15908 | if (obj8) { | |
15909 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
15910 | if (!SWIG_IsOK(res9)) { | |
15911 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
15912 | } | |
15913 | if (!argp9) { | |
15914 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 15915 | } |
0085ce49 RD |
15916 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
15917 | } | |
15918 | if (obj9) { | |
d14a1e28 | 15919 | { |
0085ce49 RD |
15920 | arg10 = wxString_in_helper(obj9); |
15921 | if (arg10 == NULL) SWIG_fail; | |
15922 | temp10 = true; | |
d14a1e28 | 15923 | } |
0085ce49 RD |
15924 | } |
15925 | { | |
15926 | if (!wxPyCheckForApp()) SWIG_fail; | |
15927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15928 | 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); | |
15929 | wxPyEndAllowThreads(__tstate); | |
15930 | if (PyErr_Occurred()) SWIG_fail; | |
15931 | } | |
15932 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 ); | |
15933 | { | |
15934 | if (temp3) | |
15935 | delete arg3; | |
15936 | } | |
15937 | { | |
15938 | if (temp6) delete arg6; | |
15939 | } | |
15940 | { | |
15941 | if (temp10) | |
15942 | delete arg10; | |
15943 | } | |
15944 | return resultobj; | |
15945 | fail: | |
15946 | { | |
15947 | if (temp3) | |
15948 | delete arg3; | |
15949 | } | |
15950 | { | |
15951 | if (temp6) delete arg6; | |
15952 | } | |
15953 | { | |
15954 | if (temp10) | |
15955 | delete arg10; | |
15956 | } | |
15957 | return NULL; | |
d14a1e28 RD |
15958 | } |
15959 | ||
15960 | ||
0085ce49 RD |
15961 | SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15962 | PyObject *resultobj = 0; | |
15963 | wxRadioBox *result = 0 ; | |
15964 | ||
15965 | if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail; | |
15966 | { | |
15967 | if (!wxPyCheckForApp()) SWIG_fail; | |
15968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15969 | result = (wxRadioBox *)new wxRadioBox(); | |
15970 | wxPyEndAllowThreads(__tstate); | |
15971 | if (PyErr_Occurred()) SWIG_fail; | |
15972 | } | |
15973 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 ); | |
15974 | return resultobj; | |
15975 | fail: | |
15976 | return NULL; | |
15977 | } | |
15978 | ||
15979 | ||
15980 | SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15981 | PyObject *resultobj = 0; | |
15982 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
15983 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15984 | int arg3 = (int) -1 ; | |
15985 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15986 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15987 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
15988 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15989 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15990 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15991 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
15992 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
15993 | int arg8 = (int) 0 ; | |
15994 | long arg9 = (long) wxRA_HORIZONTAL ; | |
15995 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
15996 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
15997 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
15998 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
15999 | bool result; | |
16000 | void *argp1 = 0 ; | |
16001 | int res1 = 0 ; | |
16002 | void *argp2 = 0 ; | |
16003 | int res2 = 0 ; | |
16004 | int val3 ; | |
16005 | int ecode3 = 0 ; | |
16006 | bool temp4 = false ; | |
16007 | wxPoint temp5 ; | |
16008 | wxSize temp6 ; | |
16009 | bool temp7 = false ; | |
16010 | int val8 ; | |
16011 | int ecode8 = 0 ; | |
16012 | long val9 ; | |
16013 | int ecode9 = 0 ; | |
16014 | void *argp10 = 0 ; | |
16015 | int res10 = 0 ; | |
16016 | bool temp11 = false ; | |
16017 | PyObject * obj0 = 0 ; | |
16018 | PyObject * obj1 = 0 ; | |
16019 | PyObject * obj2 = 0 ; | |
16020 | PyObject * obj3 = 0 ; | |
16021 | PyObject * obj4 = 0 ; | |
16022 | PyObject * obj5 = 0 ; | |
16023 | PyObject * obj6 = 0 ; | |
16024 | PyObject * obj7 = 0 ; | |
16025 | PyObject * obj8 = 0 ; | |
16026 | PyObject * obj9 = 0 ; | |
16027 | PyObject * obj10 = 0 ; | |
16028 | char * kwnames[] = { | |
16029 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
16030 | }; | |
16031 | ||
16032 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
16033 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16034 | if (!SWIG_IsOK(res1)) { | |
16035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16036 | } | |
16037 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16038 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16039 | if (!SWIG_IsOK(res2)) { | |
16040 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
16041 | } | |
16042 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
16043 | if (obj2) { | |
16044 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16045 | if (!SWIG_IsOK(ecode3)) { | |
16046 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
16047 | } | |
16048 | arg3 = static_cast< int >(val3); | |
16049 | } | |
16050 | if (obj3) { | |
093d3ff1 | 16051 | { |
0085ce49 RD |
16052 | arg4 = wxString_in_helper(obj3); |
16053 | if (arg4 == NULL) SWIG_fail; | |
16054 | temp4 = true; | |
093d3ff1 | 16055 | } |
0085ce49 RD |
16056 | } |
16057 | if (obj4) { | |
d14a1e28 | 16058 | { |
0085ce49 RD |
16059 | arg5 = &temp5; |
16060 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 16061 | } |
0085ce49 RD |
16062 | } |
16063 | if (obj5) { | |
d14a1e28 | 16064 | { |
0085ce49 RD |
16065 | arg6 = &temp6; |
16066 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 16067 | } |
0085ce49 RD |
16068 | } |
16069 | if (obj6) { | |
d14a1e28 | 16070 | { |
0085ce49 RD |
16071 | if (! PySequence_Check(obj6)) { |
16072 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
16073 | SWIG_fail; | |
16074 | } | |
16075 | arg7 = new wxArrayString; | |
16076 | temp7 = true; | |
16077 | int i, len=PySequence_Length(obj6); | |
16078 | for (i=0; i<len; i++) { | |
16079 | PyObject* item = PySequence_GetItem(obj6, i); | |
16080 | wxString* s = wxString_in_helper(item); | |
16081 | if (PyErr_Occurred()) SWIG_fail; | |
16082 | arg7->Add(*s); | |
16083 | delete s; | |
16084 | Py_DECREF(item); | |
16085 | } | |
d14a1e28 | 16086 | } |
0085ce49 RD |
16087 | } |
16088 | if (obj7) { | |
16089 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
16090 | if (!SWIG_IsOK(ecode8)) { | |
16091 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'"); | |
16092 | } | |
16093 | arg8 = static_cast< int >(val8); | |
16094 | } | |
16095 | if (obj8) { | |
16096 | ecode9 = SWIG_AsVal_long(obj8, &val9); | |
16097 | if (!SWIG_IsOK(ecode9)) { | |
16098 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'"); | |
16099 | } | |
16100 | arg9 = static_cast< long >(val9); | |
16101 | } | |
16102 | if (obj9) { | |
16103 | res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0); | |
16104 | if (!SWIG_IsOK(res10)) { | |
16105 | SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
4f89f6a3 | 16106 | } |
0085ce49 RD |
16107 | if (!argp10) { |
16108 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 16109 | } |
0085ce49 RD |
16110 | arg10 = reinterpret_cast< wxValidator * >(argp10); |
16111 | } | |
16112 | if (obj10) { | |
d14a1e28 | 16113 | { |
0085ce49 RD |
16114 | arg11 = wxString_in_helper(obj10); |
16115 | if (arg11 == NULL) SWIG_fail; | |
16116 | temp11 = true; | |
d14a1e28 | 16117 | } |
0085ce49 RD |
16118 | } |
16119 | { | |
16120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16121 | 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); | |
16122 | wxPyEndAllowThreads(__tstate); | |
16123 | if (PyErr_Occurred()) SWIG_fail; | |
16124 | } | |
16125 | { | |
16126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16127 | } | |
16128 | { | |
16129 | if (temp4) | |
16130 | delete arg4; | |
16131 | } | |
16132 | { | |
16133 | if (temp7) delete arg7; | |
16134 | } | |
16135 | { | |
16136 | if (temp11) | |
16137 | delete arg11; | |
16138 | } | |
16139 | return resultobj; | |
16140 | fail: | |
16141 | { | |
16142 | if (temp4) | |
16143 | delete arg4; | |
16144 | } | |
16145 | { | |
16146 | if (temp7) delete arg7; | |
16147 | } | |
16148 | { | |
16149 | if (temp11) | |
16150 | delete arg11; | |
16151 | } | |
16152 | return NULL; | |
16153 | } | |
16154 | ||
16155 | ||
16156 | SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16157 | PyObject *resultobj = 0; | |
16158 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16159 | int arg2 ; | |
16160 | void *argp1 = 0 ; | |
16161 | int res1 = 0 ; | |
16162 | int val2 ; | |
16163 | int ecode2 = 0 ; | |
16164 | PyObject * obj0 = 0 ; | |
16165 | PyObject * obj1 = 0 ; | |
16166 | char * kwnames[] = { | |
16167 | (char *) "self",(char *) "n", NULL | |
16168 | }; | |
16169 | ||
16170 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
16171 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16172 | if (!SWIG_IsOK(res1)) { | |
16173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16174 | } | |
16175 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16176 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16177 | if (!SWIG_IsOK(ecode2)) { | |
16178 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
16179 | } | |
16180 | arg2 = static_cast< int >(val2); | |
16181 | { | |
16182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16183 | (arg1)->SetSelection(arg2); | |
16184 | wxPyEndAllowThreads(__tstate); | |
16185 | if (PyErr_Occurred()) SWIG_fail; | |
16186 | } | |
16187 | resultobj = SWIG_Py_Void(); | |
16188 | return resultobj; | |
16189 | fail: | |
16190 | return NULL; | |
d14a1e28 RD |
16191 | } |
16192 | ||
16193 | ||
0085ce49 RD |
16194 | SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16195 | PyObject *resultobj = 0; | |
16196 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16197 | int result; | |
16198 | void *argp1 = 0 ; | |
16199 | int res1 = 0 ; | |
16200 | PyObject *swig_obj[1] ; | |
16201 | ||
16202 | if (!args) SWIG_fail; | |
16203 | swig_obj[0] = args; | |
16204 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16205 | if (!SWIG_IsOK(res1)) { | |
16206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16207 | } | |
16208 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16209 | { | |
16210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16211 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
16212 | wxPyEndAllowThreads(__tstate); | |
16213 | if (PyErr_Occurred()) SWIG_fail; | |
16214 | } | |
16215 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16216 | return resultobj; | |
16217 | fail: | |
16218 | return NULL; | |
d14a1e28 RD |
16219 | } |
16220 | ||
16221 | ||
0085ce49 RD |
16222 | SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16223 | PyObject *resultobj = 0; | |
16224 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16225 | wxString result; | |
16226 | void *argp1 = 0 ; | |
16227 | int res1 = 0 ; | |
16228 | PyObject *swig_obj[1] ; | |
16229 | ||
16230 | if (!args) SWIG_fail; | |
16231 | swig_obj[0] = args; | |
16232 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16233 | if (!SWIG_IsOK(res1)) { | |
16234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16235 | } | |
16236 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16237 | { | |
16238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16239 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
16240 | wxPyEndAllowThreads(__tstate); | |
16241 | if (PyErr_Occurred()) SWIG_fail; | |
16242 | } | |
16243 | { | |
16244 | #if wxUSE_UNICODE | |
16245 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16246 | #else | |
16247 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16248 | #endif | |
16249 | } | |
16250 | return resultobj; | |
16251 | fail: | |
16252 | return NULL; | |
16253 | } | |
16254 | ||
16255 | ||
16256 | SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16257 | PyObject *resultobj = 0; | |
16258 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16259 | wxString *arg2 = 0 ; | |
16260 | bool result; | |
16261 | void *argp1 = 0 ; | |
16262 | int res1 = 0 ; | |
16263 | bool temp2 = false ; | |
16264 | PyObject * obj0 = 0 ; | |
16265 | PyObject * obj1 = 0 ; | |
16266 | char * kwnames[] = { | |
16267 | (char *) "self",(char *) "s", NULL | |
16268 | }; | |
16269 | ||
16270 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
16271 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16272 | if (!SWIG_IsOK(res1)) { | |
16273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16274 | } | |
16275 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16276 | { | |
16277 | arg2 = wxString_in_helper(obj1); | |
16278 | if (arg2 == NULL) SWIG_fail; | |
16279 | temp2 = true; | |
16280 | } | |
16281 | { | |
16282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16283 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
16284 | wxPyEndAllowThreads(__tstate); | |
16285 | if (PyErr_Occurred()) SWIG_fail; | |
16286 | } | |
16287 | { | |
16288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16289 | } | |
16290 | { | |
16291 | if (temp2) | |
16292 | delete arg2; | |
16293 | } | |
16294 | return resultobj; | |
16295 | fail: | |
16296 | { | |
16297 | if (temp2) | |
16298 | delete arg2; | |
16299 | } | |
16300 | return NULL; | |
d14a1e28 RD |
16301 | } |
16302 | ||
16303 | ||
0085ce49 RD |
16304 | SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16305 | PyObject *resultobj = 0; | |
16306 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
75219dcb | 16307 | size_t result; |
0085ce49 RD |
16308 | void *argp1 = 0 ; |
16309 | int res1 = 0 ; | |
16310 | PyObject *swig_obj[1] ; | |
16311 | ||
16312 | if (!args) SWIG_fail; | |
16313 | swig_obj[0] = args; | |
16314 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16315 | if (!SWIG_IsOK(res1)) { | |
16316 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16317 | } | |
16318 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16319 | { | |
16320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
75219dcb | 16321 | result = (size_t)((wxRadioBox const *)arg1)->GetCount(); |
0085ce49 RD |
16322 | wxPyEndAllowThreads(__tstate); |
16323 | if (PyErr_Occurred()) SWIG_fail; | |
16324 | } | |
75219dcb | 16325 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); |
0085ce49 RD |
16326 | return resultobj; |
16327 | fail: | |
16328 | return NULL; | |
16329 | } | |
16330 | ||
16331 | ||
16332 | SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16333 | PyObject *resultobj = 0; | |
16334 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16335 | wxString *arg2 = 0 ; | |
16336 | int result; | |
16337 | void *argp1 = 0 ; | |
16338 | int res1 = 0 ; | |
16339 | bool temp2 = false ; | |
16340 | PyObject * obj0 = 0 ; | |
16341 | PyObject * obj1 = 0 ; | |
16342 | char * kwnames[] = { | |
16343 | (char *) "self",(char *) "s", NULL | |
16344 | }; | |
16345 | ||
16346 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
16347 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16348 | if (!SWIG_IsOK(res1)) { | |
16349 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16350 | } | |
16351 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16352 | { | |
16353 | arg2 = wxString_in_helper(obj1); | |
16354 | if (arg2 == NULL) SWIG_fail; | |
16355 | temp2 = true; | |
16356 | } | |
16357 | { | |
16358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16359 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
16360 | wxPyEndAllowThreads(__tstate); | |
16361 | if (PyErr_Occurred()) SWIG_fail; | |
16362 | } | |
16363 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16364 | { | |
16365 | if (temp2) | |
16366 | delete arg2; | |
16367 | } | |
16368 | return resultobj; | |
16369 | fail: | |
16370 | { | |
16371 | if (temp2) | |
16372 | delete arg2; | |
16373 | } | |
16374 | return NULL; | |
16375 | } | |
16376 | ||
16377 | ||
16378 | SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16379 | PyObject *resultobj = 0; | |
16380 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16381 | int arg2 ; | |
16382 | wxString result; | |
16383 | void *argp1 = 0 ; | |
16384 | int res1 = 0 ; | |
16385 | int val2 ; | |
16386 | int ecode2 = 0 ; | |
16387 | PyObject * obj0 = 0 ; | |
16388 | PyObject * obj1 = 0 ; | |
16389 | char * kwnames[] = { | |
16390 | (char *) "self",(char *) "n", NULL | |
16391 | }; | |
16392 | ||
16393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail; | |
16394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16395 | if (!SWIG_IsOK(res1)) { | |
16396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16397 | } | |
16398 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16399 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16400 | if (!SWIG_IsOK(ecode2)) { | |
16401 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'"); | |
16402 | } | |
16403 | arg2 = static_cast< int >(val2); | |
16404 | { | |
16405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16406 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
16407 | wxPyEndAllowThreads(__tstate); | |
16408 | if (PyErr_Occurred()) SWIG_fail; | |
16409 | } | |
16410 | { | |
16411 | #if wxUSE_UNICODE | |
16412 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16413 | #else | |
16414 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16415 | #endif | |
16416 | } | |
16417 | return resultobj; | |
16418 | fail: | |
16419 | return NULL; | |
16420 | } | |
16421 | ||
16422 | ||
16423 | SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16424 | PyObject *resultobj = 0; | |
16425 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16426 | int arg2 ; | |
16427 | wxString *arg3 = 0 ; | |
16428 | void *argp1 = 0 ; | |
16429 | int res1 = 0 ; | |
16430 | int val2 ; | |
16431 | int ecode2 = 0 ; | |
16432 | bool temp3 = false ; | |
16433 | PyObject * obj0 = 0 ; | |
16434 | PyObject * obj1 = 0 ; | |
16435 | PyObject * obj2 = 0 ; | |
16436 | char * kwnames[] = { | |
16437 | (char *) "self",(char *) "n",(char *) "label", NULL | |
16438 | }; | |
16439 | ||
16440 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16441 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16442 | if (!SWIG_IsOK(res1)) { | |
16443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16444 | } | |
16445 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16446 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16447 | if (!SWIG_IsOK(ecode2)) { | |
16448 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'"); | |
16449 | } | |
16450 | arg2 = static_cast< int >(val2); | |
16451 | { | |
16452 | arg3 = wxString_in_helper(obj2); | |
16453 | if (arg3 == NULL) SWIG_fail; | |
16454 | temp3 = true; | |
16455 | } | |
16456 | { | |
16457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16458 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
16459 | wxPyEndAllowThreads(__tstate); | |
16460 | if (PyErr_Occurred()) SWIG_fail; | |
16461 | } | |
16462 | resultobj = SWIG_Py_Void(); | |
16463 | { | |
16464 | if (temp3) | |
16465 | delete arg3; | |
16466 | } | |
16467 | return resultobj; | |
16468 | fail: | |
16469 | { | |
16470 | if (temp3) | |
16471 | delete arg3; | |
16472 | } | |
16473 | return NULL; | |
16474 | } | |
16475 | ||
16476 | ||
16477 | SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16478 | PyObject *resultobj = 0; | |
16479 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16480 | unsigned int arg2 ; |
0085ce49 RD |
16481 | bool arg3 = (bool) true ; |
16482 | void *argp1 = 0 ; | |
16483 | int res1 = 0 ; | |
50f151d7 | 16484 | unsigned int val2 ; |
0085ce49 RD |
16485 | int ecode2 = 0 ; |
16486 | bool val3 ; | |
16487 | int ecode3 = 0 ; | |
16488 | PyObject * obj0 = 0 ; | |
16489 | PyObject * obj1 = 0 ; | |
16490 | PyObject * obj2 = 0 ; | |
16491 | char * kwnames[] = { | |
16492 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
16493 | }; | |
16494 | ||
16495 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16496 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16497 | if (!SWIG_IsOK(res1)) { | |
16498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16499 | } | |
16500 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
50f151d7 | 16501 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
0085ce49 | 16502 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 16503 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'"); |
0085ce49 | 16504 | } |
50f151d7 | 16505 | arg2 = static_cast< unsigned int >(val2); |
0085ce49 RD |
16506 | if (obj2) { |
16507 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
16508 | if (!SWIG_IsOK(ecode3)) { | |
16509 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'"); | |
16510 | } | |
16511 | arg3 = static_cast< bool >(val3); | |
16512 | } | |
16513 | { | |
16514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16515 | (arg1)->Enable(arg2,arg3); | |
16516 | wxPyEndAllowThreads(__tstate); | |
16517 | if (PyErr_Occurred()) SWIG_fail; | |
16518 | } | |
16519 | resultobj = SWIG_Py_Void(); | |
16520 | return resultobj; | |
16521 | fail: | |
16522 | return NULL; | |
16523 | } | |
16524 | ||
16525 | ||
16526 | SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16527 | PyObject *resultobj = 0; | |
16528 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16529 | unsigned int arg2 ; |
0085ce49 RD |
16530 | bool arg3 = (bool) true ; |
16531 | void *argp1 = 0 ; | |
16532 | int res1 = 0 ; | |
50f151d7 | 16533 | unsigned int val2 ; |
0085ce49 RD |
16534 | int ecode2 = 0 ; |
16535 | bool val3 ; | |
16536 | int ecode3 = 0 ; | |
16537 | PyObject * obj0 = 0 ; | |
16538 | PyObject * obj1 = 0 ; | |
16539 | PyObject * obj2 = 0 ; | |
16540 | char * kwnames[] = { | |
16541 | (char *) "self",(char *) "n",(char *) "show", NULL | |
16542 | }; | |
16543 | ||
16544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16546 | if (!SWIG_IsOK(res1)) { | |
16547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16548 | } | |
16549 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
50f151d7 | 16550 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
0085ce49 | 16551 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 16552 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'"); |
0085ce49 | 16553 | } |
50f151d7 | 16554 | arg2 = static_cast< unsigned int >(val2); |
0085ce49 RD |
16555 | if (obj2) { |
16556 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
16557 | if (!SWIG_IsOK(ecode3)) { | |
16558 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'"); | |
16559 | } | |
16560 | arg3 = static_cast< bool >(val3); | |
16561 | } | |
16562 | { | |
16563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16564 | (arg1)->Show(arg2,arg3); | |
16565 | wxPyEndAllowThreads(__tstate); | |
16566 | if (PyErr_Occurred()) SWIG_fail; | |
16567 | } | |
16568 | resultobj = SWIG_Py_Void(); | |
16569 | return resultobj; | |
16570 | fail: | |
16571 | return NULL; | |
d14a1e28 RD |
16572 | } |
16573 | ||
16574 | ||
50f151d7 RD |
16575 | SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16576 | PyObject *resultobj = 0; | |
16577 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16578 | unsigned int arg2 ; | |
16579 | bool result; | |
16580 | void *argp1 = 0 ; | |
16581 | int res1 = 0 ; | |
16582 | unsigned int val2 ; | |
16583 | int ecode2 = 0 ; | |
16584 | PyObject * obj0 = 0 ; | |
16585 | PyObject * obj1 = 0 ; | |
16586 | char * kwnames[] = { | |
16587 | (char *) "self",(char *) "n", NULL | |
16588 | }; | |
16589 | ||
16590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
16591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16592 | if (!SWIG_IsOK(res1)) { | |
16593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16594 | } | |
16595 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16596 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
16597 | if (!SWIG_IsOK(ecode2)) { | |
16598 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'"); | |
16599 | } | |
16600 | arg2 = static_cast< unsigned int >(val2); | |
16601 | { | |
16602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16603 | result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2); | |
16604 | wxPyEndAllowThreads(__tstate); | |
16605 | if (PyErr_Occurred()) SWIG_fail; | |
16606 | } | |
16607 | { | |
16608 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16609 | } | |
16610 | return resultobj; | |
16611 | fail: | |
16612 | return NULL; | |
16613 | } | |
16614 | ||
16615 | ||
16616 | SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16617 | PyObject *resultobj = 0; | |
16618 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16619 | unsigned int arg2 ; | |
16620 | bool result; | |
16621 | void *argp1 = 0 ; | |
16622 | int res1 = 0 ; | |
16623 | unsigned int val2 ; | |
16624 | int ecode2 = 0 ; | |
16625 | PyObject * obj0 = 0 ; | |
16626 | PyObject * obj1 = 0 ; | |
16627 | char * kwnames[] = { | |
16628 | (char *) "self",(char *) "n", NULL | |
16629 | }; | |
16630 | ||
16631 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail; | |
16632 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16633 | if (!SWIG_IsOK(res1)) { | |
16634 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16635 | } | |
16636 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16637 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
16638 | if (!SWIG_IsOK(ecode2)) { | |
16639 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'"); | |
16640 | } | |
16641 | arg2 = static_cast< unsigned int >(val2); | |
16642 | { | |
16643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16644 | result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2); | |
16645 | wxPyEndAllowThreads(__tstate); | |
16646 | if (PyErr_Occurred()) SWIG_fail; | |
16647 | } | |
16648 | { | |
16649 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16650 | } | |
16651 | return resultobj; | |
16652 | fail: | |
16653 | return NULL; | |
16654 | } | |
16655 | ||
16656 | ||
0085ce49 RD |
16657 | SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16658 | PyObject *resultobj = 0; | |
16659 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16660 | unsigned int result; |
0085ce49 RD |
16661 | void *argp1 = 0 ; |
16662 | int res1 = 0 ; | |
16663 | PyObject *swig_obj[1] ; | |
16664 | ||
16665 | if (!args) SWIG_fail; | |
16666 | swig_obj[0] = args; | |
16667 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16668 | if (!SWIG_IsOK(res1)) { | |
16669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16670 | } | |
16671 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16672 | { | |
16673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50f151d7 | 16674 | result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount(); |
0085ce49 RD |
16675 | wxPyEndAllowThreads(__tstate); |
16676 | if (PyErr_Occurred()) SWIG_fail; | |
16677 | } | |
50f151d7 | 16678 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
0085ce49 RD |
16679 | return resultobj; |
16680 | fail: | |
16681 | return NULL; | |
d14a1e28 RD |
16682 | } |
16683 | ||
16684 | ||
0085ce49 RD |
16685 | SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16686 | PyObject *resultobj = 0; | |
16687 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16688 | unsigned int result; |
0085ce49 RD |
16689 | void *argp1 = 0 ; |
16690 | int res1 = 0 ; | |
16691 | PyObject *swig_obj[1] ; | |
16692 | ||
16693 | if (!args) SWIG_fail; | |
16694 | swig_obj[0] = args; | |
16695 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16696 | if (!SWIG_IsOK(res1)) { | |
16697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16698 | } | |
16699 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16700 | { | |
16701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50f151d7 | 16702 | result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount(); |
0085ce49 RD |
16703 | wxPyEndAllowThreads(__tstate); |
16704 | if (PyErr_Occurred()) SWIG_fail; | |
16705 | } | |
50f151d7 | 16706 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
0085ce49 RD |
16707 | return resultobj; |
16708 | fail: | |
16709 | return NULL; | |
16710 | } | |
16711 | ||
16712 | ||
16713 | SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16714 | PyObject *resultobj = 0; | |
16715 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16716 | int arg2 ; | |
16717 | wxDirection arg3 ; | |
16718 | long arg4 ; | |
16719 | int result; | |
16720 | void *argp1 = 0 ; | |
16721 | int res1 = 0 ; | |
16722 | int val2 ; | |
16723 | int ecode2 = 0 ; | |
16724 | int val3 ; | |
16725 | int ecode3 = 0 ; | |
16726 | long val4 ; | |
16727 | int ecode4 = 0 ; | |
16728 | PyObject * obj0 = 0 ; | |
16729 | PyObject * obj1 = 0 ; | |
16730 | PyObject * obj2 = 0 ; | |
16731 | PyObject * obj3 = 0 ; | |
16732 | char * kwnames[] = { | |
16733 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
16734 | }; | |
16735 | ||
16736 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16737 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16738 | if (!SWIG_IsOK(res1)) { | |
16739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16740 | } | |
16741 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16742 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16743 | if (!SWIG_IsOK(ecode2)) { | |
16744 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'"); | |
16745 | } | |
16746 | arg2 = static_cast< int >(val2); | |
16747 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16748 | if (!SWIG_IsOK(ecode3)) { | |
16749 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'"); | |
16750 | } | |
16751 | arg3 = static_cast< wxDirection >(val3); | |
16752 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
16753 | if (!SWIG_IsOK(ecode4)) { | |
16754 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'"); | |
16755 | } | |
16756 | arg4 = static_cast< long >(val4); | |
16757 | { | |
16758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50f151d7 | 16759 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4); |
0085ce49 RD |
16760 | wxPyEndAllowThreads(__tstate); |
16761 | if (PyErr_Occurred()) SWIG_fail; | |
16762 | } | |
16763 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16764 | return resultobj; | |
16765 | fail: | |
16766 | return NULL; | |
16767 | } | |
16768 | ||
16769 | ||
16770 | SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16771 | PyObject *resultobj = 0; | |
16772 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
16773 | SwigValueWrapper<wxVisualAttributes > result; | |
16774 | int val1 ; | |
16775 | int ecode1 = 0 ; | |
16776 | PyObject * obj0 = 0 ; | |
16777 | char * kwnames[] = { | |
16778 | (char *) "variant", NULL | |
16779 | }; | |
16780 | ||
16781 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
16782 | if (obj0) { | |
16783 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16784 | if (!SWIG_IsOK(ecode1)) { | |
16785 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
16786 | } | |
16787 | arg1 = static_cast< wxWindowVariant >(val1); | |
16788 | } | |
16789 | { | |
16790 | if (!wxPyCheckForApp()) SWIG_fail; | |
16791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16792 | result = wxRadioBox::GetClassDefaultAttributes(arg1); | |
16793 | wxPyEndAllowThreads(__tstate); | |
16794 | if (PyErr_Occurred()) SWIG_fail; | |
16795 | } | |
16796 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
16797 | return resultobj; | |
16798 | fail: | |
16799 | return NULL; | |
16800 | } | |
16801 | ||
16802 | ||
16803 | SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16804 | PyObject *obj; | |
16805 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16806 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj)); | |
16807 | return SWIG_Py_Void(); | |
16808 | } | |
16809 | ||
16810 | SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16811 | return SWIG_Python_InitShadowInstance(args); | |
16812 | } | |
16813 | ||
16814 | SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16815 | PyObject *resultobj = 0; | |
16816 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16817 | int arg2 = (int) -1 ; | |
16818 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16819 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16820 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
16821 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
16822 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
16823 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
16824 | long arg6 = (long) 0 ; | |
16825 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
16826 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
16827 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
16828 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16829 | wxRadioButton *result = 0 ; | |
16830 | void *argp1 = 0 ; | |
16831 | int res1 = 0 ; | |
16832 | int val2 ; | |
16833 | int ecode2 = 0 ; | |
16834 | bool temp3 = false ; | |
16835 | wxPoint temp4 ; | |
16836 | wxSize temp5 ; | |
16837 | long val6 ; | |
16838 | int ecode6 = 0 ; | |
16839 | void *argp7 = 0 ; | |
16840 | int res7 = 0 ; | |
16841 | bool temp8 = false ; | |
16842 | PyObject * obj0 = 0 ; | |
16843 | PyObject * obj1 = 0 ; | |
16844 | PyObject * obj2 = 0 ; | |
16845 | PyObject * obj3 = 0 ; | |
16846 | PyObject * obj4 = 0 ; | |
16847 | PyObject * obj5 = 0 ; | |
16848 | PyObject * obj6 = 0 ; | |
16849 | PyObject * obj7 = 0 ; | |
16850 | char * kwnames[] = { | |
16851 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
16852 | }; | |
16853 | ||
16854 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
16855 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16856 | if (!SWIG_IsOK(res1)) { | |
16857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16858 | } | |
16859 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16860 | if (obj1) { | |
16861 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16862 | if (!SWIG_IsOK(ecode2)) { | |
16863 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'"); | |
16864 | } | |
16865 | arg2 = static_cast< int >(val2); | |
16866 | } | |
16867 | if (obj2) { | |
d14a1e28 | 16868 | { |
0085ce49 RD |
16869 | arg3 = wxString_in_helper(obj2); |
16870 | if (arg3 == NULL) SWIG_fail; | |
16871 | temp3 = true; | |
d14a1e28 | 16872 | } |
0085ce49 RD |
16873 | } |
16874 | if (obj3) { | |
d14a1e28 | 16875 | { |
0085ce49 RD |
16876 | arg4 = &temp4; |
16877 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 16878 | } |
0085ce49 RD |
16879 | } |
16880 | if (obj4) { | |
d14a1e28 | 16881 | { |
0085ce49 RD |
16882 | arg5 = &temp5; |
16883 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
16884 | } | |
16885 | } | |
16886 | if (obj5) { | |
16887 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
16888 | if (!SWIG_IsOK(ecode6)) { | |
16889 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'"); | |
16890 | } | |
16891 | arg6 = static_cast< long >(val6); | |
16892 | } | |
16893 | if (obj6) { | |
16894 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
16895 | if (!SWIG_IsOK(res7)) { | |
16896 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 16897 | } |
0085ce49 RD |
16898 | if (!argp7) { |
16899 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
16900 | } | |
16901 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
16902 | } | |
16903 | if (obj7) { | |
d14a1e28 | 16904 | { |
0085ce49 RD |
16905 | arg8 = wxString_in_helper(obj7); |
16906 | if (arg8 == NULL) SWIG_fail; | |
16907 | temp8 = true; | |
d14a1e28 | 16908 | } |
0085ce49 RD |
16909 | } |
16910 | { | |
16911 | if (!wxPyCheckForApp()) SWIG_fail; | |
16912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16913 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
16914 | wxPyEndAllowThreads(__tstate); | |
16915 | if (PyErr_Occurred()) SWIG_fail; | |
16916 | } | |
16917 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 ); | |
16918 | { | |
16919 | if (temp3) | |
16920 | delete arg3; | |
16921 | } | |
16922 | { | |
16923 | if (temp8) | |
16924 | delete arg8; | |
16925 | } | |
16926 | return resultobj; | |
16927 | fail: | |
16928 | { | |
16929 | if (temp3) | |
16930 | delete arg3; | |
16931 | } | |
16932 | { | |
16933 | if (temp8) | |
16934 | delete arg8; | |
16935 | } | |
16936 | return NULL; | |
d14a1e28 RD |
16937 | } |
16938 | ||
16939 | ||
0085ce49 RD |
16940 | SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16941 | PyObject *resultobj = 0; | |
16942 | wxRadioButton *result = 0 ; | |
16943 | ||
16944 | if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail; | |
16945 | { | |
16946 | if (!wxPyCheckForApp()) SWIG_fail; | |
16947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16948 | result = (wxRadioButton *)new wxRadioButton(); | |
16949 | wxPyEndAllowThreads(__tstate); | |
16950 | if (PyErr_Occurred()) SWIG_fail; | |
16951 | } | |
16952 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 ); | |
16953 | return resultobj; | |
16954 | fail: | |
16955 | return NULL; | |
16956 | } | |
16957 | ||
16958 | ||
16959 | SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16960 | PyObject *resultobj = 0; | |
16961 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
16962 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16963 | int arg3 = (int) -1 ; | |
16964 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16965 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16966 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
16967 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
16968 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
16969 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
16970 | long arg7 = (long) 0 ; | |
16971 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
16972 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
16973 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
16974 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
16975 | bool result; | |
16976 | void *argp1 = 0 ; | |
16977 | int res1 = 0 ; | |
16978 | void *argp2 = 0 ; | |
16979 | int res2 = 0 ; | |
16980 | int val3 ; | |
16981 | int ecode3 = 0 ; | |
16982 | bool temp4 = false ; | |
16983 | wxPoint temp5 ; | |
16984 | wxSize temp6 ; | |
16985 | long val7 ; | |
16986 | int ecode7 = 0 ; | |
16987 | void *argp8 = 0 ; | |
16988 | int res8 = 0 ; | |
16989 | bool temp9 = false ; | |
16990 | PyObject * obj0 = 0 ; | |
16991 | PyObject * obj1 = 0 ; | |
16992 | PyObject * obj2 = 0 ; | |
16993 | PyObject * obj3 = 0 ; | |
16994 | PyObject * obj4 = 0 ; | |
16995 | PyObject * obj5 = 0 ; | |
16996 | PyObject * obj6 = 0 ; | |
16997 | PyObject * obj7 = 0 ; | |
16998 | PyObject * obj8 = 0 ; | |
16999 | char * kwnames[] = { | |
17000 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17001 | }; | |
17002 | ||
17003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
17004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17005 | if (!SWIG_IsOK(res1)) { | |
17006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17007 | } | |
17008 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17009 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17010 | if (!SWIG_IsOK(res2)) { | |
17011 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
17012 | } | |
17013 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
17014 | if (obj2) { | |
17015 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17016 | if (!SWIG_IsOK(ecode3)) { | |
17017 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
17018 | } | |
17019 | arg3 = static_cast< int >(val3); | |
17020 | } | |
17021 | if (obj3) { | |
d14a1e28 | 17022 | { |
0085ce49 RD |
17023 | arg4 = wxString_in_helper(obj3); |
17024 | if (arg4 == NULL) SWIG_fail; | |
17025 | temp4 = true; | |
d14a1e28 | 17026 | } |
0085ce49 RD |
17027 | } |
17028 | if (obj4) { | |
d14a1e28 | 17029 | { |
0085ce49 RD |
17030 | arg5 = &temp5; |
17031 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 17032 | } |
0085ce49 RD |
17033 | } |
17034 | if (obj5) { | |
d14a1e28 | 17035 | { |
0085ce49 RD |
17036 | arg6 = &temp6; |
17037 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
17038 | } | |
17039 | } | |
17040 | if (obj6) { | |
17041 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
17042 | if (!SWIG_IsOK(ecode7)) { | |
17043 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
17044 | } | |
17045 | arg7 = static_cast< long >(val7); | |
17046 | } | |
17047 | if (obj7) { | |
17048 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
17049 | if (!SWIG_IsOK(res8)) { | |
17050 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
17051 | } | |
17052 | if (!argp8) { | |
17053 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 17054 | } |
0085ce49 RD |
17055 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
17056 | } | |
17057 | if (obj8) { | |
d14a1e28 | 17058 | { |
0085ce49 RD |
17059 | arg9 = wxString_in_helper(obj8); |
17060 | if (arg9 == NULL) SWIG_fail; | |
17061 | temp9 = true; | |
d14a1e28 | 17062 | } |
0085ce49 RD |
17063 | } |
17064 | { | |
17065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17066 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
17067 | wxPyEndAllowThreads(__tstate); | |
17068 | if (PyErr_Occurred()) SWIG_fail; | |
17069 | } | |
17070 | { | |
17071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17072 | } | |
17073 | { | |
17074 | if (temp4) | |
17075 | delete arg4; | |
17076 | } | |
17077 | { | |
17078 | if (temp9) | |
17079 | delete arg9; | |
17080 | } | |
17081 | return resultobj; | |
17082 | fail: | |
17083 | { | |
17084 | if (temp4) | |
17085 | delete arg4; | |
17086 | } | |
17087 | { | |
17088 | if (temp9) | |
17089 | delete arg9; | |
17090 | } | |
17091 | return NULL; | |
d14a1e28 RD |
17092 | } |
17093 | ||
17094 | ||
0085ce49 RD |
17095 | SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17096 | PyObject *resultobj = 0; | |
17097 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
17098 | bool result; | |
17099 | void *argp1 = 0 ; | |
17100 | int res1 = 0 ; | |
17101 | PyObject *swig_obj[1] ; | |
17102 | ||
17103 | if (!args) SWIG_fail; | |
17104 | swig_obj[0] = args; | |
17105 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17106 | if (!SWIG_IsOK(res1)) { | |
17107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17108 | } | |
17109 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17110 | { | |
17111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17112 | result = (bool)(arg1)->GetValue(); | |
17113 | wxPyEndAllowThreads(__tstate); | |
17114 | if (PyErr_Occurred()) SWIG_fail; | |
17115 | } | |
17116 | { | |
17117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17118 | } | |
17119 | return resultobj; | |
17120 | fail: | |
17121 | return NULL; | |
17122 | } | |
17123 | ||
17124 | ||
17125 | SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17126 | PyObject *resultobj = 0; | |
17127 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
17128 | bool arg2 ; | |
17129 | void *argp1 = 0 ; | |
17130 | int res1 = 0 ; | |
17131 | bool val2 ; | |
17132 | int ecode2 = 0 ; | |
17133 | PyObject * obj0 = 0 ; | |
17134 | PyObject * obj1 = 0 ; | |
17135 | char * kwnames[] = { | |
17136 | (char *) "self",(char *) "value", NULL | |
17137 | }; | |
17138 | ||
17139 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
17140 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17141 | if (!SWIG_IsOK(res1)) { | |
17142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17143 | } | |
17144 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17145 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
17146 | if (!SWIG_IsOK(ecode2)) { | |
17147 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
17148 | } | |
17149 | arg2 = static_cast< bool >(val2); | |
17150 | { | |
17151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17152 | (arg1)->SetValue(arg2); | |
17153 | wxPyEndAllowThreads(__tstate); | |
17154 | if (PyErr_Occurred()) SWIG_fail; | |
17155 | } | |
17156 | resultobj = SWIG_Py_Void(); | |
17157 | return resultobj; | |
17158 | fail: | |
17159 | return NULL; | |
17160 | } | |
17161 | ||
17162 | ||
17163 | SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17164 | PyObject *resultobj = 0; | |
17165 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
17166 | SwigValueWrapper<wxVisualAttributes > result; | |
17167 | int val1 ; | |
17168 | int ecode1 = 0 ; | |
17169 | PyObject * obj0 = 0 ; | |
17170 | char * kwnames[] = { | |
17171 | (char *) "variant", NULL | |
17172 | }; | |
17173 | ||
17174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
17175 | if (obj0) { | |
17176 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17177 | if (!SWIG_IsOK(ecode1)) { | |
17178 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
17179 | } | |
17180 | arg1 = static_cast< wxWindowVariant >(val1); | |
17181 | } | |
17182 | { | |
17183 | if (!wxPyCheckForApp()) SWIG_fail; | |
17184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17185 | result = wxRadioButton::GetClassDefaultAttributes(arg1); | |
17186 | wxPyEndAllowThreads(__tstate); | |
17187 | if (PyErr_Occurred()) SWIG_fail; | |
17188 | } | |
17189 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
17190 | return resultobj; | |
17191 | fail: | |
17192 | return NULL; | |
d14a1e28 RD |
17193 | } |
17194 | ||
17195 | ||
0085ce49 RD |
17196 | SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17197 | PyObject *obj; | |
17198 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17199 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj)); | |
17200 | return SWIG_Py_Void(); | |
17201 | } | |
17202 | ||
17203 | SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17204 | return SWIG_Python_InitShadowInstance(args); | |
17205 | } | |
17206 | ||
17207 | SWIGINTERN int SliderNameStr_set(PyObject *) { | |
17208 | SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only."); | |
17209 | return 1; | |
17210 | } | |
17211 | ||
17212 | ||
17213 | SWIGINTERN PyObject *SliderNameStr_get(void) { | |
17214 | PyObject *pyobj = 0; | |
17215 | ||
17216 | { | |
17217 | #if wxUSE_UNICODE | |
17218 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
17219 | #else | |
17220 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
17221 | #endif | |
17222 | } | |
17223 | return pyobj; | |
17224 | } | |
17225 | ||
17226 | ||
17227 | SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17228 | PyObject *resultobj = 0; | |
17229 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17230 | int arg2 = (int) -1 ; | |
17231 | int arg3 = (int) 0 ; | |
17232 | int arg4 = (int) 0 ; | |
17233 | int arg5 = (int) 100 ; | |
17234 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
17235 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
17236 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
17237 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
17238 | long arg8 = (long) wxSL_HORIZONTAL ; | |
17239 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
17240 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
17241 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
17242 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
17243 | wxSlider *result = 0 ; | |
17244 | void *argp1 = 0 ; | |
17245 | int res1 = 0 ; | |
17246 | int val2 ; | |
17247 | int ecode2 = 0 ; | |
17248 | int val3 ; | |
17249 | int ecode3 = 0 ; | |
17250 | int val4 ; | |
17251 | int ecode4 = 0 ; | |
17252 | int val5 ; | |
17253 | int ecode5 = 0 ; | |
17254 | wxPoint temp6 ; | |
17255 | wxSize temp7 ; | |
17256 | long val8 ; | |
17257 | int ecode8 = 0 ; | |
17258 | void *argp9 = 0 ; | |
17259 | int res9 = 0 ; | |
17260 | bool temp10 = false ; | |
17261 | PyObject * obj0 = 0 ; | |
17262 | PyObject * obj1 = 0 ; | |
17263 | PyObject * obj2 = 0 ; | |
17264 | PyObject * obj3 = 0 ; | |
17265 | PyObject * obj4 = 0 ; | |
17266 | PyObject * obj5 = 0 ; | |
17267 | PyObject * obj6 = 0 ; | |
17268 | PyObject * obj7 = 0 ; | |
17269 | PyObject * obj8 = 0 ; | |
17270 | PyObject * obj9 = 0 ; | |
17271 | char * kwnames[] = { | |
17272 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17273 | }; | |
17274 | ||
17275 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
17276 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17277 | if (!SWIG_IsOK(res1)) { | |
17278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17279 | } | |
17280 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17281 | if (obj1) { | |
17282 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17283 | if (!SWIG_IsOK(ecode2)) { | |
17284 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'"); | |
17285 | } | |
17286 | arg2 = static_cast< int >(val2); | |
17287 | } | |
17288 | if (obj2) { | |
17289 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17290 | if (!SWIG_IsOK(ecode3)) { | |
17291 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'"); | |
17292 | } | |
17293 | arg3 = static_cast< int >(val3); | |
17294 | } | |
17295 | if (obj3) { | |
17296 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17297 | if (!SWIG_IsOK(ecode4)) { | |
17298 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'"); | |
17299 | } | |
17300 | arg4 = static_cast< int >(val4); | |
17301 | } | |
17302 | if (obj4) { | |
17303 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17304 | if (!SWIG_IsOK(ecode5)) { | |
17305 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'"); | |
17306 | } | |
17307 | arg5 = static_cast< int >(val5); | |
17308 | } | |
17309 | if (obj5) { | |
093d3ff1 | 17310 | { |
0085ce49 RD |
17311 | arg6 = &temp6; |
17312 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
093d3ff1 | 17313 | } |
0085ce49 RD |
17314 | } |
17315 | if (obj6) { | |
093d3ff1 | 17316 | { |
0085ce49 RD |
17317 | arg7 = &temp7; |
17318 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
093d3ff1 | 17319 | } |
0085ce49 RD |
17320 | } |
17321 | if (obj7) { | |
17322 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
17323 | if (!SWIG_IsOK(ecode8)) { | |
17324 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'"); | |
17325 | } | |
17326 | arg8 = static_cast< long >(val8); | |
17327 | } | |
17328 | if (obj8) { | |
17329 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
17330 | if (!SWIG_IsOK(res9)) { | |
17331 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 17332 | } |
0085ce49 RD |
17333 | if (!argp9) { |
17334 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 17335 | } |
0085ce49 RD |
17336 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
17337 | } | |
17338 | if (obj9) { | |
4f89f6a3 | 17339 | { |
0085ce49 RD |
17340 | arg10 = wxString_in_helper(obj9); |
17341 | if (arg10 == NULL) SWIG_fail; | |
17342 | temp10 = true; | |
4f89f6a3 | 17343 | } |
0085ce49 RD |
17344 | } |
17345 | { | |
17346 | if (!wxPyCheckForApp()) SWIG_fail; | |
17347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17348 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
17349 | wxPyEndAllowThreads(__tstate); | |
17350 | if (PyErr_Occurred()) SWIG_fail; | |
17351 | } | |
17352 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 ); | |
17353 | { | |
17354 | if (temp10) | |
17355 | delete arg10; | |
17356 | } | |
17357 | return resultobj; | |
17358 | fail: | |
17359 | { | |
17360 | if (temp10) | |
17361 | delete arg10; | |
17362 | } | |
17363 | return NULL; | |
d14a1e28 RD |
17364 | } |
17365 | ||
17366 | ||
0085ce49 RD |
17367 | SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17368 | PyObject *resultobj = 0; | |
17369 | wxSlider *result = 0 ; | |
17370 | ||
17371 | if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail; | |
17372 | { | |
17373 | if (!wxPyCheckForApp()) SWIG_fail; | |
17374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17375 | result = (wxSlider *)new wxSlider(); | |
17376 | wxPyEndAllowThreads(__tstate); | |
17377 | if (PyErr_Occurred()) SWIG_fail; | |
17378 | } | |
17379 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 ); | |
17380 | return resultobj; | |
17381 | fail: | |
17382 | return NULL; | |
17383 | } | |
17384 | ||
17385 | ||
17386 | SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17387 | PyObject *resultobj = 0; | |
17388 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17389 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17390 | int arg3 = (int) -1 ; | |
17391 | int arg4 = (int) 0 ; | |
17392 | int arg5 = (int) 0 ; | |
17393 | int arg6 = (int) 100 ; | |
17394 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17395 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17396 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
17397 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
17398 | long arg9 = (long) wxSL_HORIZONTAL ; | |
17399 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
17400 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
17401 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
17402 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
17403 | bool result; | |
17404 | void *argp1 = 0 ; | |
17405 | int res1 = 0 ; | |
17406 | void *argp2 = 0 ; | |
17407 | int res2 = 0 ; | |
17408 | int val3 ; | |
17409 | int ecode3 = 0 ; | |
17410 | int val4 ; | |
17411 | int ecode4 = 0 ; | |
17412 | int val5 ; | |
17413 | int ecode5 = 0 ; | |
17414 | int val6 ; | |
17415 | int ecode6 = 0 ; | |
17416 | wxPoint temp7 ; | |
17417 | wxSize temp8 ; | |
17418 | long val9 ; | |
17419 | int ecode9 = 0 ; | |
17420 | void *argp10 = 0 ; | |
17421 | int res10 = 0 ; | |
17422 | bool temp11 = false ; | |
17423 | PyObject * obj0 = 0 ; | |
17424 | PyObject * obj1 = 0 ; | |
17425 | PyObject * obj2 = 0 ; | |
17426 | PyObject * obj3 = 0 ; | |
17427 | PyObject * obj4 = 0 ; | |
17428 | PyObject * obj5 = 0 ; | |
17429 | PyObject * obj6 = 0 ; | |
17430 | PyObject * obj7 = 0 ; | |
17431 | PyObject * obj8 = 0 ; | |
17432 | PyObject * obj9 = 0 ; | |
17433 | PyObject * obj10 = 0 ; | |
17434 | char * kwnames[] = { | |
17435 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17436 | }; | |
17437 | ||
17438 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
17439 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17440 | if (!SWIG_IsOK(res1)) { | |
17441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17442 | } | |
17443 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17444 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17445 | if (!SWIG_IsOK(res2)) { | |
17446 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
17447 | } | |
17448 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
17449 | if (obj2) { | |
17450 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17451 | if (!SWIG_IsOK(ecode3)) { | |
17452 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'"); | |
17453 | } | |
17454 | arg3 = static_cast< int >(val3); | |
17455 | } | |
17456 | if (obj3) { | |
17457 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17458 | if (!SWIG_IsOK(ecode4)) { | |
17459 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'"); | |
17460 | } | |
17461 | arg4 = static_cast< int >(val4); | |
17462 | } | |
17463 | if (obj4) { | |
17464 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17465 | if (!SWIG_IsOK(ecode5)) { | |
17466 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'"); | |
17467 | } | |
17468 | arg5 = static_cast< int >(val5); | |
17469 | } | |
17470 | if (obj5) { | |
17471 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
17472 | if (!SWIG_IsOK(ecode6)) { | |
17473 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'"); | |
17474 | } | |
17475 | arg6 = static_cast< int >(val6); | |
17476 | } | |
17477 | if (obj6) { | |
093d3ff1 | 17478 | { |
0085ce49 RD |
17479 | arg7 = &temp7; |
17480 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
d14a1e28 | 17481 | } |
0085ce49 RD |
17482 | } |
17483 | if (obj7) { | |
d14a1e28 | 17484 | { |
0085ce49 RD |
17485 | arg8 = &temp8; |
17486 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
d14a1e28 | 17487 | } |
0085ce49 RD |
17488 | } |
17489 | if (obj8) { | |
17490 | ecode9 = SWIG_AsVal_long(obj8, &val9); | |
17491 | if (!SWIG_IsOK(ecode9)) { | |
17492 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'"); | |
17493 | } | |
17494 | arg9 = static_cast< long >(val9); | |
17495 | } | |
17496 | if (obj9) { | |
17497 | res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0); | |
17498 | if (!SWIG_IsOK(res10)) { | |
17499 | SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 17500 | } |
0085ce49 RD |
17501 | if (!argp10) { |
17502 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 17503 | } |
0085ce49 RD |
17504 | arg10 = reinterpret_cast< wxValidator * >(argp10); |
17505 | } | |
17506 | if (obj10) { | |
4f89f6a3 | 17507 | { |
0085ce49 RD |
17508 | arg11 = wxString_in_helper(obj10); |
17509 | if (arg11 == NULL) SWIG_fail; | |
17510 | temp11 = true; | |
4f89f6a3 | 17511 | } |
0085ce49 RD |
17512 | } |
17513 | { | |
17514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17515 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
17516 | wxPyEndAllowThreads(__tstate); | |
17517 | if (PyErr_Occurred()) SWIG_fail; | |
17518 | } | |
17519 | { | |
17520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17521 | } | |
17522 | { | |
17523 | if (temp11) | |
17524 | delete arg11; | |
17525 | } | |
17526 | return resultobj; | |
17527 | fail: | |
17528 | { | |
17529 | if (temp11) | |
17530 | delete arg11; | |
17531 | } | |
17532 | return NULL; | |
d14a1e28 RD |
17533 | } |
17534 | ||
17535 | ||
0085ce49 RD |
17536 | SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17537 | PyObject *resultobj = 0; | |
17538 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17539 | int result; | |
17540 | void *argp1 = 0 ; | |
17541 | int res1 = 0 ; | |
17542 | PyObject *swig_obj[1] ; | |
17543 | ||
17544 | if (!args) SWIG_fail; | |
17545 | swig_obj[0] = args; | |
17546 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17547 | if (!SWIG_IsOK(res1)) { | |
17548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
17549 | } | |
17550 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17551 | { | |
17552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17553 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
17554 | wxPyEndAllowThreads(__tstate); | |
17555 | if (PyErr_Occurred()) SWIG_fail; | |
17556 | } | |
17557 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17558 | return resultobj; | |
17559 | fail: | |
17560 | return NULL; | |
17561 | } | |
17562 | ||
17563 | ||
17564 | SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17565 | PyObject *resultobj = 0; | |
17566 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17567 | int arg2 ; | |
17568 | void *argp1 = 0 ; | |
17569 | int res1 = 0 ; | |
17570 | int val2 ; | |
17571 | int ecode2 = 0 ; | |
17572 | PyObject * obj0 = 0 ; | |
17573 | PyObject * obj1 = 0 ; | |
17574 | char * kwnames[] = { | |
17575 | (char *) "self",(char *) "value", NULL | |
17576 | }; | |
17577 | ||
17578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
17579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17580 | if (!SWIG_IsOK(res1)) { | |
17581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17582 | } | |
17583 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17584 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17585 | if (!SWIG_IsOK(ecode2)) { | |
17586 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
17587 | } | |
17588 | arg2 = static_cast< int >(val2); | |
17589 | { | |
17590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17591 | (arg1)->SetValue(arg2); | |
17592 | wxPyEndAllowThreads(__tstate); | |
17593 | if (PyErr_Occurred()) SWIG_fail; | |
17594 | } | |
17595 | resultobj = SWIG_Py_Void(); | |
17596 | return resultobj; | |
17597 | fail: | |
17598 | return NULL; | |
17599 | } | |
17600 | ||
17601 | ||
17602 | SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17603 | PyObject *resultobj = 0; | |
17604 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17605 | int arg2 ; | |
17606 | int arg3 ; | |
17607 | void *argp1 = 0 ; | |
17608 | int res1 = 0 ; | |
17609 | int val2 ; | |
17610 | int ecode2 = 0 ; | |
17611 | int val3 ; | |
17612 | int ecode3 = 0 ; | |
17613 | PyObject * obj0 = 0 ; | |
17614 | PyObject * obj1 = 0 ; | |
17615 | PyObject * obj2 = 0 ; | |
17616 | char * kwnames[] = { | |
17617 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
17618 | }; | |
17619 | ||
17620 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17621 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17622 | if (!SWIG_IsOK(res1)) { | |
17623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17624 | } | |
17625 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17626 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17627 | if (!SWIG_IsOK(ecode2)) { | |
17628 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
17629 | } | |
17630 | arg2 = static_cast< int >(val2); | |
17631 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17632 | if (!SWIG_IsOK(ecode3)) { | |
17633 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
17634 | } | |
17635 | arg3 = static_cast< int >(val3); | |
17636 | { | |
17637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17638 | (arg1)->SetRange(arg2,arg3); | |
17639 | wxPyEndAllowThreads(__tstate); | |
17640 | if (PyErr_Occurred()) SWIG_fail; | |
17641 | } | |
17642 | resultobj = SWIG_Py_Void(); | |
17643 | return resultobj; | |
17644 | fail: | |
17645 | return NULL; | |
d14a1e28 RD |
17646 | } |
17647 | ||
17648 | ||
0085ce49 RD |
17649 | SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17650 | PyObject *resultobj = 0; | |
17651 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17652 | int result; | |
17653 | void *argp1 = 0 ; | |
17654 | int res1 = 0 ; | |
17655 | PyObject *swig_obj[1] ; | |
17656 | ||
17657 | if (!args) SWIG_fail; | |
17658 | swig_obj[0] = args; | |
17659 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17660 | if (!SWIG_IsOK(res1)) { | |
17661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
17662 | } | |
17663 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17664 | { | |
17665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17666 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
17667 | wxPyEndAllowThreads(__tstate); | |
17668 | if (PyErr_Occurred()) SWIG_fail; | |
17669 | } | |
17670 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17671 | return resultobj; | |
17672 | fail: | |
17673 | return NULL; | |
d14a1e28 RD |
17674 | } |
17675 | ||
17676 | ||
0085ce49 RD |
17677 | SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17678 | PyObject *resultobj = 0; | |
17679 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17680 | int result; | |
17681 | void *argp1 = 0 ; | |
17682 | int res1 = 0 ; | |
17683 | PyObject *swig_obj[1] ; | |
17684 | ||
17685 | if (!args) SWIG_fail; | |
17686 | swig_obj[0] = args; | |
17687 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17688 | if (!SWIG_IsOK(res1)) { | |
17689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
17690 | } | |
17691 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17692 | { | |
17693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17694 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
17695 | wxPyEndAllowThreads(__tstate); | |
17696 | if (PyErr_Occurred()) SWIG_fail; | |
17697 | } | |
17698 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17699 | return resultobj; | |
17700 | fail: | |
17701 | return NULL; | |
17702 | } | |
17703 | ||
17704 | ||
17705 | SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17706 | PyObject *resultobj = 0; | |
17707 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17708 | int arg2 ; | |
17709 | void *argp1 = 0 ; | |
17710 | int res1 = 0 ; | |
17711 | int val2 ; | |
17712 | int ecode2 = 0 ; | |
17713 | PyObject * obj0 = 0 ; | |
17714 | PyObject * obj1 = 0 ; | |
17715 | char * kwnames[] = { | |
17716 | (char *) "self",(char *) "minValue", NULL | |
17717 | }; | |
17718 | ||
17719 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail; | |
17720 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17721 | if (!SWIG_IsOK(res1)) { | |
17722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17723 | } | |
17724 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17725 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17726 | if (!SWIG_IsOK(ecode2)) { | |
17727 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'"); | |
17728 | } | |
17729 | arg2 = static_cast< int >(val2); | |
17730 | { | |
17731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17732 | (arg1)->SetMin(arg2); | |
17733 | wxPyEndAllowThreads(__tstate); | |
17734 | if (PyErr_Occurred()) SWIG_fail; | |
17735 | } | |
17736 | resultobj = SWIG_Py_Void(); | |
17737 | return resultobj; | |
17738 | fail: | |
17739 | return NULL; | |
17740 | } | |
17741 | ||
17742 | ||
17743 | SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17744 | PyObject *resultobj = 0; | |
17745 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17746 | int arg2 ; | |
17747 | void *argp1 = 0 ; | |
17748 | int res1 = 0 ; | |
17749 | int val2 ; | |
17750 | int ecode2 = 0 ; | |
17751 | PyObject * obj0 = 0 ; | |
17752 | PyObject * obj1 = 0 ; | |
17753 | char * kwnames[] = { | |
17754 | (char *) "self",(char *) "maxValue", NULL | |
17755 | }; | |
17756 | ||
17757 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail; | |
17758 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17759 | if (!SWIG_IsOK(res1)) { | |
17760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17761 | } | |
17762 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17763 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17764 | if (!SWIG_IsOK(ecode2)) { | |
17765 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'"); | |
17766 | } | |
17767 | arg2 = static_cast< int >(val2); | |
17768 | { | |
17769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17770 | (arg1)->SetMax(arg2); | |
17771 | wxPyEndAllowThreads(__tstate); | |
17772 | if (PyErr_Occurred()) SWIG_fail; | |
17773 | } | |
17774 | resultobj = SWIG_Py_Void(); | |
17775 | return resultobj; | |
17776 | fail: | |
17777 | return NULL; | |
17778 | } | |
17779 | ||
17780 | ||
17781 | SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17782 | PyObject *resultobj = 0; | |
17783 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17784 | int arg2 ; | |
17785 | void *argp1 = 0 ; | |
17786 | int res1 = 0 ; | |
17787 | int val2 ; | |
17788 | int ecode2 = 0 ; | |
17789 | PyObject * obj0 = 0 ; | |
17790 | PyObject * obj1 = 0 ; | |
17791 | char * kwnames[] = { | |
17792 | (char *) "self",(char *) "lineSize", NULL | |
17793 | }; | |
17794 | ||
17795 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
17796 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17797 | if (!SWIG_IsOK(res1)) { | |
17798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17799 | } | |
17800 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17801 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17802 | if (!SWIG_IsOK(ecode2)) { | |
17803 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'"); | |
17804 | } | |
17805 | arg2 = static_cast< int >(val2); | |
17806 | { | |
17807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17808 | (arg1)->SetLineSize(arg2); | |
17809 | wxPyEndAllowThreads(__tstate); | |
17810 | if (PyErr_Occurred()) SWIG_fail; | |
17811 | } | |
17812 | resultobj = SWIG_Py_Void(); | |
17813 | return resultobj; | |
17814 | fail: | |
17815 | return NULL; | |
17816 | } | |
17817 | ||
17818 | ||
17819 | SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17820 | PyObject *resultobj = 0; | |
17821 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17822 | int arg2 ; | |
17823 | void *argp1 = 0 ; | |
17824 | int res1 = 0 ; | |
17825 | int val2 ; | |
17826 | int ecode2 = 0 ; | |
17827 | PyObject * obj0 = 0 ; | |
17828 | PyObject * obj1 = 0 ; | |
17829 | char * kwnames[] = { | |
17830 | (char *) "self",(char *) "pageSize", NULL | |
17831 | }; | |
17832 | ||
17833 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
17834 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17835 | if (!SWIG_IsOK(res1)) { | |
17836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17837 | } | |
17838 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17839 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17840 | if (!SWIG_IsOK(ecode2)) { | |
17841 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'"); | |
17842 | } | |
17843 | arg2 = static_cast< int >(val2); | |
17844 | { | |
17845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17846 | (arg1)->SetPageSize(arg2); | |
17847 | wxPyEndAllowThreads(__tstate); | |
17848 | if (PyErr_Occurred()) SWIG_fail; | |
17849 | } | |
17850 | resultobj = SWIG_Py_Void(); | |
17851 | return resultobj; | |
17852 | fail: | |
17853 | return NULL; | |
d14a1e28 RD |
17854 | } |
17855 | ||
17856 | ||
0085ce49 RD |
17857 | SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17858 | PyObject *resultobj = 0; | |
17859 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17860 | int result; | |
17861 | void *argp1 = 0 ; | |
17862 | int res1 = 0 ; | |
17863 | PyObject *swig_obj[1] ; | |
17864 | ||
17865 | if (!args) SWIG_fail; | |
17866 | swig_obj[0] = args; | |
17867 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17868 | if (!SWIG_IsOK(res1)) { | |
17869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
17870 | } | |
17871 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17872 | { | |
17873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17874 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
17875 | wxPyEndAllowThreads(__tstate); | |
17876 | if (PyErr_Occurred()) SWIG_fail; | |
17877 | } | |
17878 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17879 | return resultobj; | |
17880 | fail: | |
17881 | return NULL; | |
d14a1e28 RD |
17882 | } |
17883 | ||
17884 | ||
0085ce49 RD |
17885 | SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17886 | PyObject *resultobj = 0; | |
17887 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17888 | int result; | |
17889 | void *argp1 = 0 ; | |
17890 | int res1 = 0 ; | |
17891 | PyObject *swig_obj[1] ; | |
17892 | ||
17893 | if (!args) SWIG_fail; | |
17894 | swig_obj[0] = args; | |
17895 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17896 | if (!SWIG_IsOK(res1)) { | |
17897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
17898 | } | |
17899 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17900 | { | |
17901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17902 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
17903 | wxPyEndAllowThreads(__tstate); | |
17904 | if (PyErr_Occurred()) SWIG_fail; | |
17905 | } | |
17906 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17907 | return resultobj; | |
17908 | fail: | |
17909 | return NULL; | |
17910 | } | |
17911 | ||
17912 | ||
17913 | SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17914 | PyObject *resultobj = 0; | |
17915 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17916 | int arg2 ; | |
17917 | void *argp1 = 0 ; | |
17918 | int res1 = 0 ; | |
17919 | int val2 ; | |
17920 | int ecode2 = 0 ; | |
17921 | PyObject * obj0 = 0 ; | |
17922 | PyObject * obj1 = 0 ; | |
17923 | char * kwnames[] = { | |
17924 | (char *) "self",(char *) "lenPixels", NULL | |
17925 | }; | |
17926 | ||
17927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
17928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17929 | if (!SWIG_IsOK(res1)) { | |
17930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17931 | } | |
17932 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17933 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17934 | if (!SWIG_IsOK(ecode2)) { | |
17935 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'"); | |
17936 | } | |
17937 | arg2 = static_cast< int >(val2); | |
17938 | { | |
17939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17940 | (arg1)->SetThumbLength(arg2); | |
17941 | wxPyEndAllowThreads(__tstate); | |
17942 | if (PyErr_Occurred()) SWIG_fail; | |
17943 | } | |
17944 | resultobj = SWIG_Py_Void(); | |
17945 | return resultobj; | |
17946 | fail: | |
17947 | return NULL; | |
4d5c3d91 RD |
17948 | } |
17949 | ||
17950 | ||
0085ce49 RD |
17951 | SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17952 | PyObject *resultobj = 0; | |
17953 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17954 | int result; | |
17955 | void *argp1 = 0 ; | |
17956 | int res1 = 0 ; | |
17957 | PyObject *swig_obj[1] ; | |
17958 | ||
17959 | if (!args) SWIG_fail; | |
17960 | swig_obj[0] = args; | |
17961 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17962 | if (!SWIG_IsOK(res1)) { | |
17963 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
17964 | } | |
17965 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17966 | { | |
17967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17968 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
17969 | wxPyEndAllowThreads(__tstate); | |
17970 | if (PyErr_Occurred()) SWIG_fail; | |
17971 | } | |
17972 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17973 | return resultobj; | |
17974 | fail: | |
17975 | return NULL; | |
17976 | } | |
17977 | ||
17978 | ||
17979 | SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17980 | PyObject *resultobj = 0; | |
17981 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17982 | int arg2 ; | |
17983 | int arg3 = (int) 1 ; | |
17984 | void *argp1 = 0 ; | |
17985 | int res1 = 0 ; | |
17986 | int val2 ; | |
17987 | int ecode2 = 0 ; | |
17988 | int val3 ; | |
17989 | int ecode3 = 0 ; | |
17990 | PyObject * obj0 = 0 ; | |
17991 | PyObject * obj1 = 0 ; | |
17992 | PyObject * obj2 = 0 ; | |
17993 | char * kwnames[] = { | |
17994 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
17995 | }; | |
17996 | ||
17997 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17998 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17999 | if (!SWIG_IsOK(res1)) { | |
18000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18001 | } | |
18002 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18003 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18004 | if (!SWIG_IsOK(ecode2)) { | |
18005 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'"); | |
18006 | } | |
18007 | arg2 = static_cast< int >(val2); | |
18008 | if (obj2) { | |
18009 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18010 | if (!SWIG_IsOK(ecode3)) { | |
18011 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'"); | |
18012 | } | |
18013 | arg3 = static_cast< int >(val3); | |
18014 | } | |
18015 | { | |
18016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18017 | (arg1)->SetTickFreq(arg2,arg3); | |
18018 | wxPyEndAllowThreads(__tstate); | |
18019 | if (PyErr_Occurred()) SWIG_fail; | |
18020 | } | |
18021 | resultobj = SWIG_Py_Void(); | |
18022 | return resultobj; | |
18023 | fail: | |
18024 | return NULL; | |
4896ac9e RD |
18025 | } |
18026 | ||
18027 | ||
0085ce49 RD |
18028 | SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18029 | PyObject *resultobj = 0; | |
18030 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18031 | int result; | |
18032 | void *argp1 = 0 ; | |
18033 | int res1 = 0 ; | |
18034 | PyObject *swig_obj[1] ; | |
18035 | ||
18036 | if (!args) SWIG_fail; | |
18037 | swig_obj[0] = args; | |
18038 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18039 | if (!SWIG_IsOK(res1)) { | |
18040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18041 | } | |
18042 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18043 | { | |
18044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18045 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
18046 | wxPyEndAllowThreads(__tstate); | |
18047 | if (PyErr_Occurred()) SWIG_fail; | |
18048 | } | |
18049 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18050 | return resultobj; | |
18051 | fail: | |
18052 | return NULL; | |
d14a1e28 RD |
18053 | } |
18054 | ||
18055 | ||
0085ce49 RD |
18056 | SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18057 | PyObject *resultobj = 0; | |
18058 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18059 | void *argp1 = 0 ; | |
18060 | int res1 = 0 ; | |
18061 | PyObject *swig_obj[1] ; | |
18062 | ||
18063 | if (!args) SWIG_fail; | |
18064 | swig_obj[0] = args; | |
18065 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18066 | if (!SWIG_IsOK(res1)) { | |
18067 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18068 | } | |
18069 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18070 | { | |
18071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18072 | (arg1)->ClearTicks(); | |
18073 | wxPyEndAllowThreads(__tstate); | |
18074 | if (PyErr_Occurred()) SWIG_fail; | |
18075 | } | |
18076 | resultobj = SWIG_Py_Void(); | |
18077 | return resultobj; | |
18078 | fail: | |
18079 | return NULL; | |
18080 | } | |
18081 | ||
18082 | ||
18083 | SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18084 | PyObject *resultobj = 0; | |
18085 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18086 | int arg2 ; | |
18087 | void *argp1 = 0 ; | |
18088 | int res1 = 0 ; | |
18089 | int val2 ; | |
18090 | int ecode2 = 0 ; | |
18091 | PyObject * obj0 = 0 ; | |
18092 | PyObject * obj1 = 0 ; | |
18093 | char * kwnames[] = { | |
18094 | (char *) "self",(char *) "tickPos", NULL | |
18095 | }; | |
18096 | ||
18097 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail; | |
18098 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18099 | if (!SWIG_IsOK(res1)) { | |
18100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18101 | } | |
18102 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18103 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18104 | if (!SWIG_IsOK(ecode2)) { | |
18105 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'"); | |
18106 | } | |
18107 | arg2 = static_cast< int >(val2); | |
18108 | { | |
18109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18110 | (arg1)->SetTick(arg2); | |
18111 | wxPyEndAllowThreads(__tstate); | |
18112 | if (PyErr_Occurred()) SWIG_fail; | |
18113 | } | |
18114 | resultobj = SWIG_Py_Void(); | |
18115 | return resultobj; | |
18116 | fail: | |
18117 | return NULL; | |
d14a1e28 RD |
18118 | } |
18119 | ||
18120 | ||
0085ce49 RD |
18121 | SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18122 | PyObject *resultobj = 0; | |
18123 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18124 | void *argp1 = 0 ; | |
18125 | int res1 = 0 ; | |
18126 | PyObject *swig_obj[1] ; | |
18127 | ||
18128 | if (!args) SWIG_fail; | |
18129 | swig_obj[0] = args; | |
18130 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18131 | if (!SWIG_IsOK(res1)) { | |
18132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18133 | } | |
18134 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18135 | { | |
18136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18137 | (arg1)->ClearSel(); | |
18138 | wxPyEndAllowThreads(__tstate); | |
18139 | if (PyErr_Occurred()) SWIG_fail; | |
18140 | } | |
18141 | resultobj = SWIG_Py_Void(); | |
18142 | return resultobj; | |
18143 | fail: | |
18144 | return NULL; | |
d14a1e28 RD |
18145 | } |
18146 | ||
18147 | ||
0085ce49 RD |
18148 | SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18149 | PyObject *resultobj = 0; | |
18150 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18151 | int result; | |
18152 | void *argp1 = 0 ; | |
18153 | int res1 = 0 ; | |
18154 | PyObject *swig_obj[1] ; | |
18155 | ||
18156 | if (!args) SWIG_fail; | |
18157 | swig_obj[0] = args; | |
18158 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18159 | if (!SWIG_IsOK(res1)) { | |
18160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18161 | } | |
18162 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18163 | { | |
18164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18165 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
18166 | wxPyEndAllowThreads(__tstate); | |
18167 | if (PyErr_Occurred()) SWIG_fail; | |
18168 | } | |
18169 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18170 | return resultobj; | |
18171 | fail: | |
18172 | return NULL; | |
d14a1e28 RD |
18173 | } |
18174 | ||
18175 | ||
0085ce49 RD |
18176 | SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18177 | PyObject *resultobj = 0; | |
18178 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18179 | int result; | |
18180 | void *argp1 = 0 ; | |
18181 | int res1 = 0 ; | |
18182 | PyObject *swig_obj[1] ; | |
18183 | ||
18184 | if (!args) SWIG_fail; | |
18185 | swig_obj[0] = args; | |
18186 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18187 | if (!SWIG_IsOK(res1)) { | |
18188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18189 | } | |
18190 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18191 | { | |
18192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18193 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
18194 | wxPyEndAllowThreads(__tstate); | |
18195 | if (PyErr_Occurred()) SWIG_fail; | |
18196 | } | |
18197 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18198 | return resultobj; | |
18199 | fail: | |
18200 | return NULL; | |
18201 | } | |
18202 | ||
18203 | ||
18204 | SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18205 | PyObject *resultobj = 0; | |
18206 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18207 | int arg2 ; | |
18208 | int arg3 ; | |
18209 | void *argp1 = 0 ; | |
18210 | int res1 = 0 ; | |
18211 | int val2 ; | |
18212 | int ecode2 = 0 ; | |
18213 | int val3 ; | |
18214 | int ecode3 = 0 ; | |
18215 | PyObject * obj0 = 0 ; | |
18216 | PyObject * obj1 = 0 ; | |
18217 | PyObject * obj2 = 0 ; | |
18218 | char * kwnames[] = { | |
18219 | (char *) "self",(char *) "min",(char *) "max", NULL | |
18220 | }; | |
18221 | ||
18222 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18223 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18224 | if (!SWIG_IsOK(res1)) { | |
18225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18226 | } | |
18227 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18228 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18229 | if (!SWIG_IsOK(ecode2)) { | |
18230 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
18231 | } | |
18232 | arg2 = static_cast< int >(val2); | |
18233 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18234 | if (!SWIG_IsOK(ecode3)) { | |
18235 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'"); | |
18236 | } | |
18237 | arg3 = static_cast< int >(val3); | |
18238 | { | |
18239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18240 | (arg1)->SetSelection(arg2,arg3); | |
18241 | wxPyEndAllowThreads(__tstate); | |
18242 | if (PyErr_Occurred()) SWIG_fail; | |
18243 | } | |
18244 | resultobj = SWIG_Py_Void(); | |
18245 | return resultobj; | |
18246 | fail: | |
18247 | return NULL; | |
18248 | } | |
18249 | ||
18250 | ||
18251 | SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18252 | PyObject *resultobj = 0; | |
18253 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
18254 | SwigValueWrapper<wxVisualAttributes > result; | |
18255 | int val1 ; | |
18256 | int ecode1 = 0 ; | |
18257 | PyObject * obj0 = 0 ; | |
18258 | char * kwnames[] = { | |
18259 | (char *) "variant", NULL | |
18260 | }; | |
18261 | ||
18262 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
18263 | if (obj0) { | |
18264 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18265 | if (!SWIG_IsOK(ecode1)) { | |
18266 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
18267 | } | |
18268 | arg1 = static_cast< wxWindowVariant >(val1); | |
18269 | } | |
18270 | { | |
18271 | if (!wxPyCheckForApp()) SWIG_fail; | |
18272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18273 | result = wxSlider::GetClassDefaultAttributes(arg1); | |
18274 | wxPyEndAllowThreads(__tstate); | |
18275 | if (PyErr_Occurred()) SWIG_fail; | |
18276 | } | |
18277 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
18278 | return resultobj; | |
18279 | fail: | |
18280 | return NULL; | |
d14a1e28 RD |
18281 | } |
18282 | ||
18283 | ||
0085ce49 RD |
18284 | SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18285 | PyObject *obj; | |
18286 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18287 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj)); | |
18288 | return SWIG_Py_Void(); | |
d14a1e28 RD |
18289 | } |
18290 | ||
0085ce49 RD |
18291 | SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18292 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
18293 | } |
18294 | ||
0085ce49 RD |
18295 | SWIGINTERN int ToggleButtonNameStr_set(PyObject *) { |
18296 | SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only."); | |
18297 | return 1; | |
d14a1e28 RD |
18298 | } |
18299 | ||
18300 | ||
0085ce49 RD |
18301 | SWIGINTERN PyObject *ToggleButtonNameStr_get(void) { |
18302 | PyObject *pyobj = 0; | |
18303 | ||
18304 | { | |
18305 | #if wxUSE_UNICODE | |
18306 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
18307 | #else | |
18308 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
18309 | #endif | |
18310 | } | |
18311 | return pyobj; | |
18312 | } | |
18313 | ||
18314 | ||
18315 | SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18316 | PyObject *resultobj = 0; | |
18317 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18318 | int arg2 = (int) -1 ; | |
18319 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
18320 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18321 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
18322 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18323 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18324 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18325 | long arg6 = (long) 0 ; | |
18326 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
18327 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
18328 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
18329 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
18330 | wxToggleButton *result = 0 ; | |
18331 | void *argp1 = 0 ; | |
18332 | int res1 = 0 ; | |
18333 | int val2 ; | |
18334 | int ecode2 = 0 ; | |
18335 | bool temp3 = false ; | |
18336 | wxPoint temp4 ; | |
18337 | wxSize temp5 ; | |
18338 | long val6 ; | |
18339 | int ecode6 = 0 ; | |
18340 | void *argp7 = 0 ; | |
18341 | int res7 = 0 ; | |
18342 | bool temp8 = false ; | |
18343 | PyObject * obj0 = 0 ; | |
18344 | PyObject * obj1 = 0 ; | |
18345 | PyObject * obj2 = 0 ; | |
18346 | PyObject * obj3 = 0 ; | |
18347 | PyObject * obj4 = 0 ; | |
18348 | PyObject * obj5 = 0 ; | |
18349 | PyObject * obj6 = 0 ; | |
18350 | PyObject * obj7 = 0 ; | |
18351 | char * kwnames[] = { | |
18352 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
18353 | }; | |
18354 | ||
18355 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
18356 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18357 | if (!SWIG_IsOK(res1)) { | |
18358 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18359 | } | |
18360 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18361 | if (obj1) { | |
18362 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18363 | if (!SWIG_IsOK(ecode2)) { | |
18364 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'"); | |
18365 | } | |
18366 | arg2 = static_cast< int >(val2); | |
18367 | } | |
18368 | if (obj2) { | |
d14a1e28 | 18369 | { |
0085ce49 RD |
18370 | arg3 = wxString_in_helper(obj2); |
18371 | if (arg3 == NULL) SWIG_fail; | |
18372 | temp3 = true; | |
d14a1e28 | 18373 | } |
0085ce49 RD |
18374 | } |
18375 | if (obj3) { | |
4f89f6a3 | 18376 | { |
0085ce49 RD |
18377 | arg4 = &temp4; |
18378 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 18379 | } |
0085ce49 RD |
18380 | } |
18381 | if (obj4) { | |
d14a1e28 | 18382 | { |
0085ce49 RD |
18383 | arg5 = &temp5; |
18384 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 18385 | } |
0085ce49 RD |
18386 | } |
18387 | if (obj5) { | |
18388 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
18389 | if (!SWIG_IsOK(ecode6)) { | |
18390 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'"); | |
18391 | } | |
18392 | arg6 = static_cast< long >(val6); | |
18393 | } | |
18394 | if (obj6) { | |
18395 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
18396 | if (!SWIG_IsOK(res7)) { | |
18397 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
4f89f6a3 | 18398 | } |
0085ce49 RD |
18399 | if (!argp7) { |
18400 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
093d3ff1 | 18401 | } |
0085ce49 RD |
18402 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
18403 | } | |
18404 | if (obj7) { | |
d14a1e28 | 18405 | { |
0085ce49 RD |
18406 | arg8 = wxString_in_helper(obj7); |
18407 | if (arg8 == NULL) SWIG_fail; | |
18408 | temp8 = true; | |
d14a1e28 | 18409 | } |
0085ce49 RD |
18410 | } |
18411 | { | |
18412 | if (!wxPyCheckForApp()) SWIG_fail; | |
18413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18414 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
18415 | wxPyEndAllowThreads(__tstate); | |
18416 | if (PyErr_Occurred()) SWIG_fail; | |
18417 | } | |
18418 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 ); | |
18419 | { | |
18420 | if (temp3) | |
18421 | delete arg3; | |
18422 | } | |
18423 | { | |
18424 | if (temp8) | |
18425 | delete arg8; | |
18426 | } | |
18427 | return resultobj; | |
18428 | fail: | |
18429 | { | |
18430 | if (temp3) | |
18431 | delete arg3; | |
18432 | } | |
18433 | { | |
18434 | if (temp8) | |
18435 | delete arg8; | |
18436 | } | |
18437 | return NULL; | |
d14a1e28 RD |
18438 | } |
18439 | ||
18440 | ||
0085ce49 RD |
18441 | SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18442 | PyObject *resultobj = 0; | |
18443 | wxToggleButton *result = 0 ; | |
18444 | ||
18445 | if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail; | |
18446 | { | |
18447 | if (!wxPyCheckForApp()) SWIG_fail; | |
18448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18449 | result = (wxToggleButton *)new wxToggleButton(); | |
18450 | wxPyEndAllowThreads(__tstate); | |
18451 | if (PyErr_Occurred()) SWIG_fail; | |
18452 | } | |
18453 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 ); | |
18454 | return resultobj; | |
18455 | fail: | |
18456 | return NULL; | |
18457 | } | |
18458 | ||
18459 | ||
18460 | SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18461 | PyObject *resultobj = 0; | |
18462 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
18463 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18464 | int arg3 = (int) -1 ; | |
18465 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18466 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18467 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
18468 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
18469 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
18470 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
18471 | long arg7 = (long) 0 ; | |
18472 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
18473 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
18474 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
18475 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
18476 | bool result; | |
18477 | void *argp1 = 0 ; | |
18478 | int res1 = 0 ; | |
18479 | void *argp2 = 0 ; | |
18480 | int res2 = 0 ; | |
18481 | int val3 ; | |
18482 | int ecode3 = 0 ; | |
18483 | bool temp4 = false ; | |
18484 | wxPoint temp5 ; | |
18485 | wxSize temp6 ; | |
18486 | long val7 ; | |
18487 | int ecode7 = 0 ; | |
18488 | void *argp8 = 0 ; | |
18489 | int res8 = 0 ; | |
18490 | bool temp9 = false ; | |
18491 | PyObject * obj0 = 0 ; | |
18492 | PyObject * obj1 = 0 ; | |
18493 | PyObject * obj2 = 0 ; | |
18494 | PyObject * obj3 = 0 ; | |
18495 | PyObject * obj4 = 0 ; | |
18496 | PyObject * obj5 = 0 ; | |
18497 | PyObject * obj6 = 0 ; | |
18498 | PyObject * obj7 = 0 ; | |
18499 | PyObject * obj8 = 0 ; | |
18500 | char * kwnames[] = { | |
18501 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
18502 | }; | |
18503 | ||
18504 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
18505 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
18506 | if (!SWIG_IsOK(res1)) { | |
18507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'"); | |
18508 | } | |
18509 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
18510 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18511 | if (!SWIG_IsOK(res2)) { | |
18512 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
18513 | } | |
18514 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
18515 | if (obj2) { | |
18516 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18517 | if (!SWIG_IsOK(ecode3)) { | |
18518 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
18519 | } | |
18520 | arg3 = static_cast< int >(val3); | |
18521 | } | |
18522 | if (obj3) { | |
d14a1e28 | 18523 | { |
0085ce49 RD |
18524 | arg4 = wxString_in_helper(obj3); |
18525 | if (arg4 == NULL) SWIG_fail; | |
18526 | temp4 = true; | |
d14a1e28 | 18527 | } |
0085ce49 RD |
18528 | } |
18529 | if (obj4) { | |
d14a1e28 | 18530 | { |
0085ce49 RD |
18531 | arg5 = &temp5; |
18532 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 18533 | } |
0085ce49 RD |
18534 | } |
18535 | if (obj5) { | |
093d3ff1 | 18536 | { |
0085ce49 RD |
18537 | arg6 = &temp6; |
18538 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
093d3ff1 | 18539 | } |
0085ce49 RD |
18540 | } |
18541 | if (obj6) { | |
18542 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
18543 | if (!SWIG_IsOK(ecode7)) { | |
18544 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
18545 | } | |
18546 | arg7 = static_cast< long >(val7); | |
18547 | } | |
18548 | if (obj7) { | |
18549 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
18550 | if (!SWIG_IsOK(res8)) { | |
18551 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
18552 | } | |
18553 | if (!argp8) { | |
18554 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 18555 | } |
0085ce49 RD |
18556 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
18557 | } | |
18558 | if (obj8) { | |
093d3ff1 | 18559 | { |
0085ce49 RD |
18560 | arg9 = wxString_in_helper(obj8); |
18561 | if (arg9 == NULL) SWIG_fail; | |
18562 | temp9 = true; | |
093d3ff1 | 18563 | } |
0085ce49 RD |
18564 | } |
18565 | { | |
18566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18567 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
18568 | wxPyEndAllowThreads(__tstate); | |
18569 | if (PyErr_Occurred()) SWIG_fail; | |
18570 | } | |
18571 | { | |
18572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18573 | } | |
18574 | { | |
18575 | if (temp4) | |
18576 | delete arg4; | |
18577 | } | |
18578 | { | |
18579 | if (temp9) | |
18580 | delete arg9; | |
18581 | } | |
18582 | return resultobj; | |
18583 | fail: | |
18584 | { | |
18585 | if (temp4) | |
18586 | delete arg4; | |
18587 | } | |
18588 | { | |
18589 | if (temp9) | |
18590 | delete arg9; | |
18591 | } | |
18592 | return NULL; | |
18593 | } | |
18594 | ||
18595 | ||
18596 | SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18597 | PyObject *resultobj = 0; | |
18598 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
18599 | bool arg2 ; | |
18600 | void *argp1 = 0 ; | |
18601 | int res1 = 0 ; | |
18602 | bool val2 ; | |
18603 | int ecode2 = 0 ; | |
18604 | PyObject * obj0 = 0 ; | |
18605 | PyObject * obj1 = 0 ; | |
18606 | char * kwnames[] = { | |
18607 | (char *) "self",(char *) "value", NULL | |
18608 | }; | |
18609 | ||
18610 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
18611 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
18612 | if (!SWIG_IsOK(res1)) { | |
18613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'"); | |
18614 | } | |
18615 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
18616 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18617 | if (!SWIG_IsOK(ecode2)) { | |
18618 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
18619 | } | |
18620 | arg2 = static_cast< bool >(val2); | |
18621 | { | |
18622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18623 | (arg1)->SetValue(arg2); | |
18624 | wxPyEndAllowThreads(__tstate); | |
18625 | if (PyErr_Occurred()) SWIG_fail; | |
18626 | } | |
18627 | resultobj = SWIG_Py_Void(); | |
18628 | return resultobj; | |
18629 | fail: | |
18630 | return NULL; | |
d14a1e28 RD |
18631 | } |
18632 | ||
18633 | ||
0085ce49 RD |
18634 | SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18635 | PyObject *resultobj = 0; | |
18636 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
18637 | bool result; | |
18638 | void *argp1 = 0 ; | |
18639 | int res1 = 0 ; | |
18640 | PyObject *swig_obj[1] ; | |
18641 | ||
18642 | if (!args) SWIG_fail; | |
18643 | swig_obj[0] = args; | |
18644 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
18645 | if (!SWIG_IsOK(res1)) { | |
18646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'"); | |
18647 | } | |
18648 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
18649 | { | |
18650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18651 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
18652 | wxPyEndAllowThreads(__tstate); | |
18653 | if (PyErr_Occurred()) SWIG_fail; | |
18654 | } | |
18655 | { | |
18656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18657 | } | |
18658 | return resultobj; | |
18659 | fail: | |
18660 | return NULL; | |
d14a1e28 RD |
18661 | } |
18662 | ||
18663 | ||
0085ce49 RD |
18664 | SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
18665 | PyObject *resultobj = 0; | |
18666 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
18667 | SwigValueWrapper<wxVisualAttributes > result; | |
18668 | int val1 ; | |
18669 | int ecode1 = 0 ; | |
18670 | PyObject * obj0 = 0 ; | |
18671 | char * kwnames[] = { | |
18672 | (char *) "variant", NULL | |
18673 | }; | |
18674 | ||
18675 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
18676 | if (obj0) { | |
18677 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18678 | if (!SWIG_IsOK(ecode1)) { | |
18679 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
18680 | } | |
18681 | arg1 = static_cast< wxWindowVariant >(val1); | |
18682 | } | |
18683 | { | |
18684 | if (!wxPyCheckForApp()) SWIG_fail; | |
18685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18686 | result = wxToggleButton::GetClassDefaultAttributes(arg1); | |
18687 | wxPyEndAllowThreads(__tstate); | |
18688 | if (PyErr_Occurred()) SWIG_fail; | |
18689 | } | |
18690 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
18691 | return resultobj; | |
18692 | fail: | |
18693 | return NULL; | |
d14a1e28 RD |
18694 | } |
18695 | ||
18696 | ||
0085ce49 RD |
18697 | SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18698 | PyObject *obj; | |
18699 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18700 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj)); | |
18701 | return SWIG_Py_Void(); | |
d14a1e28 RD |
18702 | } |
18703 | ||
0085ce49 RD |
18704 | SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18705 | return SWIG_Python_InitShadowInstance(args); | |
18706 | } | |
d14a1e28 | 18707 | |
0085ce49 RD |
18708 | SWIGINTERN int NotebookNameStr_set(PyObject *) { |
18709 | SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only."); | |
18710 | return 1; | |
d14a1e28 RD |
18711 | } |
18712 | ||
18713 | ||
0085ce49 RD |
18714 | SWIGINTERN PyObject *NotebookNameStr_get(void) { |
18715 | PyObject *pyobj = 0; | |
18716 | ||
18717 | { | |
d14a1e28 | 18718 | #if wxUSE_UNICODE |
0085ce49 | 18719 | pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
d14a1e28 | 18720 | #else |
0085ce49 | 18721 | pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
d14a1e28 | 18722 | #endif |
0085ce49 RD |
18723 | } |
18724 | return pyobj; | |
d14a1e28 RD |
18725 | } |
18726 | ||
18727 | ||
0085ce49 RD |
18728 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18729 | PyObject *resultobj = 0; | |
18730 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18731 | size_t result; | |
18732 | void *argp1 = 0 ; | |
18733 | int res1 = 0 ; | |
18734 | PyObject *swig_obj[1] ; | |
18735 | ||
18736 | if (!args) SWIG_fail; | |
18737 | swig_obj[0] = args; | |
18738 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18739 | if (!SWIG_IsOK(res1)) { | |
18740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
18741 | } | |
18742 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
18743 | { | |
18744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18745 | result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount(); | |
18746 | wxPyEndAllowThreads(__tstate); | |
18747 | if (PyErr_Occurred()) SWIG_fail; | |
18748 | } | |
18749 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
18750 | return resultobj; | |
18751 | fail: | |
18752 | return NULL; | |
18753 | } | |
18754 | ||
18755 | ||
18756 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18757 | PyObject *resultobj = 0; | |
18758 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18759 | size_t arg2 ; | |
18760 | wxWindow *result = 0 ; | |
18761 | void *argp1 = 0 ; | |
18762 | int res1 = 0 ; | |
18763 | size_t val2 ; | |
18764 | int ecode2 = 0 ; | |
18765 | PyObject * obj0 = 0 ; | |
18766 | PyObject * obj1 = 0 ; | |
18767 | char * kwnames[] = { | |
18768 | (char *) "self",(char *) "n", NULL | |
18769 | }; | |
18770 | ||
18771 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
18772 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18773 | if (!SWIG_IsOK(res1)) { | |
18774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
18775 | } | |
18776 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
18777 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
18778 | if (!SWIG_IsOK(ecode2)) { | |
18779 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'"); | |
18780 | } | |
18781 | arg2 = static_cast< size_t >(val2); | |
18782 | { | |
18783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18784 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
18785 | wxPyEndAllowThreads(__tstate); | |
18786 | if (PyErr_Occurred()) SWIG_fail; | |
18787 | } | |
18788 | { | |
18789 | resultobj = wxPyMake_wxObject(result, 0); | |
18790 | } | |
18791 | return resultobj; | |
18792 | fail: | |
18793 | return NULL; | |
22bfe96c RD |
18794 | } |
18795 | ||
18796 | ||
0085ce49 RD |
18797 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18798 | PyObject *resultobj = 0; | |
18799 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18800 | wxWindow *result = 0 ; | |
18801 | void *argp1 = 0 ; | |
18802 | int res1 = 0 ; | |
18803 | PyObject *swig_obj[1] ; | |
18804 | ||
18805 | if (!args) SWIG_fail; | |
18806 | swig_obj[0] = args; | |
18807 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18808 | if (!SWIG_IsOK(res1)) { | |
18809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
18810 | } | |
18811 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
18812 | { | |
18813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18814 | result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage(); | |
18815 | wxPyEndAllowThreads(__tstate); | |
18816 | if (PyErr_Occurred()) SWIG_fail; | |
18817 | } | |
18818 | { | |
18819 | resultobj = wxPyMake_wxObject(result, 0); | |
18820 | } | |
18821 | return resultobj; | |
18822 | fail: | |
18823 | return NULL; | |
d14a1e28 RD |
18824 | } |
18825 | ||
18826 | ||
0085ce49 RD |
18827 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18828 | PyObject *resultobj = 0; | |
18829 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18830 | int result; | |
18831 | void *argp1 = 0 ; | |
18832 | int res1 = 0 ; | |
18833 | PyObject *swig_obj[1] ; | |
18834 | ||
18835 | if (!args) SWIG_fail; | |
18836 | swig_obj[0] = args; | |
18837 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18838 | if (!SWIG_IsOK(res1)) { | |
18839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
18840 | } | |
18841 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
18842 | { | |
18843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18844 | result = (int)((wxBookCtrlBase const *)arg1)->GetSelection(); | |
18845 | wxPyEndAllowThreads(__tstate); | |
18846 | if (PyErr_Occurred()) SWIG_fail; | |
18847 | } | |
18848 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18849 | return resultobj; | |
18850 | fail: | |
18851 | return NULL; | |
18852 | } | |
18853 | ||
18854 | ||
18855 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18856 | PyObject *resultobj = 0; | |
18857 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18858 | size_t arg2 ; | |
18859 | wxString *arg3 = 0 ; | |
18860 | bool result; | |
18861 | void *argp1 = 0 ; | |
18862 | int res1 = 0 ; | |
18863 | size_t val2 ; | |
18864 | int ecode2 = 0 ; | |
18865 | bool temp3 = false ; | |
18866 | PyObject * obj0 = 0 ; | |
18867 | PyObject * obj1 = 0 ; | |
18868 | PyObject * obj2 = 0 ; | |
18869 | char * kwnames[] = { | |
18870 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
18871 | }; | |
18872 | ||
18873 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18874 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18875 | if (!SWIG_IsOK(res1)) { | |
18876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
18877 | } | |
18878 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
18879 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
18880 | if (!SWIG_IsOK(ecode2)) { | |
18881 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'"); | |
18882 | } | |
18883 | arg2 = static_cast< size_t >(val2); | |
18884 | { | |
18885 | arg3 = wxString_in_helper(obj2); | |
18886 | if (arg3 == NULL) SWIG_fail; | |
18887 | temp3 = true; | |
18888 | } | |
18889 | { | |
18890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18891 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
18892 | wxPyEndAllowThreads(__tstate); | |
18893 | if (PyErr_Occurred()) SWIG_fail; | |
18894 | } | |
18895 | { | |
18896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18897 | } | |
18898 | { | |
18899 | if (temp3) | |
18900 | delete arg3; | |
18901 | } | |
18902 | return resultobj; | |
18903 | fail: | |
18904 | { | |
18905 | if (temp3) | |
18906 | delete arg3; | |
18907 | } | |
18908 | return NULL; | |
18909 | } | |
18910 | ||
18911 | ||
18912 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18913 | PyObject *resultobj = 0; | |
18914 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18915 | size_t arg2 ; | |
18916 | wxString result; | |
18917 | void *argp1 = 0 ; | |
18918 | int res1 = 0 ; | |
18919 | size_t val2 ; | |
18920 | int ecode2 = 0 ; | |
18921 | PyObject * obj0 = 0 ; | |
18922 | PyObject * obj1 = 0 ; | |
18923 | char * kwnames[] = { | |
18924 | (char *) "self",(char *) "n", NULL | |
18925 | }; | |
18926 | ||
18927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail; | |
18928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18929 | if (!SWIG_IsOK(res1)) { | |
18930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
18931 | } | |
18932 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
18933 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
18934 | if (!SWIG_IsOK(ecode2)) { | |
18935 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'"); | |
18936 | } | |
18937 | arg2 = static_cast< size_t >(val2); | |
18938 | { | |
18939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18940 | result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2); | |
18941 | wxPyEndAllowThreads(__tstate); | |
18942 | if (PyErr_Occurred()) SWIG_fail; | |
18943 | } | |
18944 | { | |
18945 | #if wxUSE_UNICODE | |
18946 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18947 | #else | |
18948 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18949 | #endif | |
18950 | } | |
18951 | return resultobj; | |
18952 | fail: | |
18953 | return NULL; | |
18954 | } | |
18955 | ||
18956 | ||
18957 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18958 | PyObject *resultobj = 0; | |
18959 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18960 | wxImageList *arg2 = (wxImageList *) 0 ; | |
18961 | void *argp1 = 0 ; | |
18962 | int res1 = 0 ; | |
18963 | void *argp2 = 0 ; | |
18964 | int res2 = 0 ; | |
18965 | PyObject * obj0 = 0 ; | |
18966 | PyObject * obj1 = 0 ; | |
18967 | char * kwnames[] = { | |
18968 | (char *) "self",(char *) "imageList", NULL | |
18969 | }; | |
18970 | ||
18971 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
18972 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
18973 | if (!SWIG_IsOK(res1)) { | |
18974 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
18975 | } | |
18976 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
18977 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
18978 | if (!SWIG_IsOK(res2)) { | |
18979 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
18980 | } | |
18981 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
18982 | { | |
18983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18984 | (arg1)->SetImageList(arg2); | |
18985 | wxPyEndAllowThreads(__tstate); | |
18986 | if (PyErr_Occurred()) SWIG_fail; | |
18987 | } | |
18988 | resultobj = SWIG_Py_Void(); | |
18989 | return resultobj; | |
18990 | fail: | |
18991 | return NULL; | |
18992 | } | |
18993 | ||
18994 | ||
18995 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18996 | PyObject *resultobj = 0; | |
18997 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18998 | wxImageList *arg2 = (wxImageList *) 0 ; | |
18999 | void *argp1 = 0 ; | |
19000 | int res1 = 0 ; | |
19001 | int res2 = 0 ; | |
19002 | PyObject * obj0 = 0 ; | |
19003 | PyObject * obj1 = 0 ; | |
19004 | char * kwnames[] = { | |
19005 | (char *) "self",(char *) "imageList", NULL | |
19006 | }; | |
19007 | ||
19008 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
19009 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19010 | if (!SWIG_IsOK(res1)) { | |
19011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19012 | } | |
19013 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19014 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
19015 | if (!SWIG_IsOK(res2)) { | |
19016 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
19017 | } | |
19018 | { | |
19019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19020 | (arg1)->AssignImageList(arg2); | |
19021 | wxPyEndAllowThreads(__tstate); | |
19022 | if (PyErr_Occurred()) SWIG_fail; | |
19023 | } | |
19024 | resultobj = SWIG_Py_Void(); | |
19025 | return resultobj; | |
19026 | fail: | |
19027 | return NULL; | |
d14a1e28 RD |
19028 | } |
19029 | ||
19030 | ||
0085ce49 RD |
19031 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19032 | PyObject *resultobj = 0; | |
19033 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19034 | wxImageList *result = 0 ; | |
19035 | void *argp1 = 0 ; | |
19036 | int res1 = 0 ; | |
19037 | PyObject *swig_obj[1] ; | |
19038 | ||
19039 | if (!args) SWIG_fail; | |
19040 | swig_obj[0] = args; | |
19041 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19042 | if (!SWIG_IsOK(res1)) { | |
19043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19044 | } | |
19045 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19046 | { | |
19047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19048 | result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList(); | |
19049 | wxPyEndAllowThreads(__tstate); | |
19050 | if (PyErr_Occurred()) SWIG_fail; | |
19051 | } | |
19052 | { | |
19053 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
19054 | } | |
19055 | return resultobj; | |
19056 | fail: | |
19057 | return NULL; | |
19058 | } | |
19059 | ||
19060 | ||
19061 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19062 | PyObject *resultobj = 0; | |
19063 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19064 | size_t arg2 ; | |
19065 | int result; | |
19066 | void *argp1 = 0 ; | |
19067 | int res1 = 0 ; | |
19068 | size_t val2 ; | |
19069 | int ecode2 = 0 ; | |
19070 | PyObject * obj0 = 0 ; | |
19071 | PyObject * obj1 = 0 ; | |
19072 | char * kwnames[] = { | |
19073 | (char *) "self",(char *) "n", NULL | |
19074 | }; | |
19075 | ||
19076 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19077 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19078 | if (!SWIG_IsOK(res1)) { | |
19079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19080 | } | |
19081 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19082 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19083 | if (!SWIG_IsOK(ecode2)) { | |
19084 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'"); | |
19085 | } | |
19086 | arg2 = static_cast< size_t >(val2); | |
19087 | { | |
19088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19089 | result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2); | |
19090 | wxPyEndAllowThreads(__tstate); | |
19091 | if (PyErr_Occurred()) SWIG_fail; | |
19092 | } | |
19093 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19094 | return resultobj; | |
19095 | fail: | |
19096 | return NULL; | |
19097 | } | |
19098 | ||
19099 | ||
19100 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19101 | PyObject *resultobj = 0; | |
19102 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19103 | size_t arg2 ; | |
19104 | int arg3 ; | |
19105 | bool result; | |
19106 | void *argp1 = 0 ; | |
19107 | int res1 = 0 ; | |
19108 | size_t val2 ; | |
19109 | int ecode2 = 0 ; | |
19110 | int val3 ; | |
19111 | int ecode3 = 0 ; | |
19112 | PyObject * obj0 = 0 ; | |
19113 | PyObject * obj1 = 0 ; | |
19114 | PyObject * obj2 = 0 ; | |
19115 | char * kwnames[] = { | |
19116 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
19117 | }; | |
19118 | ||
19119 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19120 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19121 | if (!SWIG_IsOK(res1)) { | |
19122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19123 | } | |
19124 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19125 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19126 | if (!SWIG_IsOK(ecode2)) { | |
19127 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'"); | |
19128 | } | |
19129 | arg2 = static_cast< size_t >(val2); | |
19130 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19131 | if (!SWIG_IsOK(ecode3)) { | |
19132 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'"); | |
19133 | } | |
19134 | arg3 = static_cast< int >(val3); | |
19135 | { | |
19136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19137 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
19138 | wxPyEndAllowThreads(__tstate); | |
19139 | if (PyErr_Occurred()) SWIG_fail; | |
19140 | } | |
19141 | { | |
19142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19143 | } | |
19144 | return resultobj; | |
19145 | fail: | |
19146 | return NULL; | |
19147 | } | |
19148 | ||
19149 | ||
19150 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19151 | PyObject *resultobj = 0; | |
19152 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19153 | wxSize *arg2 = 0 ; | |
19154 | void *argp1 = 0 ; | |
19155 | int res1 = 0 ; | |
19156 | wxSize temp2 ; | |
19157 | PyObject * obj0 = 0 ; | |
19158 | PyObject * obj1 = 0 ; | |
19159 | char * kwnames[] = { | |
19160 | (char *) "self",(char *) "size", NULL | |
19161 | }; | |
19162 | ||
19163 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
19164 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19165 | if (!SWIG_IsOK(res1)) { | |
19166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19167 | } | |
19168 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19169 | { | |
19170 | arg2 = &temp2; | |
19171 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19172 | } | |
19173 | { | |
19174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19175 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
19176 | wxPyEndAllowThreads(__tstate); | |
19177 | if (PyErr_Occurred()) SWIG_fail; | |
19178 | } | |
19179 | resultobj = SWIG_Py_Void(); | |
19180 | return resultobj; | |
19181 | fail: | |
19182 | return NULL; | |
19183 | } | |
19184 | ||
19185 | ||
19186 | SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19187 | PyObject *resultobj = 0; | |
19188 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19189 | wxSize *arg2 = 0 ; | |
19190 | wxSize result; | |
19191 | void *argp1 = 0 ; | |
19192 | int res1 = 0 ; | |
19193 | wxSize temp2 ; | |
19194 | PyObject * obj0 = 0 ; | |
19195 | PyObject * obj1 = 0 ; | |
19196 | char * kwnames[] = { | |
19197 | (char *) "self",(char *) "sizePage", NULL | |
19198 | }; | |
19199 | ||
19200 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19201 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19202 | if (!SWIG_IsOK(res1)) { | |
19203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19204 | } | |
19205 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19206 | { | |
19207 | arg2 = &temp2; | |
19208 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19209 | } | |
19210 | { | |
19211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19212 | result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
19213 | wxPyEndAllowThreads(__tstate); | |
19214 | if (PyErr_Occurred()) SWIG_fail; | |
19215 | } | |
19216 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
19217 | return resultobj; | |
19218 | fail: | |
19219 | return NULL; | |
d14a1e28 RD |
19220 | } |
19221 | ||
19222 | ||
0085ce49 RD |
19223 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19224 | PyObject *resultobj = 0; | |
19225 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
e9d6f3a4 | 19226 | unsigned int result; |
0085ce49 RD |
19227 | void *argp1 = 0 ; |
19228 | int res1 = 0 ; | |
19229 | PyObject *swig_obj[1] ; | |
19230 | ||
19231 | if (!args) SWIG_fail; | |
19232 | swig_obj[0] = args; | |
19233 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19234 | if (!SWIG_IsOK(res1)) { | |
19235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19236 | } | |
19237 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19238 | { | |
19239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e9d6f3a4 | 19240 | result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder(); |
0085ce49 RD |
19241 | wxPyEndAllowThreads(__tstate); |
19242 | if (PyErr_Occurred()) SWIG_fail; | |
19243 | } | |
e9d6f3a4 | 19244 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
0085ce49 RD |
19245 | return resultobj; |
19246 | fail: | |
19247 | return NULL; | |
19248 | } | |
19249 | ||
19250 | ||
19251 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19252 | PyObject *resultobj = 0; | |
19253 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
e9d6f3a4 | 19254 | unsigned int arg2 ; |
0085ce49 RD |
19255 | void *argp1 = 0 ; |
19256 | int res1 = 0 ; | |
e9d6f3a4 | 19257 | unsigned int val2 ; |
0085ce49 RD |
19258 | int ecode2 = 0 ; |
19259 | PyObject * obj0 = 0 ; | |
19260 | PyObject * obj1 = 0 ; | |
19261 | char * kwnames[] = { | |
19262 | (char *) "self",(char *) "internalBorder", NULL | |
19263 | }; | |
19264 | ||
19265 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail; | |
19266 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19267 | if (!SWIG_IsOK(res1)) { | |
19268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19269 | } | |
19270 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
e9d6f3a4 | 19271 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
0085ce49 | 19272 | if (!SWIG_IsOK(ecode2)) { |
e9d6f3a4 | 19273 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'"); |
0085ce49 | 19274 | } |
e9d6f3a4 | 19275 | arg2 = static_cast< unsigned int >(val2); |
0085ce49 RD |
19276 | { |
19277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19278 | (arg1)->SetInternalBorder(arg2); | |
19279 | wxPyEndAllowThreads(__tstate); | |
19280 | if (PyErr_Occurred()) SWIG_fail; | |
19281 | } | |
19282 | resultobj = SWIG_Py_Void(); | |
19283 | return resultobj; | |
19284 | fail: | |
19285 | return NULL; | |
b2dc1044 RD |
19286 | } |
19287 | ||
19288 | ||
0085ce49 RD |
19289 | SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19290 | PyObject *resultobj = 0; | |
19291 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19292 | bool result; | |
19293 | void *argp1 = 0 ; | |
19294 | int res1 = 0 ; | |
19295 | PyObject *swig_obj[1] ; | |
19296 | ||
19297 | if (!args) SWIG_fail; | |
19298 | swig_obj[0] = args; | |
19299 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19300 | if (!SWIG_IsOK(res1)) { | |
19301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19302 | } | |
19303 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19304 | { | |
19305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19306 | result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical(); | |
19307 | wxPyEndAllowThreads(__tstate); | |
19308 | if (PyErr_Occurred()) SWIG_fail; | |
19309 | } | |
19310 | { | |
19311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19312 | } | |
19313 | return resultobj; | |
19314 | fail: | |
19315 | return NULL; | |
19316 | } | |
19317 | ||
19318 | ||
e9d6f3a4 RD |
19319 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19320 | PyObject *resultobj = 0; | |
19321 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19322 | int arg2 ; | |
19323 | void *argp1 = 0 ; | |
19324 | int res1 = 0 ; | |
19325 | int val2 ; | |
19326 | int ecode2 = 0 ; | |
19327 | PyObject * obj0 = 0 ; | |
19328 | PyObject * obj1 = 0 ; | |
19329 | char * kwnames[] = { | |
19330 | (char *) "self",(char *) "margin", NULL | |
19331 | }; | |
19332 | ||
19333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail; | |
19334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19335 | if (!SWIG_IsOK(res1)) { | |
19336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19337 | } | |
19338 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19339 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19340 | if (!SWIG_IsOK(ecode2)) { | |
19341 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'"); | |
19342 | } | |
19343 | arg2 = static_cast< int >(val2); | |
19344 | { | |
19345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19346 | (arg1)->SetControlMargin(arg2); | |
19347 | wxPyEndAllowThreads(__tstate); | |
19348 | if (PyErr_Occurred()) SWIG_fail; | |
19349 | } | |
19350 | resultobj = SWIG_Py_Void(); | |
19351 | return resultobj; | |
19352 | fail: | |
19353 | return NULL; | |
19354 | } | |
19355 | ||
19356 | ||
19357 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19358 | PyObject *resultobj = 0; | |
19359 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19360 | int result; | |
19361 | void *argp1 = 0 ; | |
19362 | int res1 = 0 ; | |
19363 | PyObject *swig_obj[1] ; | |
19364 | ||
19365 | if (!args) SWIG_fail; | |
19366 | swig_obj[0] = args; | |
19367 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19368 | if (!SWIG_IsOK(res1)) { | |
19369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19370 | } | |
19371 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19372 | { | |
19373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19374 | result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin(); | |
19375 | wxPyEndAllowThreads(__tstate); | |
19376 | if (PyErr_Occurred()) SWIG_fail; | |
19377 | } | |
19378 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19379 | return resultobj; | |
19380 | fail: | |
19381 | return NULL; | |
19382 | } | |
19383 | ||
19384 | ||
0085ce49 RD |
19385 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19386 | PyObject *resultobj = 0; | |
19387 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19388 | bool arg2 ; | |
19389 | void *argp1 = 0 ; | |
19390 | int res1 = 0 ; | |
19391 | bool val2 ; | |
19392 | int ecode2 = 0 ; | |
19393 | PyObject * obj0 = 0 ; | |
19394 | PyObject * obj1 = 0 ; | |
19395 | char * kwnames[] = { | |
19396 | (char *) "self",(char *) "fit", NULL | |
19397 | }; | |
19398 | ||
19399 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19400 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19401 | if (!SWIG_IsOK(res1)) { | |
19402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19403 | } | |
19404 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19405 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19406 | if (!SWIG_IsOK(ecode2)) { | |
19407 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'"); | |
19408 | } | |
19409 | arg2 = static_cast< bool >(val2); | |
19410 | { | |
19411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19412 | (arg1)->SetFitToCurrentPage(arg2); | |
19413 | wxPyEndAllowThreads(__tstate); | |
19414 | if (PyErr_Occurred()) SWIG_fail; | |
19415 | } | |
19416 | resultobj = SWIG_Py_Void(); | |
19417 | return resultobj; | |
19418 | fail: | |
19419 | return NULL; | |
d14a1e28 RD |
19420 | } |
19421 | ||
19422 | ||
0085ce49 RD |
19423 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19424 | PyObject *resultobj = 0; | |
19425 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19426 | bool result; | |
19427 | void *argp1 = 0 ; | |
19428 | int res1 = 0 ; | |
19429 | PyObject *swig_obj[1] ; | |
19430 | ||
19431 | if (!args) SWIG_fail; | |
19432 | swig_obj[0] = args; | |
19433 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19434 | if (!SWIG_IsOK(res1)) { | |
19435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19436 | } | |
19437 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19438 | { | |
19439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19440 | result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage(); | |
19441 | wxPyEndAllowThreads(__tstate); | |
19442 | if (PyErr_Occurred()) SWIG_fail; | |
19443 | } | |
19444 | { | |
19445 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19446 | } | |
19447 | return resultobj; | |
19448 | fail: | |
19449 | return NULL; | |
19450 | } | |
19451 | ||
19452 | ||
e9d6f3a4 RD |
19453 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19454 | PyObject *resultobj = 0; | |
19455 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19456 | wxSizer *result = 0 ; | |
19457 | void *argp1 = 0 ; | |
19458 | int res1 = 0 ; | |
19459 | PyObject *swig_obj[1] ; | |
19460 | ||
19461 | if (!args) SWIG_fail; | |
19462 | swig_obj[0] = args; | |
19463 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19464 | if (!SWIG_IsOK(res1)) { | |
19465 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19466 | } | |
19467 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19468 | { | |
19469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19470 | result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer(); | |
19471 | wxPyEndAllowThreads(__tstate); | |
19472 | if (PyErr_Occurred()) SWIG_fail; | |
19473 | } | |
19474 | { | |
19475 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
19476 | } | |
19477 | return resultobj; | |
19478 | fail: | |
19479 | return NULL; | |
19480 | } | |
19481 | ||
19482 | ||
0085ce49 RD |
19483 | SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19484 | PyObject *resultobj = 0; | |
19485 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19486 | size_t arg2 ; | |
19487 | bool result; | |
19488 | void *argp1 = 0 ; | |
19489 | int res1 = 0 ; | |
19490 | size_t val2 ; | |
19491 | int ecode2 = 0 ; | |
19492 | PyObject * obj0 = 0 ; | |
19493 | PyObject * obj1 = 0 ; | |
19494 | char * kwnames[] = { | |
19495 | (char *) "self",(char *) "n", NULL | |
19496 | }; | |
19497 | ||
19498 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19499 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19500 | if (!SWIG_IsOK(res1)) { | |
19501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19502 | } | |
19503 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19504 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19505 | if (!SWIG_IsOK(ecode2)) { | |
19506 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'"); | |
19507 | } | |
19508 | arg2 = static_cast< size_t >(val2); | |
19509 | { | |
19510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19511 | result = (bool)(arg1)->DeletePage(arg2); | |
19512 | wxPyEndAllowThreads(__tstate); | |
19513 | if (PyErr_Occurred()) SWIG_fail; | |
19514 | } | |
19515 | { | |
19516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19517 | } | |
19518 | return resultobj; | |
19519 | fail: | |
19520 | return NULL; | |
19521 | } | |
19522 | ||
19523 | ||
19524 | SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19525 | PyObject *resultobj = 0; | |
19526 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19527 | size_t arg2 ; | |
19528 | bool result; | |
19529 | void *argp1 = 0 ; | |
19530 | int res1 = 0 ; | |
19531 | size_t val2 ; | |
19532 | int ecode2 = 0 ; | |
19533 | PyObject * obj0 = 0 ; | |
19534 | PyObject * obj1 = 0 ; | |
19535 | char * kwnames[] = { | |
19536 | (char *) "self",(char *) "n", NULL | |
19537 | }; | |
19538 | ||
19539 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19540 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19541 | if (!SWIG_IsOK(res1)) { | |
19542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19543 | } | |
19544 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19545 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19546 | if (!SWIG_IsOK(ecode2)) { | |
19547 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'"); | |
19548 | } | |
19549 | arg2 = static_cast< size_t >(val2); | |
19550 | { | |
19551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19552 | result = (bool)(arg1)->RemovePage(arg2); | |
19553 | wxPyEndAllowThreads(__tstate); | |
19554 | if (PyErr_Occurred()) SWIG_fail; | |
19555 | } | |
19556 | { | |
19557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19558 | } | |
19559 | return resultobj; | |
19560 | fail: | |
19561 | return NULL; | |
d14a1e28 RD |
19562 | } |
19563 | ||
19564 | ||
0085ce49 RD |
19565 | SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19566 | PyObject *resultobj = 0; | |
19567 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19568 | bool result; | |
19569 | void *argp1 = 0 ; | |
19570 | int res1 = 0 ; | |
19571 | PyObject *swig_obj[1] ; | |
19572 | ||
19573 | if (!args) SWIG_fail; | |
19574 | swig_obj[0] = args; | |
19575 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19576 | if (!SWIG_IsOK(res1)) { | |
19577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19578 | } | |
19579 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19580 | { | |
19581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19582 | result = (bool)(arg1)->DeleteAllPages(); | |
19583 | wxPyEndAllowThreads(__tstate); | |
19584 | if (PyErr_Occurred()) SWIG_fail; | |
19585 | } | |
19586 | { | |
19587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19588 | } | |
19589 | return resultobj; | |
19590 | fail: | |
19591 | return NULL; | |
19592 | } | |
19593 | ||
19594 | ||
19595 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19596 | PyObject *resultobj = 0; | |
19597 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19598 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19599 | wxString *arg3 = 0 ; | |
19600 | bool arg4 = (bool) false ; | |
19601 | int arg5 = (int) -1 ; | |
19602 | bool result; | |
19603 | void *argp1 = 0 ; | |
19604 | int res1 = 0 ; | |
19605 | void *argp2 = 0 ; | |
19606 | int res2 = 0 ; | |
19607 | bool temp3 = false ; | |
19608 | bool val4 ; | |
19609 | int ecode4 = 0 ; | |
19610 | int val5 ; | |
19611 | int ecode5 = 0 ; | |
19612 | PyObject * obj0 = 0 ; | |
19613 | PyObject * obj1 = 0 ; | |
19614 | PyObject * obj2 = 0 ; | |
19615 | PyObject * obj3 = 0 ; | |
19616 | PyObject * obj4 = 0 ; | |
19617 | char * kwnames[] = { | |
19618 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
19619 | }; | |
19620 | ||
19621 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19622 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19623 | if (!SWIG_IsOK(res1)) { | |
19624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19625 | } | |
19626 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19627 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19628 | if (!SWIG_IsOK(res2)) { | |
19629 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
19630 | } | |
19631 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
19632 | { | |
19633 | arg3 = wxString_in_helper(obj2); | |
19634 | if (arg3 == NULL) SWIG_fail; | |
19635 | temp3 = true; | |
19636 | } | |
19637 | if (obj3) { | |
19638 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
19639 | if (!SWIG_IsOK(ecode4)) { | |
19640 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'"); | |
19641 | } | |
19642 | arg4 = static_cast< bool >(val4); | |
19643 | } | |
19644 | if (obj4) { | |
19645 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19646 | if (!SWIG_IsOK(ecode5)) { | |
19647 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'"); | |
19648 | } | |
19649 | arg5 = static_cast< int >(val5); | |
19650 | } | |
19651 | { | |
19652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19653 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
19654 | wxPyEndAllowThreads(__tstate); | |
19655 | if (PyErr_Occurred()) SWIG_fail; | |
19656 | } | |
19657 | { | |
19658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19659 | } | |
19660 | { | |
19661 | if (temp3) | |
19662 | delete arg3; | |
19663 | } | |
19664 | return resultobj; | |
19665 | fail: | |
19666 | { | |
19667 | if (temp3) | |
19668 | delete arg3; | |
19669 | } | |
19670 | return NULL; | |
19671 | } | |
19672 | ||
19673 | ||
19674 | SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19675 | PyObject *resultobj = 0; | |
19676 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19677 | size_t arg2 ; | |
19678 | wxWindow *arg3 = (wxWindow *) 0 ; | |
19679 | wxString *arg4 = 0 ; | |
19680 | bool arg5 = (bool) false ; | |
19681 | int arg6 = (int) -1 ; | |
19682 | bool result; | |
19683 | void *argp1 = 0 ; | |
19684 | int res1 = 0 ; | |
19685 | size_t val2 ; | |
19686 | int ecode2 = 0 ; | |
19687 | void *argp3 = 0 ; | |
19688 | int res3 = 0 ; | |
19689 | bool temp4 = false ; | |
19690 | bool val5 ; | |
19691 | int ecode5 = 0 ; | |
19692 | int val6 ; | |
19693 | int ecode6 = 0 ; | |
19694 | PyObject * obj0 = 0 ; | |
19695 | PyObject * obj1 = 0 ; | |
19696 | PyObject * obj2 = 0 ; | |
19697 | PyObject * obj3 = 0 ; | |
19698 | PyObject * obj4 = 0 ; | |
19699 | PyObject * obj5 = 0 ; | |
19700 | char * kwnames[] = { | |
19701 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
19702 | }; | |
19703 | ||
19704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
19705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19706 | if (!SWIG_IsOK(res1)) { | |
19707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19708 | } | |
19709 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19710 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19711 | if (!SWIG_IsOK(ecode2)) { | |
19712 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'"); | |
19713 | } | |
19714 | arg2 = static_cast< size_t >(val2); | |
19715 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19716 | if (!SWIG_IsOK(res3)) { | |
19717 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
19718 | } | |
19719 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
19720 | { | |
19721 | arg4 = wxString_in_helper(obj3); | |
19722 | if (arg4 == NULL) SWIG_fail; | |
19723 | temp4 = true; | |
19724 | } | |
19725 | if (obj4) { | |
19726 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
19727 | if (!SWIG_IsOK(ecode5)) { | |
19728 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'"); | |
19729 | } | |
19730 | arg5 = static_cast< bool >(val5); | |
19731 | } | |
19732 | if (obj5) { | |
19733 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
19734 | if (!SWIG_IsOK(ecode6)) { | |
19735 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'"); | |
19736 | } | |
19737 | arg6 = static_cast< int >(val6); | |
19738 | } | |
19739 | { | |
19740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19741 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
19742 | wxPyEndAllowThreads(__tstate); | |
19743 | if (PyErr_Occurred()) SWIG_fail; | |
19744 | } | |
19745 | { | |
19746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19747 | } | |
19748 | { | |
19749 | if (temp4) | |
19750 | delete arg4; | |
19751 | } | |
19752 | return resultobj; | |
19753 | fail: | |
19754 | { | |
19755 | if (temp4) | |
19756 | delete arg4; | |
19757 | } | |
19758 | return NULL; | |
19759 | } | |
19760 | ||
19761 | ||
19762 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19763 | PyObject *resultobj = 0; | |
19764 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19765 | size_t arg2 ; | |
19766 | int result; | |
19767 | void *argp1 = 0 ; | |
19768 | int res1 = 0 ; | |
19769 | size_t val2 ; | |
19770 | int ecode2 = 0 ; | |
19771 | PyObject * obj0 = 0 ; | |
19772 | PyObject * obj1 = 0 ; | |
19773 | char * kwnames[] = { | |
19774 | (char *) "self",(char *) "n", NULL | |
19775 | }; | |
19776 | ||
19777 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
19778 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19779 | if (!SWIG_IsOK(res1)) { | |
19780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19781 | } | |
19782 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19783 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19784 | if (!SWIG_IsOK(ecode2)) { | |
19785 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'"); | |
19786 | } | |
19787 | arg2 = static_cast< size_t >(val2); | |
19788 | { | |
19789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19790 | result = (int)(arg1)->SetSelection(arg2); | |
19791 | wxPyEndAllowThreads(__tstate); | |
19792 | if (PyErr_Occurred()) SWIG_fail; | |
19793 | } | |
19794 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19795 | return resultobj; | |
19796 | fail: | |
19797 | return NULL; | |
19798 | } | |
19799 | ||
19800 | ||
19801 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19802 | PyObject *resultobj = 0; | |
19803 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19804 | bool arg2 = (bool) true ; | |
19805 | void *argp1 = 0 ; | |
19806 | int res1 = 0 ; | |
19807 | bool val2 ; | |
19808 | int ecode2 = 0 ; | |
19809 | PyObject * obj0 = 0 ; | |
19810 | PyObject * obj1 = 0 ; | |
19811 | char * kwnames[] = { | |
19812 | (char *) "self",(char *) "forward", NULL | |
19813 | }; | |
19814 | ||
19815 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
19816 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19817 | if (!SWIG_IsOK(res1)) { | |
19818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19819 | } | |
19820 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19821 | if (obj1) { | |
19822 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19823 | if (!SWIG_IsOK(ecode2)) { | |
19824 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'"); | |
19825 | } | |
19826 | arg2 = static_cast< bool >(val2); | |
19827 | } | |
19828 | { | |
19829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19830 | (arg1)->AdvanceSelection(arg2); | |
19831 | wxPyEndAllowThreads(__tstate); | |
19832 | if (PyErr_Occurred()) SWIG_fail; | |
19833 | } | |
19834 | resultobj = SWIG_Py_Void(); | |
19835 | return resultobj; | |
19836 | fail: | |
19837 | return NULL; | |
19838 | } | |
19839 | ||
19840 | ||
19841 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19842 | PyObject *resultobj = 0; | |
19843 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
19844 | SwigValueWrapper<wxVisualAttributes > result; | |
19845 | int val1 ; | |
19846 | int ecode1 = 0 ; | |
19847 | PyObject * obj0 = 0 ; | |
19848 | char * kwnames[] = { | |
19849 | (char *) "variant", NULL | |
19850 | }; | |
19851 | ||
19852 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
19853 | if (obj0) { | |
19854 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19855 | if (!SWIG_IsOK(ecode1)) { | |
19856 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
19857 | } | |
19858 | arg1 = static_cast< wxWindowVariant >(val1); | |
19859 | } | |
19860 | { | |
19861 | if (!wxPyCheckForApp()) SWIG_fail; | |
19862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19863 | result = wxBookCtrlBase::GetClassDefaultAttributes(arg1); | |
19864 | wxPyEndAllowThreads(__tstate); | |
19865 | if (PyErr_Occurred()) SWIG_fail; | |
19866 | } | |
19867 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
19868 | return resultobj; | |
19869 | fail: | |
19870 | return NULL; | |
19871 | } | |
19872 | ||
19873 | ||
19874 | SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19875 | PyObject *obj; | |
19876 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19877 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj)); | |
19878 | return SWIG_Py_Void(); | |
19879 | } | |
19880 | ||
19881 | SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19882 | PyObject *resultobj = 0; | |
19883 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19884 | int arg2 = (int) 0 ; | |
19885 | int arg3 = (int) -1 ; | |
19886 | int arg4 = (int) -1 ; | |
19887 | wxBookCtrlBaseEvent *result = 0 ; | |
19888 | int val1 ; | |
19889 | int ecode1 = 0 ; | |
19890 | int val2 ; | |
19891 | int ecode2 = 0 ; | |
19892 | int val3 ; | |
19893 | int ecode3 = 0 ; | |
19894 | int val4 ; | |
19895 | int ecode4 = 0 ; | |
19896 | PyObject * obj0 = 0 ; | |
19897 | PyObject * obj1 = 0 ; | |
19898 | PyObject * obj2 = 0 ; | |
19899 | PyObject * obj3 = 0 ; | |
19900 | char * kwnames[] = { | |
19901 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
19902 | }; | |
19903 | ||
19904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19905 | if (obj0) { | |
19906 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19907 | if (!SWIG_IsOK(ecode1)) { | |
19908 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
19909 | } | |
19910 | arg1 = static_cast< wxEventType >(val1); | |
19911 | } | |
19912 | if (obj1) { | |
19913 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19914 | if (!SWIG_IsOK(ecode2)) { | |
19915 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'"); | |
19916 | } | |
19917 | arg2 = static_cast< int >(val2); | |
19918 | } | |
19919 | if (obj2) { | |
19920 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19921 | if (!SWIG_IsOK(ecode3)) { | |
19922 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'"); | |
19923 | } | |
19924 | arg3 = static_cast< int >(val3); | |
19925 | } | |
19926 | if (obj3) { | |
19927 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19928 | if (!SWIG_IsOK(ecode4)) { | |
19929 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'"); | |
19930 | } | |
19931 | arg4 = static_cast< int >(val4); | |
19932 | } | |
19933 | { | |
19934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19935 | result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4); | |
19936 | wxPyEndAllowThreads(__tstate); | |
19937 | if (PyErr_Occurred()) SWIG_fail; | |
19938 | } | |
19939 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 ); | |
19940 | return resultobj; | |
19941 | fail: | |
19942 | return NULL; | |
d14a1e28 RD |
19943 | } |
19944 | ||
19945 | ||
0085ce49 RD |
19946 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19947 | PyObject *resultobj = 0; | |
19948 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
19949 | int result; | |
19950 | void *argp1 = 0 ; | |
19951 | int res1 = 0 ; | |
19952 | PyObject *swig_obj[1] ; | |
19953 | ||
19954 | if (!args) SWIG_fail; | |
19955 | swig_obj[0] = args; | |
19956 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
19957 | if (!SWIG_IsOK(res1)) { | |
19958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'"); | |
19959 | } | |
19960 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
19961 | { | |
19962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19963 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection(); | |
19964 | wxPyEndAllowThreads(__tstate); | |
19965 | if (PyErr_Occurred()) SWIG_fail; | |
19966 | } | |
19967 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19968 | return resultobj; | |
19969 | fail: | |
19970 | return NULL; | |
19971 | } | |
19972 | ||
19973 | ||
19974 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19975 | PyObject *resultobj = 0; | |
19976 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
19977 | int arg2 ; | |
19978 | void *argp1 = 0 ; | |
19979 | int res1 = 0 ; | |
19980 | int val2 ; | |
19981 | int ecode2 = 0 ; | |
19982 | PyObject * obj0 = 0 ; | |
19983 | PyObject * obj1 = 0 ; | |
19984 | char * kwnames[] = { | |
19985 | (char *) "self",(char *) "nSel", NULL | |
19986 | }; | |
19987 | ||
19988 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
19989 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
19990 | if (!SWIG_IsOK(res1)) { | |
19991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'"); | |
19992 | } | |
19993 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
19994 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19995 | if (!SWIG_IsOK(ecode2)) { | |
19996 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
19997 | } | |
19998 | arg2 = static_cast< int >(val2); | |
19999 | { | |
20000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20001 | (arg1)->SetSelection(arg2); | |
20002 | wxPyEndAllowThreads(__tstate); | |
20003 | if (PyErr_Occurred()) SWIG_fail; | |
20004 | } | |
20005 | resultobj = SWIG_Py_Void(); | |
20006 | return resultobj; | |
20007 | fail: | |
20008 | return NULL; | |
d14a1e28 RD |
20009 | } |
20010 | ||
20011 | ||
0085ce49 RD |
20012 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20013 | PyObject *resultobj = 0; | |
20014 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20015 | int result; | |
20016 | void *argp1 = 0 ; | |
20017 | int res1 = 0 ; | |
20018 | PyObject *swig_obj[1] ; | |
20019 | ||
20020 | if (!args) SWIG_fail; | |
20021 | swig_obj[0] = args; | |
20022 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20023 | if (!SWIG_IsOK(res1)) { | |
20024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'"); | |
20025 | } | |
20026 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20027 | { | |
20028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20029 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection(); | |
20030 | wxPyEndAllowThreads(__tstate); | |
20031 | if (PyErr_Occurred()) SWIG_fail; | |
20032 | } | |
20033 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20034 | return resultobj; | |
20035 | fail: | |
20036 | return NULL; | |
20037 | } | |
20038 | ||
20039 | ||
20040 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20041 | PyObject *resultobj = 0; | |
20042 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20043 | int arg2 ; | |
20044 | void *argp1 = 0 ; | |
20045 | int res1 = 0 ; | |
20046 | int val2 ; | |
20047 | int ecode2 = 0 ; | |
20048 | PyObject * obj0 = 0 ; | |
20049 | PyObject * obj1 = 0 ; | |
20050 | char * kwnames[] = { | |
20051 | (char *) "self",(char *) "nOldSel", NULL | |
20052 | }; | |
20053 | ||
20054 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20055 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20056 | if (!SWIG_IsOK(res1)) { | |
20057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'"); | |
20058 | } | |
20059 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20060 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20061 | if (!SWIG_IsOK(ecode2)) { | |
20062 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'"); | |
20063 | } | |
20064 | arg2 = static_cast< int >(val2); | |
20065 | { | |
20066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20067 | (arg1)->SetOldSelection(arg2); | |
20068 | wxPyEndAllowThreads(__tstate); | |
20069 | if (PyErr_Occurred()) SWIG_fail; | |
20070 | } | |
20071 | resultobj = SWIG_Py_Void(); | |
20072 | return resultobj; | |
20073 | fail: | |
20074 | return NULL; | |
20075 | } | |
20076 | ||
20077 | ||
20078 | SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20079 | PyObject *obj; | |
20080 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20081 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj)); | |
20082 | return SWIG_Py_Void(); | |
20083 | } | |
20084 | ||
20085 | SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20086 | return SWIG_Python_InitShadowInstance(args); | |
20087 | } | |
20088 | ||
20089 | SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20090 | PyObject *resultobj = 0; | |
20091 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20092 | int arg2 = (int) -1 ; | |
20093 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20094 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20095 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20096 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20097 | long arg5 = (long) 0 ; | |
20098 | wxString const &arg6_defvalue = wxPyNotebookNameStr ; | |
20099 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20100 | wxNotebook *result = 0 ; | |
20101 | void *argp1 = 0 ; | |
20102 | int res1 = 0 ; | |
20103 | int val2 ; | |
20104 | int ecode2 = 0 ; | |
20105 | wxPoint temp3 ; | |
20106 | wxSize temp4 ; | |
20107 | long val5 ; | |
20108 | int ecode5 = 0 ; | |
20109 | bool temp6 = false ; | |
20110 | PyObject * obj0 = 0 ; | |
20111 | PyObject * obj1 = 0 ; | |
20112 | PyObject * obj2 = 0 ; | |
20113 | PyObject * obj3 = 0 ; | |
20114 | PyObject * obj4 = 0 ; | |
20115 | PyObject * obj5 = 0 ; | |
20116 | char * kwnames[] = { | |
20117 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20118 | }; | |
20119 | ||
20120 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20121 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20122 | if (!SWIG_IsOK(res1)) { | |
20123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20124 | } | |
20125 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20126 | if (obj1) { | |
20127 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20128 | if (!SWIG_IsOK(ecode2)) { | |
20129 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'"); | |
20130 | } | |
20131 | arg2 = static_cast< int >(val2); | |
20132 | } | |
20133 | if (obj2) { | |
093d3ff1 | 20134 | { |
0085ce49 RD |
20135 | arg3 = &temp3; |
20136 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 20137 | } |
0085ce49 RD |
20138 | } |
20139 | if (obj3) { | |
d14a1e28 | 20140 | { |
0085ce49 RD |
20141 | arg4 = &temp4; |
20142 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 20143 | } |
0085ce49 RD |
20144 | } |
20145 | if (obj4) { | |
20146 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
20147 | if (!SWIG_IsOK(ecode5)) { | |
20148 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'"); | |
20149 | } | |
20150 | arg5 = static_cast< long >(val5); | |
20151 | } | |
20152 | if (obj5) { | |
093d3ff1 | 20153 | { |
0085ce49 RD |
20154 | arg6 = wxString_in_helper(obj5); |
20155 | if (arg6 == NULL) SWIG_fail; | |
20156 | temp6 = true; | |
093d3ff1 | 20157 | } |
0085ce49 RD |
20158 | } |
20159 | { | |
20160 | if (!wxPyCheckForApp()) SWIG_fail; | |
20161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20162 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20163 | wxPyEndAllowThreads(__tstate); | |
20164 | if (PyErr_Occurred()) SWIG_fail; | |
20165 | } | |
20166 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 ); | |
20167 | { | |
20168 | if (temp6) | |
20169 | delete arg6; | |
20170 | } | |
20171 | return resultobj; | |
20172 | fail: | |
20173 | { | |
20174 | if (temp6) | |
20175 | delete arg6; | |
20176 | } | |
20177 | return NULL; | |
d14a1e28 RD |
20178 | } |
20179 | ||
20180 | ||
0085ce49 RD |
20181 | SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20182 | PyObject *resultobj = 0; | |
20183 | wxNotebook *result = 0 ; | |
20184 | ||
20185 | if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail; | |
20186 | { | |
20187 | if (!wxPyCheckForApp()) SWIG_fail; | |
20188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20189 | result = (wxNotebook *)new wxNotebook(); | |
20190 | wxPyEndAllowThreads(__tstate); | |
20191 | if (PyErr_Occurred()) SWIG_fail; | |
20192 | } | |
20193 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 ); | |
20194 | return resultobj; | |
20195 | fail: | |
20196 | return NULL; | |
20197 | } | |
20198 | ||
20199 | ||
20200 | SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20201 | PyObject *resultobj = 0; | |
20202 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20203 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20204 | int arg3 = (int) -1 ; | |
20205 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20206 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20207 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20208 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20209 | long arg6 = (long) 0 ; | |
20210 | wxString const &arg7_defvalue = wxPyNotebookNameStr ; | |
20211 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20212 | bool result; | |
20213 | void *argp1 = 0 ; | |
20214 | int res1 = 0 ; | |
20215 | void *argp2 = 0 ; | |
20216 | int res2 = 0 ; | |
20217 | int val3 ; | |
20218 | int ecode3 = 0 ; | |
20219 | wxPoint temp4 ; | |
20220 | wxSize temp5 ; | |
20221 | long val6 ; | |
20222 | int ecode6 = 0 ; | |
20223 | bool temp7 = false ; | |
20224 | PyObject * obj0 = 0 ; | |
20225 | PyObject * obj1 = 0 ; | |
20226 | PyObject * obj2 = 0 ; | |
20227 | PyObject * obj3 = 0 ; | |
20228 | PyObject * obj4 = 0 ; | |
20229 | PyObject * obj5 = 0 ; | |
20230 | PyObject * obj6 = 0 ; | |
20231 | char * kwnames[] = { | |
20232 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20233 | }; | |
20234 | ||
20235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20237 | if (!SWIG_IsOK(res1)) { | |
20238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20239 | } | |
20240 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20241 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20242 | if (!SWIG_IsOK(res2)) { | |
20243 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20244 | } | |
20245 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20246 | if (obj2) { | |
20247 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20248 | if (!SWIG_IsOK(ecode3)) { | |
20249 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
20250 | } | |
20251 | arg3 = static_cast< int >(val3); | |
20252 | } | |
20253 | if (obj3) { | |
093d3ff1 | 20254 | { |
0085ce49 RD |
20255 | arg4 = &temp4; |
20256 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 20257 | } |
0085ce49 RD |
20258 | } |
20259 | if (obj4) { | |
d14a1e28 | 20260 | { |
0085ce49 RD |
20261 | arg5 = &temp5; |
20262 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 20263 | } |
0085ce49 RD |
20264 | } |
20265 | if (obj5) { | |
20266 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20267 | if (!SWIG_IsOK(ecode6)) { | |
20268 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
20269 | } | |
20270 | arg6 = static_cast< long >(val6); | |
20271 | } | |
20272 | if (obj6) { | |
4f89f6a3 | 20273 | { |
0085ce49 RD |
20274 | arg7 = wxString_in_helper(obj6); |
20275 | if (arg7 == NULL) SWIG_fail; | |
20276 | temp7 = true; | |
4f89f6a3 | 20277 | } |
0085ce49 RD |
20278 | } |
20279 | { | |
20280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20281 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20282 | wxPyEndAllowThreads(__tstate); | |
20283 | if (PyErr_Occurred()) SWIG_fail; | |
20284 | } | |
20285 | { | |
20286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20287 | } | |
20288 | { | |
20289 | if (temp7) | |
20290 | delete arg7; | |
20291 | } | |
20292 | return resultobj; | |
20293 | fail: | |
20294 | { | |
20295 | if (temp7) | |
20296 | delete arg7; | |
20297 | } | |
20298 | return NULL; | |
d14a1e28 RD |
20299 | } |
20300 | ||
20301 | ||
0085ce49 RD |
20302 | SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20303 | PyObject *resultobj = 0; | |
20304 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20305 | int result; | |
20306 | void *argp1 = 0 ; | |
20307 | int res1 = 0 ; | |
20308 | PyObject *swig_obj[1] ; | |
20309 | ||
20310 | if (!args) SWIG_fail; | |
20311 | swig_obj[0] = args; | |
20312 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20313 | if (!SWIG_IsOK(res1)) { | |
20314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'"); | |
20315 | } | |
20316 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20317 | { | |
20318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20319 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
20320 | wxPyEndAllowThreads(__tstate); | |
20321 | if (PyErr_Occurred()) SWIG_fail; | |
20322 | } | |
20323 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20324 | return resultobj; | |
20325 | fail: | |
20326 | return NULL; | |
20327 | } | |
20328 | ||
20329 | ||
20330 | SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20331 | PyObject *resultobj = 0; | |
20332 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20333 | wxSize *arg2 = 0 ; | |
20334 | void *argp1 = 0 ; | |
20335 | int res1 = 0 ; | |
20336 | wxSize temp2 ; | |
20337 | PyObject * obj0 = 0 ; | |
20338 | PyObject * obj1 = 0 ; | |
20339 | char * kwnames[] = { | |
20340 | (char *) "self",(char *) "padding", NULL | |
20341 | }; | |
20342 | ||
20343 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail; | |
20344 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20345 | if (!SWIG_IsOK(res1)) { | |
20346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20347 | } | |
20348 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20349 | { | |
20350 | arg2 = &temp2; | |
20351 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20352 | } | |
20353 | { | |
20354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20355 | (arg1)->SetPadding((wxSize const &)*arg2); | |
20356 | wxPyEndAllowThreads(__tstate); | |
20357 | if (PyErr_Occurred()) SWIG_fail; | |
20358 | } | |
20359 | resultobj = SWIG_Py_Void(); | |
20360 | return resultobj; | |
20361 | fail: | |
20362 | return NULL; | |
20363 | } | |
20364 | ||
20365 | ||
20366 | SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20367 | PyObject *resultobj = 0; | |
20368 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20369 | wxSize *arg2 = 0 ; | |
20370 | void *argp1 = 0 ; | |
20371 | int res1 = 0 ; | |
20372 | wxSize temp2 ; | |
20373 | PyObject * obj0 = 0 ; | |
20374 | PyObject * obj1 = 0 ; | |
20375 | char * kwnames[] = { | |
20376 | (char *) "self",(char *) "sz", NULL | |
20377 | }; | |
20378 | ||
20379 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
20380 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20381 | if (!SWIG_IsOK(res1)) { | |
20382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20383 | } | |
20384 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20385 | { | |
20386 | arg2 = &temp2; | |
20387 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20388 | } | |
20389 | { | |
20390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20391 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
20392 | wxPyEndAllowThreads(__tstate); | |
20393 | if (PyErr_Occurred()) SWIG_fail; | |
20394 | } | |
20395 | resultobj = SWIG_Py_Void(); | |
20396 | return resultobj; | |
20397 | fail: | |
20398 | return NULL; | |
20399 | } | |
20400 | ||
20401 | ||
20402 | SWIGINTERN PyObject *_wrap_Notebook_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20403 | PyObject *resultobj = 0; | |
20404 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20405 | wxPoint *arg2 = 0 ; | |
20406 | long *arg3 = (long *) 0 ; | |
20407 | int result; | |
20408 | void *argp1 = 0 ; | |
20409 | int res1 = 0 ; | |
20410 | wxPoint temp2 ; | |
20411 | long temp3 ; | |
20412 | int res3 = SWIG_TMPOBJ ; | |
20413 | PyObject * obj0 = 0 ; | |
20414 | PyObject * obj1 = 0 ; | |
20415 | char * kwnames[] = { | |
20416 | (char *) "self",(char *) "pt", NULL | |
20417 | }; | |
20418 | ||
20419 | arg3 = &temp3; | |
20420 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
20421 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20422 | if (!SWIG_IsOK(res1)) { | |
20423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_HitTest" "', expected argument " "1"" of type '" "wxNotebook const *""'"); | |
20424 | } | |
20425 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20426 | { | |
20427 | arg2 = &temp2; | |
20428 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20429 | } | |
20430 | { | |
20431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20432 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
20433 | wxPyEndAllowThreads(__tstate); | |
20434 | if (PyErr_Occurred()) SWIG_fail; | |
20435 | } | |
20436 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20437 | if (SWIG_IsTmpObj(res3)) { | |
20438 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
20439 | } else { | |
20440 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20441 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
20442 | } | |
20443 | return resultobj; | |
20444 | fail: | |
20445 | return NULL; | |
d14a1e28 RD |
20446 | } |
20447 | ||
20448 | ||
0085ce49 RD |
20449 | SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20450 | PyObject *resultobj = 0; | |
20451 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20452 | wxColour result; | |
20453 | void *argp1 = 0 ; | |
20454 | int res1 = 0 ; | |
20455 | PyObject *swig_obj[1] ; | |
20456 | ||
20457 | if (!args) SWIG_fail; | |
20458 | swig_obj[0] = args; | |
20459 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20460 | if (!SWIG_IsOK(res1)) { | |
20461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'"); | |
20462 | } | |
20463 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20464 | { | |
20465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20466 | result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour(); | |
20467 | wxPyEndAllowThreads(__tstate); | |
20468 | if (PyErr_Occurred()) SWIG_fail; | |
20469 | } | |
20470 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
20471 | return resultobj; | |
20472 | fail: | |
20473 | return NULL; | |
20474 | } | |
20475 | ||
20476 | ||
20477 | SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20478 | PyObject *resultobj = 0; | |
20479 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
20480 | SwigValueWrapper<wxVisualAttributes > result; | |
20481 | int val1 ; | |
20482 | int ecode1 = 0 ; | |
20483 | PyObject * obj0 = 0 ; | |
20484 | char * kwnames[] = { | |
20485 | (char *) "variant", NULL | |
20486 | }; | |
20487 | ||
20488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
20489 | if (obj0) { | |
20490 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20491 | if (!SWIG_IsOK(ecode1)) { | |
20492 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
20493 | } | |
20494 | arg1 = static_cast< wxWindowVariant >(val1); | |
20495 | } | |
20496 | { | |
20497 | if (!wxPyCheckForApp()) SWIG_fail; | |
20498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20499 | result = wxNotebook::GetClassDefaultAttributes(arg1); | |
20500 | wxPyEndAllowThreads(__tstate); | |
20501 | if (PyErr_Occurred()) SWIG_fail; | |
20502 | } | |
20503 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
20504 | return resultobj; | |
20505 | fail: | |
20506 | return NULL; | |
20507 | } | |
20508 | ||
20509 | ||
20510 | SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20511 | PyObject *obj; | |
20512 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20513 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj)); | |
20514 | return SWIG_Py_Void(); | |
20515 | } | |
20516 | ||
20517 | SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20518 | return SWIG_Python_InitShadowInstance(args); | |
20519 | } | |
20520 | ||
20521 | SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20522 | PyObject *resultobj = 0; | |
20523 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20524 | int arg2 = (int) 0 ; | |
20525 | int arg3 = (int) -1 ; | |
20526 | int arg4 = (int) -1 ; | |
20527 | wxNotebookEvent *result = 0 ; | |
20528 | int val1 ; | |
20529 | int ecode1 = 0 ; | |
20530 | int val2 ; | |
20531 | int ecode2 = 0 ; | |
20532 | int val3 ; | |
20533 | int ecode3 = 0 ; | |
20534 | int val4 ; | |
20535 | int ecode4 = 0 ; | |
20536 | PyObject * obj0 = 0 ; | |
20537 | PyObject * obj1 = 0 ; | |
20538 | PyObject * obj2 = 0 ; | |
20539 | PyObject * obj3 = 0 ; | |
20540 | char * kwnames[] = { | |
20541 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
20542 | }; | |
20543 | ||
20544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20545 | if (obj0) { | |
20546 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20547 | if (!SWIG_IsOK(ecode1)) { | |
20548 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
20549 | } | |
20550 | arg1 = static_cast< wxEventType >(val1); | |
20551 | } | |
20552 | if (obj1) { | |
20553 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20554 | if (!SWIG_IsOK(ecode2)) { | |
20555 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
20556 | } | |
20557 | arg2 = static_cast< int >(val2); | |
20558 | } | |
20559 | if (obj2) { | |
20560 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20561 | if (!SWIG_IsOK(ecode3)) { | |
20562 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
20563 | } | |
20564 | arg3 = static_cast< int >(val3); | |
20565 | } | |
20566 | if (obj3) { | |
20567 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20568 | if (!SWIG_IsOK(ecode4)) { | |
20569 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
20570 | } | |
20571 | arg4 = static_cast< int >(val4); | |
20572 | } | |
20573 | { | |
20574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20575 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
20576 | wxPyEndAllowThreads(__tstate); | |
20577 | if (PyErr_Occurred()) SWIG_fail; | |
20578 | } | |
20579 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 ); | |
20580 | return resultobj; | |
20581 | fail: | |
20582 | return NULL; | |
20583 | } | |
20584 | ||
20585 | ||
20586 | SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20587 | PyObject *obj; | |
20588 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20589 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj)); | |
20590 | return SWIG_Py_Void(); | |
20591 | } | |
20592 | ||
20593 | SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20594 | return SWIG_Python_InitShadowInstance(args); | |
20595 | } | |
20596 | ||
20597 | SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20598 | PyObject *resultobj = 0; | |
20599 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20600 | int arg2 = (int) -1 ; | |
20601 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20602 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20603 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20604 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20605 | long arg5 = (long) 0 ; | |
20606 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
20607 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20608 | wxListbook *result = 0 ; | |
20609 | void *argp1 = 0 ; | |
20610 | int res1 = 0 ; | |
20611 | int val2 ; | |
20612 | int ecode2 = 0 ; | |
20613 | wxPoint temp3 ; | |
20614 | wxSize temp4 ; | |
20615 | long val5 ; | |
20616 | int ecode5 = 0 ; | |
20617 | bool temp6 = false ; | |
20618 | PyObject * obj0 = 0 ; | |
20619 | PyObject * obj1 = 0 ; | |
20620 | PyObject * obj2 = 0 ; | |
20621 | PyObject * obj3 = 0 ; | |
20622 | PyObject * obj4 = 0 ; | |
20623 | PyObject * obj5 = 0 ; | |
20624 | char * kwnames[] = { | |
20625 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20626 | }; | |
20627 | ||
20628 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20629 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20630 | if (!SWIG_IsOK(res1)) { | |
20631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20632 | } | |
20633 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20634 | if (obj1) { | |
20635 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20636 | if (!SWIG_IsOK(ecode2)) { | |
20637 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'"); | |
20638 | } | |
20639 | arg2 = static_cast< int >(val2); | |
20640 | } | |
20641 | if (obj2) { | |
093d3ff1 | 20642 | { |
0085ce49 RD |
20643 | arg3 = &temp3; |
20644 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 20645 | } |
0085ce49 RD |
20646 | } |
20647 | if (obj3) { | |
093d3ff1 | 20648 | { |
0085ce49 RD |
20649 | arg4 = &temp4; |
20650 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 20651 | } |
0085ce49 RD |
20652 | } |
20653 | if (obj4) { | |
20654 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
20655 | if (!SWIG_IsOK(ecode5)) { | |
20656 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'"); | |
20657 | } | |
20658 | arg5 = static_cast< long >(val5); | |
20659 | } | |
20660 | if (obj5) { | |
d14a1e28 | 20661 | { |
0085ce49 RD |
20662 | arg6 = wxString_in_helper(obj5); |
20663 | if (arg6 == NULL) SWIG_fail; | |
20664 | temp6 = true; | |
d14a1e28 | 20665 | } |
0085ce49 RD |
20666 | } |
20667 | { | |
20668 | if (!wxPyCheckForApp()) SWIG_fail; | |
20669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20670 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20671 | wxPyEndAllowThreads(__tstate); | |
20672 | if (PyErr_Occurred()) SWIG_fail; | |
20673 | } | |
20674 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 ); | |
20675 | { | |
20676 | if (temp6) | |
20677 | delete arg6; | |
20678 | } | |
20679 | return resultobj; | |
20680 | fail: | |
20681 | { | |
20682 | if (temp6) | |
20683 | delete arg6; | |
20684 | } | |
20685 | return NULL; | |
d14a1e28 RD |
20686 | } |
20687 | ||
20688 | ||
0085ce49 RD |
20689 | SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20690 | PyObject *resultobj = 0; | |
20691 | wxListbook *result = 0 ; | |
20692 | ||
20693 | if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail; | |
20694 | { | |
20695 | if (!wxPyCheckForApp()) SWIG_fail; | |
20696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20697 | result = (wxListbook *)new wxListbook(); | |
20698 | wxPyEndAllowThreads(__tstate); | |
20699 | if (PyErr_Occurred()) SWIG_fail; | |
20700 | } | |
20701 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 ); | |
20702 | return resultobj; | |
20703 | fail: | |
20704 | return NULL; | |
20705 | } | |
20706 | ||
20707 | ||
20708 | SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20709 | PyObject *resultobj = 0; | |
20710 | wxListbook *arg1 = (wxListbook *) 0 ; | |
20711 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20712 | int arg3 = (int) -1 ; | |
20713 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20714 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20715 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20716 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20717 | long arg6 = (long) 0 ; | |
20718 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
20719 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20720 | bool result; | |
20721 | void *argp1 = 0 ; | |
20722 | int res1 = 0 ; | |
20723 | void *argp2 = 0 ; | |
20724 | int res2 = 0 ; | |
20725 | int val3 ; | |
20726 | int ecode3 = 0 ; | |
20727 | wxPoint temp4 ; | |
20728 | wxSize temp5 ; | |
20729 | long val6 ; | |
20730 | int ecode6 = 0 ; | |
20731 | bool temp7 = false ; | |
20732 | PyObject * obj0 = 0 ; | |
20733 | PyObject * obj1 = 0 ; | |
20734 | PyObject * obj2 = 0 ; | |
20735 | PyObject * obj3 = 0 ; | |
20736 | PyObject * obj4 = 0 ; | |
20737 | PyObject * obj5 = 0 ; | |
20738 | PyObject * obj6 = 0 ; | |
20739 | char * kwnames[] = { | |
20740 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20741 | }; | |
20742 | ||
20743 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20744 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 ); | |
20745 | if (!SWIG_IsOK(res1)) { | |
20746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'"); | |
20747 | } | |
20748 | arg1 = reinterpret_cast< wxListbook * >(argp1); | |
20749 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20750 | if (!SWIG_IsOK(res2)) { | |
20751 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20752 | } | |
20753 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20754 | if (obj2) { | |
20755 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20756 | if (!SWIG_IsOK(ecode3)) { | |
20757 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'"); | |
20758 | } | |
20759 | arg3 = static_cast< int >(val3); | |
20760 | } | |
20761 | if (obj3) { | |
22bfe96c | 20762 | { |
0085ce49 RD |
20763 | arg4 = &temp4; |
20764 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22bfe96c | 20765 | } |
0085ce49 RD |
20766 | } |
20767 | if (obj4) { | |
22bfe96c | 20768 | { |
0085ce49 RD |
20769 | arg5 = &temp5; |
20770 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22bfe96c | 20771 | } |
0085ce49 RD |
20772 | } |
20773 | if (obj5) { | |
20774 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20775 | if (!SWIG_IsOK(ecode6)) { | |
20776 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'"); | |
20777 | } | |
20778 | arg6 = static_cast< long >(val6); | |
20779 | } | |
20780 | if (obj6) { | |
b2dc1044 | 20781 | { |
0085ce49 RD |
20782 | arg7 = wxString_in_helper(obj6); |
20783 | if (arg7 == NULL) SWIG_fail; | |
20784 | temp7 = true; | |
b2dc1044 | 20785 | } |
0085ce49 RD |
20786 | } |
20787 | { | |
20788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20789 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20790 | wxPyEndAllowThreads(__tstate); | |
20791 | if (PyErr_Occurred()) SWIG_fail; | |
20792 | } | |
20793 | { | |
20794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20795 | } | |
20796 | { | |
20797 | if (temp7) | |
20798 | delete arg7; | |
20799 | } | |
20800 | return resultobj; | |
20801 | fail: | |
20802 | { | |
20803 | if (temp7) | |
20804 | delete arg7; | |
20805 | } | |
20806 | return NULL; | |
b2dc1044 RD |
20807 | } |
20808 | ||
20809 | ||
0085ce49 RD |
20810 | SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20811 | PyObject *resultobj = 0; | |
20812 | wxListbook *arg1 = (wxListbook *) 0 ; | |
20813 | wxListView *result = 0 ; | |
20814 | void *argp1 = 0 ; | |
20815 | int res1 = 0 ; | |
20816 | PyObject *swig_obj[1] ; | |
20817 | ||
20818 | if (!args) SWIG_fail; | |
20819 | swig_obj[0] = args; | |
20820 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 ); | |
20821 | if (!SWIG_IsOK(res1)) { | |
20822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'"); | |
20823 | } | |
20824 | arg1 = reinterpret_cast< wxListbook * >(argp1); | |
20825 | { | |
20826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20827 | result = (wxListView *)(arg1)->GetListView(); | |
20828 | wxPyEndAllowThreads(__tstate); | |
20829 | if (PyErr_Occurred()) SWIG_fail; | |
20830 | } | |
20831 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 ); | |
20832 | return resultobj; | |
20833 | fail: | |
20834 | return NULL; | |
20835 | } | |
20836 | ||
20837 | ||
20838 | SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20839 | PyObject *obj; | |
20840 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20841 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj)); | |
20842 | return SWIG_Py_Void(); | |
20843 | } | |
20844 | ||
20845 | SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20846 | return SWIG_Python_InitShadowInstance(args); | |
20847 | } | |
20848 | ||
20849 | SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20850 | PyObject *resultobj = 0; | |
20851 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20852 | int arg2 = (int) 0 ; | |
20853 | int arg3 = (int) -1 ; | |
20854 | int arg4 = (int) -1 ; | |
20855 | wxListbookEvent *result = 0 ; | |
20856 | int val1 ; | |
20857 | int ecode1 = 0 ; | |
20858 | int val2 ; | |
20859 | int ecode2 = 0 ; | |
20860 | int val3 ; | |
20861 | int ecode3 = 0 ; | |
20862 | int val4 ; | |
20863 | int ecode4 = 0 ; | |
20864 | PyObject * obj0 = 0 ; | |
20865 | PyObject * obj1 = 0 ; | |
20866 | PyObject * obj2 = 0 ; | |
20867 | PyObject * obj3 = 0 ; | |
20868 | char * kwnames[] = { | |
20869 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
20870 | }; | |
20871 | ||
20872 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20873 | if (obj0) { | |
20874 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20875 | if (!SWIG_IsOK(ecode1)) { | |
20876 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
20877 | } | |
20878 | arg1 = static_cast< wxEventType >(val1); | |
20879 | } | |
20880 | if (obj1) { | |
20881 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20882 | if (!SWIG_IsOK(ecode2)) { | |
20883 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'"); | |
20884 | } | |
20885 | arg2 = static_cast< int >(val2); | |
20886 | } | |
20887 | if (obj2) { | |
20888 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20889 | if (!SWIG_IsOK(ecode3)) { | |
20890 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'"); | |
20891 | } | |
20892 | arg3 = static_cast< int >(val3); | |
20893 | } | |
20894 | if (obj3) { | |
20895 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20896 | if (!SWIG_IsOK(ecode4)) { | |
20897 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'"); | |
20898 | } | |
20899 | arg4 = static_cast< int >(val4); | |
20900 | } | |
20901 | { | |
20902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20903 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
20904 | wxPyEndAllowThreads(__tstate); | |
20905 | if (PyErr_Occurred()) SWIG_fail; | |
20906 | } | |
20907 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 ); | |
20908 | return resultobj; | |
20909 | fail: | |
20910 | return NULL; | |
20911 | } | |
20912 | ||
20913 | ||
20914 | SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20915 | PyObject *obj; | |
20916 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20917 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj)); | |
20918 | return SWIG_Py_Void(); | |
20919 | } | |
20920 | ||
20921 | SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20922 | return SWIG_Python_InitShadowInstance(args); | |
20923 | } | |
20924 | ||
20925 | SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20926 | PyObject *resultobj = 0; | |
20927 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20928 | int arg2 ; | |
20929 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20930 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20931 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20932 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20933 | long arg5 = (long) 0 ; | |
20934 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
20935 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20936 | wxChoicebook *result = 0 ; | |
20937 | void *argp1 = 0 ; | |
20938 | int res1 = 0 ; | |
20939 | int val2 ; | |
20940 | int ecode2 = 0 ; | |
20941 | wxPoint temp3 ; | |
20942 | wxSize temp4 ; | |
20943 | long val5 ; | |
20944 | int ecode5 = 0 ; | |
20945 | bool temp6 = false ; | |
20946 | PyObject * obj0 = 0 ; | |
20947 | PyObject * obj1 = 0 ; | |
20948 | PyObject * obj2 = 0 ; | |
20949 | PyObject * obj3 = 0 ; | |
20950 | PyObject * obj4 = 0 ; | |
20951 | PyObject * obj5 = 0 ; | |
20952 | char * kwnames[] = { | |
20953 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20954 | }; | |
20955 | ||
20956 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20957 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20958 | if (!SWIG_IsOK(res1)) { | |
20959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20960 | } | |
20961 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20962 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20963 | if (!SWIG_IsOK(ecode2)) { | |
20964 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'"); | |
20965 | } | |
20966 | arg2 = static_cast< int >(val2); | |
20967 | if (obj2) { | |
d14a1e28 | 20968 | { |
0085ce49 RD |
20969 | arg3 = &temp3; |
20970 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 20971 | } |
0085ce49 RD |
20972 | } |
20973 | if (obj3) { | |
d14a1e28 | 20974 | { |
0085ce49 RD |
20975 | arg4 = &temp4; |
20976 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 20977 | } |
0085ce49 RD |
20978 | } |
20979 | if (obj4) { | |
20980 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
20981 | if (!SWIG_IsOK(ecode5)) { | |
20982 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'"); | |
20983 | } | |
20984 | arg5 = static_cast< long >(val5); | |
20985 | } | |
20986 | if (obj5) { | |
d14a1e28 | 20987 | { |
0085ce49 RD |
20988 | arg6 = wxString_in_helper(obj5); |
20989 | if (arg6 == NULL) SWIG_fail; | |
20990 | temp6 = true; | |
d14a1e28 | 20991 | } |
0085ce49 RD |
20992 | } |
20993 | { | |
20994 | if (!wxPyCheckForApp()) SWIG_fail; | |
20995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20996 | result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20997 | wxPyEndAllowThreads(__tstate); | |
20998 | if (PyErr_Occurred()) SWIG_fail; | |
20999 | } | |
21000 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 ); | |
21001 | { | |
21002 | if (temp6) | |
21003 | delete arg6; | |
21004 | } | |
21005 | return resultobj; | |
21006 | fail: | |
21007 | { | |
21008 | if (temp6) | |
21009 | delete arg6; | |
21010 | } | |
21011 | return NULL; | |
d14a1e28 RD |
21012 | } |
21013 | ||
21014 | ||
0085ce49 RD |
21015 | SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21016 | PyObject *resultobj = 0; | |
21017 | wxChoicebook *result = 0 ; | |
21018 | ||
21019 | if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail; | |
21020 | { | |
21021 | if (!wxPyCheckForApp()) SWIG_fail; | |
21022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21023 | result = (wxChoicebook *)new wxChoicebook(); | |
21024 | wxPyEndAllowThreads(__tstate); | |
21025 | if (PyErr_Occurred()) SWIG_fail; | |
21026 | } | |
21027 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 ); | |
21028 | return resultobj; | |
21029 | fail: | |
21030 | return NULL; | |
21031 | } | |
21032 | ||
21033 | ||
21034 | SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21035 | PyObject *resultobj = 0; | |
21036 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
21037 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21038 | int arg3 ; | |
21039 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21040 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21041 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21042 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21043 | long arg6 = (long) 0 ; | |
21044 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
21045 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21046 | bool result; | |
21047 | void *argp1 = 0 ; | |
21048 | int res1 = 0 ; | |
21049 | void *argp2 = 0 ; | |
21050 | int res2 = 0 ; | |
21051 | int val3 ; | |
21052 | int ecode3 = 0 ; | |
21053 | wxPoint temp4 ; | |
21054 | wxSize temp5 ; | |
21055 | long val6 ; | |
21056 | int ecode6 = 0 ; | |
21057 | bool temp7 = false ; | |
21058 | PyObject * obj0 = 0 ; | |
21059 | PyObject * obj1 = 0 ; | |
21060 | PyObject * obj2 = 0 ; | |
21061 | PyObject * obj3 = 0 ; | |
21062 | PyObject * obj4 = 0 ; | |
21063 | PyObject * obj5 = 0 ; | |
21064 | PyObject * obj6 = 0 ; | |
21065 | char * kwnames[] = { | |
21066 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21067 | }; | |
21068 | ||
21069 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21070 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 ); | |
21071 | if (!SWIG_IsOK(res1)) { | |
21072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'"); | |
21073 | } | |
21074 | arg1 = reinterpret_cast< wxChoicebook * >(argp1); | |
21075 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21076 | if (!SWIG_IsOK(res2)) { | |
21077 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21078 | } | |
21079 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21080 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21081 | if (!SWIG_IsOK(ecode3)) { | |
21082 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
21083 | } | |
21084 | arg3 = static_cast< int >(val3); | |
21085 | if (obj3) { | |
4f89f6a3 | 21086 | { |
0085ce49 RD |
21087 | arg4 = &temp4; |
21088 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 21089 | } |
0085ce49 RD |
21090 | } |
21091 | if (obj4) { | |
d14a1e28 | 21092 | { |
0085ce49 RD |
21093 | arg5 = &temp5; |
21094 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 21095 | } |
0085ce49 RD |
21096 | } |
21097 | if (obj5) { | |
21098 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21099 | if (!SWIG_IsOK(ecode6)) { | |
21100 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
21101 | } | |
21102 | arg6 = static_cast< long >(val6); | |
21103 | } | |
21104 | if (obj6) { | |
d14a1e28 | 21105 | { |
0085ce49 RD |
21106 | arg7 = wxString_in_helper(obj6); |
21107 | if (arg7 == NULL) SWIG_fail; | |
21108 | temp7 = true; | |
d14a1e28 | 21109 | } |
0085ce49 RD |
21110 | } |
21111 | { | |
21112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21113 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21114 | wxPyEndAllowThreads(__tstate); | |
21115 | if (PyErr_Occurred()) SWIG_fail; | |
21116 | } | |
21117 | { | |
21118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21119 | } | |
21120 | { | |
21121 | if (temp7) | |
21122 | delete arg7; | |
21123 | } | |
21124 | return resultobj; | |
21125 | fail: | |
21126 | { | |
21127 | if (temp7) | |
21128 | delete arg7; | |
21129 | } | |
21130 | return NULL; | |
d14a1e28 RD |
21131 | } |
21132 | ||
21133 | ||
0085ce49 RD |
21134 | SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21135 | PyObject *resultobj = 0; | |
21136 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
21137 | wxChoice *result = 0 ; | |
21138 | void *argp1 = 0 ; | |
21139 | int res1 = 0 ; | |
21140 | PyObject *swig_obj[1] ; | |
21141 | ||
21142 | if (!args) SWIG_fail; | |
21143 | swig_obj[0] = args; | |
21144 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 ); | |
21145 | if (!SWIG_IsOK(res1)) { | |
21146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'"); | |
21147 | } | |
21148 | arg1 = reinterpret_cast< wxChoicebook * >(argp1); | |
21149 | { | |
21150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21151 | result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl(); | |
21152 | wxPyEndAllowThreads(__tstate); | |
21153 | if (PyErr_Occurred()) SWIG_fail; | |
21154 | } | |
21155 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 ); | |
21156 | return resultobj; | |
21157 | fail: | |
21158 | return NULL; | |
21159 | } | |
21160 | ||
21161 | ||
21162 | SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21163 | PyObject *obj; | |
21164 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21165 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj)); | |
21166 | return SWIG_Py_Void(); | |
21167 | } | |
21168 | ||
21169 | SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21170 | return SWIG_Python_InitShadowInstance(args); | |
21171 | } | |
21172 | ||
21173 | SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21174 | PyObject *resultobj = 0; | |
21175 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21176 | int arg2 = (int) 0 ; | |
21177 | int arg3 = (int) -1 ; | |
21178 | int arg4 = (int) -1 ; | |
21179 | wxChoicebookEvent *result = 0 ; | |
21180 | int val1 ; | |
21181 | int ecode1 = 0 ; | |
21182 | int val2 ; | |
21183 | int ecode2 = 0 ; | |
21184 | int val3 ; | |
21185 | int ecode3 = 0 ; | |
21186 | int val4 ; | |
21187 | int ecode4 = 0 ; | |
21188 | PyObject * obj0 = 0 ; | |
21189 | PyObject * obj1 = 0 ; | |
21190 | PyObject * obj2 = 0 ; | |
21191 | PyObject * obj3 = 0 ; | |
21192 | char * kwnames[] = { | |
21193 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
21194 | }; | |
21195 | ||
21196 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21197 | if (obj0) { | |
21198 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21199 | if (!SWIG_IsOK(ecode1)) { | |
21200 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
21201 | } | |
21202 | arg1 = static_cast< wxEventType >(val1); | |
21203 | } | |
21204 | if (obj1) { | |
21205 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21206 | if (!SWIG_IsOK(ecode2)) { | |
21207 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
21208 | } | |
21209 | arg2 = static_cast< int >(val2); | |
21210 | } | |
21211 | if (obj2) { | |
21212 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21213 | if (!SWIG_IsOK(ecode3)) { | |
21214 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
21215 | } | |
21216 | arg3 = static_cast< int >(val3); | |
21217 | } | |
21218 | if (obj3) { | |
21219 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21220 | if (!SWIG_IsOK(ecode4)) { | |
21221 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
21222 | } | |
21223 | arg4 = static_cast< int >(val4); | |
21224 | } | |
21225 | { | |
21226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21227 | result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4); | |
21228 | wxPyEndAllowThreads(__tstate); | |
21229 | if (PyErr_Occurred()) SWIG_fail; | |
21230 | } | |
21231 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 ); | |
21232 | return resultobj; | |
21233 | fail: | |
21234 | return NULL; | |
21235 | } | |
21236 | ||
21237 | ||
21238 | SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21239 | PyObject *obj; | |
21240 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21241 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj)); | |
21242 | return SWIG_Py_Void(); | |
21243 | } | |
21244 | ||
21245 | SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21246 | return SWIG_Python_InitShadowInstance(args); | |
21247 | } | |
21248 | ||
21249 | SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21250 | PyObject *resultobj = 0; | |
21251 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21252 | int arg2 ; | |
21253 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21254 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21255 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21256 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21257 | long arg5 = (long) wxBK_DEFAULT ; | |
21258 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
21259 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21260 | wxTreebook *result = 0 ; | |
21261 | void *argp1 = 0 ; | |
21262 | int res1 = 0 ; | |
21263 | int val2 ; | |
21264 | int ecode2 = 0 ; | |
21265 | wxPoint temp3 ; | |
21266 | wxSize temp4 ; | |
21267 | long val5 ; | |
21268 | int ecode5 = 0 ; | |
21269 | bool temp6 = false ; | |
21270 | PyObject * obj0 = 0 ; | |
21271 | PyObject * obj1 = 0 ; | |
21272 | PyObject * obj2 = 0 ; | |
21273 | PyObject * obj3 = 0 ; | |
21274 | PyObject * obj4 = 0 ; | |
21275 | PyObject * obj5 = 0 ; | |
21276 | char * kwnames[] = { | |
21277 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21278 | }; | |
21279 | ||
21280 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21281 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21282 | if (!SWIG_IsOK(res1)) { | |
21283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21284 | } | |
21285 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21286 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21287 | if (!SWIG_IsOK(ecode2)) { | |
21288 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'"); | |
21289 | } | |
21290 | arg2 = static_cast< int >(val2); | |
21291 | if (obj2) { | |
093d3ff1 | 21292 | { |
0085ce49 RD |
21293 | arg3 = &temp3; |
21294 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 21295 | } |
0085ce49 RD |
21296 | } |
21297 | if (obj3) { | |
d14a1e28 | 21298 | { |
0085ce49 RD |
21299 | arg4 = &temp4; |
21300 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 21301 | } |
0085ce49 RD |
21302 | } |
21303 | if (obj4) { | |
21304 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21305 | if (!SWIG_IsOK(ecode5)) { | |
21306 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'"); | |
21307 | } | |
21308 | arg5 = static_cast< long >(val5); | |
21309 | } | |
21310 | if (obj5) { | |
093d3ff1 | 21311 | { |
0085ce49 RD |
21312 | arg6 = wxString_in_helper(obj5); |
21313 | if (arg6 == NULL) SWIG_fail; | |
21314 | temp6 = true; | |
093d3ff1 | 21315 | } |
0085ce49 RD |
21316 | } |
21317 | { | |
21318 | if (!wxPyCheckForApp()) SWIG_fail; | |
21319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21320 | result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21321 | wxPyEndAllowThreads(__tstate); | |
21322 | if (PyErr_Occurred()) SWIG_fail; | |
21323 | } | |
21324 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 ); | |
21325 | { | |
21326 | if (temp6) | |
21327 | delete arg6; | |
21328 | } | |
21329 | return resultobj; | |
21330 | fail: | |
21331 | { | |
21332 | if (temp6) | |
21333 | delete arg6; | |
21334 | } | |
21335 | return NULL; | |
d14a1e28 RD |
21336 | } |
21337 | ||
21338 | ||
0085ce49 RD |
21339 | SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21340 | PyObject *resultobj = 0; | |
21341 | wxTreebook *result = 0 ; | |
21342 | ||
21343 | if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail; | |
21344 | { | |
21345 | if (!wxPyCheckForApp()) SWIG_fail; | |
21346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21347 | result = (wxTreebook *)new wxTreebook(); | |
21348 | wxPyEndAllowThreads(__tstate); | |
21349 | if (PyErr_Occurred()) SWIG_fail; | |
21350 | } | |
21351 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 ); | |
21352 | return resultobj; | |
21353 | fail: | |
21354 | return NULL; | |
21355 | } | |
21356 | ||
21357 | ||
21358 | SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21359 | PyObject *resultobj = 0; | |
21360 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21361 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21362 | int arg3 ; | |
21363 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21364 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21365 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21366 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21367 | long arg6 = (long) wxBK_DEFAULT ; | |
21368 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
21369 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21370 | bool result; | |
21371 | void *argp1 = 0 ; | |
21372 | int res1 = 0 ; | |
21373 | void *argp2 = 0 ; | |
21374 | int res2 = 0 ; | |
21375 | int val3 ; | |
21376 | int ecode3 = 0 ; | |
21377 | wxPoint temp4 ; | |
21378 | wxSize temp5 ; | |
21379 | long val6 ; | |
21380 | int ecode6 = 0 ; | |
21381 | bool temp7 = false ; | |
21382 | PyObject * obj0 = 0 ; | |
21383 | PyObject * obj1 = 0 ; | |
21384 | PyObject * obj2 = 0 ; | |
21385 | PyObject * obj3 = 0 ; | |
21386 | PyObject * obj4 = 0 ; | |
21387 | PyObject * obj5 = 0 ; | |
21388 | PyObject * obj6 = 0 ; | |
21389 | char * kwnames[] = { | |
21390 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21391 | }; | |
21392 | ||
21393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21395 | if (!SWIG_IsOK(res1)) { | |
21396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
21397 | } | |
21398 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21399 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21400 | if (!SWIG_IsOK(res2)) { | |
21401 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21402 | } | |
21403 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21404 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21405 | if (!SWIG_IsOK(ecode3)) { | |
21406 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
21407 | } | |
21408 | arg3 = static_cast< int >(val3); | |
21409 | if (obj3) { | |
d14a1e28 | 21410 | { |
0085ce49 RD |
21411 | arg4 = &temp4; |
21412 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 21413 | } |
0085ce49 RD |
21414 | } |
21415 | if (obj4) { | |
093d3ff1 | 21416 | { |
0085ce49 RD |
21417 | arg5 = &temp5; |
21418 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 21419 | } |
0085ce49 RD |
21420 | } |
21421 | if (obj5) { | |
21422 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21423 | if (!SWIG_IsOK(ecode6)) { | |
21424 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
21425 | } | |
21426 | arg6 = static_cast< long >(val6); | |
21427 | } | |
21428 | if (obj6) { | |
093d3ff1 | 21429 | { |
0085ce49 RD |
21430 | arg7 = wxString_in_helper(obj6); |
21431 | if (arg7 == NULL) SWIG_fail; | |
21432 | temp7 = true; | |
093d3ff1 | 21433 | } |
0085ce49 RD |
21434 | } |
21435 | { | |
21436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21437 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21438 | wxPyEndAllowThreads(__tstate); | |
21439 | if (PyErr_Occurred()) SWIG_fail; | |
21440 | } | |
21441 | { | |
21442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21443 | } | |
21444 | { | |
21445 | if (temp7) | |
21446 | delete arg7; | |
21447 | } | |
21448 | return resultobj; | |
21449 | fail: | |
21450 | { | |
21451 | if (temp7) | |
21452 | delete arg7; | |
21453 | } | |
21454 | return NULL; | |
21455 | } | |
21456 | ||
21457 | ||
21458 | SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21459 | PyObject *resultobj = 0; | |
21460 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21461 | size_t arg2 ; | |
21462 | wxWindow *arg3 = (wxWindow *) 0 ; | |
21463 | wxString *arg4 = 0 ; | |
21464 | bool arg5 = (bool) false ; | |
21465 | int arg6 = (int) wxNOT_FOUND ; | |
21466 | bool result; | |
21467 | void *argp1 = 0 ; | |
21468 | int res1 = 0 ; | |
21469 | size_t val2 ; | |
21470 | int ecode2 = 0 ; | |
21471 | void *argp3 = 0 ; | |
21472 | int res3 = 0 ; | |
21473 | bool temp4 = false ; | |
21474 | bool val5 ; | |
21475 | int ecode5 = 0 ; | |
21476 | int val6 ; | |
21477 | int ecode6 = 0 ; | |
21478 | PyObject * obj0 = 0 ; | |
21479 | PyObject * obj1 = 0 ; | |
21480 | PyObject * obj2 = 0 ; | |
21481 | PyObject * obj3 = 0 ; | |
21482 | PyObject * obj4 = 0 ; | |
21483 | PyObject * obj5 = 0 ; | |
21484 | char * kwnames[] = { | |
21485 | (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
21486 | }; | |
21487 | ||
21488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21490 | if (!SWIG_IsOK(res1)) { | |
21491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
21492 | } | |
21493 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21494 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
21495 | if (!SWIG_IsOK(ecode2)) { | |
21496 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'"); | |
21497 | } | |
21498 | arg2 = static_cast< size_t >(val2); | |
21499 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21500 | if (!SWIG_IsOK(res3)) { | |
21501 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
21502 | } | |
21503 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
21504 | { | |
21505 | arg4 = wxString_in_helper(obj3); | |
21506 | if (arg4 == NULL) SWIG_fail; | |
21507 | temp4 = true; | |
21508 | } | |
21509 | if (obj4) { | |
21510 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
21511 | if (!SWIG_IsOK(ecode5)) { | |
21512 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'"); | |
21513 | } | |
21514 | arg5 = static_cast< bool >(val5); | |
21515 | } | |
21516 | if (obj5) { | |
21517 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
21518 | if (!SWIG_IsOK(ecode6)) { | |
21519 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'"); | |
21520 | } | |
21521 | arg6 = static_cast< int >(val6); | |
21522 | } | |
21523 | { | |
21524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21525 | result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
21526 | wxPyEndAllowThreads(__tstate); | |
21527 | if (PyErr_Occurred()) SWIG_fail; | |
21528 | } | |
21529 | { | |
21530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21531 | } | |
21532 | { | |
21533 | if (temp4) | |
21534 | delete arg4; | |
21535 | } | |
21536 | return resultobj; | |
21537 | fail: | |
21538 | { | |
21539 | if (temp4) | |
21540 | delete arg4; | |
21541 | } | |
21542 | return NULL; | |
21543 | } | |
21544 | ||
21545 | ||
21546 | SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21547 | PyObject *resultobj = 0; | |
21548 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21549 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21550 | wxString *arg3 = 0 ; | |
21551 | bool arg4 = (bool) false ; | |
21552 | int arg5 = (int) wxNOT_FOUND ; | |
21553 | bool result; | |
21554 | void *argp1 = 0 ; | |
21555 | int res1 = 0 ; | |
21556 | void *argp2 = 0 ; | |
21557 | int res2 = 0 ; | |
21558 | bool temp3 = false ; | |
21559 | bool val4 ; | |
21560 | int ecode4 = 0 ; | |
21561 | int val5 ; | |
21562 | int ecode5 = 0 ; | |
21563 | PyObject * obj0 = 0 ; | |
21564 | PyObject * obj1 = 0 ; | |
21565 | PyObject * obj2 = 0 ; | |
21566 | PyObject * obj3 = 0 ; | |
21567 | PyObject * obj4 = 0 ; | |
21568 | char * kwnames[] = { | |
21569 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
21570 | }; | |
21571 | ||
21572 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
21573 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21574 | if (!SWIG_IsOK(res1)) { | |
21575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
21576 | } | |
21577 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21578 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21579 | if (!SWIG_IsOK(res2)) { | |
21580 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21581 | } | |
21582 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21583 | { | |
21584 | arg3 = wxString_in_helper(obj2); | |
21585 | if (arg3 == NULL) SWIG_fail; | |
21586 | temp3 = true; | |
21587 | } | |
21588 | if (obj3) { | |
21589 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
21590 | if (!SWIG_IsOK(ecode4)) { | |
21591 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'"); | |
21592 | } | |
21593 | arg4 = static_cast< bool >(val4); | |
21594 | } | |
21595 | if (obj4) { | |
21596 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21597 | if (!SWIG_IsOK(ecode5)) { | |
21598 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'"); | |
21599 | } | |
21600 | arg5 = static_cast< int >(val5); | |
21601 | } | |
21602 | { | |
21603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21604 | result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
21605 | wxPyEndAllowThreads(__tstate); | |
21606 | if (PyErr_Occurred()) SWIG_fail; | |
21607 | } | |
21608 | { | |
21609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21610 | } | |
21611 | { | |
21612 | if (temp3) | |
21613 | delete arg3; | |
21614 | } | |
21615 | return resultobj; | |
21616 | fail: | |
21617 | { | |
21618 | if (temp3) | |
21619 | delete arg3; | |
21620 | } | |
21621 | return NULL; | |
21622 | } | |
21623 | ||
21624 | ||
21625 | SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21626 | PyObject *resultobj = 0; | |
21627 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21628 | size_t arg2 ; | |
21629 | bool result; | |
21630 | void *argp1 = 0 ; | |
21631 | int res1 = 0 ; | |
21632 | size_t val2 ; | |
21633 | int ecode2 = 0 ; | |
21634 | PyObject * obj0 = 0 ; | |
21635 | PyObject * obj1 = 0 ; | |
21636 | char * kwnames[] = { | |
21637 | (char *) "self",(char *) "pos", NULL | |
21638 | }; | |
21639 | ||
21640 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail; | |
21641 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21642 | if (!SWIG_IsOK(res1)) { | |
21643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
21644 | } | |
21645 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21646 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
21647 | if (!SWIG_IsOK(ecode2)) { | |
21648 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'"); | |
21649 | } | |
21650 | arg2 = static_cast< size_t >(val2); | |
21651 | { | |
21652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21653 | result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2); | |
21654 | wxPyEndAllowThreads(__tstate); | |
21655 | if (PyErr_Occurred()) SWIG_fail; | |
21656 | } | |
21657 | { | |
21658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21659 | } | |
21660 | return resultobj; | |
21661 | fail: | |
21662 | return NULL; | |
21663 | } | |
21664 | ||
21665 | ||
21666 | SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21667 | PyObject *resultobj = 0; | |
21668 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21669 | size_t arg2 ; | |
21670 | bool arg3 = (bool) true ; | |
21671 | bool result; | |
21672 | void *argp1 = 0 ; | |
21673 | int res1 = 0 ; | |
21674 | size_t val2 ; | |
21675 | int ecode2 = 0 ; | |
21676 | bool val3 ; | |
21677 | int ecode3 = 0 ; | |
21678 | PyObject * obj0 = 0 ; | |
21679 | PyObject * obj1 = 0 ; | |
21680 | PyObject * obj2 = 0 ; | |
21681 | char * kwnames[] = { | |
21682 | (char *) "self",(char *) "pos",(char *) "expand", NULL | |
21683 | }; | |
21684 | ||
21685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21687 | if (!SWIG_IsOK(res1)) { | |
21688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
21689 | } | |
21690 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21691 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
21692 | if (!SWIG_IsOK(ecode2)) { | |
21693 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'"); | |
21694 | } | |
21695 | arg2 = static_cast< size_t >(val2); | |
21696 | if (obj2) { | |
21697 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
21698 | if (!SWIG_IsOK(ecode3)) { | |
21699 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'"); | |
21700 | } | |
21701 | arg3 = static_cast< bool >(val3); | |
21702 | } | |
21703 | { | |
21704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21705 | result = (bool)(arg1)->ExpandNode(arg2,arg3); | |
21706 | wxPyEndAllowThreads(__tstate); | |
21707 | if (PyErr_Occurred()) SWIG_fail; | |
21708 | } | |
21709 | { | |
21710 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21711 | } | |
21712 | return resultobj; | |
21713 | fail: | |
21714 | return NULL; | |
21715 | } | |
21716 | ||
21717 | ||
21718 | SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21719 | PyObject *resultobj = 0; | |
21720 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21721 | size_t arg2 ; | |
21722 | bool result; | |
21723 | void *argp1 = 0 ; | |
21724 | int res1 = 0 ; | |
21725 | size_t val2 ; | |
21726 | int ecode2 = 0 ; | |
21727 | PyObject * obj0 = 0 ; | |
21728 | PyObject * obj1 = 0 ; | |
21729 | char * kwnames[] = { | |
21730 | (char *) "self",(char *) "pos", NULL | |
21731 | }; | |
21732 | ||
21733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail; | |
21734 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21735 | if (!SWIG_IsOK(res1)) { | |
21736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
21737 | } | |
21738 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21739 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
21740 | if (!SWIG_IsOK(ecode2)) { | |
21741 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'"); | |
21742 | } | |
21743 | arg2 = static_cast< size_t >(val2); | |
21744 | { | |
21745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21746 | result = (bool)(arg1)->CollapseNode(arg2); | |
21747 | wxPyEndAllowThreads(__tstate); | |
21748 | if (PyErr_Occurred()) SWIG_fail; | |
21749 | } | |
21750 | { | |
21751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21752 | } | |
21753 | return resultobj; | |
21754 | fail: | |
21755 | return NULL; | |
21756 | } | |
21757 | ||
21758 | ||
21759 | SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21760 | PyObject *resultobj = 0; | |
21761 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21762 | size_t arg2 ; | |
21763 | int result; | |
21764 | void *argp1 = 0 ; | |
21765 | int res1 = 0 ; | |
21766 | size_t val2 ; | |
21767 | int ecode2 = 0 ; | |
21768 | PyObject * obj0 = 0 ; | |
21769 | PyObject * obj1 = 0 ; | |
21770 | char * kwnames[] = { | |
21771 | (char *) "self",(char *) "pos", NULL | |
21772 | }; | |
21773 | ||
21774 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
21775 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21776 | if (!SWIG_IsOK(res1)) { | |
21777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
21778 | } | |
21779 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21780 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
21781 | if (!SWIG_IsOK(ecode2)) { | |
21782 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'"); | |
21783 | } | |
21784 | arg2 = static_cast< size_t >(val2); | |
21785 | { | |
21786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21787 | result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2); | |
21788 | wxPyEndAllowThreads(__tstate); | |
21789 | if (PyErr_Occurred()) SWIG_fail; | |
21790 | } | |
21791 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21792 | return resultobj; | |
21793 | fail: | |
21794 | return NULL; | |
d14a1e28 RD |
21795 | } |
21796 | ||
21797 | ||
0085ce49 RD |
21798 | SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21799 | PyObject *resultobj = 0; | |
21800 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21801 | wxTreeCtrl *result = 0 ; | |
21802 | void *argp1 = 0 ; | |
21803 | int res1 = 0 ; | |
21804 | PyObject *swig_obj[1] ; | |
21805 | ||
21806 | if (!args) SWIG_fail; | |
21807 | swig_obj[0] = args; | |
21808 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21809 | if (!SWIG_IsOK(res1)) { | |
21810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
21811 | } | |
21812 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21813 | { | |
21814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21815 | result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl(); | |
21816 | wxPyEndAllowThreads(__tstate); | |
21817 | if (PyErr_Occurred()) SWIG_fail; | |
21818 | } | |
21819 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 ); | |
21820 | return resultobj; | |
21821 | fail: | |
21822 | return NULL; | |
21823 | } | |
21824 | ||
21825 | ||
21826 | SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21827 | PyObject *obj; | |
21828 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21829 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj)); | |
21830 | return SWIG_Py_Void(); | |
21831 | } | |
21832 | ||
21833 | SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21834 | return SWIG_Python_InitShadowInstance(args); | |
21835 | } | |
21836 | ||
21837 | SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21838 | PyObject *resultobj = 0; | |
21839 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21840 | int arg2 = (int) 0 ; | |
21841 | int arg3 = (int) wxNOT_FOUND ; | |
21842 | int arg4 = (int) wxNOT_FOUND ; | |
21843 | wxTreebookEvent *result = 0 ; | |
21844 | int val1 ; | |
21845 | int ecode1 = 0 ; | |
21846 | int val2 ; | |
21847 | int ecode2 = 0 ; | |
21848 | int val3 ; | |
21849 | int ecode3 = 0 ; | |
21850 | int val4 ; | |
21851 | int ecode4 = 0 ; | |
21852 | PyObject * obj0 = 0 ; | |
21853 | PyObject * obj1 = 0 ; | |
21854 | PyObject * obj2 = 0 ; | |
21855 | PyObject * obj3 = 0 ; | |
21856 | char * kwnames[] = { | |
21857 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
21858 | }; | |
21859 | ||
21860 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21861 | if (obj0) { | |
21862 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21863 | if (!SWIG_IsOK(ecode1)) { | |
21864 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
21865 | } | |
21866 | arg1 = static_cast< wxEventType >(val1); | |
21867 | } | |
21868 | if (obj1) { | |
21869 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21870 | if (!SWIG_IsOK(ecode2)) { | |
21871 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
21872 | } | |
21873 | arg2 = static_cast< int >(val2); | |
21874 | } | |
21875 | if (obj2) { | |
21876 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21877 | if (!SWIG_IsOK(ecode3)) { | |
21878 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
21879 | } | |
21880 | arg3 = static_cast< int >(val3); | |
21881 | } | |
21882 | if (obj3) { | |
21883 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21884 | if (!SWIG_IsOK(ecode4)) { | |
21885 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
21886 | } | |
21887 | arg4 = static_cast< int >(val4); | |
21888 | } | |
21889 | { | |
21890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21891 | result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4); | |
21892 | wxPyEndAllowThreads(__tstate); | |
21893 | if (PyErr_Occurred()) SWIG_fail; | |
21894 | } | |
21895 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 ); | |
21896 | return resultobj; | |
21897 | fail: | |
21898 | return NULL; | |
21899 | } | |
21900 | ||
21901 | ||
21902 | SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21903 | PyObject *obj; | |
21904 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21905 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj)); | |
21906 | return SWIG_Py_Void(); | |
21907 | } | |
21908 | ||
21909 | SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21910 | return SWIG_Python_InitShadowInstance(args); | |
21911 | } | |
21912 | ||
21913 | SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21914 | PyObject *resultobj = 0; | |
21915 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21916 | int arg2 ; | |
21917 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21918 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21919 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21920 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21921 | long arg5 = (long) wxBK_DEFAULT ; | |
21922 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
21923 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21924 | wxToolbook *result = 0 ; | |
21925 | void *argp1 = 0 ; | |
21926 | int res1 = 0 ; | |
21927 | int val2 ; | |
21928 | int ecode2 = 0 ; | |
21929 | wxPoint temp3 ; | |
21930 | wxSize temp4 ; | |
21931 | long val5 ; | |
21932 | int ecode5 = 0 ; | |
21933 | bool temp6 = false ; | |
21934 | PyObject * obj0 = 0 ; | |
21935 | PyObject * obj1 = 0 ; | |
21936 | PyObject * obj2 = 0 ; | |
21937 | PyObject * obj3 = 0 ; | |
21938 | PyObject * obj4 = 0 ; | |
21939 | PyObject * obj5 = 0 ; | |
21940 | char * kwnames[] = { | |
21941 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21942 | }; | |
21943 | ||
21944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21946 | if (!SWIG_IsOK(res1)) { | |
21947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21948 | } | |
21949 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21950 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21951 | if (!SWIG_IsOK(ecode2)) { | |
21952 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'"); | |
21953 | } | |
21954 | arg2 = static_cast< int >(val2); | |
21955 | if (obj2) { | |
d14a1e28 | 21956 | { |
0085ce49 RD |
21957 | arg3 = &temp3; |
21958 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 21959 | } |
0085ce49 RD |
21960 | } |
21961 | if (obj3) { | |
093d3ff1 | 21962 | { |
0085ce49 RD |
21963 | arg4 = &temp4; |
21964 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 21965 | } |
0085ce49 RD |
21966 | } |
21967 | if (obj4) { | |
21968 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21969 | if (!SWIG_IsOK(ecode5)) { | |
21970 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'"); | |
21971 | } | |
21972 | arg5 = static_cast< long >(val5); | |
21973 | } | |
21974 | if (obj5) { | |
d14a1e28 | 21975 | { |
0085ce49 RD |
21976 | arg6 = wxString_in_helper(obj5); |
21977 | if (arg6 == NULL) SWIG_fail; | |
21978 | temp6 = true; | |
d14a1e28 | 21979 | } |
0085ce49 RD |
21980 | } |
21981 | { | |
21982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21983 | result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21984 | wxPyEndAllowThreads(__tstate); | |
21985 | if (PyErr_Occurred()) SWIG_fail; | |
21986 | } | |
21987 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 ); | |
21988 | { | |
21989 | if (temp6) | |
21990 | delete arg6; | |
21991 | } | |
21992 | return resultobj; | |
21993 | fail: | |
21994 | { | |
21995 | if (temp6) | |
21996 | delete arg6; | |
21997 | } | |
21998 | return NULL; | |
d14a1e28 RD |
21999 | } |
22000 | ||
22001 | ||
0085ce49 RD |
22002 | SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22003 | PyObject *resultobj = 0; | |
22004 | wxToolbook *result = 0 ; | |
22005 | ||
22006 | if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail; | |
22007 | { | |
22008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22009 | result = (wxToolbook *)new wxToolbook(); | |
22010 | wxPyEndAllowThreads(__tstate); | |
22011 | if (PyErr_Occurred()) SWIG_fail; | |
22012 | } | |
22013 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 ); | |
22014 | return resultobj; | |
22015 | fail: | |
22016 | return NULL; | |
22017 | } | |
22018 | ||
22019 | ||
22020 | SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22021 | PyObject *resultobj = 0; | |
22022 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
22023 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22024 | int arg3 ; | |
22025 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22026 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22027 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22028 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22029 | long arg6 = (long) 0 ; | |
22030 | wxString const &arg7_defvalue = wxEmptyString ; | |
22031 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22032 | bool result; | |
22033 | void *argp1 = 0 ; | |
22034 | int res1 = 0 ; | |
22035 | void *argp2 = 0 ; | |
22036 | int res2 = 0 ; | |
22037 | int val3 ; | |
22038 | int ecode3 = 0 ; | |
22039 | wxPoint temp4 ; | |
22040 | wxSize temp5 ; | |
22041 | long val6 ; | |
22042 | int ecode6 = 0 ; | |
22043 | bool temp7 = false ; | |
22044 | PyObject * obj0 = 0 ; | |
22045 | PyObject * obj1 = 0 ; | |
22046 | PyObject * obj2 = 0 ; | |
22047 | PyObject * obj3 = 0 ; | |
22048 | PyObject * obj4 = 0 ; | |
22049 | PyObject * obj5 = 0 ; | |
22050 | PyObject * obj6 = 0 ; | |
22051 | char * kwnames[] = { | |
22052 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22053 | }; | |
22054 | ||
22055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
22056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
22057 | if (!SWIG_IsOK(res1)) { | |
22058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'"); | |
22059 | } | |
22060 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
22061 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22062 | if (!SWIG_IsOK(res2)) { | |
22063 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
22064 | } | |
22065 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
22066 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22067 | if (!SWIG_IsOK(ecode3)) { | |
22068 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'"); | |
22069 | } | |
22070 | arg3 = static_cast< int >(val3); | |
22071 | if (obj3) { | |
093d3ff1 | 22072 | { |
0085ce49 RD |
22073 | arg4 = &temp4; |
22074 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 22075 | } |
0085ce49 RD |
22076 | } |
22077 | if (obj4) { | |
093d3ff1 | 22078 | { |
0085ce49 RD |
22079 | arg5 = &temp5; |
22080 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 22081 | } |
0085ce49 RD |
22082 | } |
22083 | if (obj5) { | |
22084 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
22085 | if (!SWIG_IsOK(ecode6)) { | |
22086 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'"); | |
22087 | } | |
22088 | arg6 = static_cast< long >(val6); | |
22089 | } | |
22090 | if (obj6) { | |
994141e6 | 22091 | { |
0085ce49 RD |
22092 | arg7 = wxString_in_helper(obj6); |
22093 | if (arg7 == NULL) SWIG_fail; | |
22094 | temp7 = true; | |
d14a1e28 | 22095 | } |
0085ce49 RD |
22096 | } |
22097 | { | |
22098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22099 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22100 | wxPyEndAllowThreads(__tstate); | |
22101 | if (PyErr_Occurred()) SWIG_fail; | |
22102 | } | |
22103 | { | |
22104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22105 | } | |
22106 | { | |
22107 | if (temp7) | |
22108 | delete arg7; | |
22109 | } | |
22110 | return resultobj; | |
22111 | fail: | |
22112 | { | |
22113 | if (temp7) | |
22114 | delete arg7; | |
22115 | } | |
22116 | return NULL; | |
22bfe96c RD |
22117 | } |
22118 | ||
22119 | ||
0085ce49 RD |
22120 | SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22121 | PyObject *resultobj = 0; | |
22122 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
22123 | wxToolBarBase *result = 0 ; | |
22124 | void *argp1 = 0 ; | |
22125 | int res1 = 0 ; | |
22126 | PyObject *swig_obj[1] ; | |
22127 | ||
22128 | if (!args) SWIG_fail; | |
22129 | swig_obj[0] = args; | |
22130 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
22131 | if (!SWIG_IsOK(res1)) { | |
22132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'"); | |
22133 | } | |
22134 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
22135 | { | |
22136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22137 | result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar(); | |
22138 | wxPyEndAllowThreads(__tstate); | |
22139 | if (PyErr_Occurred()) SWIG_fail; | |
22140 | } | |
22141 | { | |
22142 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
22143 | } | |
22144 | return resultobj; | |
22145 | fail: | |
22146 | return NULL; | |
d14a1e28 RD |
22147 | } |
22148 | ||
22149 | ||
0085ce49 RD |
22150 | SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22151 | PyObject *resultobj = 0; | |
22152 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
22153 | void *argp1 = 0 ; | |
22154 | int res1 = 0 ; | |
22155 | PyObject *swig_obj[1] ; | |
22156 | ||
22157 | if (!args) SWIG_fail; | |
22158 | swig_obj[0] = args; | |
22159 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
22160 | if (!SWIG_IsOK(res1)) { | |
22161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'"); | |
22162 | } | |
22163 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
22164 | { | |
22165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22166 | (arg1)->Realize(); | |
22167 | wxPyEndAllowThreads(__tstate); | |
22168 | if (PyErr_Occurred()) SWIG_fail; | |
22169 | } | |
22170 | resultobj = SWIG_Py_Void(); | |
22171 | return resultobj; | |
22172 | fail: | |
22173 | return NULL; | |
22174 | } | |
22175 | ||
22176 | ||
22177 | SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22178 | PyObject *obj; | |
22179 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22180 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj)); | |
22181 | return SWIG_Py_Void(); | |
22182 | } | |
22183 | ||
22184 | SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22185 | return SWIG_Python_InitShadowInstance(args); | |
22186 | } | |
22187 | ||
22188 | SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22189 | PyObject *resultobj = 0; | |
22190 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22191 | int arg2 = (int) 0 ; | |
22192 | int arg3 = (int) wxNOT_FOUND ; | |
22193 | int arg4 = (int) wxNOT_FOUND ; | |
22194 | wxToolbookEvent *result = 0 ; | |
22195 | int val1 ; | |
22196 | int ecode1 = 0 ; | |
22197 | int val2 ; | |
22198 | int ecode2 = 0 ; | |
22199 | int val3 ; | |
22200 | int ecode3 = 0 ; | |
22201 | int val4 ; | |
22202 | int ecode4 = 0 ; | |
22203 | PyObject * obj0 = 0 ; | |
22204 | PyObject * obj1 = 0 ; | |
22205 | PyObject * obj2 = 0 ; | |
22206 | PyObject * obj3 = 0 ; | |
22207 | char * kwnames[] = { | |
22208 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
22209 | }; | |
22210 | ||
22211 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22212 | if (obj0) { | |
22213 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
22214 | if (!SWIG_IsOK(ecode1)) { | |
22215 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
22216 | } | |
22217 | arg1 = static_cast< wxEventType >(val1); | |
22218 | } | |
22219 | if (obj1) { | |
22220 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22221 | if (!SWIG_IsOK(ecode2)) { | |
22222 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'"); | |
22223 | } | |
22224 | arg2 = static_cast< int >(val2); | |
22225 | } | |
22226 | if (obj2) { | |
22227 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22228 | if (!SWIG_IsOK(ecode3)) { | |
22229 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'"); | |
22230 | } | |
22231 | arg3 = static_cast< int >(val3); | |
22232 | } | |
22233 | if (obj3) { | |
22234 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22235 | if (!SWIG_IsOK(ecode4)) { | |
22236 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'"); | |
22237 | } | |
22238 | arg4 = static_cast< int >(val4); | |
22239 | } | |
22240 | { | |
22241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22242 | result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4); | |
22243 | wxPyEndAllowThreads(__tstate); | |
22244 | if (PyErr_Occurred()) SWIG_fail; | |
22245 | } | |
22246 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 ); | |
22247 | return resultobj; | |
22248 | fail: | |
22249 | return NULL; | |
d14a1e28 RD |
22250 | } |
22251 | ||
22252 | ||
0085ce49 RD |
22253 | SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22254 | PyObject *obj; | |
22255 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22256 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj)); | |
22257 | return SWIG_Py_Void(); | |
d14a1e28 RD |
22258 | } |
22259 | ||
0085ce49 RD |
22260 | SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22261 | return SWIG_Python_InitShadowInstance(args); | |
22262 | } | |
d14a1e28 | 22263 | |
0085ce49 RD |
22264 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22265 | PyObject *resultobj = 0; | |
22266 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22267 | int result; | |
22268 | void *argp1 = 0 ; | |
22269 | int res1 = 0 ; | |
22270 | PyObject *swig_obj[1] ; | |
22271 | ||
22272 | if (!args) SWIG_fail; | |
22273 | swig_obj[0] = args; | |
22274 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22275 | if (!SWIG_IsOK(res1)) { | |
22276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22277 | } | |
22278 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22279 | { | |
22280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22281 | result = (int)(arg1)->GetId(); | |
22282 | wxPyEndAllowThreads(__tstate); | |
22283 | if (PyErr_Occurred()) SWIG_fail; | |
22284 | } | |
22285 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22286 | return resultobj; | |
22287 | fail: | |
22288 | return NULL; | |
d14a1e28 RD |
22289 | } |
22290 | ||
22291 | ||
0085ce49 RD |
22292 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22293 | PyObject *resultobj = 0; | |
22294 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22295 | wxControl *result = 0 ; | |
22296 | void *argp1 = 0 ; | |
22297 | int res1 = 0 ; | |
22298 | PyObject *swig_obj[1] ; | |
22299 | ||
22300 | if (!args) SWIG_fail; | |
22301 | swig_obj[0] = args; | |
22302 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22303 | if (!SWIG_IsOK(res1)) { | |
22304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22305 | } | |
22306 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22307 | { | |
22308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22309 | result = (wxControl *)(arg1)->GetControl(); | |
22310 | wxPyEndAllowThreads(__tstate); | |
22311 | if (PyErr_Occurred()) SWIG_fail; | |
22312 | } | |
22313 | { | |
22314 | resultobj = wxPyMake_wxObject(result, 0); | |
22315 | } | |
22316 | return resultobj; | |
22317 | fail: | |
22318 | return NULL; | |
d14a1e28 RD |
22319 | } |
22320 | ||
22321 | ||
0085ce49 RD |
22322 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22323 | PyObject *resultobj = 0; | |
22324 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22325 | wxToolBarBase *result = 0 ; | |
22326 | void *argp1 = 0 ; | |
22327 | int res1 = 0 ; | |
22328 | PyObject *swig_obj[1] ; | |
22329 | ||
22330 | if (!args) SWIG_fail; | |
22331 | swig_obj[0] = args; | |
22332 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22333 | if (!SWIG_IsOK(res1)) { | |
22334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22335 | } | |
22336 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22337 | { | |
22338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22339 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
22340 | wxPyEndAllowThreads(__tstate); | |
22341 | if (PyErr_Occurred()) SWIG_fail; | |
22342 | } | |
22343 | { | |
22344 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
22345 | } | |
22346 | return resultobj; | |
22347 | fail: | |
22348 | return NULL; | |
d14a1e28 RD |
22349 | } |
22350 | ||
22351 | ||
0085ce49 RD |
22352 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22353 | PyObject *resultobj = 0; | |
22354 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22355 | int result; | |
22356 | void *argp1 = 0 ; | |
22357 | int res1 = 0 ; | |
22358 | PyObject *swig_obj[1] ; | |
22359 | ||
22360 | if (!args) SWIG_fail; | |
22361 | swig_obj[0] = args; | |
22362 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22363 | if (!SWIG_IsOK(res1)) { | |
22364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22365 | } | |
22366 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22367 | { | |
22368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22369 | result = (int)(arg1)->IsButton(); | |
22370 | wxPyEndAllowThreads(__tstate); | |
22371 | if (PyErr_Occurred()) SWIG_fail; | |
22372 | } | |
22373 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22374 | return resultobj; | |
22375 | fail: | |
22376 | return NULL; | |
d14a1e28 RD |
22377 | } |
22378 | ||
22379 | ||
0085ce49 RD |
22380 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22381 | PyObject *resultobj = 0; | |
22382 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22383 | int result; | |
22384 | void *argp1 = 0 ; | |
22385 | int res1 = 0 ; | |
22386 | PyObject *swig_obj[1] ; | |
22387 | ||
22388 | if (!args) SWIG_fail; | |
22389 | swig_obj[0] = args; | |
22390 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22391 | if (!SWIG_IsOK(res1)) { | |
22392 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22393 | } | |
22394 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22395 | { | |
22396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22397 | result = (int)(arg1)->IsControl(); | |
22398 | wxPyEndAllowThreads(__tstate); | |
22399 | if (PyErr_Occurred()) SWIG_fail; | |
22400 | } | |
22401 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22402 | return resultobj; | |
22403 | fail: | |
22404 | return NULL; | |
d14a1e28 RD |
22405 | } |
22406 | ||
22407 | ||
0085ce49 RD |
22408 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22409 | PyObject *resultobj = 0; | |
22410 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22411 | int result; | |
22412 | void *argp1 = 0 ; | |
22413 | int res1 = 0 ; | |
22414 | PyObject *swig_obj[1] ; | |
22415 | ||
22416 | if (!args) SWIG_fail; | |
22417 | swig_obj[0] = args; | |
22418 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22419 | if (!SWIG_IsOK(res1)) { | |
22420 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22421 | } | |
22422 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22423 | { | |
22424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22425 | result = (int)(arg1)->IsSeparator(); | |
22426 | wxPyEndAllowThreads(__tstate); | |
22427 | if (PyErr_Occurred()) SWIG_fail; | |
22428 | } | |
22429 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22430 | return resultobj; | |
22431 | fail: | |
22432 | return NULL; | |
d14a1e28 RD |
22433 | } |
22434 | ||
22435 | ||
0085ce49 RD |
22436 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22437 | PyObject *resultobj = 0; | |
22438 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22439 | int result; | |
22440 | void *argp1 = 0 ; | |
22441 | int res1 = 0 ; | |
22442 | PyObject *swig_obj[1] ; | |
22443 | ||
22444 | if (!args) SWIG_fail; | |
22445 | swig_obj[0] = args; | |
22446 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22447 | if (!SWIG_IsOK(res1)) { | |
22448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22449 | } | |
22450 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22451 | { | |
22452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22453 | result = (int)(arg1)->GetStyle(); | |
22454 | wxPyEndAllowThreads(__tstate); | |
22455 | if (PyErr_Occurred()) SWIG_fail; | |
22456 | } | |
22457 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22458 | return resultobj; | |
22459 | fail: | |
22460 | return NULL; | |
d14a1e28 RD |
22461 | } |
22462 | ||
22463 | ||
0085ce49 RD |
22464 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22465 | PyObject *resultobj = 0; | |
22466 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22467 | wxItemKind result; | |
22468 | void *argp1 = 0 ; | |
22469 | int res1 = 0 ; | |
22470 | PyObject *swig_obj[1] ; | |
22471 | ||
22472 | if (!args) SWIG_fail; | |
22473 | swig_obj[0] = args; | |
22474 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22475 | if (!SWIG_IsOK(res1)) { | |
22476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22477 | } | |
22478 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22479 | { | |
22480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22481 | result = (wxItemKind)(arg1)->GetKind(); | |
22482 | wxPyEndAllowThreads(__tstate); | |
22483 | if (PyErr_Occurred()) SWIG_fail; | |
22484 | } | |
22485 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22486 | return resultobj; | |
22487 | fail: | |
22488 | return NULL; | |
d14a1e28 RD |
22489 | } |
22490 | ||
22491 | ||
0085ce49 RD |
22492 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22493 | PyObject *resultobj = 0; | |
22494 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22495 | bool result; | |
22496 | void *argp1 = 0 ; | |
22497 | int res1 = 0 ; | |
22498 | PyObject *swig_obj[1] ; | |
22499 | ||
22500 | if (!args) SWIG_fail; | |
22501 | swig_obj[0] = args; | |
22502 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22503 | if (!SWIG_IsOK(res1)) { | |
22504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22505 | } | |
22506 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22507 | { | |
22508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22509 | result = (bool)(arg1)->IsEnabled(); | |
22510 | wxPyEndAllowThreads(__tstate); | |
22511 | if (PyErr_Occurred()) SWIG_fail; | |
22512 | } | |
22513 | { | |
22514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22515 | } | |
22516 | return resultobj; | |
22517 | fail: | |
22518 | return NULL; | |
d14a1e28 RD |
22519 | } |
22520 | ||
22521 | ||
0085ce49 RD |
22522 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22523 | PyObject *resultobj = 0; | |
22524 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22525 | bool result; | |
22526 | void *argp1 = 0 ; | |
22527 | int res1 = 0 ; | |
22528 | PyObject *swig_obj[1] ; | |
22529 | ||
22530 | if (!args) SWIG_fail; | |
22531 | swig_obj[0] = args; | |
22532 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22533 | if (!SWIG_IsOK(res1)) { | |
22534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22535 | } | |
22536 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22537 | { | |
22538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22539 | result = (bool)(arg1)->IsToggled(); | |
22540 | wxPyEndAllowThreads(__tstate); | |
22541 | if (PyErr_Occurred()) SWIG_fail; | |
22542 | } | |
22543 | { | |
22544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22545 | } | |
22546 | return resultobj; | |
22547 | fail: | |
22548 | return NULL; | |
22bfe96c RD |
22549 | } |
22550 | ||
22551 | ||
0085ce49 RD |
22552 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22553 | PyObject *resultobj = 0; | |
22554 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22555 | bool result; | |
22556 | void *argp1 = 0 ; | |
22557 | int res1 = 0 ; | |
22558 | PyObject *swig_obj[1] ; | |
22559 | ||
22560 | if (!args) SWIG_fail; | |
22561 | swig_obj[0] = args; | |
22562 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22563 | if (!SWIG_IsOK(res1)) { | |
22564 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22565 | } | |
22566 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22567 | { | |
22568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22569 | result = (bool)(arg1)->CanBeToggled(); | |
22570 | wxPyEndAllowThreads(__tstate); | |
22571 | if (PyErr_Occurred()) SWIG_fail; | |
22572 | } | |
22573 | { | |
22574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22575 | } | |
22576 | return resultobj; | |
22577 | fail: | |
22578 | return NULL; | |
d1e20054 RD |
22579 | } |
22580 | ||
22581 | ||
0085ce49 RD |
22582 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22583 | PyObject *resultobj = 0; | |
22584 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22585 | wxBitmap *result = 0 ; | |
22586 | void *argp1 = 0 ; | |
22587 | int res1 = 0 ; | |
22588 | PyObject *swig_obj[1] ; | |
22589 | ||
22590 | if (!args) SWIG_fail; | |
22591 | swig_obj[0] = args; | |
22592 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22593 | if (!SWIG_IsOK(res1)) { | |
22594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22595 | } | |
22596 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22597 | { | |
22598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22599 | { |
0085ce49 RD |
22600 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); |
22601 | result = (wxBitmap *) &_result_ref; | |
093d3ff1 | 22602 | } |
0085ce49 RD |
22603 | wxPyEndAllowThreads(__tstate); |
22604 | if (PyErr_Occurred()) SWIG_fail; | |
22605 | } | |
22606 | { | |
22607 | wxBitmap* resultptr = new wxBitmap(*result); | |
22608 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
22609 | } | |
22610 | return resultobj; | |
22611 | fail: | |
22612 | return NULL; | |
d1e20054 RD |
22613 | } |
22614 | ||
22615 | ||
0085ce49 RD |
22616 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22617 | PyObject *resultobj = 0; | |
22618 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22619 | wxBitmap *result = 0 ; | |
22620 | void *argp1 = 0 ; | |
22621 | int res1 = 0 ; | |
22622 | PyObject *swig_obj[1] ; | |
22623 | ||
22624 | if (!args) SWIG_fail; | |
22625 | swig_obj[0] = args; | |
22626 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22627 | if (!SWIG_IsOK(res1)) { | |
22628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22629 | } | |
22630 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22631 | { | |
22632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d1e20054 | 22633 | { |
0085ce49 RD |
22634 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); |
22635 | result = (wxBitmap *) &_result_ref; | |
d1e20054 | 22636 | } |
0085ce49 RD |
22637 | wxPyEndAllowThreads(__tstate); |
22638 | if (PyErr_Occurred()) SWIG_fail; | |
22639 | } | |
22640 | { | |
22641 | wxBitmap* resultptr = new wxBitmap(*result); | |
22642 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
22643 | } | |
22644 | return resultobj; | |
22645 | fail: | |
22646 | return NULL; | |
d1e20054 RD |
22647 | } |
22648 | ||
22649 | ||
0085ce49 RD |
22650 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22651 | PyObject *resultobj = 0; | |
22652 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22653 | wxBitmap result; | |
22654 | void *argp1 = 0 ; | |
22655 | int res1 = 0 ; | |
22656 | PyObject *swig_obj[1] ; | |
22657 | ||
22658 | if (!args) SWIG_fail; | |
22659 | swig_obj[0] = args; | |
22660 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22661 | if (!SWIG_IsOK(res1)) { | |
22662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22663 | } | |
22664 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22665 | { | |
22666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22667 | result = (arg1)->GetBitmap(); | |
22668 | wxPyEndAllowThreads(__tstate); | |
22669 | if (PyErr_Occurred()) SWIG_fail; | |
22670 | } | |
22671 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
22672 | return resultobj; | |
22673 | fail: | |
22674 | return NULL; | |
b2dc1044 RD |
22675 | } |
22676 | ||
22677 | ||
0085ce49 RD |
22678 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22679 | PyObject *resultobj = 0; | |
22680 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22681 | wxString result; | |
22682 | void *argp1 = 0 ; | |
22683 | int res1 = 0 ; | |
22684 | PyObject *swig_obj[1] ; | |
22685 | ||
22686 | if (!args) SWIG_fail; | |
22687 | swig_obj[0] = args; | |
22688 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22689 | if (!SWIG_IsOK(res1)) { | |
22690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22691 | } | |
22692 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22693 | { | |
22694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22695 | result = (arg1)->GetLabel(); | |
22696 | wxPyEndAllowThreads(__tstate); | |
22697 | if (PyErr_Occurred()) SWIG_fail; | |
22698 | } | |
22699 | { | |
b2dc1044 | 22700 | #if wxUSE_UNICODE |
0085ce49 | 22701 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 22702 | #else |
0085ce49 | 22703 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 22704 | #endif |
0085ce49 RD |
22705 | } |
22706 | return resultobj; | |
22707 | fail: | |
22708 | return NULL; | |
b2dc1044 RD |
22709 | } |
22710 | ||
22711 | ||
0085ce49 RD |
22712 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22713 | PyObject *resultobj = 0; | |
22714 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22715 | wxString result; | |
22716 | void *argp1 = 0 ; | |
22717 | int res1 = 0 ; | |
22718 | PyObject *swig_obj[1] ; | |
22719 | ||
22720 | if (!args) SWIG_fail; | |
22721 | swig_obj[0] = args; | |
22722 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22723 | if (!SWIG_IsOK(res1)) { | |
22724 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22725 | } | |
22726 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22727 | { | |
22728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22729 | result = (arg1)->GetShortHelp(); | |
22730 | wxPyEndAllowThreads(__tstate); | |
22731 | if (PyErr_Occurred()) SWIG_fail; | |
22732 | } | |
22733 | { | |
b2dc1044 | 22734 | #if wxUSE_UNICODE |
0085ce49 | 22735 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 22736 | #else |
0085ce49 | 22737 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 22738 | #endif |
0085ce49 RD |
22739 | } |
22740 | return resultobj; | |
22741 | fail: | |
22742 | return NULL; | |
d14a1e28 RD |
22743 | } |
22744 | ||
22745 | ||
0085ce49 RD |
22746 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22747 | PyObject *resultobj = 0; | |
22748 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22749 | wxString result; | |
22750 | void *argp1 = 0 ; | |
22751 | int res1 = 0 ; | |
22752 | PyObject *swig_obj[1] ; | |
22753 | ||
22754 | if (!args) SWIG_fail; | |
22755 | swig_obj[0] = args; | |
22756 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22757 | if (!SWIG_IsOK(res1)) { | |
22758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22759 | } | |
22760 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22761 | { | |
22762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22763 | result = (arg1)->GetLongHelp(); | |
22764 | wxPyEndAllowThreads(__tstate); | |
22765 | if (PyErr_Occurred()) SWIG_fail; | |
22766 | } | |
22767 | { | |
22768 | #if wxUSE_UNICODE | |
22769 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22770 | #else | |
22771 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22772 | #endif | |
22773 | } | |
22774 | return resultobj; | |
22775 | fail: | |
22776 | return NULL; | |
22777 | } | |
22778 | ||
22779 | ||
22780 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22781 | PyObject *resultobj = 0; | |
22782 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22783 | bool arg2 ; | |
22784 | bool result; | |
22785 | void *argp1 = 0 ; | |
22786 | int res1 = 0 ; | |
22787 | bool val2 ; | |
22788 | int ecode2 = 0 ; | |
22789 | PyObject * obj0 = 0 ; | |
22790 | PyObject * obj1 = 0 ; | |
22791 | char * kwnames[] = { | |
22792 | (char *) "self",(char *) "enable", NULL | |
22793 | }; | |
22794 | ||
22795 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail; | |
22796 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22797 | if (!SWIG_IsOK(res1)) { | |
22798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22799 | } | |
22800 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22801 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
22802 | if (!SWIG_IsOK(ecode2)) { | |
22803 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'"); | |
22804 | } | |
22805 | arg2 = static_cast< bool >(val2); | |
22806 | { | |
22807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22808 | result = (bool)(arg1)->Enable(arg2); | |
22809 | wxPyEndAllowThreads(__tstate); | |
22810 | if (PyErr_Occurred()) SWIG_fail; | |
22811 | } | |
22812 | { | |
22813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22814 | } | |
22815 | return resultobj; | |
22816 | fail: | |
22817 | return NULL; | |
d14a1e28 RD |
22818 | } |
22819 | ||
22820 | ||
0085ce49 RD |
22821 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22822 | PyObject *resultobj = 0; | |
22823 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22824 | void *argp1 = 0 ; | |
22825 | int res1 = 0 ; | |
22826 | PyObject *swig_obj[1] ; | |
22827 | ||
22828 | if (!args) SWIG_fail; | |
22829 | swig_obj[0] = args; | |
22830 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22831 | if (!SWIG_IsOK(res1)) { | |
22832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22833 | } | |
22834 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22835 | { | |
22836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22837 | (arg1)->Toggle(); | |
22838 | wxPyEndAllowThreads(__tstate); | |
22839 | if (PyErr_Occurred()) SWIG_fail; | |
22840 | } | |
22841 | resultobj = SWIG_Py_Void(); | |
22842 | return resultobj; | |
22843 | fail: | |
22844 | return NULL; | |
22845 | } | |
22846 | ||
22847 | ||
22848 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22849 | PyObject *resultobj = 0; | |
22850 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22851 | bool arg2 ; | |
22852 | bool result; | |
22853 | void *argp1 = 0 ; | |
22854 | int res1 = 0 ; | |
22855 | bool val2 ; | |
22856 | int ecode2 = 0 ; | |
22857 | PyObject * obj0 = 0 ; | |
22858 | PyObject * obj1 = 0 ; | |
22859 | char * kwnames[] = { | |
22860 | (char *) "self",(char *) "toggle", NULL | |
22861 | }; | |
22862 | ||
22863 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
22864 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22865 | if (!SWIG_IsOK(res1)) { | |
22866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22867 | } | |
22868 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22869 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
22870 | if (!SWIG_IsOK(ecode2)) { | |
22871 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'"); | |
22872 | } | |
22873 | arg2 = static_cast< bool >(val2); | |
22874 | { | |
22875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22876 | result = (bool)(arg1)->SetToggle(arg2); | |
22877 | wxPyEndAllowThreads(__tstate); | |
22878 | if (PyErr_Occurred()) SWIG_fail; | |
22879 | } | |
22880 | { | |
22881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22882 | } | |
22883 | return resultobj; | |
22884 | fail: | |
22885 | return NULL; | |
22886 | } | |
22887 | ||
22888 | ||
22889 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22890 | PyObject *resultobj = 0; | |
22891 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22892 | wxString *arg2 = 0 ; | |
22893 | bool result; | |
22894 | void *argp1 = 0 ; | |
22895 | int res1 = 0 ; | |
22896 | bool temp2 = false ; | |
22897 | PyObject * obj0 = 0 ; | |
22898 | PyObject * obj1 = 0 ; | |
22899 | char * kwnames[] = { | |
22900 | (char *) "self",(char *) "help", NULL | |
22901 | }; | |
22902 | ||
22903 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
22904 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22905 | if (!SWIG_IsOK(res1)) { | |
22906 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22907 | } | |
22908 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22909 | { | |
22910 | arg2 = wxString_in_helper(obj1); | |
22911 | if (arg2 == NULL) SWIG_fail; | |
22912 | temp2 = true; | |
22913 | } | |
22914 | { | |
22915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22916 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
22917 | wxPyEndAllowThreads(__tstate); | |
22918 | if (PyErr_Occurred()) SWIG_fail; | |
22919 | } | |
22920 | { | |
22921 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22922 | } | |
22923 | { | |
22924 | if (temp2) | |
22925 | delete arg2; | |
22926 | } | |
22927 | return resultobj; | |
22928 | fail: | |
22929 | { | |
22930 | if (temp2) | |
22931 | delete arg2; | |
22932 | } | |
22933 | return NULL; | |
22934 | } | |
22935 | ||
22936 | ||
22937 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22938 | PyObject *resultobj = 0; | |
22939 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22940 | wxString *arg2 = 0 ; | |
22941 | bool result; | |
22942 | void *argp1 = 0 ; | |
22943 | int res1 = 0 ; | |
22944 | bool temp2 = false ; | |
22945 | PyObject * obj0 = 0 ; | |
22946 | PyObject * obj1 = 0 ; | |
22947 | char * kwnames[] = { | |
22948 | (char *) "self",(char *) "help", NULL | |
22949 | }; | |
22950 | ||
22951 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
22952 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22953 | if (!SWIG_IsOK(res1)) { | |
22954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22955 | } | |
22956 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22957 | { | |
22958 | arg2 = wxString_in_helper(obj1); | |
22959 | if (arg2 == NULL) SWIG_fail; | |
22960 | temp2 = true; | |
22961 | } | |
22962 | { | |
22963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22964 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
22965 | wxPyEndAllowThreads(__tstate); | |
22966 | if (PyErr_Occurred()) SWIG_fail; | |
22967 | } | |
22968 | { | |
22969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22970 | } | |
22971 | { | |
22972 | if (temp2) | |
22973 | delete arg2; | |
22974 | } | |
22975 | return resultobj; | |
22976 | fail: | |
22977 | { | |
22978 | if (temp2) | |
22979 | delete arg2; | |
22980 | } | |
22981 | return NULL; | |
22982 | } | |
22983 | ||
22984 | ||
22985 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22986 | PyObject *resultobj = 0; | |
22987 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22988 | wxBitmap *arg2 = 0 ; | |
22989 | void *argp1 = 0 ; | |
22990 | int res1 = 0 ; | |
22991 | void *argp2 = 0 ; | |
22992 | int res2 = 0 ; | |
22993 | PyObject * obj0 = 0 ; | |
22994 | PyObject * obj1 = 0 ; | |
22995 | char * kwnames[] = { | |
22996 | (char *) "self",(char *) "bmp", NULL | |
22997 | }; | |
22998 | ||
22999 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
23000 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23001 | if (!SWIG_IsOK(res1)) { | |
23002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23003 | } | |
23004 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23005 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23006 | if (!SWIG_IsOK(res2)) { | |
23007 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23008 | } | |
23009 | if (!argp2) { | |
23010 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23011 | } | |
23012 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
23013 | { | |
23014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23015 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
23016 | wxPyEndAllowThreads(__tstate); | |
23017 | if (PyErr_Occurred()) SWIG_fail; | |
23018 | } | |
23019 | resultobj = SWIG_Py_Void(); | |
23020 | return resultobj; | |
23021 | fail: | |
23022 | return NULL; | |
23023 | } | |
23024 | ||
23025 | ||
23026 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23027 | PyObject *resultobj = 0; | |
23028 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23029 | wxBitmap *arg2 = 0 ; | |
23030 | void *argp1 = 0 ; | |
23031 | int res1 = 0 ; | |
23032 | void *argp2 = 0 ; | |
23033 | int res2 = 0 ; | |
23034 | PyObject * obj0 = 0 ; | |
23035 | PyObject * obj1 = 0 ; | |
23036 | char * kwnames[] = { | |
23037 | (char *) "self",(char *) "bmp", NULL | |
23038 | }; | |
23039 | ||
23040 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
23041 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23042 | if (!SWIG_IsOK(res1)) { | |
23043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23044 | } | |
23045 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23046 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23047 | if (!SWIG_IsOK(res2)) { | |
23048 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23049 | } | |
23050 | if (!argp2) { | |
23051 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23052 | } | |
23053 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
23054 | { | |
23055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23056 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
23057 | wxPyEndAllowThreads(__tstate); | |
23058 | if (PyErr_Occurred()) SWIG_fail; | |
23059 | } | |
23060 | resultobj = SWIG_Py_Void(); | |
23061 | return resultobj; | |
23062 | fail: | |
23063 | return NULL; | |
23064 | } | |
23065 | ||
23066 | ||
23067 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23068 | PyObject *resultobj = 0; | |
23069 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23070 | wxString *arg2 = 0 ; | |
23071 | void *argp1 = 0 ; | |
23072 | int res1 = 0 ; | |
23073 | bool temp2 = false ; | |
23074 | PyObject * obj0 = 0 ; | |
23075 | PyObject * obj1 = 0 ; | |
23076 | char * kwnames[] = { | |
23077 | (char *) "self",(char *) "label", NULL | |
23078 | }; | |
23079 | ||
23080 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
23081 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23082 | if (!SWIG_IsOK(res1)) { | |
23083 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23084 | } | |
23085 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23086 | { | |
23087 | arg2 = wxString_in_helper(obj1); | |
23088 | if (arg2 == NULL) SWIG_fail; | |
23089 | temp2 = true; | |
23090 | } | |
23091 | { | |
23092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23093 | (arg1)->SetLabel((wxString const &)*arg2); | |
23094 | wxPyEndAllowThreads(__tstate); | |
23095 | if (PyErr_Occurred()) SWIG_fail; | |
23096 | } | |
23097 | resultobj = SWIG_Py_Void(); | |
23098 | { | |
23099 | if (temp2) | |
23100 | delete arg2; | |
23101 | } | |
23102 | return resultobj; | |
23103 | fail: | |
23104 | { | |
23105 | if (temp2) | |
23106 | delete arg2; | |
23107 | } | |
23108 | return NULL; | |
d14a1e28 RD |
23109 | } |
23110 | ||
23111 | ||
0085ce49 RD |
23112 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23113 | PyObject *resultobj = 0; | |
23114 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23115 | void *argp1 = 0 ; | |
23116 | int res1 = 0 ; | |
23117 | PyObject *swig_obj[1] ; | |
23118 | ||
23119 | if (!args) SWIG_fail; | |
23120 | swig_obj[0] = args; | |
23121 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23122 | if (!SWIG_IsOK(res1)) { | |
23123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23124 | } | |
23125 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23126 | { | |
23127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23128 | (arg1)->Detach(); | |
23129 | wxPyEndAllowThreads(__tstate); | |
23130 | if (PyErr_Occurred()) SWIG_fail; | |
23131 | } | |
23132 | resultobj = SWIG_Py_Void(); | |
23133 | return resultobj; | |
23134 | fail: | |
23135 | return NULL; | |
23136 | } | |
23137 | ||
23138 | ||
23139 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23140 | PyObject *resultobj = 0; | |
23141 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23142 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
23143 | void *argp1 = 0 ; | |
23144 | int res1 = 0 ; | |
23145 | void *argp2 = 0 ; | |
23146 | int res2 = 0 ; | |
23147 | PyObject * obj0 = 0 ; | |
23148 | PyObject * obj1 = 0 ; | |
23149 | char * kwnames[] = { | |
23150 | (char *) "self",(char *) "tbar", NULL | |
23151 | }; | |
23152 | ||
23153 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail; | |
23154 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23155 | if (!SWIG_IsOK(res1)) { | |
23156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23157 | } | |
23158 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23159 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23160 | if (!SWIG_IsOK(res2)) { | |
23161 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'"); | |
23162 | } | |
23163 | arg2 = reinterpret_cast< wxToolBarBase * >(argp2); | |
23164 | { | |
23165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23166 | (arg1)->Attach(arg2); | |
23167 | wxPyEndAllowThreads(__tstate); | |
23168 | if (PyErr_Occurred()) SWIG_fail; | |
23169 | } | |
23170 | resultobj = SWIG_Py_Void(); | |
23171 | return resultobj; | |
23172 | fail: | |
23173 | return NULL; | |
d14a1e28 RD |
23174 | } |
23175 | ||
23176 | ||
0085ce49 RD |
23177 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23178 | PyObject *resultobj = 0; | |
23179 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23180 | PyObject *result = 0 ; | |
23181 | void *argp1 = 0 ; | |
23182 | int res1 = 0 ; | |
23183 | PyObject *swig_obj[1] ; | |
23184 | ||
23185 | if (!args) SWIG_fail; | |
23186 | swig_obj[0] = args; | |
23187 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23188 | if (!SWIG_IsOK(res1)) { | |
23189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23190 | } | |
23191 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23192 | { | |
23193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23194 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
23195 | wxPyEndAllowThreads(__tstate); | |
23196 | if (PyErr_Occurred()) SWIG_fail; | |
23197 | } | |
23198 | resultobj = result; | |
23199 | return resultobj; | |
23200 | fail: | |
23201 | return NULL; | |
23202 | } | |
23203 | ||
23204 | ||
23205 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23206 | PyObject *resultobj = 0; | |
23207 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23208 | PyObject *arg2 = (PyObject *) 0 ; | |
23209 | void *argp1 = 0 ; | |
23210 | int res1 = 0 ; | |
23211 | PyObject * obj0 = 0 ; | |
23212 | PyObject * obj1 = 0 ; | |
23213 | char * kwnames[] = { | |
23214 | (char *) "self",(char *) "clientData", NULL | |
23215 | }; | |
23216 | ||
23217 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail; | |
23218 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23219 | if (!SWIG_IsOK(res1)) { | |
23220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23221 | } | |
23222 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23223 | arg2 = obj1; | |
23224 | { | |
23225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23226 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
23227 | wxPyEndAllowThreads(__tstate); | |
23228 | if (PyErr_Occurred()) SWIG_fail; | |
23229 | } | |
23230 | resultobj = SWIG_Py_Void(); | |
23231 | return resultobj; | |
23232 | fail: | |
23233 | return NULL; | |
23234 | } | |
23235 | ||
23236 | ||
23237 | SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23238 | PyObject *obj; | |
23239 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23240 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj)); | |
23241 | return SWIG_Py_Void(); | |
23242 | } | |
23243 | ||
23244 | SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23245 | PyObject *resultobj = 0; | |
23246 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23247 | int arg2 ; | |
23248 | wxString *arg3 = 0 ; | |
23249 | wxBitmap *arg4 = 0 ; | |
23250 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
23251 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
23252 | wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ; | |
23253 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
23254 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23255 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
23256 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23257 | PyObject *arg9 = (PyObject *) NULL ; | |
23258 | wxToolBarToolBase *result = 0 ; | |
23259 | void *argp1 = 0 ; | |
23260 | int res1 = 0 ; | |
23261 | int val2 ; | |
23262 | int ecode2 = 0 ; | |
23263 | bool temp3 = false ; | |
23264 | void *argp4 = 0 ; | |
23265 | int res4 = 0 ; | |
23266 | void *argp5 = 0 ; | |
23267 | int res5 = 0 ; | |
23268 | int val6 ; | |
23269 | int ecode6 = 0 ; | |
23270 | bool temp7 = false ; | |
23271 | bool temp8 = false ; | |
23272 | PyObject * obj0 = 0 ; | |
23273 | PyObject * obj1 = 0 ; | |
23274 | PyObject * obj2 = 0 ; | |
23275 | PyObject * obj3 = 0 ; | |
23276 | PyObject * obj4 = 0 ; | |
23277 | PyObject * obj5 = 0 ; | |
23278 | PyObject * obj6 = 0 ; | |
23279 | PyObject * obj7 = 0 ; | |
23280 | PyObject * obj8 = 0 ; | |
23281 | char * kwnames[] = { | |
23282 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
23283 | }; | |
23284 | ||
23285 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
23286 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23287 | if (!SWIG_IsOK(res1)) { | |
23288 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23289 | } | |
23290 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23291 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23292 | if (!SWIG_IsOK(ecode2)) { | |
23293 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'"); | |
23294 | } | |
23295 | arg2 = static_cast< int >(val2); | |
23296 | { | |
23297 | arg3 = wxString_in_helper(obj2); | |
23298 | if (arg3 == NULL) SWIG_fail; | |
23299 | temp3 = true; | |
23300 | } | |
23301 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23302 | if (!SWIG_IsOK(res4)) { | |
23303 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
23304 | } | |
23305 | if (!argp4) { | |
23306 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
23307 | } | |
23308 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
23309 | if (obj4) { | |
23310 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23311 | if (!SWIG_IsOK(res5)) { | |
23312 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
d14a1e28 | 23313 | } |
0085ce49 RD |
23314 | if (!argp5) { |
23315 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
d14a1e28 | 23316 | } |
0085ce49 RD |
23317 | arg5 = reinterpret_cast< wxBitmap * >(argp5); |
23318 | } | |
23319 | if (obj5) { | |
23320 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
23321 | if (!SWIG_IsOK(ecode6)) { | |
23322 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'"); | |
23323 | } | |
23324 | arg6 = static_cast< wxItemKind >(val6); | |
23325 | } | |
23326 | if (obj6) { | |
093d3ff1 | 23327 | { |
0085ce49 RD |
23328 | arg7 = wxString_in_helper(obj6); |
23329 | if (arg7 == NULL) SWIG_fail; | |
23330 | temp7 = true; | |
093d3ff1 | 23331 | } |
0085ce49 RD |
23332 | } |
23333 | if (obj7) { | |
d14a1e28 | 23334 | { |
0085ce49 RD |
23335 | arg8 = wxString_in_helper(obj7); |
23336 | if (arg8 == NULL) SWIG_fail; | |
23337 | temp8 = true; | |
d14a1e28 | 23338 | } |
0085ce49 RD |
23339 | } |
23340 | if (obj8) { | |
23341 | arg9 = obj8; | |
23342 | } | |
23343 | { | |
23344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23345 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
23346 | wxPyEndAllowThreads(__tstate); | |
23347 | if (PyErr_Occurred()) SWIG_fail; | |
23348 | } | |
23349 | { | |
23350 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23351 | } | |
23352 | { | |
23353 | if (temp3) | |
23354 | delete arg3; | |
23355 | } | |
23356 | { | |
23357 | if (temp7) | |
23358 | delete arg7; | |
23359 | } | |
23360 | { | |
23361 | if (temp8) | |
23362 | delete arg8; | |
23363 | } | |
23364 | return resultobj; | |
23365 | fail: | |
23366 | { | |
23367 | if (temp3) | |
23368 | delete arg3; | |
23369 | } | |
23370 | { | |
23371 | if (temp7) | |
23372 | delete arg7; | |
23373 | } | |
23374 | { | |
23375 | if (temp8) | |
23376 | delete arg8; | |
23377 | } | |
23378 | return NULL; | |
23379 | } | |
23380 | ||
23381 | ||
23382 | SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23383 | PyObject *resultobj = 0; | |
23384 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23385 | size_t arg2 ; | |
23386 | int arg3 ; | |
23387 | wxString *arg4 = 0 ; | |
23388 | wxBitmap *arg5 = 0 ; | |
23389 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
23390 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
23391 | wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ; | |
23392 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
23393 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23394 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
23395 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
23396 | PyObject *arg10 = (PyObject *) NULL ; | |
23397 | wxToolBarToolBase *result = 0 ; | |
23398 | void *argp1 = 0 ; | |
23399 | int res1 = 0 ; | |
23400 | size_t val2 ; | |
23401 | int ecode2 = 0 ; | |
23402 | int val3 ; | |
23403 | int ecode3 = 0 ; | |
23404 | bool temp4 = false ; | |
23405 | void *argp5 = 0 ; | |
23406 | int res5 = 0 ; | |
23407 | void *argp6 = 0 ; | |
23408 | int res6 = 0 ; | |
23409 | int val7 ; | |
23410 | int ecode7 = 0 ; | |
23411 | bool temp8 = false ; | |
23412 | bool temp9 = false ; | |
23413 | PyObject * obj0 = 0 ; | |
23414 | PyObject * obj1 = 0 ; | |
23415 | PyObject * obj2 = 0 ; | |
23416 | PyObject * obj3 = 0 ; | |
23417 | PyObject * obj4 = 0 ; | |
23418 | PyObject * obj5 = 0 ; | |
23419 | PyObject * obj6 = 0 ; | |
23420 | PyObject * obj7 = 0 ; | |
23421 | PyObject * obj8 = 0 ; | |
23422 | PyObject * obj9 = 0 ; | |
23423 | char * kwnames[] = { | |
23424 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
23425 | }; | |
23426 | ||
23427 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
23428 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23429 | if (!SWIG_IsOK(res1)) { | |
23430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23431 | } | |
23432 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23433 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
23434 | if (!SWIG_IsOK(ecode2)) { | |
23435 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'"); | |
23436 | } | |
23437 | arg2 = static_cast< size_t >(val2); | |
23438 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23439 | if (!SWIG_IsOK(ecode3)) { | |
23440 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'"); | |
23441 | } | |
23442 | arg3 = static_cast< int >(val3); | |
23443 | { | |
23444 | arg4 = wxString_in_helper(obj3); | |
23445 | if (arg4 == NULL) SWIG_fail; | |
23446 | temp4 = true; | |
23447 | } | |
23448 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23449 | if (!SWIG_IsOK(res5)) { | |
23450 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
23451 | } | |
23452 | if (!argp5) { | |
23453 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
23454 | } | |
23455 | arg5 = reinterpret_cast< wxBitmap * >(argp5); | |
23456 | if (obj5) { | |
23457 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23458 | if (!SWIG_IsOK(res6)) { | |
23459 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'"); | |
d14a1e28 | 23460 | } |
0085ce49 RD |
23461 | if (!argp6) { |
23462 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 23463 | } |
0085ce49 RD |
23464 | arg6 = reinterpret_cast< wxBitmap * >(argp6); |
23465 | } | |
23466 | if (obj6) { | |
23467 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
23468 | if (!SWIG_IsOK(ecode7)) { | |
23469 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'"); | |
23470 | } | |
23471 | arg7 = static_cast< wxItemKind >(val7); | |
23472 | } | |
23473 | if (obj7) { | |
d14a1e28 | 23474 | { |
0085ce49 RD |
23475 | arg8 = wxString_in_helper(obj7); |
23476 | if (arg8 == NULL) SWIG_fail; | |
23477 | temp8 = true; | |
d14a1e28 | 23478 | } |
0085ce49 RD |
23479 | } |
23480 | if (obj8) { | |
d14a1e28 | 23481 | { |
0085ce49 RD |
23482 | arg9 = wxString_in_helper(obj8); |
23483 | if (arg9 == NULL) SWIG_fail; | |
23484 | temp9 = true; | |
d14a1e28 | 23485 | } |
0085ce49 RD |
23486 | } |
23487 | if (obj9) { | |
23488 | arg10 = obj9; | |
23489 | } | |
23490 | { | |
23491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23492 | result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10); | |
23493 | wxPyEndAllowThreads(__tstate); | |
23494 | if (PyErr_Occurred()) SWIG_fail; | |
23495 | } | |
23496 | { | |
23497 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23498 | } | |
23499 | { | |
23500 | if (temp4) | |
23501 | delete arg4; | |
23502 | } | |
23503 | { | |
23504 | if (temp8) | |
23505 | delete arg8; | |
23506 | } | |
23507 | { | |
23508 | if (temp9) | |
23509 | delete arg9; | |
23510 | } | |
23511 | return resultobj; | |
23512 | fail: | |
23513 | { | |
23514 | if (temp4) | |
23515 | delete arg4; | |
23516 | } | |
23517 | { | |
23518 | if (temp8) | |
23519 | delete arg8; | |
23520 | } | |
23521 | { | |
23522 | if (temp9) | |
23523 | delete arg9; | |
23524 | } | |
23525 | return NULL; | |
23526 | } | |
23527 | ||
23528 | ||
23529 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23530 | PyObject *resultobj = 0; | |
23531 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23532 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
23533 | wxToolBarToolBase *result = 0 ; | |
23534 | void *argp1 = 0 ; | |
23535 | int res1 = 0 ; | |
23536 | void *argp2 = 0 ; | |
23537 | int res2 = 0 ; | |
23538 | PyObject * obj0 = 0 ; | |
23539 | PyObject * obj1 = 0 ; | |
23540 | char * kwnames[] = { | |
23541 | (char *) "self",(char *) "tool", NULL | |
23542 | }; | |
23543 | ||
23544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
23545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23546 | if (!SWIG_IsOK(res1)) { | |
23547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23548 | } | |
23549 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23550 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23551 | if (!SWIG_IsOK(res2)) { | |
23552 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'"); | |
23553 | } | |
23554 | arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2); | |
23555 | { | |
23556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23557 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
23558 | wxPyEndAllowThreads(__tstate); | |
23559 | if (PyErr_Occurred()) SWIG_fail; | |
23560 | } | |
23561 | { | |
23562 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23563 | } | |
23564 | return resultobj; | |
23565 | fail: | |
23566 | return NULL; | |
23567 | } | |
23568 | ||
23569 | ||
23570 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23571 | PyObject *resultobj = 0; | |
23572 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23573 | size_t arg2 ; | |
23574 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
23575 | wxToolBarToolBase *result = 0 ; | |
23576 | void *argp1 = 0 ; | |
23577 | int res1 = 0 ; | |
23578 | size_t val2 ; | |
23579 | int ecode2 = 0 ; | |
23580 | void *argp3 = 0 ; | |
23581 | int res3 = 0 ; | |
23582 | PyObject * obj0 = 0 ; | |
23583 | PyObject * obj1 = 0 ; | |
23584 | PyObject * obj2 = 0 ; | |
23585 | char * kwnames[] = { | |
23586 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
23587 | }; | |
23588 | ||
23589 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23590 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23591 | if (!SWIG_IsOK(res1)) { | |
23592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23593 | } | |
23594 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23595 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
23596 | if (!SWIG_IsOK(ecode2)) { | |
23597 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'"); | |
23598 | } | |
23599 | arg2 = static_cast< size_t >(val2); | |
23600 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23601 | if (!SWIG_IsOK(res3)) { | |
23602 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'"); | |
23603 | } | |
23604 | arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3); | |
23605 | { | |
23606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23607 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
23608 | wxPyEndAllowThreads(__tstate); | |
23609 | if (PyErr_Occurred()) SWIG_fail; | |
23610 | } | |
23611 | { | |
23612 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23613 | } | |
23614 | return resultobj; | |
23615 | fail: | |
23616 | return NULL; | |
23617 | } | |
23618 | ||
23619 | ||
23620 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23621 | PyObject *resultobj = 0; | |
23622 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23623 | wxControl *arg2 = (wxControl *) 0 ; | |
23624 | wxToolBarToolBase *result = 0 ; | |
23625 | void *argp1 = 0 ; | |
23626 | int res1 = 0 ; | |
23627 | void *argp2 = 0 ; | |
23628 | int res2 = 0 ; | |
23629 | PyObject * obj0 = 0 ; | |
23630 | PyObject * obj1 = 0 ; | |
23631 | char * kwnames[] = { | |
23632 | (char *) "self",(char *) "control", NULL | |
23633 | }; | |
23634 | ||
23635 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
23636 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23637 | if (!SWIG_IsOK(res1)) { | |
23638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23639 | } | |
23640 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23641 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 ); | |
23642 | if (!SWIG_IsOK(res2)) { | |
23643 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'"); | |
23644 | } | |
23645 | arg2 = reinterpret_cast< wxControl * >(argp2); | |
23646 | { | |
23647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23648 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
23649 | wxPyEndAllowThreads(__tstate); | |
23650 | if (PyErr_Occurred()) SWIG_fail; | |
23651 | } | |
23652 | { | |
23653 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23654 | } | |
23655 | return resultobj; | |
23656 | fail: | |
23657 | return NULL; | |
23658 | } | |
23659 | ||
23660 | ||
23661 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23662 | PyObject *resultobj = 0; | |
23663 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23664 | size_t arg2 ; | |
23665 | wxControl *arg3 = (wxControl *) 0 ; | |
23666 | wxToolBarToolBase *result = 0 ; | |
23667 | void *argp1 = 0 ; | |
23668 | int res1 = 0 ; | |
23669 | size_t val2 ; | |
23670 | int ecode2 = 0 ; | |
23671 | void *argp3 = 0 ; | |
23672 | int res3 = 0 ; | |
23673 | PyObject * obj0 = 0 ; | |
23674 | PyObject * obj1 = 0 ; | |
23675 | PyObject * obj2 = 0 ; | |
23676 | char * kwnames[] = { | |
23677 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
23678 | }; | |
23679 | ||
23680 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23681 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23682 | if (!SWIG_IsOK(res1)) { | |
23683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23684 | } | |
23685 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23686 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
23687 | if (!SWIG_IsOK(ecode2)) { | |
23688 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'"); | |
23689 | } | |
23690 | arg2 = static_cast< size_t >(val2); | |
23691 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 ); | |
23692 | if (!SWIG_IsOK(res3)) { | |
23693 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'"); | |
23694 | } | |
23695 | arg3 = reinterpret_cast< wxControl * >(argp3); | |
23696 | { | |
23697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23698 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
23699 | wxPyEndAllowThreads(__tstate); | |
23700 | if (PyErr_Occurred()) SWIG_fail; | |
23701 | } | |
23702 | { | |
23703 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23704 | } | |
23705 | return resultobj; | |
23706 | fail: | |
23707 | return NULL; | |
23708 | } | |
23709 | ||
23710 | ||
23711 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23712 | PyObject *resultobj = 0; | |
23713 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23714 | int arg2 ; | |
23715 | wxControl *result = 0 ; | |
23716 | void *argp1 = 0 ; | |
23717 | int res1 = 0 ; | |
23718 | int val2 ; | |
23719 | int ecode2 = 0 ; | |
23720 | PyObject * obj0 = 0 ; | |
23721 | PyObject * obj1 = 0 ; | |
23722 | char * kwnames[] = { | |
23723 | (char *) "self",(char *) "id", NULL | |
23724 | }; | |
23725 | ||
23726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
23727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23728 | if (!SWIG_IsOK(res1)) { | |
23729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23730 | } | |
23731 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23732 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23733 | if (!SWIG_IsOK(ecode2)) { | |
23734 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'"); | |
23735 | } | |
23736 | arg2 = static_cast< int >(val2); | |
23737 | { | |
23738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23739 | result = (wxControl *)(arg1)->FindControl(arg2); | |
23740 | wxPyEndAllowThreads(__tstate); | |
23741 | if (PyErr_Occurred()) SWIG_fail; | |
23742 | } | |
23743 | { | |
23744 | resultobj = wxPyMake_wxObject(result, 0); | |
23745 | } | |
23746 | return resultobj; | |
23747 | fail: | |
23748 | return NULL; | |
d14a1e28 RD |
23749 | } |
23750 | ||
23751 | ||
0085ce49 RD |
23752 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23753 | PyObject *resultobj = 0; | |
23754 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23755 | wxToolBarToolBase *result = 0 ; | |
23756 | void *argp1 = 0 ; | |
23757 | int res1 = 0 ; | |
23758 | PyObject *swig_obj[1] ; | |
23759 | ||
23760 | if (!args) SWIG_fail; | |
23761 | swig_obj[0] = args; | |
23762 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23763 | if (!SWIG_IsOK(res1)) { | |
23764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23765 | } | |
23766 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23767 | { | |
23768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23769 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
23770 | wxPyEndAllowThreads(__tstate); | |
23771 | if (PyErr_Occurred()) SWIG_fail; | |
23772 | } | |
23773 | { | |
23774 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23775 | } | |
23776 | return resultobj; | |
23777 | fail: | |
23778 | return NULL; | |
23779 | } | |
23780 | ||
23781 | ||
23782 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23783 | PyObject *resultobj = 0; | |
23784 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23785 | size_t arg2 ; | |
23786 | wxToolBarToolBase *result = 0 ; | |
23787 | void *argp1 = 0 ; | |
23788 | int res1 = 0 ; | |
23789 | size_t val2 ; | |
23790 | int ecode2 = 0 ; | |
23791 | PyObject * obj0 = 0 ; | |
23792 | PyObject * obj1 = 0 ; | |
23793 | char * kwnames[] = { | |
23794 | (char *) "self",(char *) "pos", NULL | |
23795 | }; | |
23796 | ||
23797 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail; | |
23798 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23799 | if (!SWIG_IsOK(res1)) { | |
23800 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23801 | } | |
23802 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23803 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
23804 | if (!SWIG_IsOK(ecode2)) { | |
23805 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'"); | |
23806 | } | |
23807 | arg2 = static_cast< size_t >(val2); | |
23808 | { | |
23809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23810 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
23811 | wxPyEndAllowThreads(__tstate); | |
23812 | if (PyErr_Occurred()) SWIG_fail; | |
23813 | } | |
23814 | { | |
23815 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23816 | } | |
23817 | return resultobj; | |
23818 | fail: | |
23819 | return NULL; | |
23820 | } | |
23821 | ||
23822 | ||
23823 | SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23824 | PyObject *resultobj = 0; | |
23825 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23826 | int arg2 ; | |
23827 | wxToolBarToolBase *result = 0 ; | |
23828 | void *argp1 = 0 ; | |
23829 | int res1 = 0 ; | |
23830 | int val2 ; | |
23831 | int ecode2 = 0 ; | |
23832 | PyObject * obj0 = 0 ; | |
23833 | PyObject * obj1 = 0 ; | |
23834 | char * kwnames[] = { | |
23835 | (char *) "self",(char *) "id", NULL | |
23836 | }; | |
23837 | ||
23838 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail; | |
23839 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23840 | if (!SWIG_IsOK(res1)) { | |
23841 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23842 | } | |
23843 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23844 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23845 | if (!SWIG_IsOK(ecode2)) { | |
23846 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'"); | |
23847 | } | |
23848 | arg2 = static_cast< int >(val2); | |
23849 | { | |
23850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23851 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
23852 | wxPyEndAllowThreads(__tstate); | |
23853 | if (PyErr_Occurred()) SWIG_fail; | |
23854 | } | |
23855 | { | |
23856 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23857 | } | |
23858 | return resultobj; | |
23859 | fail: | |
23860 | return NULL; | |
23861 | } | |
23862 | ||
23863 | ||
23864 | SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23865 | PyObject *resultobj = 0; | |
23866 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23867 | size_t arg2 ; | |
23868 | bool result; | |
23869 | void *argp1 = 0 ; | |
23870 | int res1 = 0 ; | |
23871 | size_t val2 ; | |
23872 | int ecode2 = 0 ; | |
23873 | PyObject * obj0 = 0 ; | |
23874 | PyObject * obj1 = 0 ; | |
23875 | char * kwnames[] = { | |
23876 | (char *) "self",(char *) "pos", NULL | |
23877 | }; | |
23878 | ||
23879 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
23880 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23881 | if (!SWIG_IsOK(res1)) { | |
23882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23883 | } | |
23884 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23885 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
23886 | if (!SWIG_IsOK(ecode2)) { | |
23887 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'"); | |
23888 | } | |
23889 | arg2 = static_cast< size_t >(val2); | |
23890 | { | |
23891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23892 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
23893 | wxPyEndAllowThreads(__tstate); | |
23894 | if (PyErr_Occurred()) SWIG_fail; | |
23895 | } | |
23896 | { | |
23897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23898 | } | |
23899 | return resultobj; | |
23900 | fail: | |
23901 | return NULL; | |
23902 | } | |
23903 | ||
23904 | ||
23905 | SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23906 | PyObject *resultobj = 0; | |
23907 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23908 | int arg2 ; | |
23909 | bool result; | |
23910 | void *argp1 = 0 ; | |
23911 | int res1 = 0 ; | |
23912 | int val2 ; | |
23913 | int ecode2 = 0 ; | |
23914 | PyObject * obj0 = 0 ; | |
23915 | PyObject * obj1 = 0 ; | |
23916 | char * kwnames[] = { | |
23917 | (char *) "self",(char *) "id", NULL | |
23918 | }; | |
23919 | ||
23920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail; | |
23921 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23922 | if (!SWIG_IsOK(res1)) { | |
23923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23924 | } | |
23925 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23926 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23927 | if (!SWIG_IsOK(ecode2)) { | |
23928 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'"); | |
23929 | } | |
23930 | arg2 = static_cast< int >(val2); | |
23931 | { | |
23932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23933 | result = (bool)(arg1)->DeleteTool(arg2); | |
23934 | wxPyEndAllowThreads(__tstate); | |
23935 | if (PyErr_Occurred()) SWIG_fail; | |
23936 | } | |
23937 | { | |
23938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23939 | } | |
23940 | return resultobj; | |
23941 | fail: | |
23942 | return NULL; | |
d14a1e28 RD |
23943 | } |
23944 | ||
23945 | ||
0085ce49 RD |
23946 | SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23947 | PyObject *resultobj = 0; | |
23948 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23949 | void *argp1 = 0 ; | |
23950 | int res1 = 0 ; | |
23951 | PyObject *swig_obj[1] ; | |
23952 | ||
23953 | if (!args) SWIG_fail; | |
23954 | swig_obj[0] = args; | |
23955 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23956 | if (!SWIG_IsOK(res1)) { | |
23957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23958 | } | |
23959 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23960 | { | |
23961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23962 | (arg1)->ClearTools(); | |
23963 | wxPyEndAllowThreads(__tstate); | |
23964 | if (PyErr_Occurred()) SWIG_fail; | |
23965 | } | |
23966 | resultobj = SWIG_Py_Void(); | |
23967 | return resultobj; | |
23968 | fail: | |
23969 | return NULL; | |
d14a1e28 RD |
23970 | } |
23971 | ||
23972 | ||
0085ce49 RD |
23973 | SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23974 | PyObject *resultobj = 0; | |
23975 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23976 | bool result; | |
23977 | void *argp1 = 0 ; | |
23978 | int res1 = 0 ; | |
23979 | PyObject *swig_obj[1] ; | |
23980 | ||
23981 | if (!args) SWIG_fail; | |
23982 | swig_obj[0] = args; | |
23983 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23984 | if (!SWIG_IsOK(res1)) { | |
23985 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23986 | } | |
23987 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23988 | { | |
23989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23990 | result = (bool)(arg1)->Realize(); | |
23991 | wxPyEndAllowThreads(__tstate); | |
23992 | if (PyErr_Occurred()) SWIG_fail; | |
23993 | } | |
23994 | { | |
23995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23996 | } | |
23997 | return resultobj; | |
23998 | fail: | |
23999 | return NULL; | |
24000 | } | |
24001 | ||
24002 | ||
24003 | SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24004 | PyObject *resultobj = 0; | |
24005 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24006 | int arg2 ; | |
24007 | bool arg3 ; | |
24008 | void *argp1 = 0 ; | |
24009 | int res1 = 0 ; | |
24010 | int val2 ; | |
24011 | int ecode2 = 0 ; | |
24012 | bool val3 ; | |
24013 | int ecode3 = 0 ; | |
24014 | PyObject * obj0 = 0 ; | |
24015 | PyObject * obj1 = 0 ; | |
24016 | PyObject * obj2 = 0 ; | |
24017 | char * kwnames[] = { | |
24018 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
24019 | }; | |
24020 | ||
24021 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24022 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24023 | if (!SWIG_IsOK(res1)) { | |
24024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24025 | } | |
24026 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24027 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24028 | if (!SWIG_IsOK(ecode2)) { | |
24029 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'"); | |
24030 | } | |
24031 | arg2 = static_cast< int >(val2); | |
24032 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24033 | if (!SWIG_IsOK(ecode3)) { | |
24034 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'"); | |
24035 | } | |
24036 | arg3 = static_cast< bool >(val3); | |
24037 | { | |
24038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24039 | (arg1)->EnableTool(arg2,arg3); | |
24040 | wxPyEndAllowThreads(__tstate); | |
24041 | if (PyErr_Occurred()) SWIG_fail; | |
24042 | } | |
24043 | resultobj = SWIG_Py_Void(); | |
24044 | return resultobj; | |
24045 | fail: | |
24046 | return NULL; | |
24047 | } | |
24048 | ||
24049 | ||
24050 | SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24051 | PyObject *resultobj = 0; | |
24052 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24053 | int arg2 ; | |
24054 | bool arg3 ; | |
24055 | void *argp1 = 0 ; | |
24056 | int res1 = 0 ; | |
24057 | int val2 ; | |
24058 | int ecode2 = 0 ; | |
24059 | bool val3 ; | |
24060 | int ecode3 = 0 ; | |
24061 | PyObject * obj0 = 0 ; | |
24062 | PyObject * obj1 = 0 ; | |
24063 | PyObject * obj2 = 0 ; | |
24064 | char * kwnames[] = { | |
24065 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
24066 | }; | |
24067 | ||
24068 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24069 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24070 | if (!SWIG_IsOK(res1)) { | |
24071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24072 | } | |
24073 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24074 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24075 | if (!SWIG_IsOK(ecode2)) { | |
24076 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'"); | |
24077 | } | |
24078 | arg2 = static_cast< int >(val2); | |
24079 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24080 | if (!SWIG_IsOK(ecode3)) { | |
24081 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'"); | |
24082 | } | |
24083 | arg3 = static_cast< bool >(val3); | |
24084 | { | |
24085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24086 | (arg1)->ToggleTool(arg2,arg3); | |
24087 | wxPyEndAllowThreads(__tstate); | |
24088 | if (PyErr_Occurred()) SWIG_fail; | |
24089 | } | |
24090 | resultobj = SWIG_Py_Void(); | |
24091 | return resultobj; | |
24092 | fail: | |
24093 | return NULL; | |
24094 | } | |
24095 | ||
24096 | ||
24097 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24098 | PyObject *resultobj = 0; | |
24099 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24100 | int arg2 ; | |
24101 | bool arg3 ; | |
24102 | void *argp1 = 0 ; | |
24103 | int res1 = 0 ; | |
24104 | int val2 ; | |
24105 | int ecode2 = 0 ; | |
24106 | bool val3 ; | |
24107 | int ecode3 = 0 ; | |
24108 | PyObject * obj0 = 0 ; | |
24109 | PyObject * obj1 = 0 ; | |
24110 | PyObject * obj2 = 0 ; | |
24111 | char * kwnames[] = { | |
24112 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
24113 | }; | |
24114 | ||
24115 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24116 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24117 | if (!SWIG_IsOK(res1)) { | |
24118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24119 | } | |
24120 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24121 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24122 | if (!SWIG_IsOK(ecode2)) { | |
24123 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'"); | |
24124 | } | |
24125 | arg2 = static_cast< int >(val2); | |
24126 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24127 | if (!SWIG_IsOK(ecode3)) { | |
24128 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'"); | |
24129 | } | |
24130 | arg3 = static_cast< bool >(val3); | |
24131 | { | |
24132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24133 | (arg1)->SetToggle(arg2,arg3); | |
24134 | wxPyEndAllowThreads(__tstate); | |
24135 | if (PyErr_Occurred()) SWIG_fail; | |
24136 | } | |
24137 | resultobj = SWIG_Py_Void(); | |
24138 | return resultobj; | |
24139 | fail: | |
24140 | return NULL; | |
24141 | } | |
24142 | ||
24143 | ||
24144 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24145 | PyObject *resultobj = 0; | |
24146 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24147 | int arg2 ; | |
24148 | PyObject *result = 0 ; | |
24149 | void *argp1 = 0 ; | |
24150 | int res1 = 0 ; | |
24151 | int val2 ; | |
24152 | int ecode2 = 0 ; | |
24153 | PyObject * obj0 = 0 ; | |
24154 | PyObject * obj1 = 0 ; | |
24155 | char * kwnames[] = { | |
24156 | (char *) "self",(char *) "id", NULL | |
24157 | }; | |
24158 | ||
24159 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24160 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24161 | if (!SWIG_IsOK(res1)) { | |
24162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24163 | } | |
24164 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24165 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24166 | if (!SWIG_IsOK(ecode2)) { | |
24167 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'"); | |
24168 | } | |
24169 | arg2 = static_cast< int >(val2); | |
24170 | { | |
24171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24172 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
24173 | wxPyEndAllowThreads(__tstate); | |
24174 | if (PyErr_Occurred()) SWIG_fail; | |
24175 | } | |
24176 | resultobj = result; | |
24177 | return resultobj; | |
24178 | fail: | |
24179 | return NULL; | |
24180 | } | |
24181 | ||
24182 | ||
24183 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24184 | PyObject *resultobj = 0; | |
24185 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24186 | int arg2 ; | |
24187 | PyObject *arg3 = (PyObject *) 0 ; | |
24188 | void *argp1 = 0 ; | |
24189 | int res1 = 0 ; | |
24190 | int val2 ; | |
24191 | int ecode2 = 0 ; | |
24192 | PyObject * obj0 = 0 ; | |
24193 | PyObject * obj1 = 0 ; | |
24194 | PyObject * obj2 = 0 ; | |
24195 | char * kwnames[] = { | |
24196 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
24197 | }; | |
24198 | ||
24199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24201 | if (!SWIG_IsOK(res1)) { | |
24202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24203 | } | |
24204 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24205 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24206 | if (!SWIG_IsOK(ecode2)) { | |
24207 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'"); | |
24208 | } | |
24209 | arg2 = static_cast< int >(val2); | |
24210 | arg3 = obj2; | |
24211 | { | |
24212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24213 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
24214 | wxPyEndAllowThreads(__tstate); | |
24215 | if (PyErr_Occurred()) SWIG_fail; | |
24216 | } | |
24217 | resultobj = SWIG_Py_Void(); | |
24218 | return resultobj; | |
24219 | fail: | |
24220 | return NULL; | |
24221 | } | |
24222 | ||
24223 | ||
24224 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24225 | PyObject *resultobj = 0; | |
24226 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24227 | int arg2 ; | |
24228 | int 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_GetToolPos",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_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
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_GetToolPos" "', expected argument " "2"" of type '" "int""'"); | |
24248 | } | |
24249 | arg2 = static_cast< int >(val2); | |
24250 | { | |
24251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24252 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
24253 | wxPyEndAllowThreads(__tstate); | |
24254 | if (PyErr_Occurred()) SWIG_fail; | |
24255 | } | |
24256 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24257 | return resultobj; | |
24258 | fail: | |
24259 | return NULL; | |
24260 | } | |
24261 | ||
24262 | ||
24263 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24264 | PyObject *resultobj = 0; | |
24265 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24266 | int arg2 ; | |
24267 | bool result; | |
24268 | void *argp1 = 0 ; | |
24269 | int res1 = 0 ; | |
24270 | int val2 ; | |
24271 | int ecode2 = 0 ; | |
24272 | PyObject * obj0 = 0 ; | |
24273 | PyObject * obj1 = 0 ; | |
24274 | char * kwnames[] = { | |
24275 | (char *) "self",(char *) "id", NULL | |
24276 | }; | |
24277 | ||
24278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail; | |
24279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24280 | if (!SWIG_IsOK(res1)) { | |
24281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24282 | } | |
24283 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24284 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24285 | if (!SWIG_IsOK(ecode2)) { | |
24286 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'"); | |
24287 | } | |
24288 | arg2 = static_cast< int >(val2); | |
24289 | { | |
24290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24291 | result = (bool)(arg1)->GetToolState(arg2); | |
24292 | wxPyEndAllowThreads(__tstate); | |
24293 | if (PyErr_Occurred()) SWIG_fail; | |
24294 | } | |
24295 | { | |
24296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24297 | } | |
24298 | return resultobj; | |
24299 | fail: | |
24300 | return NULL; | |
24301 | } | |
24302 | ||
24303 | ||
24304 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24305 | PyObject *resultobj = 0; | |
24306 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24307 | int arg2 ; | |
24308 | bool result; | |
24309 | void *argp1 = 0 ; | |
24310 | int res1 = 0 ; | |
24311 | int val2 ; | |
24312 | int ecode2 = 0 ; | |
24313 | PyObject * obj0 = 0 ; | |
24314 | PyObject * obj1 = 0 ; | |
24315 | char * kwnames[] = { | |
24316 | (char *) "self",(char *) "id", NULL | |
24317 | }; | |
24318 | ||
24319 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
24320 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24321 | if (!SWIG_IsOK(res1)) { | |
24322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24323 | } | |
24324 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24325 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24326 | if (!SWIG_IsOK(ecode2)) { | |
24327 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'"); | |
24328 | } | |
24329 | arg2 = static_cast< int >(val2); | |
24330 | { | |
24331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24332 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
24333 | wxPyEndAllowThreads(__tstate); | |
24334 | if (PyErr_Occurred()) SWIG_fail; | |
24335 | } | |
24336 | { | |
24337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24338 | } | |
24339 | return resultobj; | |
24340 | fail: | |
24341 | return NULL; | |
24342 | } | |
24343 | ||
24344 | ||
24345 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24346 | PyObject *resultobj = 0; | |
24347 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24348 | int arg2 ; | |
24349 | wxString *arg3 = 0 ; | |
24350 | void *argp1 = 0 ; | |
24351 | int res1 = 0 ; | |
24352 | int val2 ; | |
24353 | int ecode2 = 0 ; | |
24354 | bool temp3 = false ; | |
24355 | PyObject * obj0 = 0 ; | |
24356 | PyObject * obj1 = 0 ; | |
24357 | PyObject * obj2 = 0 ; | |
24358 | char * kwnames[] = { | |
24359 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
24360 | }; | |
24361 | ||
24362 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24363 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24364 | if (!SWIG_IsOK(res1)) { | |
24365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24366 | } | |
24367 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24368 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24369 | if (!SWIG_IsOK(ecode2)) { | |
24370 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'"); | |
24371 | } | |
24372 | arg2 = static_cast< int >(val2); | |
24373 | { | |
24374 | arg3 = wxString_in_helper(obj2); | |
24375 | if (arg3 == NULL) SWIG_fail; | |
24376 | temp3 = true; | |
24377 | } | |
24378 | { | |
24379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24380 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
24381 | wxPyEndAllowThreads(__tstate); | |
24382 | if (PyErr_Occurred()) SWIG_fail; | |
24383 | } | |
24384 | resultobj = SWIG_Py_Void(); | |
24385 | { | |
24386 | if (temp3) | |
24387 | delete arg3; | |
24388 | } | |
24389 | return resultobj; | |
24390 | fail: | |
24391 | { | |
24392 | if (temp3) | |
24393 | delete arg3; | |
24394 | } | |
24395 | return NULL; | |
24396 | } | |
24397 | ||
24398 | ||
24399 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24400 | PyObject *resultobj = 0; | |
24401 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24402 | int arg2 ; | |
24403 | wxString result; | |
24404 | void *argp1 = 0 ; | |
24405 | int res1 = 0 ; | |
24406 | int val2 ; | |
24407 | int ecode2 = 0 ; | |
24408 | PyObject * obj0 = 0 ; | |
24409 | PyObject * obj1 = 0 ; | |
24410 | char * kwnames[] = { | |
24411 | (char *) "self",(char *) "id", NULL | |
24412 | }; | |
24413 | ||
24414 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
24415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24416 | if (!SWIG_IsOK(res1)) { | |
24417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24418 | } | |
24419 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24420 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24421 | if (!SWIG_IsOK(ecode2)) { | |
24422 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'"); | |
24423 | } | |
24424 | arg2 = static_cast< int >(val2); | |
24425 | { | |
24426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24427 | result = (arg1)->GetToolShortHelp(arg2); | |
24428 | wxPyEndAllowThreads(__tstate); | |
24429 | if (PyErr_Occurred()) SWIG_fail; | |
24430 | } | |
24431 | { | |
24432 | #if wxUSE_UNICODE | |
24433 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24434 | #else | |
24435 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24436 | #endif | |
24437 | } | |
24438 | return resultobj; | |
24439 | fail: | |
24440 | return NULL; | |
24441 | } | |
24442 | ||
24443 | ||
24444 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24445 | PyObject *resultobj = 0; | |
24446 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24447 | int arg2 ; | |
24448 | wxString *arg3 = 0 ; | |
24449 | void *argp1 = 0 ; | |
24450 | int res1 = 0 ; | |
24451 | int val2 ; | |
24452 | int ecode2 = 0 ; | |
24453 | bool temp3 = false ; | |
24454 | PyObject * obj0 = 0 ; | |
24455 | PyObject * obj1 = 0 ; | |
24456 | PyObject * obj2 = 0 ; | |
24457 | char * kwnames[] = { | |
24458 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
24459 | }; | |
24460 | ||
24461 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24462 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24463 | if (!SWIG_IsOK(res1)) { | |
24464 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24465 | } | |
24466 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24467 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24468 | if (!SWIG_IsOK(ecode2)) { | |
24469 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'"); | |
24470 | } | |
24471 | arg2 = static_cast< int >(val2); | |
24472 | { | |
24473 | arg3 = wxString_in_helper(obj2); | |
24474 | if (arg3 == NULL) SWIG_fail; | |
24475 | temp3 = true; | |
24476 | } | |
24477 | { | |
24478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24479 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
24480 | wxPyEndAllowThreads(__tstate); | |
24481 | if (PyErr_Occurred()) SWIG_fail; | |
24482 | } | |
24483 | resultobj = SWIG_Py_Void(); | |
24484 | { | |
24485 | if (temp3) | |
24486 | delete arg3; | |
24487 | } | |
24488 | return resultobj; | |
24489 | fail: | |
24490 | { | |
24491 | if (temp3) | |
24492 | delete arg3; | |
24493 | } | |
24494 | return NULL; | |
24495 | } | |
24496 | ||
24497 | ||
24498 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24499 | PyObject *resultobj = 0; | |
24500 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24501 | int arg2 ; | |
24502 | wxString result; | |
24503 | void *argp1 = 0 ; | |
24504 | int res1 = 0 ; | |
24505 | int val2 ; | |
24506 | int ecode2 = 0 ; | |
24507 | PyObject * obj0 = 0 ; | |
24508 | PyObject * obj1 = 0 ; | |
24509 | char * kwnames[] = { | |
24510 | (char *) "self",(char *) "id", NULL | |
24511 | }; | |
24512 | ||
24513 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
24514 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24515 | if (!SWIG_IsOK(res1)) { | |
24516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24517 | } | |
24518 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24519 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24520 | if (!SWIG_IsOK(ecode2)) { | |
24521 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'"); | |
24522 | } | |
24523 | arg2 = static_cast< int >(val2); | |
24524 | { | |
24525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24526 | result = (arg1)->GetToolLongHelp(arg2); | |
24527 | wxPyEndAllowThreads(__tstate); | |
24528 | if (PyErr_Occurred()) SWIG_fail; | |
24529 | } | |
24530 | { | |
24531 | #if wxUSE_UNICODE | |
24532 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24533 | #else | |
24534 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24535 | #endif | |
24536 | } | |
24537 | return resultobj; | |
24538 | fail: | |
24539 | return NULL; | |
24540 | } | |
24541 | ||
24542 | ||
24543 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24544 | PyObject *resultobj = 0; | |
24545 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24546 | int arg2 ; | |
24547 | int arg3 ; | |
24548 | void *argp1 = 0 ; | |
24549 | int res1 = 0 ; | |
24550 | int val2 ; | |
24551 | int ecode2 = 0 ; | |
24552 | int val3 ; | |
24553 | int ecode3 = 0 ; | |
24554 | PyObject * obj0 = 0 ; | |
24555 | PyObject * obj1 = 0 ; | |
24556 | PyObject * obj2 = 0 ; | |
24557 | char * kwnames[] = { | |
24558 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24559 | }; | |
24560 | ||
24561 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24562 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24563 | if (!SWIG_IsOK(res1)) { | |
24564 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24565 | } | |
24566 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24567 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24568 | if (!SWIG_IsOK(ecode2)) { | |
24569 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'"); | |
24570 | } | |
24571 | arg2 = static_cast< int >(val2); | |
24572 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24573 | if (!SWIG_IsOK(ecode3)) { | |
24574 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'"); | |
24575 | } | |
24576 | arg3 = static_cast< int >(val3); | |
24577 | { | |
24578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24579 | (arg1)->SetMargins(arg2,arg3); | |
24580 | wxPyEndAllowThreads(__tstate); | |
24581 | if (PyErr_Occurred()) SWIG_fail; | |
24582 | } | |
24583 | resultobj = SWIG_Py_Void(); | |
24584 | return resultobj; | |
24585 | fail: | |
24586 | return NULL; | |
24587 | } | |
24588 | ||
24589 | ||
24590 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24591 | PyObject *resultobj = 0; | |
24592 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24593 | wxSize *arg2 = 0 ; | |
24594 | void *argp1 = 0 ; | |
24595 | int res1 = 0 ; | |
24596 | wxSize temp2 ; | |
24597 | PyObject * obj0 = 0 ; | |
24598 | PyObject * obj1 = 0 ; | |
24599 | char * kwnames[] = { | |
24600 | (char *) "self",(char *) "size", NULL | |
24601 | }; | |
24602 | ||
24603 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
24604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24605 | if (!SWIG_IsOK(res1)) { | |
24606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24607 | } | |
24608 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24609 | { | |
24610 | arg2 = &temp2; | |
24611 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24612 | } | |
24613 | { | |
24614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24615 | (arg1)->SetMargins((wxSize const &)*arg2); | |
24616 | wxPyEndAllowThreads(__tstate); | |
24617 | if (PyErr_Occurred()) SWIG_fail; | |
24618 | } | |
24619 | resultobj = SWIG_Py_Void(); | |
24620 | return resultobj; | |
24621 | fail: | |
24622 | return NULL; | |
24623 | } | |
24624 | ||
24625 | ||
24626 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24627 | PyObject *resultobj = 0; | |
24628 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24629 | int arg2 ; | |
24630 | void *argp1 = 0 ; | |
24631 | int res1 = 0 ; | |
24632 | int val2 ; | |
24633 | int ecode2 = 0 ; | |
24634 | PyObject * obj0 = 0 ; | |
24635 | PyObject * obj1 = 0 ; | |
24636 | char * kwnames[] = { | |
24637 | (char *) "self",(char *) "packing", NULL | |
24638 | }; | |
24639 | ||
24640 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail; | |
24641 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24642 | if (!SWIG_IsOK(res1)) { | |
24643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24644 | } | |
24645 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24646 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24647 | if (!SWIG_IsOK(ecode2)) { | |
24648 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'"); | |
24649 | } | |
24650 | arg2 = static_cast< int >(val2); | |
24651 | { | |
24652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24653 | (arg1)->SetToolPacking(arg2); | |
24654 | wxPyEndAllowThreads(__tstate); | |
24655 | if (PyErr_Occurred()) SWIG_fail; | |
24656 | } | |
24657 | resultobj = SWIG_Py_Void(); | |
24658 | return resultobj; | |
24659 | fail: | |
24660 | return NULL; | |
24661 | } | |
24662 | ||
24663 | ||
24664 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24665 | PyObject *resultobj = 0; | |
24666 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24667 | int arg2 ; | |
24668 | void *argp1 = 0 ; | |
24669 | int res1 = 0 ; | |
24670 | int val2 ; | |
24671 | int ecode2 = 0 ; | |
24672 | PyObject * obj0 = 0 ; | |
24673 | PyObject * obj1 = 0 ; | |
24674 | char * kwnames[] = { | |
24675 | (char *) "self",(char *) "separation", NULL | |
24676 | }; | |
24677 | ||
24678 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail; | |
24679 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24680 | if (!SWIG_IsOK(res1)) { | |
24681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24682 | } | |
24683 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24684 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24685 | if (!SWIG_IsOK(ecode2)) { | |
24686 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'"); | |
24687 | } | |
24688 | arg2 = static_cast< int >(val2); | |
24689 | { | |
24690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24691 | (arg1)->SetToolSeparation(arg2); | |
24692 | wxPyEndAllowThreads(__tstate); | |
24693 | if (PyErr_Occurred()) SWIG_fail; | |
24694 | } | |
24695 | resultobj = SWIG_Py_Void(); | |
24696 | return resultobj; | |
24697 | fail: | |
24698 | return NULL; | |
d14a1e28 RD |
24699 | } |
24700 | ||
24701 | ||
0085ce49 RD |
24702 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24703 | PyObject *resultobj = 0; | |
24704 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24705 | wxSize result; | |
24706 | void *argp1 = 0 ; | |
24707 | int res1 = 0 ; | |
24708 | PyObject *swig_obj[1] ; | |
24709 | ||
24710 | if (!args) SWIG_fail; | |
24711 | swig_obj[0] = args; | |
24712 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24713 | if (!SWIG_IsOK(res1)) { | |
24714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24715 | } | |
24716 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24717 | { | |
24718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24719 | result = (arg1)->GetToolMargins(); | |
24720 | wxPyEndAllowThreads(__tstate); | |
24721 | if (PyErr_Occurred()) SWIG_fail; | |
24722 | } | |
24723 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
24724 | return resultobj; | |
24725 | fail: | |
24726 | return NULL; | |
d14a1e28 RD |
24727 | } |
24728 | ||
24729 | ||
0085ce49 RD |
24730 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24731 | PyObject *resultobj = 0; | |
24732 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24733 | wxSize result; | |
24734 | void *argp1 = 0 ; | |
24735 | int res1 = 0 ; | |
24736 | PyObject *swig_obj[1] ; | |
24737 | ||
24738 | if (!args) SWIG_fail; | |
24739 | swig_obj[0] = args; | |
24740 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24741 | if (!SWIG_IsOK(res1)) { | |
24742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24743 | } | |
24744 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24745 | { | |
24746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24747 | result = (arg1)->GetMargins(); | |
24748 | wxPyEndAllowThreads(__tstate); | |
24749 | if (PyErr_Occurred()) SWIG_fail; | |
24750 | } | |
24751 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
24752 | return resultobj; | |
24753 | fail: | |
24754 | return NULL; | |
d14a1e28 RD |
24755 | } |
24756 | ||
24757 | ||
0085ce49 RD |
24758 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24759 | PyObject *resultobj = 0; | |
24760 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24761 | int result; | |
24762 | void *argp1 = 0 ; | |
24763 | int res1 = 0 ; | |
24764 | PyObject *swig_obj[1] ; | |
24765 | ||
24766 | if (!args) SWIG_fail; | |
24767 | swig_obj[0] = args; | |
24768 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24769 | if (!SWIG_IsOK(res1)) { | |
24770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24771 | } | |
24772 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24773 | { | |
24774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24775 | result = (int)(arg1)->GetToolPacking(); | |
24776 | wxPyEndAllowThreads(__tstate); | |
24777 | if (PyErr_Occurred()) SWIG_fail; | |
24778 | } | |
24779 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24780 | return resultobj; | |
24781 | fail: | |
24782 | return NULL; | |
d14a1e28 RD |
24783 | } |
24784 | ||
24785 | ||
0085ce49 RD |
24786 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24787 | PyObject *resultobj = 0; | |
24788 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24789 | int result; | |
24790 | void *argp1 = 0 ; | |
24791 | int res1 = 0 ; | |
24792 | PyObject *swig_obj[1] ; | |
24793 | ||
24794 | if (!args) SWIG_fail; | |
24795 | swig_obj[0] = args; | |
24796 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24797 | if (!SWIG_IsOK(res1)) { | |
24798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24799 | } | |
24800 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24801 | { | |
24802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24803 | result = (int)(arg1)->GetToolSeparation(); | |
24804 | wxPyEndAllowThreads(__tstate); | |
24805 | if (PyErr_Occurred()) SWIG_fail; | |
24806 | } | |
24807 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24808 | return resultobj; | |
24809 | fail: | |
24810 | return NULL; | |
24811 | } | |
24812 | ||
24813 | ||
24814 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24815 | PyObject *resultobj = 0; | |
24816 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24817 | int arg2 ; | |
24818 | void *argp1 = 0 ; | |
24819 | int res1 = 0 ; | |
24820 | int val2 ; | |
24821 | int ecode2 = 0 ; | |
24822 | PyObject * obj0 = 0 ; | |
24823 | PyObject * obj1 = 0 ; | |
24824 | char * kwnames[] = { | |
24825 | (char *) "self",(char *) "nRows", NULL | |
24826 | }; | |
24827 | ||
24828 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail; | |
24829 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24830 | if (!SWIG_IsOK(res1)) { | |
24831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24832 | } | |
24833 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24834 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24835 | if (!SWIG_IsOK(ecode2)) { | |
24836 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'"); | |
24837 | } | |
24838 | arg2 = static_cast< int >(val2); | |
24839 | { | |
24840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24841 | (arg1)->SetRows(arg2); | |
24842 | wxPyEndAllowThreads(__tstate); | |
24843 | if (PyErr_Occurred()) SWIG_fail; | |
24844 | } | |
24845 | resultobj = SWIG_Py_Void(); | |
24846 | return resultobj; | |
24847 | fail: | |
24848 | return NULL; | |
24849 | } | |
24850 | ||
24851 | ||
24852 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24853 | PyObject *resultobj = 0; | |
24854 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24855 | int arg2 ; | |
24856 | int arg3 ; | |
24857 | void *argp1 = 0 ; | |
24858 | int res1 = 0 ; | |
24859 | int val2 ; | |
24860 | int ecode2 = 0 ; | |
24861 | int val3 ; | |
24862 | int ecode3 = 0 ; | |
24863 | PyObject * obj0 = 0 ; | |
24864 | PyObject * obj1 = 0 ; | |
24865 | PyObject * obj2 = 0 ; | |
24866 | char * kwnames[] = { | |
24867 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
24868 | }; | |
24869 | ||
24870 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24871 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24872 | if (!SWIG_IsOK(res1)) { | |
24873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24874 | } | |
24875 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24876 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24877 | if (!SWIG_IsOK(ecode2)) { | |
24878 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'"); | |
24879 | } | |
24880 | arg2 = static_cast< int >(val2); | |
24881 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24882 | if (!SWIG_IsOK(ecode3)) { | |
24883 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'"); | |
24884 | } | |
24885 | arg3 = static_cast< int >(val3); | |
24886 | { | |
24887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24888 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
24889 | wxPyEndAllowThreads(__tstate); | |
24890 | if (PyErr_Occurred()) SWIG_fail; | |
24891 | } | |
24892 | resultobj = SWIG_Py_Void(); | |
24893 | return resultobj; | |
24894 | fail: | |
24895 | return NULL; | |
22bfe96c RD |
24896 | } |
24897 | ||
24898 | ||
0085ce49 RD |
24899 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24900 | PyObject *resultobj = 0; | |
24901 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24902 | int result; | |
24903 | void *argp1 = 0 ; | |
24904 | int res1 = 0 ; | |
24905 | PyObject *swig_obj[1] ; | |
24906 | ||
24907 | if (!args) SWIG_fail; | |
24908 | swig_obj[0] = args; | |
24909 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24910 | if (!SWIG_IsOK(res1)) { | |
24911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24912 | } | |
24913 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24914 | { | |
24915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24916 | result = (int)(arg1)->GetMaxRows(); | |
24917 | wxPyEndAllowThreads(__tstate); | |
24918 | if (PyErr_Occurred()) SWIG_fail; | |
24919 | } | |
24920 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24921 | return resultobj; | |
24922 | fail: | |
24923 | return NULL; | |
d14a1e28 RD |
24924 | } |
24925 | ||
24926 | ||
0085ce49 RD |
24927 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24928 | PyObject *resultobj = 0; | |
24929 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24930 | int result; | |
24931 | void *argp1 = 0 ; | |
24932 | int res1 = 0 ; | |
24933 | PyObject *swig_obj[1] ; | |
24934 | ||
24935 | if (!args) SWIG_fail; | |
24936 | swig_obj[0] = args; | |
24937 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24938 | if (!SWIG_IsOK(res1)) { | |
24939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24940 | } | |
24941 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24942 | { | |
24943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24944 | result = (int)(arg1)->GetMaxCols(); | |
24945 | wxPyEndAllowThreads(__tstate); | |
24946 | if (PyErr_Occurred()) SWIG_fail; | |
24947 | } | |
24948 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24949 | return resultobj; | |
24950 | fail: | |
24951 | return NULL; | |
24952 | } | |
24953 | ||
24954 | ||
24955 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24956 | PyObject *resultobj = 0; | |
24957 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24958 | wxSize *arg2 = 0 ; | |
24959 | void *argp1 = 0 ; | |
24960 | int res1 = 0 ; | |
24961 | wxSize temp2 ; | |
24962 | PyObject * obj0 = 0 ; | |
24963 | PyObject * obj1 = 0 ; | |
24964 | char * kwnames[] = { | |
24965 | (char *) "self",(char *) "size", NULL | |
24966 | }; | |
24967 | ||
24968 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
24969 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24970 | if (!SWIG_IsOK(res1)) { | |
24971 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24972 | } | |
24973 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24974 | { | |
24975 | arg2 = &temp2; | |
24976 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24977 | } | |
24978 | { | |
24979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24980 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
24981 | wxPyEndAllowThreads(__tstate); | |
24982 | if (PyErr_Occurred()) SWIG_fail; | |
24983 | } | |
24984 | resultobj = SWIG_Py_Void(); | |
24985 | return resultobj; | |
24986 | fail: | |
24987 | return NULL; | |
d14a1e28 RD |
24988 | } |
24989 | ||
24990 | ||
0085ce49 RD |
24991 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24992 | PyObject *resultobj = 0; | |
24993 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24994 | wxSize result; | |
24995 | void *argp1 = 0 ; | |
24996 | int res1 = 0 ; | |
24997 | PyObject *swig_obj[1] ; | |
24998 | ||
24999 | if (!args) SWIG_fail; | |
25000 | swig_obj[0] = args; | |
25001 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25002 | if (!SWIG_IsOK(res1)) { | |
25003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25004 | } | |
25005 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25006 | { | |
25007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25008 | result = (arg1)->GetToolBitmapSize(); | |
25009 | wxPyEndAllowThreads(__tstate); | |
25010 | if (PyErr_Occurred()) SWIG_fail; | |
25011 | } | |
25012 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25013 | return resultobj; | |
25014 | fail: | |
25015 | return NULL; | |
d14a1e28 RD |
25016 | } |
25017 | ||
25018 | ||
0085ce49 RD |
25019 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25020 | PyObject *resultobj = 0; | |
25021 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25022 | wxSize result; | |
25023 | void *argp1 = 0 ; | |
25024 | int res1 = 0 ; | |
25025 | PyObject *swig_obj[1] ; | |
25026 | ||
25027 | if (!args) SWIG_fail; | |
25028 | swig_obj[0] = args; | |
25029 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25030 | if (!SWIG_IsOK(res1)) { | |
25031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25032 | } | |
25033 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25034 | { | |
25035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25036 | result = (arg1)->GetToolSize(); | |
25037 | wxPyEndAllowThreads(__tstate); | |
25038 | if (PyErr_Occurred()) SWIG_fail; | |
25039 | } | |
25040 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25041 | return resultobj; | |
25042 | fail: | |
25043 | return NULL; | |
25044 | } | |
25045 | ||
25046 | ||
25047 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25048 | PyObject *resultobj = 0; | |
25049 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25050 | int arg2 ; | |
25051 | int arg3 ; | |
25052 | wxToolBarToolBase *result = 0 ; | |
25053 | void *argp1 = 0 ; | |
25054 | int res1 = 0 ; | |
25055 | int val2 ; | |
25056 | int ecode2 = 0 ; | |
25057 | int val3 ; | |
25058 | int ecode3 = 0 ; | |
25059 | PyObject * obj0 = 0 ; | |
25060 | PyObject * obj1 = 0 ; | |
25061 | PyObject * obj2 = 0 ; | |
25062 | char * kwnames[] = { | |
25063 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25064 | }; | |
25065 | ||
25066 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25067 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25068 | if (!SWIG_IsOK(res1)) { | |
25069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25070 | } | |
25071 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25072 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25073 | if (!SWIG_IsOK(ecode2)) { | |
25074 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'"); | |
25075 | } | |
25076 | arg2 = static_cast< int >(val2); | |
25077 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25078 | if (!SWIG_IsOK(ecode3)) { | |
25079 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'"); | |
25080 | } | |
25081 | arg3 = static_cast< int >(val3); | |
25082 | { | |
25083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25084 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
25085 | wxPyEndAllowThreads(__tstate); | |
25086 | if (PyErr_Occurred()) SWIG_fail; | |
25087 | } | |
25088 | { | |
25089 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
25090 | } | |
25091 | return resultobj; | |
25092 | fail: | |
25093 | return NULL; | |
25094 | } | |
25095 | ||
25096 | ||
25097 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25098 | PyObject *resultobj = 0; | |
25099 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25100 | int arg2 ; | |
25101 | wxToolBarToolBase *result = 0 ; | |
25102 | void *argp1 = 0 ; | |
25103 | int res1 = 0 ; | |
25104 | int val2 ; | |
25105 | int ecode2 = 0 ; | |
25106 | PyObject * obj0 = 0 ; | |
25107 | PyObject * obj1 = 0 ; | |
25108 | char * kwnames[] = { | |
25109 | (char *) "self",(char *) "toolid", NULL | |
25110 | }; | |
25111 | ||
25112 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail; | |
25113 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25114 | if (!SWIG_IsOK(res1)) { | |
25115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
25116 | } | |
25117 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25118 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25119 | if (!SWIG_IsOK(ecode2)) { | |
25120 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'"); | |
25121 | } | |
25122 | arg2 = static_cast< int >(val2); | |
25123 | { | |
25124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25125 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
25126 | wxPyEndAllowThreads(__tstate); | |
25127 | if (PyErr_Occurred()) SWIG_fail; | |
25128 | } | |
25129 | { | |
25130 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
25131 | } | |
25132 | return resultobj; | |
25133 | fail: | |
25134 | return NULL; | |
d14a1e28 RD |
25135 | } |
25136 | ||
25137 | ||
0085ce49 RD |
25138 | SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25139 | PyObject *resultobj = 0; | |
25140 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25141 | bool result; | |
25142 | void *argp1 = 0 ; | |
25143 | int res1 = 0 ; | |
25144 | PyObject *swig_obj[1] ; | |
25145 | ||
25146 | if (!args) SWIG_fail; | |
25147 | swig_obj[0] = args; | |
25148 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25149 | if (!SWIG_IsOK(res1)) { | |
25150 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25151 | } | |
25152 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25153 | { | |
25154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25155 | result = (bool)(arg1)->IsVertical(); | |
25156 | wxPyEndAllowThreads(__tstate); | |
25157 | if (PyErr_Occurred()) SWIG_fail; | |
25158 | } | |
25159 | { | |
25160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25161 | } | |
25162 | return resultobj; | |
25163 | fail: | |
25164 | return NULL; | |
25165 | } | |
25166 | ||
25167 | ||
25168 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25169 | PyObject *resultobj = 0; | |
25170 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25171 | size_t result; | |
25172 | void *argp1 = 0 ; | |
25173 | int res1 = 0 ; | |
25174 | PyObject *swig_obj[1] ; | |
25175 | ||
25176 | if (!args) SWIG_fail; | |
25177 | swig_obj[0] = args; | |
25178 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25179 | if (!SWIG_IsOK(res1)) { | |
25180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
25181 | } | |
25182 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25183 | { | |
25184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25185 | result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount(); | |
25186 | wxPyEndAllowThreads(__tstate); | |
25187 | if (PyErr_Occurred()) SWIG_fail; | |
25188 | } | |
25189 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
25190 | return resultobj; | |
25191 | fail: | |
25192 | return NULL; | |
25193 | } | |
25194 | ||
25195 | ||
25196 | SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25197 | PyObject *obj; | |
25198 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25199 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj)); | |
25200 | return SWIG_Py_Void(); | |
25201 | } | |
25202 | ||
25203 | SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25204 | PyObject *resultobj = 0; | |
25205 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25206 | int arg2 = (int) -1 ; | |
25207 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
25208 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25209 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25210 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25211 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
25212 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
25213 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
25214 | wxToolBar *result = 0 ; | |
25215 | void *argp1 = 0 ; | |
25216 | int res1 = 0 ; | |
25217 | int val2 ; | |
25218 | int ecode2 = 0 ; | |
25219 | wxPoint temp3 ; | |
25220 | wxSize temp4 ; | |
25221 | long val5 ; | |
25222 | int ecode5 = 0 ; | |
25223 | bool temp6 = false ; | |
25224 | PyObject * obj0 = 0 ; | |
25225 | PyObject * obj1 = 0 ; | |
25226 | PyObject * obj2 = 0 ; | |
25227 | PyObject * obj3 = 0 ; | |
25228 | PyObject * obj4 = 0 ; | |
25229 | PyObject * obj5 = 0 ; | |
25230 | char * kwnames[] = { | |
25231 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
25232 | }; | |
25233 | ||
25234 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
25235 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25236 | if (!SWIG_IsOK(res1)) { | |
25237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25238 | } | |
25239 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25240 | if (obj1) { | |
25241 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25242 | if (!SWIG_IsOK(ecode2)) { | |
25243 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'"); | |
25244 | } | |
25245 | arg2 = static_cast< int >(val2); | |
25246 | } | |
25247 | if (obj2) { | |
25248 | { | |
25249 | arg3 = &temp3; | |
25250 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25251 | } | |
25252 | } | |
25253 | if (obj3) { | |
093d3ff1 | 25254 | { |
0085ce49 RD |
25255 | arg4 = &temp4; |
25256 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 25257 | } |
0085ce49 RD |
25258 | } |
25259 | if (obj4) { | |
25260 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
25261 | if (!SWIG_IsOK(ecode5)) { | |
25262 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'"); | |
25263 | } | |
25264 | arg5 = static_cast< long >(val5); | |
25265 | } | |
25266 | if (obj5) { | |
d14a1e28 | 25267 | { |
0085ce49 RD |
25268 | arg6 = wxString_in_helper(obj5); |
25269 | if (arg6 == NULL) SWIG_fail; | |
25270 | temp6 = true; | |
d14a1e28 | 25271 | } |
0085ce49 RD |
25272 | } |
25273 | { | |
25274 | if (!wxPyCheckForApp()) SWIG_fail; | |
25275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25276 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
25277 | wxPyEndAllowThreads(__tstate); | |
25278 | if (PyErr_Occurred()) SWIG_fail; | |
25279 | } | |
25280 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 ); | |
25281 | { | |
25282 | if (temp6) | |
25283 | delete arg6; | |
25284 | } | |
25285 | return resultobj; | |
25286 | fail: | |
25287 | { | |
25288 | if (temp6) | |
25289 | delete arg6; | |
25290 | } | |
25291 | return NULL; | |
d14a1e28 RD |
25292 | } |
25293 | ||
25294 | ||
0085ce49 RD |
25295 | SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25296 | PyObject *resultobj = 0; | |
25297 | wxToolBar *result = 0 ; | |
25298 | ||
25299 | if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail; | |
25300 | { | |
25301 | if (!wxPyCheckForApp()) SWIG_fail; | |
25302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25303 | result = (wxToolBar *)new wxToolBar(); | |
25304 | wxPyEndAllowThreads(__tstate); | |
25305 | if (PyErr_Occurred()) SWIG_fail; | |
25306 | } | |
25307 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 ); | |
25308 | return resultobj; | |
25309 | fail: | |
25310 | return NULL; | |
25311 | } | |
25312 | ||
25313 | ||
25314 | SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25315 | PyObject *resultobj = 0; | |
25316 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
25317 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25318 | int arg3 = (int) -1 ; | |
25319 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
25320 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25321 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25322 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25323 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
25324 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
25325 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
25326 | bool result; | |
25327 | void *argp1 = 0 ; | |
25328 | int res1 = 0 ; | |
25329 | void *argp2 = 0 ; | |
25330 | int res2 = 0 ; | |
25331 | int val3 ; | |
25332 | int ecode3 = 0 ; | |
25333 | wxPoint temp4 ; | |
25334 | wxSize temp5 ; | |
25335 | long val6 ; | |
25336 | int ecode6 = 0 ; | |
25337 | bool temp7 = false ; | |
25338 | PyObject * obj0 = 0 ; | |
25339 | PyObject * obj1 = 0 ; | |
25340 | PyObject * obj2 = 0 ; | |
25341 | PyObject * obj3 = 0 ; | |
25342 | PyObject * obj4 = 0 ; | |
25343 | PyObject * obj5 = 0 ; | |
25344 | PyObject * obj6 = 0 ; | |
25345 | char * kwnames[] = { | |
25346 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
25347 | }; | |
25348 | ||
25349 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
25350 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
25351 | if (!SWIG_IsOK(res1)) { | |
25352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'"); | |
25353 | } | |
25354 | arg1 = reinterpret_cast< wxToolBar * >(argp1); | |
25355 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25356 | if (!SWIG_IsOK(res2)) { | |
25357 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25358 | } | |
25359 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25360 | if (obj2) { | |
25361 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25362 | if (!SWIG_IsOK(ecode3)) { | |
25363 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
25364 | } | |
25365 | arg3 = static_cast< int >(val3); | |
25366 | } | |
25367 | if (obj3) { | |
25368 | { | |
25369 | arg4 = &temp4; | |
25370 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22bfe96c | 25371 | } |
0085ce49 RD |
25372 | } |
25373 | if (obj4) { | |
22bfe96c | 25374 | { |
0085ce49 RD |
25375 | arg5 = &temp5; |
25376 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22bfe96c | 25377 | } |
0085ce49 RD |
25378 | } |
25379 | if (obj5) { | |
25380 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
25381 | if (!SWIG_IsOK(ecode6)) { | |
25382 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'"); | |
25383 | } | |
25384 | arg6 = static_cast< long >(val6); | |
25385 | } | |
25386 | if (obj6) { | |
22bfe96c | 25387 | { |
0085ce49 RD |
25388 | arg7 = wxString_in_helper(obj6); |
25389 | if (arg7 == NULL) SWIG_fail; | |
25390 | temp7 = true; | |
22bfe96c | 25391 | } |
0085ce49 RD |
25392 | } |
25393 | { | |
25394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25395 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
25396 | wxPyEndAllowThreads(__tstate); | |
25397 | if (PyErr_Occurred()) SWIG_fail; | |
25398 | } | |
25399 | { | |
25400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25401 | } | |
25402 | { | |
25403 | if (temp7) | |
25404 | delete arg7; | |
25405 | } | |
25406 | return resultobj; | |
25407 | fail: | |
25408 | { | |
25409 | if (temp7) | |
25410 | delete arg7; | |
25411 | } | |
25412 | return NULL; | |
25413 | } | |
25414 | ||
25415 | ||
0085ce49 RD |
25416 | SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25417 | PyObject *resultobj = 0; | |
25418 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
25419 | SwigValueWrapper<wxVisualAttributes > result; | |
25420 | int val1 ; | |
25421 | int ecode1 = 0 ; | |
25422 | PyObject * obj0 = 0 ; | |
25423 | char * kwnames[] = { | |
25424 | (char *) "variant", NULL | |
25425 | }; | |
25426 | ||
25427 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
25428 | if (obj0) { | |
25429 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
25430 | if (!SWIG_IsOK(ecode1)) { | |
25431 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
25432 | } | |
25433 | arg1 = static_cast< wxWindowVariant >(val1); | |
25434 | } | |
25435 | { | |
25436 | if (!wxPyCheckForApp()) SWIG_fail; | |
25437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25438 | result = wxToolBar::GetClassDefaultAttributes(arg1); | |
25439 | wxPyEndAllowThreads(__tstate); | |
25440 | if (PyErr_Occurred()) SWIG_fail; | |
25441 | } | |
25442 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
25443 | return resultobj; | |
25444 | fail: | |
25445 | return NULL; | |
22bfe96c RD |
25446 | } |
25447 | ||
25448 | ||
0085ce49 RD |
25449 | SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25450 | PyObject *obj; | |
25451 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25452 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj)); | |
25453 | return SWIG_Py_Void(); | |
d14a1e28 | 25454 | } |
0085ce49 RD |
25455 | |
25456 | SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25457 | return SWIG_Python_InitShadowInstance(args); | |
b2dc1044 RD |
25458 | } |
25459 | ||
0085ce49 RD |
25460 | SWIGINTERN int ListCtrlNameStr_set(PyObject *) { |
25461 | SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only."); | |
25462 | return 1; | |
25463 | } | |
b2dc1044 | 25464 | |
0085ce49 RD |
25465 | |
25466 | SWIGINTERN PyObject *ListCtrlNameStr_get(void) { | |
25467 | PyObject *pyobj = 0; | |
25468 | ||
25469 | { | |
b2dc1044 | 25470 | #if wxUSE_UNICODE |
0085ce49 | 25471 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); |
b2dc1044 | 25472 | #else |
0085ce49 | 25473 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); |
b2dc1044 | 25474 | #endif |
0085ce49 RD |
25475 | } |
25476 | return pyobj; | |
25477 | } | |
25478 | ||
25479 | ||
25480 | SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25481 | PyObject *resultobj = 0; | |
25482 | wxColour const &arg1_defvalue = wxNullColour ; | |
25483 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
25484 | wxColour const &arg2_defvalue = wxNullColour ; | |
25485 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
25486 | wxFont const &arg3_defvalue = wxNullFont ; | |
25487 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
25488 | wxListItemAttr *result = 0 ; | |
25489 | wxColour temp1 ; | |
25490 | wxColour temp2 ; | |
25491 | void *argp3 = 0 ; | |
25492 | int res3 = 0 ; | |
25493 | PyObject * obj0 = 0 ; | |
25494 | PyObject * obj1 = 0 ; | |
25495 | PyObject * obj2 = 0 ; | |
25496 | char * kwnames[] = { | |
25497 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
25498 | }; | |
25499 | ||
25500 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25501 | if (obj0) { | |
d14a1e28 | 25502 | { |
0085ce49 RD |
25503 | arg1 = &temp1; |
25504 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
d14a1e28 | 25505 | } |
0085ce49 RD |
25506 | } |
25507 | if (obj1) { | |
d14a1e28 | 25508 | { |
0085ce49 RD |
25509 | arg2 = &temp2; |
25510 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 25511 | } |
0085ce49 RD |
25512 | } |
25513 | if (obj2) { | |
25514 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
25515 | if (!SWIG_IsOK(res3)) { | |
25516 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d14a1e28 | 25517 | } |
0085ce49 RD |
25518 | if (!argp3) { |
25519 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d14a1e28 | 25520 | } |
0085ce49 RD |
25521 | arg3 = reinterpret_cast< wxFont * >(argp3); |
25522 | } | |
25523 | { | |
25524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25525 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
25526 | wxPyEndAllowThreads(__tstate); | |
25527 | if (PyErr_Occurred()) SWIG_fail; | |
25528 | } | |
25529 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 ); | |
25530 | return resultobj; | |
25531 | fail: | |
25532 | return NULL; | |
d14a1e28 RD |
25533 | } |
25534 | ||
25535 | ||
0085ce49 RD |
25536 | SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25537 | PyObject *resultobj = 0; | |
25538 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25539 | void *argp1 = 0 ; | |
25540 | int res1 = 0 ; | |
25541 | PyObject *swig_obj[1] ; | |
25542 | ||
25543 | if (!args) SWIG_fail; | |
25544 | swig_obj[0] = args; | |
25545 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 ); | |
25546 | if (!SWIG_IsOK(res1)) { | |
25547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25548 | } | |
25549 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25550 | { | |
25551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25552 | delete arg1; | |
d14a1e28 | 25553 | |
0085ce49 RD |
25554 | wxPyEndAllowThreads(__tstate); |
25555 | if (PyErr_Occurred()) SWIG_fail; | |
25556 | } | |
25557 | resultobj = SWIG_Py_Void(); | |
25558 | return resultobj; | |
25559 | fail: | |
25560 | return NULL; | |
25561 | } | |
25562 | ||
25563 | ||
25564 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25565 | PyObject *resultobj = 0; | |
25566 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25567 | wxColour *arg2 = 0 ; | |
25568 | void *argp1 = 0 ; | |
25569 | int res1 = 0 ; | |
25570 | wxColour temp2 ; | |
25571 | PyObject * obj0 = 0 ; | |
25572 | PyObject * obj1 = 0 ; | |
25573 | char * kwnames[] = { | |
25574 | (char *) "self",(char *) "colText", NULL | |
25575 | }; | |
25576 | ||
25577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
25578 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25579 | if (!SWIG_IsOK(res1)) { | |
25580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25581 | } | |
25582 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25583 | { | |
25584 | arg2 = &temp2; | |
25585 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25586 | } | |
25587 | { | |
25588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25589 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
25590 | wxPyEndAllowThreads(__tstate); | |
25591 | if (PyErr_Occurred()) SWIG_fail; | |
25592 | } | |
25593 | resultobj = SWIG_Py_Void(); | |
25594 | return resultobj; | |
25595 | fail: | |
25596 | return NULL; | |
25597 | } | |
25598 | ||
25599 | ||
25600 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25601 | PyObject *resultobj = 0; | |
25602 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25603 | wxColour *arg2 = 0 ; | |
25604 | void *argp1 = 0 ; | |
25605 | int res1 = 0 ; | |
25606 | wxColour temp2 ; | |
25607 | PyObject * obj0 = 0 ; | |
25608 | PyObject * obj1 = 0 ; | |
25609 | char * kwnames[] = { | |
25610 | (char *) "self",(char *) "colBack", NULL | |
25611 | }; | |
25612 | ||
25613 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
25614 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25615 | if (!SWIG_IsOK(res1)) { | |
25616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25617 | } | |
25618 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25619 | { | |
25620 | arg2 = &temp2; | |
25621 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25622 | } | |
25623 | { | |
25624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25625 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
25626 | wxPyEndAllowThreads(__tstate); | |
25627 | if (PyErr_Occurred()) SWIG_fail; | |
25628 | } | |
25629 | resultobj = SWIG_Py_Void(); | |
25630 | return resultobj; | |
25631 | fail: | |
25632 | return NULL; | |
25633 | } | |
25634 | ||
25635 | ||
25636 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25637 | PyObject *resultobj = 0; | |
25638 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25639 | wxFont *arg2 = 0 ; | |
25640 | void *argp1 = 0 ; | |
25641 | int res1 = 0 ; | |
25642 | void *argp2 = 0 ; | |
25643 | int res2 = 0 ; | |
25644 | PyObject * obj0 = 0 ; | |
25645 | PyObject * obj1 = 0 ; | |
25646 | char * kwnames[] = { | |
25647 | (char *) "self",(char *) "font", NULL | |
25648 | }; | |
25649 | ||
25650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
25651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25652 | if (!SWIG_IsOK(res1)) { | |
25653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25654 | } | |
25655 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25656 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
25657 | if (!SWIG_IsOK(res2)) { | |
25658 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
25659 | } | |
25660 | if (!argp2) { | |
25661 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
25662 | } | |
25663 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
25664 | { | |
25665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25666 | (arg1)->SetFont((wxFont const &)*arg2); | |
25667 | wxPyEndAllowThreads(__tstate); | |
25668 | if (PyErr_Occurred()) SWIG_fail; | |
25669 | } | |
25670 | resultobj = SWIG_Py_Void(); | |
25671 | return resultobj; | |
25672 | fail: | |
25673 | return NULL; | |
d14a1e28 RD |
25674 | } |
25675 | ||
25676 | ||
0085ce49 RD |
25677 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25678 | PyObject *resultobj = 0; | |
25679 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25680 | bool result; | |
25681 | void *argp1 = 0 ; | |
25682 | int res1 = 0 ; | |
25683 | PyObject *swig_obj[1] ; | |
25684 | ||
25685 | if (!args) SWIG_fail; | |
25686 | swig_obj[0] = args; | |
25687 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25688 | if (!SWIG_IsOK(res1)) { | |
25689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25690 | } | |
25691 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25692 | { | |
25693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25694 | result = (bool)(arg1)->HasTextColour(); | |
25695 | wxPyEndAllowThreads(__tstate); | |
25696 | if (PyErr_Occurred()) SWIG_fail; | |
25697 | } | |
25698 | { | |
25699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25700 | } | |
25701 | return resultobj; | |
25702 | fail: | |
25703 | return NULL; | |
d14a1e28 RD |
25704 | } |
25705 | ||
25706 | ||
0085ce49 RD |
25707 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25708 | PyObject *resultobj = 0; | |
25709 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25710 | bool result; | |
25711 | void *argp1 = 0 ; | |
25712 | int res1 = 0 ; | |
25713 | PyObject *swig_obj[1] ; | |
25714 | ||
25715 | if (!args) SWIG_fail; | |
25716 | swig_obj[0] = args; | |
25717 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25718 | if (!SWIG_IsOK(res1)) { | |
25719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25720 | } | |
25721 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25722 | { | |
25723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25724 | result = (bool)(arg1)->HasBackgroundColour(); | |
25725 | wxPyEndAllowThreads(__tstate); | |
25726 | if (PyErr_Occurred()) SWIG_fail; | |
25727 | } | |
25728 | { | |
25729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25730 | } | |
25731 | return resultobj; | |
25732 | fail: | |
25733 | return NULL; | |
d14a1e28 RD |
25734 | } |
25735 | ||
25736 | ||
0085ce49 RD |
25737 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25738 | PyObject *resultobj = 0; | |
25739 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25740 | bool result; | |
25741 | void *argp1 = 0 ; | |
25742 | int res1 = 0 ; | |
25743 | PyObject *swig_obj[1] ; | |
25744 | ||
25745 | if (!args) SWIG_fail; | |
25746 | swig_obj[0] = args; | |
25747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25748 | if (!SWIG_IsOK(res1)) { | |
25749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25750 | } | |
25751 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25752 | { | |
25753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25754 | result = (bool)(arg1)->HasFont(); | |
25755 | wxPyEndAllowThreads(__tstate); | |
25756 | if (PyErr_Occurred()) SWIG_fail; | |
25757 | } | |
25758 | { | |
25759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25760 | } | |
25761 | return resultobj; | |
25762 | fail: | |
25763 | return NULL; | |
d14a1e28 RD |
25764 | } |
25765 | ||
25766 | ||
0085ce49 RD |
25767 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25768 | PyObject *resultobj = 0; | |
25769 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25770 | wxColour result; | |
25771 | void *argp1 = 0 ; | |
25772 | int res1 = 0 ; | |
25773 | PyObject *swig_obj[1] ; | |
25774 | ||
25775 | if (!args) SWIG_fail; | |
25776 | swig_obj[0] = args; | |
25777 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25778 | if (!SWIG_IsOK(res1)) { | |
25779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25780 | } | |
25781 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25782 | { | |
25783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25784 | result = (arg1)->GetTextColour(); | |
25785 | wxPyEndAllowThreads(__tstate); | |
25786 | if (PyErr_Occurred()) SWIG_fail; | |
25787 | } | |
25788 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
25789 | return resultobj; | |
25790 | fail: | |
25791 | return NULL; | |
d14a1e28 RD |
25792 | } |
25793 | ||
25794 | ||
0085ce49 RD |
25795 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25796 | PyObject *resultobj = 0; | |
25797 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25798 | wxColour result; | |
25799 | void *argp1 = 0 ; | |
25800 | int res1 = 0 ; | |
25801 | PyObject *swig_obj[1] ; | |
25802 | ||
25803 | if (!args) SWIG_fail; | |
25804 | swig_obj[0] = args; | |
25805 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25806 | if (!SWIG_IsOK(res1)) { | |
25807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25808 | } | |
25809 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25810 | { | |
25811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25812 | result = (arg1)->GetBackgroundColour(); | |
25813 | wxPyEndAllowThreads(__tstate); | |
25814 | if (PyErr_Occurred()) SWIG_fail; | |
25815 | } | |
25816 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
25817 | return resultobj; | |
25818 | fail: | |
25819 | return NULL; | |
d14a1e28 RD |
25820 | } |
25821 | ||
25822 | ||
0085ce49 RD |
25823 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25824 | PyObject *resultobj = 0; | |
25825 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25826 | wxFont result; | |
25827 | void *argp1 = 0 ; | |
25828 | int res1 = 0 ; | |
25829 | PyObject *swig_obj[1] ; | |
25830 | ||
25831 | if (!args) SWIG_fail; | |
25832 | swig_obj[0] = args; | |
25833 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25834 | if (!SWIG_IsOK(res1)) { | |
25835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25836 | } | |
25837 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25838 | { | |
25839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25840 | result = (arg1)->GetFont(); | |
25841 | wxPyEndAllowThreads(__tstate); | |
25842 | if (PyErr_Occurred()) SWIG_fail; | |
25843 | } | |
25844 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
25845 | return resultobj; | |
25846 | fail: | |
25847 | return NULL; | |
25848 | } | |
25849 | ||
25850 | ||
25851 | SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25852 | PyObject *resultobj = 0; | |
25853 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25854 | wxListItemAttr *arg2 = 0 ; | |
25855 | void *argp1 = 0 ; | |
25856 | int res1 = 0 ; | |
25857 | void *argp2 = 0 ; | |
25858 | int res2 = 0 ; | |
25859 | PyObject * obj0 = 0 ; | |
25860 | PyObject * obj1 = 0 ; | |
25861 | char * kwnames[] = { | |
25862 | (char *) "self",(char *) "source", NULL | |
25863 | }; | |
25864 | ||
25865 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail; | |
25866 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25867 | if (!SWIG_IsOK(res1)) { | |
25868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25869 | } | |
25870 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25871 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0); | |
25872 | if (!SWIG_IsOK(res2)) { | |
25873 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'"); | |
25874 | } | |
25875 | if (!argp2) { | |
25876 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'"); | |
25877 | } | |
25878 | arg2 = reinterpret_cast< wxListItemAttr * >(argp2); | |
25879 | { | |
25880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25881 | (arg1)->AssignFrom((wxListItemAttr const &)*arg2); | |
25882 | wxPyEndAllowThreads(__tstate); | |
25883 | if (PyErr_Occurred()) SWIG_fail; | |
25884 | } | |
25885 | resultobj = SWIG_Py_Void(); | |
25886 | return resultobj; | |
25887 | fail: | |
25888 | return NULL; | |
d14a1e28 RD |
25889 | } |
25890 | ||
25891 | ||
0085ce49 RD |
25892 | SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25893 | PyObject *resultobj = 0; | |
25894 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
25895 | void *argp1 = 0 ; | |
25896 | int res1 = 0 ; | |
25897 | PyObject *swig_obj[1] ; | |
25898 | ||
25899 | if (!args) SWIG_fail; | |
25900 | swig_obj[0] = args; | |
25901 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
25902 | if (!SWIG_IsOK(res1)) { | |
25903 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
25904 | } | |
25905 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
25906 | { | |
25907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25908 | wxListItemAttr_Destroy(arg1); | |
25909 | wxPyEndAllowThreads(__tstate); | |
25910 | if (PyErr_Occurred()) SWIG_fail; | |
25911 | } | |
25912 | resultobj = SWIG_Py_Void(); | |
25913 | return resultobj; | |
25914 | fail: | |
25915 | return NULL; | |
d14a1e28 RD |
25916 | } |
25917 | ||
25918 | ||
0085ce49 RD |
25919 | SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25920 | PyObject *obj; | |
25921 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25922 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj)); | |
25923 | return SWIG_Py_Void(); | |
d14a1e28 RD |
25924 | } |
25925 | ||
0085ce49 RD |
25926 | SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25927 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
25928 | } |
25929 | ||
0085ce49 RD |
25930 | SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25931 | PyObject *resultobj = 0; | |
25932 | wxListItem *result = 0 ; | |
25933 | ||
25934 | if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail; | |
25935 | { | |
25936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25937 | result = (wxListItem *)new wxListItem(); | |
25938 | wxPyEndAllowThreads(__tstate); | |
25939 | if (PyErr_Occurred()) SWIG_fail; | |
25940 | } | |
25941 | { | |
25942 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW); | |
25943 | } | |
25944 | return resultobj; | |
25945 | fail: | |
25946 | return NULL; | |
d14a1e28 RD |
25947 | } |
25948 | ||
25949 | ||
0085ce49 RD |
25950 | SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25951 | PyObject *resultobj = 0; | |
25952 | wxListItem *arg1 = (wxListItem *) 0 ; | |
25953 | void *argp1 = 0 ; | |
25954 | int res1 = 0 ; | |
25955 | PyObject *swig_obj[1] ; | |
25956 | ||
25957 | if (!args) SWIG_fail; | |
25958 | swig_obj[0] = args; | |
25959 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 ); | |
25960 | if (!SWIG_IsOK(res1)) { | |
25961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
25962 | } | |
25963 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
25964 | { | |
25965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25966 | delete arg1; | |
d14a1e28 | 25967 | |
0085ce49 RD |
25968 | wxPyEndAllowThreads(__tstate); |
25969 | if (PyErr_Occurred()) SWIG_fail; | |
25970 | } | |
25971 | resultobj = SWIG_Py_Void(); | |
25972 | return resultobj; | |
25973 | fail: | |
25974 | return NULL; | |
d14a1e28 RD |
25975 | } |
25976 | ||
25977 | ||
0085ce49 RD |
25978 | SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25979 | PyObject *resultobj = 0; | |
25980 | wxListItem *arg1 = (wxListItem *) 0 ; | |
25981 | void *argp1 = 0 ; | |
25982 | int res1 = 0 ; | |
25983 | PyObject *swig_obj[1] ; | |
25984 | ||
25985 | if (!args) SWIG_fail; | |
25986 | swig_obj[0] = args; | |
25987 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
25988 | if (!SWIG_IsOK(res1)) { | |
25989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
25990 | } | |
25991 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
25992 | { | |
25993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25994 | (arg1)->Clear(); | |
25995 | wxPyEndAllowThreads(__tstate); | |
25996 | if (PyErr_Occurred()) SWIG_fail; | |
25997 | } | |
25998 | resultobj = SWIG_Py_Void(); | |
25999 | return resultobj; | |
26000 | fail: | |
26001 | return NULL; | |
d14a1e28 RD |
26002 | } |
26003 | ||
26004 | ||
0085ce49 RD |
26005 | SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26006 | PyObject *resultobj = 0; | |
26007 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26008 | void *argp1 = 0 ; | |
26009 | int res1 = 0 ; | |
26010 | PyObject *swig_obj[1] ; | |
26011 | ||
26012 | if (!args) SWIG_fail; | |
26013 | swig_obj[0] = args; | |
26014 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26015 | if (!SWIG_IsOK(res1)) { | |
26016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26017 | } | |
26018 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26019 | { | |
26020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26021 | (arg1)->ClearAttributes(); | |
26022 | wxPyEndAllowThreads(__tstate); | |
26023 | if (PyErr_Occurred()) SWIG_fail; | |
26024 | } | |
26025 | resultobj = SWIG_Py_Void(); | |
26026 | return resultobj; | |
26027 | fail: | |
26028 | return NULL; | |
26029 | } | |
26030 | ||
26031 | ||
26032 | SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26033 | PyObject *resultobj = 0; | |
26034 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26035 | long arg2 ; | |
26036 | void *argp1 = 0 ; | |
26037 | int res1 = 0 ; | |
26038 | long val2 ; | |
26039 | int ecode2 = 0 ; | |
26040 | PyObject * obj0 = 0 ; | |
26041 | PyObject * obj1 = 0 ; | |
26042 | char * kwnames[] = { | |
26043 | (char *) "self",(char *) "mask", NULL | |
26044 | }; | |
26045 | ||
26046 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
26047 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26048 | if (!SWIG_IsOK(res1)) { | |
26049 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26050 | } | |
26051 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26052 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26053 | if (!SWIG_IsOK(ecode2)) { | |
26054 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'"); | |
26055 | } | |
26056 | arg2 = static_cast< long >(val2); | |
26057 | { | |
26058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26059 | (arg1)->SetMask(arg2); | |
26060 | wxPyEndAllowThreads(__tstate); | |
26061 | if (PyErr_Occurred()) SWIG_fail; | |
26062 | } | |
26063 | resultobj = SWIG_Py_Void(); | |
26064 | return resultobj; | |
26065 | fail: | |
26066 | return NULL; | |
26067 | } | |
26068 | ||
26069 | ||
26070 | SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26071 | PyObject *resultobj = 0; | |
26072 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26073 | long arg2 ; | |
26074 | void *argp1 = 0 ; | |
26075 | int res1 = 0 ; | |
26076 | long val2 ; | |
26077 | int ecode2 = 0 ; | |
26078 | PyObject * obj0 = 0 ; | |
26079 | PyObject * obj1 = 0 ; | |
26080 | char * kwnames[] = { | |
26081 | (char *) "self",(char *) "id", NULL | |
26082 | }; | |
26083 | ||
26084 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
26085 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26086 | if (!SWIG_IsOK(res1)) { | |
26087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26088 | } | |
26089 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26090 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26091 | if (!SWIG_IsOK(ecode2)) { | |
26092 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'"); | |
26093 | } | |
26094 | arg2 = static_cast< long >(val2); | |
26095 | { | |
26096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26097 | (arg1)->SetId(arg2); | |
26098 | wxPyEndAllowThreads(__tstate); | |
26099 | if (PyErr_Occurred()) SWIG_fail; | |
26100 | } | |
26101 | resultobj = SWIG_Py_Void(); | |
26102 | return resultobj; | |
26103 | fail: | |
26104 | return NULL; | |
26105 | } | |
26106 | ||
26107 | ||
26108 | SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26109 | PyObject *resultobj = 0; | |
26110 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26111 | int arg2 ; | |
26112 | void *argp1 = 0 ; | |
26113 | int res1 = 0 ; | |
26114 | int val2 ; | |
26115 | int ecode2 = 0 ; | |
26116 | PyObject * obj0 = 0 ; | |
26117 | PyObject * obj1 = 0 ; | |
26118 | char * kwnames[] = { | |
26119 | (char *) "self",(char *) "col", NULL | |
26120 | }; | |
26121 | ||
26122 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
26123 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26124 | if (!SWIG_IsOK(res1)) { | |
26125 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26126 | } | |
26127 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26128 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26129 | if (!SWIG_IsOK(ecode2)) { | |
26130 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'"); | |
26131 | } | |
26132 | arg2 = static_cast< int >(val2); | |
26133 | { | |
26134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26135 | (arg1)->SetColumn(arg2); | |
26136 | wxPyEndAllowThreads(__tstate); | |
26137 | if (PyErr_Occurred()) SWIG_fail; | |
26138 | } | |
26139 | resultobj = SWIG_Py_Void(); | |
26140 | return resultobj; | |
26141 | fail: | |
26142 | return NULL; | |
26143 | } | |
26144 | ||
26145 | ||
26146 | SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26147 | PyObject *resultobj = 0; | |
26148 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26149 | long arg2 ; | |
26150 | void *argp1 = 0 ; | |
26151 | int res1 = 0 ; | |
26152 | long val2 ; | |
26153 | int ecode2 = 0 ; | |
26154 | PyObject * obj0 = 0 ; | |
26155 | PyObject * obj1 = 0 ; | |
26156 | char * kwnames[] = { | |
26157 | (char *) "self",(char *) "state", NULL | |
26158 | }; | |
26159 | ||
26160 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail; | |
26161 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26162 | if (!SWIG_IsOK(res1)) { | |
26163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26164 | } | |
26165 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26166 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26167 | if (!SWIG_IsOK(ecode2)) { | |
26168 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'"); | |
26169 | } | |
26170 | arg2 = static_cast< long >(val2); | |
26171 | { | |
26172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26173 | (arg1)->SetState(arg2); | |
26174 | wxPyEndAllowThreads(__tstate); | |
26175 | if (PyErr_Occurred()) SWIG_fail; | |
26176 | } | |
26177 | resultobj = SWIG_Py_Void(); | |
26178 | return resultobj; | |
26179 | fail: | |
26180 | return NULL; | |
26181 | } | |
26182 | ||
26183 | ||
26184 | SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26185 | PyObject *resultobj = 0; | |
26186 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26187 | long arg2 ; | |
26188 | void *argp1 = 0 ; | |
26189 | int res1 = 0 ; | |
26190 | long val2 ; | |
26191 | int ecode2 = 0 ; | |
26192 | PyObject * obj0 = 0 ; | |
26193 | PyObject * obj1 = 0 ; | |
26194 | char * kwnames[] = { | |
26195 | (char *) "self",(char *) "stateMask", NULL | |
26196 | }; | |
26197 | ||
26198 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
26199 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26200 | if (!SWIG_IsOK(res1)) { | |
26201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26202 | } | |
26203 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26204 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26205 | if (!SWIG_IsOK(ecode2)) { | |
26206 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'"); | |
26207 | } | |
26208 | arg2 = static_cast< long >(val2); | |
26209 | { | |
26210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26211 | (arg1)->SetStateMask(arg2); | |
26212 | wxPyEndAllowThreads(__tstate); | |
26213 | if (PyErr_Occurred()) SWIG_fail; | |
26214 | } | |
26215 | resultobj = SWIG_Py_Void(); | |
26216 | return resultobj; | |
26217 | fail: | |
26218 | return NULL; | |
26219 | } | |
26220 | ||
26221 | ||
26222 | SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26223 | PyObject *resultobj = 0; | |
26224 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26225 | wxString *arg2 = 0 ; | |
26226 | void *argp1 = 0 ; | |
26227 | int res1 = 0 ; | |
26228 | bool temp2 = false ; | |
26229 | PyObject * obj0 = 0 ; | |
26230 | PyObject * obj1 = 0 ; | |
26231 | char * kwnames[] = { | |
26232 | (char *) "self",(char *) "text", NULL | |
26233 | }; | |
26234 | ||
26235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail; | |
26236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26237 | if (!SWIG_IsOK(res1)) { | |
26238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26239 | } | |
26240 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26241 | { | |
26242 | arg2 = wxString_in_helper(obj1); | |
26243 | if (arg2 == NULL) SWIG_fail; | |
26244 | temp2 = true; | |
26245 | } | |
26246 | { | |
26247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26248 | (arg1)->SetText((wxString const &)*arg2); | |
26249 | wxPyEndAllowThreads(__tstate); | |
26250 | if (PyErr_Occurred()) SWIG_fail; | |
26251 | } | |
26252 | resultobj = SWIG_Py_Void(); | |
26253 | { | |
26254 | if (temp2) | |
26255 | delete arg2; | |
26256 | } | |
26257 | return resultobj; | |
26258 | fail: | |
26259 | { | |
26260 | if (temp2) | |
26261 | delete arg2; | |
26262 | } | |
26263 | return NULL; | |
26264 | } | |
26265 | ||
26266 | ||
26267 | SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26268 | PyObject *resultobj = 0; | |
26269 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26270 | int arg2 ; | |
26271 | void *argp1 = 0 ; | |
26272 | int res1 = 0 ; | |
26273 | int val2 ; | |
26274 | int ecode2 = 0 ; | |
26275 | PyObject * obj0 = 0 ; | |
26276 | PyObject * obj1 = 0 ; | |
26277 | char * kwnames[] = { | |
26278 | (char *) "self",(char *) "image", NULL | |
26279 | }; | |
26280 | ||
26281 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26282 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26283 | if (!SWIG_IsOK(res1)) { | |
26284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26285 | } | |
26286 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26287 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26288 | if (!SWIG_IsOK(ecode2)) { | |
26289 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'"); | |
26290 | } | |
26291 | arg2 = static_cast< int >(val2); | |
26292 | { | |
26293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26294 | (arg1)->SetImage(arg2); | |
26295 | wxPyEndAllowThreads(__tstate); | |
26296 | if (PyErr_Occurred()) SWIG_fail; | |
26297 | } | |
26298 | resultobj = SWIG_Py_Void(); | |
26299 | return resultobj; | |
26300 | fail: | |
26301 | return NULL; | |
26302 | } | |
26303 | ||
26304 | ||
26305 | SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26306 | PyObject *resultobj = 0; | |
26307 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26308 | long arg2 ; | |
26309 | void *argp1 = 0 ; | |
26310 | int res1 = 0 ; | |
26311 | long val2 ; | |
26312 | int ecode2 = 0 ; | |
26313 | PyObject * obj0 = 0 ; | |
26314 | PyObject * obj1 = 0 ; | |
26315 | char * kwnames[] = { | |
26316 | (char *) "self",(char *) "data", NULL | |
26317 | }; | |
26318 | ||
26319 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
26320 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26321 | if (!SWIG_IsOK(res1)) { | |
26322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26323 | } | |
26324 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26325 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26326 | if (!SWIG_IsOK(ecode2)) { | |
26327 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'"); | |
26328 | } | |
26329 | arg2 = static_cast< long >(val2); | |
26330 | { | |
26331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26332 | (arg1)->SetData(arg2); | |
26333 | wxPyEndAllowThreads(__tstate); | |
26334 | if (PyErr_Occurred()) SWIG_fail; | |
26335 | } | |
26336 | resultobj = SWIG_Py_Void(); | |
26337 | return resultobj; | |
26338 | fail: | |
26339 | return NULL; | |
26340 | } | |
26341 | ||
26342 | ||
26343 | SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26344 | PyObject *resultobj = 0; | |
26345 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26346 | int arg2 ; | |
26347 | void *argp1 = 0 ; | |
26348 | int res1 = 0 ; | |
26349 | int val2 ; | |
26350 | int ecode2 = 0 ; | |
26351 | PyObject * obj0 = 0 ; | |
26352 | PyObject * obj1 = 0 ; | |
26353 | char * kwnames[] = { | |
26354 | (char *) "self",(char *) "width", NULL | |
26355 | }; | |
26356 | ||
26357 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
26358 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26359 | if (!SWIG_IsOK(res1)) { | |
26360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26361 | } | |
26362 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26363 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26364 | if (!SWIG_IsOK(ecode2)) { | |
26365 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
26366 | } | |
26367 | arg2 = static_cast< int >(val2); | |
26368 | { | |
26369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26370 | (arg1)->SetWidth(arg2); | |
26371 | wxPyEndAllowThreads(__tstate); | |
26372 | if (PyErr_Occurred()) SWIG_fail; | |
26373 | } | |
26374 | resultobj = SWIG_Py_Void(); | |
26375 | return resultobj; | |
26376 | fail: | |
26377 | return NULL; | |
26378 | } | |
26379 | ||
26380 | ||
26381 | SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26382 | PyObject *resultobj = 0; | |
26383 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26384 | wxListColumnFormat arg2 ; | |
26385 | void *argp1 = 0 ; | |
26386 | int res1 = 0 ; | |
26387 | int val2 ; | |
26388 | int ecode2 = 0 ; | |
26389 | PyObject * obj0 = 0 ; | |
26390 | PyObject * obj1 = 0 ; | |
26391 | char * kwnames[] = { | |
26392 | (char *) "self",(char *) "align", NULL | |
26393 | }; | |
26394 | ||
26395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail; | |
26396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26397 | if (!SWIG_IsOK(res1)) { | |
26398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26399 | } | |
26400 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26401 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26402 | if (!SWIG_IsOK(ecode2)) { | |
26403 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'"); | |
26404 | } | |
26405 | arg2 = static_cast< wxListColumnFormat >(val2); | |
26406 | { | |
26407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26408 | (arg1)->SetAlign(arg2); | |
26409 | wxPyEndAllowThreads(__tstate); | |
26410 | if (PyErr_Occurred()) SWIG_fail; | |
26411 | } | |
26412 | resultobj = SWIG_Py_Void(); | |
26413 | return resultobj; | |
26414 | fail: | |
26415 | return NULL; | |
26416 | } | |
26417 | ||
26418 | ||
26419 | SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26420 | PyObject *resultobj = 0; | |
26421 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26422 | wxColour *arg2 = 0 ; | |
26423 | void *argp1 = 0 ; | |
26424 | int res1 = 0 ; | |
26425 | wxColour temp2 ; | |
26426 | PyObject * obj0 = 0 ; | |
26427 | PyObject * obj1 = 0 ; | |
26428 | char * kwnames[] = { | |
26429 | (char *) "self",(char *) "colText", NULL | |
26430 | }; | |
26431 | ||
26432 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
26433 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26434 | if (!SWIG_IsOK(res1)) { | |
26435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26436 | } | |
26437 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26438 | { | |
26439 | arg2 = &temp2; | |
26440 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26441 | } | |
26442 | { | |
26443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26444 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
26445 | wxPyEndAllowThreads(__tstate); | |
26446 | if (PyErr_Occurred()) SWIG_fail; | |
26447 | } | |
26448 | resultobj = SWIG_Py_Void(); | |
26449 | return resultobj; | |
26450 | fail: | |
26451 | return NULL; | |
26452 | } | |
26453 | ||
26454 | ||
26455 | SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26456 | PyObject *resultobj = 0; | |
26457 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26458 | wxColour *arg2 = 0 ; | |
26459 | void *argp1 = 0 ; | |
26460 | int res1 = 0 ; | |
26461 | wxColour temp2 ; | |
26462 | PyObject * obj0 = 0 ; | |
26463 | PyObject * obj1 = 0 ; | |
26464 | char * kwnames[] = { | |
26465 | (char *) "self",(char *) "colBack", NULL | |
26466 | }; | |
26467 | ||
26468 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
26469 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26470 | if (!SWIG_IsOK(res1)) { | |
26471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26472 | } | |
26473 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26474 | { | |
26475 | arg2 = &temp2; | |
26476 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26477 | } | |
26478 | { | |
26479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26480 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26481 | wxPyEndAllowThreads(__tstate); | |
26482 | if (PyErr_Occurred()) SWIG_fail; | |
26483 | } | |
26484 | resultobj = SWIG_Py_Void(); | |
26485 | return resultobj; | |
26486 | fail: | |
26487 | return NULL; | |
26488 | } | |
26489 | ||
26490 | ||
26491 | SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26492 | PyObject *resultobj = 0; | |
26493 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26494 | wxFont *arg2 = 0 ; | |
26495 | void *argp1 = 0 ; | |
26496 | int res1 = 0 ; | |
26497 | void *argp2 = 0 ; | |
26498 | int res2 = 0 ; | |
26499 | PyObject * obj0 = 0 ; | |
26500 | PyObject * obj1 = 0 ; | |
26501 | char * kwnames[] = { | |
26502 | (char *) "self",(char *) "font", NULL | |
26503 | }; | |
26504 | ||
26505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
26506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26507 | if (!SWIG_IsOK(res1)) { | |
26508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26509 | } | |
26510 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26511 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
26512 | if (!SWIG_IsOK(res2)) { | |
26513 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
26514 | } | |
26515 | if (!argp2) { | |
26516 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
26517 | } | |
26518 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
26519 | { | |
26520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26521 | (arg1)->SetFont((wxFont const &)*arg2); | |
26522 | wxPyEndAllowThreads(__tstate); | |
26523 | if (PyErr_Occurred()) SWIG_fail; | |
26524 | } | |
26525 | resultobj = SWIG_Py_Void(); | |
26526 | return resultobj; | |
26527 | fail: | |
26528 | return NULL; | |
d14a1e28 RD |
26529 | } |
26530 | ||
26531 | ||
0085ce49 RD |
26532 | SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26533 | PyObject *resultobj = 0; | |
26534 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26535 | long result; | |
26536 | void *argp1 = 0 ; | |
26537 | int res1 = 0 ; | |
26538 | PyObject *swig_obj[1] ; | |
26539 | ||
26540 | if (!args) SWIG_fail; | |
26541 | swig_obj[0] = args; | |
26542 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26543 | if (!SWIG_IsOK(res1)) { | |
26544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26545 | } | |
26546 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26547 | { | |
26548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26549 | result = (long)(arg1)->GetMask(); | |
26550 | wxPyEndAllowThreads(__tstate); | |
26551 | if (PyErr_Occurred()) SWIG_fail; | |
26552 | } | |
26553 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
26554 | return resultobj; | |
26555 | fail: | |
26556 | return NULL; | |
d14a1e28 RD |
26557 | } |
26558 | ||
26559 | ||
0085ce49 RD |
26560 | SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26561 | PyObject *resultobj = 0; | |
26562 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26563 | long result; | |
26564 | void *argp1 = 0 ; | |
26565 | int res1 = 0 ; | |
26566 | PyObject *swig_obj[1] ; | |
26567 | ||
26568 | if (!args) SWIG_fail; | |
26569 | swig_obj[0] = args; | |
26570 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26571 | if (!SWIG_IsOK(res1)) { | |
26572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26573 | } | |
26574 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26575 | { | |
26576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26577 | result = (long)(arg1)->GetId(); | |
26578 | wxPyEndAllowThreads(__tstate); | |
26579 | if (PyErr_Occurred()) SWIG_fail; | |
26580 | } | |
26581 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
26582 | return resultobj; | |
26583 | fail: | |
26584 | return NULL; | |
d14a1e28 RD |
26585 | } |
26586 | ||
26587 | ||
0085ce49 RD |
26588 | SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26589 | PyObject *resultobj = 0; | |
26590 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26591 | int result; | |
26592 | void *argp1 = 0 ; | |
26593 | int res1 = 0 ; | |
26594 | PyObject *swig_obj[1] ; | |
26595 | ||
26596 | if (!args) SWIG_fail; | |
26597 | swig_obj[0] = args; | |
26598 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26599 | if (!SWIG_IsOK(res1)) { | |
26600 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26601 | } | |
26602 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26603 | { | |
26604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26605 | result = (int)(arg1)->GetColumn(); | |
26606 | wxPyEndAllowThreads(__tstate); | |
26607 | if (PyErr_Occurred()) SWIG_fail; | |
26608 | } | |
26609 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26610 | return resultobj; | |
26611 | fail: | |
26612 | return NULL; | |
22bfe96c RD |
26613 | } |
26614 | ||
26615 | ||
0085ce49 RD |
26616 | SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26617 | PyObject *resultobj = 0; | |
26618 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26619 | long result; | |
26620 | void *argp1 = 0 ; | |
26621 | int res1 = 0 ; | |
26622 | PyObject *swig_obj[1] ; | |
26623 | ||
26624 | if (!args) SWIG_fail; | |
26625 | swig_obj[0] = args; | |
26626 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26627 | if (!SWIG_IsOK(res1)) { | |
26628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26629 | } | |
26630 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26631 | { | |
26632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26633 | result = (long)(arg1)->GetState(); | |
26634 | wxPyEndAllowThreads(__tstate); | |
26635 | if (PyErr_Occurred()) SWIG_fail; | |
26636 | } | |
26637 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
26638 | return resultobj; | |
26639 | fail: | |
26640 | return NULL; | |
b2dc1044 RD |
26641 | } |
26642 | ||
26643 | ||
0085ce49 RD |
26644 | SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26645 | PyObject *resultobj = 0; | |
26646 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26647 | wxString *result = 0 ; | |
26648 | void *argp1 = 0 ; | |
26649 | int res1 = 0 ; | |
26650 | PyObject *swig_obj[1] ; | |
26651 | ||
26652 | if (!args) SWIG_fail; | |
26653 | swig_obj[0] = args; | |
26654 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26655 | if (!SWIG_IsOK(res1)) { | |
26656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26657 | } | |
26658 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26659 | { | |
26660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 26661 | { |
0085ce49 RD |
26662 | wxString const &_result_ref = (arg1)->GetText(); |
26663 | result = (wxString *) &_result_ref; | |
26664 | } | |
26665 | wxPyEndAllowThreads(__tstate); | |
26666 | if (PyErr_Occurred()) SWIG_fail; | |
26667 | } | |
26668 | { | |
b2dc1044 | 26669 | #if wxUSE_UNICODE |
0085ce49 | 26670 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
b2dc1044 | 26671 | #else |
0085ce49 | 26672 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
b2dc1044 | 26673 | #endif |
0085ce49 RD |
26674 | } |
26675 | return resultobj; | |
26676 | fail: | |
26677 | return NULL; | |
d14a1e28 RD |
26678 | } |
26679 | ||
26680 | ||
0085ce49 RD |
26681 | SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26682 | PyObject *resultobj = 0; | |
26683 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26684 | int result; | |
26685 | void *argp1 = 0 ; | |
26686 | int res1 = 0 ; | |
26687 | PyObject *swig_obj[1] ; | |
26688 | ||
26689 | if (!args) SWIG_fail; | |
26690 | swig_obj[0] = args; | |
26691 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26692 | if (!SWIG_IsOK(res1)) { | |
26693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26694 | } | |
26695 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26696 | { | |
26697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26698 | result = (int)(arg1)->GetImage(); | |
26699 | wxPyEndAllowThreads(__tstate); | |
26700 | if (PyErr_Occurred()) SWIG_fail; | |
26701 | } | |
26702 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26703 | return resultobj; | |
26704 | fail: | |
26705 | return NULL; | |
d14a1e28 RD |
26706 | } |
26707 | ||
26708 | ||
0085ce49 RD |
26709 | SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26710 | PyObject *resultobj = 0; | |
26711 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26712 | long result; | |
26713 | void *argp1 = 0 ; | |
26714 | int res1 = 0 ; | |
26715 | PyObject *swig_obj[1] ; | |
26716 | ||
26717 | if (!args) SWIG_fail; | |
26718 | swig_obj[0] = args; | |
26719 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26720 | if (!SWIG_IsOK(res1)) { | |
26721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26722 | } | |
26723 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26724 | { | |
26725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26726 | result = (long)(arg1)->GetData(); | |
26727 | wxPyEndAllowThreads(__tstate); | |
26728 | if (PyErr_Occurred()) SWIG_fail; | |
26729 | } | |
26730 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
26731 | return resultobj; | |
26732 | fail: | |
26733 | return NULL; | |
d14a1e28 RD |
26734 | } |
26735 | ||
26736 | ||
0085ce49 RD |
26737 | SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26738 | PyObject *resultobj = 0; | |
26739 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26740 | int result; | |
26741 | void *argp1 = 0 ; | |
26742 | int res1 = 0 ; | |
26743 | PyObject *swig_obj[1] ; | |
26744 | ||
26745 | if (!args) SWIG_fail; | |
26746 | swig_obj[0] = args; | |
26747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26748 | if (!SWIG_IsOK(res1)) { | |
26749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26750 | } | |
26751 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26752 | { | |
26753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26754 | result = (int)(arg1)->GetWidth(); | |
26755 | wxPyEndAllowThreads(__tstate); | |
26756 | if (PyErr_Occurred()) SWIG_fail; | |
26757 | } | |
26758 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26759 | return resultobj; | |
26760 | fail: | |
26761 | return NULL; | |
d14a1e28 RD |
26762 | } |
26763 | ||
26764 | ||
0085ce49 RD |
26765 | SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26766 | PyObject *resultobj = 0; | |
26767 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26768 | wxListColumnFormat result; | |
26769 | void *argp1 = 0 ; | |
26770 | int res1 = 0 ; | |
26771 | PyObject *swig_obj[1] ; | |
26772 | ||
26773 | if (!args) SWIG_fail; | |
26774 | swig_obj[0] = args; | |
26775 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26776 | if (!SWIG_IsOK(res1)) { | |
26777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26778 | } | |
26779 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26780 | { | |
26781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26782 | result = (wxListColumnFormat)(arg1)->GetAlign(); | |
26783 | wxPyEndAllowThreads(__tstate); | |
26784 | if (PyErr_Occurred()) SWIG_fail; | |
26785 | } | |
26786 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26787 | return resultobj; | |
26788 | fail: | |
26789 | return NULL; | |
d14a1e28 RD |
26790 | } |
26791 | ||
26792 | ||
0085ce49 RD |
26793 | SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26794 | PyObject *resultobj = 0; | |
26795 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26796 | wxListItemAttr *result = 0 ; | |
26797 | void *argp1 = 0 ; | |
26798 | int res1 = 0 ; | |
26799 | PyObject *swig_obj[1] ; | |
26800 | ||
26801 | if (!args) SWIG_fail; | |
26802 | swig_obj[0] = args; | |
26803 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26804 | if (!SWIG_IsOK(res1)) { | |
26805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26806 | } | |
26807 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26808 | { | |
26809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26810 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
26811 | wxPyEndAllowThreads(__tstate); | |
26812 | if (PyErr_Occurred()) SWIG_fail; | |
26813 | } | |
26814 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26815 | return resultobj; | |
26816 | fail: | |
26817 | return NULL; | |
d14a1e28 RD |
26818 | } |
26819 | ||
26820 | ||
0085ce49 RD |
26821 | SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26822 | PyObject *resultobj = 0; | |
26823 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26824 | bool result; | |
26825 | void *argp1 = 0 ; | |
26826 | int res1 = 0 ; | |
26827 | PyObject *swig_obj[1] ; | |
26828 | ||
26829 | if (!args) SWIG_fail; | |
26830 | swig_obj[0] = args; | |
26831 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26832 | if (!SWIG_IsOK(res1)) { | |
26833 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26834 | } | |
26835 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26836 | { | |
26837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26838 | result = (bool)(arg1)->HasAttributes(); | |
26839 | wxPyEndAllowThreads(__tstate); | |
26840 | if (PyErr_Occurred()) SWIG_fail; | |
26841 | } | |
26842 | { | |
26843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26844 | } | |
26845 | return resultobj; | |
26846 | fail: | |
26847 | return NULL; | |
22bfe96c RD |
26848 | } |
26849 | ||
26850 | ||
0085ce49 RD |
26851 | SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26852 | PyObject *resultobj = 0; | |
26853 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26854 | wxColour result; | |
26855 | void *argp1 = 0 ; | |
26856 | int res1 = 0 ; | |
26857 | PyObject *swig_obj[1] ; | |
26858 | ||
26859 | if (!args) SWIG_fail; | |
26860 | swig_obj[0] = args; | |
26861 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26862 | if (!SWIG_IsOK(res1)) { | |
26863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
26864 | } | |
26865 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26866 | { | |
26867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26868 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
26869 | wxPyEndAllowThreads(__tstate); | |
26870 | if (PyErr_Occurred()) SWIG_fail; | |
26871 | } | |
26872 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
26873 | return resultobj; | |
26874 | fail: | |
26875 | return NULL; | |
d14a1e28 | 26876 | } |
0085ce49 RD |
26877 | |
26878 | ||
26879 | SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26880 | PyObject *resultobj = 0; | |
26881 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26882 | wxColour result; | |
26883 | void *argp1 = 0 ; | |
26884 | int res1 = 0 ; | |
26885 | PyObject *swig_obj[1] ; | |
26886 | ||
26887 | if (!args) SWIG_fail; | |
26888 | swig_obj[0] = args; | |
26889 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26890 | if (!SWIG_IsOK(res1)) { | |
26891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
26892 | } | |
26893 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26894 | { | |
26895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26896 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
26897 | wxPyEndAllowThreads(__tstate); | |
26898 | if (PyErr_Occurred()) SWIG_fail; | |
26899 | } | |
26900 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
26901 | return resultobj; | |
26902 | fail: | |
26903 | return NULL; | |
b2dc1044 RD |
26904 | } |
26905 | ||
26906 | ||
0085ce49 RD |
26907 | SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26908 | PyObject *resultobj = 0; | |
26909 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26910 | wxFont result; | |
26911 | void *argp1 = 0 ; | |
26912 | int res1 = 0 ; | |
26913 | PyObject *swig_obj[1] ; | |
26914 | ||
26915 | if (!args) SWIG_fail; | |
26916 | swig_obj[0] = args; | |
26917 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26918 | if (!SWIG_IsOK(res1)) { | |
26919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
26920 | } | |
26921 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26922 | { | |
26923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26924 | result = ((wxListItem const *)arg1)->GetFont(); | |
26925 | wxPyEndAllowThreads(__tstate); | |
26926 | if (PyErr_Occurred()) SWIG_fail; | |
26927 | } | |
26928 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
26929 | return resultobj; | |
26930 | fail: | |
26931 | return NULL; | |
26932 | } | |
26933 | ||
26934 | ||
26935 | SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26936 | PyObject *resultobj = 0; | |
26937 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26938 | long arg2 ; | |
26939 | void *argp1 = 0 ; | |
26940 | int res1 = 0 ; | |
26941 | long val2 ; | |
26942 | int ecode2 = 0 ; | |
26943 | PyObject *swig_obj[2] ; | |
26944 | ||
26945 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail; | |
26946 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26947 | if (!SWIG_IsOK(res1)) { | |
26948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26949 | } | |
26950 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26951 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
26952 | if (!SWIG_IsOK(ecode2)) { | |
26953 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'"); | |
26954 | } | |
26955 | arg2 = static_cast< long >(val2); | |
26956 | if (arg1) (arg1)->m_mask = arg2; | |
26957 | ||
26958 | resultobj = SWIG_Py_Void(); | |
26959 | return resultobj; | |
26960 | fail: | |
26961 | return NULL; | |
b2dc1044 RD |
26962 | } |
26963 | ||
26964 | ||
0085ce49 RD |
26965 | SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26966 | PyObject *resultobj = 0; | |
26967 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26968 | long result; | |
26969 | void *argp1 = 0 ; | |
26970 | int res1 = 0 ; | |
26971 | PyObject *swig_obj[1] ; | |
26972 | ||
26973 | if (!args) SWIG_fail; | |
26974 | swig_obj[0] = args; | |
26975 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26976 | if (!SWIG_IsOK(res1)) { | |
26977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26978 | } | |
26979 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26980 | result = (long) ((arg1)->m_mask); | |
26981 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
26982 | return resultobj; | |
26983 | fail: | |
26984 | return NULL; | |
26985 | } | |
26986 | ||
26987 | ||
26988 | SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26989 | PyObject *resultobj = 0; | |
26990 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26991 | long arg2 ; | |
26992 | void *argp1 = 0 ; | |
26993 | int res1 = 0 ; | |
26994 | long val2 ; | |
26995 | int ecode2 = 0 ; | |
26996 | PyObject *swig_obj[2] ; | |
26997 | ||
26998 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail; | |
26999 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27000 | if (!SWIG_IsOK(res1)) { | |
27001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27002 | } | |
27003 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27004 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27005 | if (!SWIG_IsOK(ecode2)) { | |
27006 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'"); | |
27007 | } | |
27008 | arg2 = static_cast< long >(val2); | |
27009 | if (arg1) (arg1)->m_itemId = arg2; | |
27010 | ||
27011 | resultobj = SWIG_Py_Void(); | |
27012 | return resultobj; | |
27013 | fail: | |
27014 | return NULL; | |
d14a1e28 RD |
27015 | } |
27016 | ||
27017 | ||
0085ce49 RD |
27018 | SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27019 | PyObject *resultobj = 0; | |
27020 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27021 | long result; | |
27022 | void *argp1 = 0 ; | |
27023 | int res1 = 0 ; | |
27024 | PyObject *swig_obj[1] ; | |
27025 | ||
27026 | if (!args) SWIG_fail; | |
27027 | swig_obj[0] = args; | |
27028 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27029 | if (!SWIG_IsOK(res1)) { | |
27030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27031 | } | |
27032 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27033 | result = (long) ((arg1)->m_itemId); | |
27034 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27035 | return resultobj; | |
27036 | fail: | |
27037 | return NULL; | |
27038 | } | |
27039 | ||
27040 | ||
27041 | SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27042 | PyObject *resultobj = 0; | |
27043 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27044 | int arg2 ; | |
27045 | void *argp1 = 0 ; | |
27046 | int res1 = 0 ; | |
27047 | int val2 ; | |
27048 | int ecode2 = 0 ; | |
27049 | PyObject *swig_obj[2] ; | |
27050 | ||
27051 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail; | |
27052 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27053 | if (!SWIG_IsOK(res1)) { | |
27054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27055 | } | |
27056 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27057 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27058 | if (!SWIG_IsOK(ecode2)) { | |
27059 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'"); | |
27060 | } | |
27061 | arg2 = static_cast< int >(val2); | |
27062 | if (arg1) (arg1)->m_col = arg2; | |
27063 | ||
27064 | resultobj = SWIG_Py_Void(); | |
27065 | return resultobj; | |
27066 | fail: | |
27067 | return NULL; | |
d14a1e28 RD |
27068 | } |
27069 | ||
27070 | ||
0085ce49 RD |
27071 | SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27072 | PyObject *resultobj = 0; | |
27073 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27074 | int result; | |
27075 | void *argp1 = 0 ; | |
27076 | int res1 = 0 ; | |
27077 | PyObject *swig_obj[1] ; | |
27078 | ||
27079 | if (!args) SWIG_fail; | |
27080 | swig_obj[0] = args; | |
27081 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27082 | if (!SWIG_IsOK(res1)) { | |
27083 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27084 | } | |
27085 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27086 | result = (int) ((arg1)->m_col); | |
27087 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27088 | return resultobj; | |
27089 | fail: | |
27090 | return NULL; | |
27091 | } | |
27092 | ||
27093 | ||
27094 | SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27095 | PyObject *resultobj = 0; | |
27096 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27097 | long arg2 ; | |
27098 | void *argp1 = 0 ; | |
27099 | int res1 = 0 ; | |
27100 | long val2 ; | |
27101 | int ecode2 = 0 ; | |
27102 | PyObject *swig_obj[2] ; | |
27103 | ||
27104 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail; | |
27105 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27106 | if (!SWIG_IsOK(res1)) { | |
27107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27108 | } | |
27109 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27110 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27111 | if (!SWIG_IsOK(ecode2)) { | |
27112 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'"); | |
27113 | } | |
27114 | arg2 = static_cast< long >(val2); | |
27115 | if (arg1) (arg1)->m_state = arg2; | |
27116 | ||
27117 | resultobj = SWIG_Py_Void(); | |
27118 | return resultobj; | |
27119 | fail: | |
27120 | return NULL; | |
8fb0e70a RD |
27121 | } |
27122 | ||
27123 | ||
0085ce49 RD |
27124 | SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27125 | PyObject *resultobj = 0; | |
27126 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27127 | long result; | |
27128 | void *argp1 = 0 ; | |
27129 | int res1 = 0 ; | |
27130 | PyObject *swig_obj[1] ; | |
27131 | ||
27132 | if (!args) SWIG_fail; | |
27133 | swig_obj[0] = args; | |
27134 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27135 | if (!SWIG_IsOK(res1)) { | |
27136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27137 | } | |
27138 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27139 | result = (long) ((arg1)->m_state); | |
27140 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27141 | return resultobj; | |
27142 | fail: | |
27143 | return NULL; | |
27144 | } | |
27145 | ||
27146 | ||
27147 | SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27148 | PyObject *resultobj = 0; | |
27149 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27150 | long arg2 ; | |
27151 | void *argp1 = 0 ; | |
27152 | int res1 = 0 ; | |
27153 | long val2 ; | |
27154 | int ecode2 = 0 ; | |
27155 | PyObject *swig_obj[2] ; | |
27156 | ||
27157 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail; | |
27158 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27159 | if (!SWIG_IsOK(res1)) { | |
27160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27161 | } | |
27162 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27163 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27164 | if (!SWIG_IsOK(ecode2)) { | |
27165 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'"); | |
27166 | } | |
27167 | arg2 = static_cast< long >(val2); | |
27168 | if (arg1) (arg1)->m_stateMask = arg2; | |
27169 | ||
27170 | resultobj = SWIG_Py_Void(); | |
27171 | return resultobj; | |
27172 | fail: | |
27173 | return NULL; | |
d14a1e28 RD |
27174 | } |
27175 | ||
27176 | ||
0085ce49 RD |
27177 | SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27178 | PyObject *resultobj = 0; | |
27179 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27180 | long result; | |
27181 | void *argp1 = 0 ; | |
27182 | int res1 = 0 ; | |
27183 | PyObject *swig_obj[1] ; | |
27184 | ||
27185 | if (!args) SWIG_fail; | |
27186 | swig_obj[0] = args; | |
27187 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27188 | if (!SWIG_IsOK(res1)) { | |
27189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27190 | } | |
27191 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27192 | result = (long) ((arg1)->m_stateMask); | |
27193 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27194 | return resultobj; | |
27195 | fail: | |
27196 | return NULL; | |
27197 | } | |
27198 | ||
27199 | ||
27200 | SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27201 | PyObject *resultobj = 0; | |
27202 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27203 | wxString *arg2 = (wxString *) 0 ; | |
27204 | void *argp1 = 0 ; | |
27205 | int res1 = 0 ; | |
27206 | bool temp2 = false ; | |
27207 | PyObject *swig_obj[2] ; | |
27208 | ||
27209 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail; | |
27210 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27211 | if (!SWIG_IsOK(res1)) { | |
27212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27213 | } | |
27214 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27215 | { | |
27216 | arg2 = wxString_in_helper(swig_obj[1]); | |
27217 | if (arg2 == NULL) SWIG_fail; | |
27218 | temp2 = true; | |
27219 | } | |
27220 | if (arg1) (arg1)->m_text = *arg2; | |
27221 | ||
27222 | resultobj = SWIG_Py_Void(); | |
27223 | { | |
27224 | if (temp2) | |
27225 | delete arg2; | |
27226 | } | |
27227 | return resultobj; | |
27228 | fail: | |
27229 | { | |
27230 | if (temp2) | |
27231 | delete arg2; | |
27232 | } | |
27233 | return NULL; | |
d14a1e28 RD |
27234 | } |
27235 | ||
27236 | ||
0085ce49 RD |
27237 | SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27238 | PyObject *resultobj = 0; | |
27239 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27240 | wxString *result = 0 ; | |
27241 | void *argp1 = 0 ; | |
27242 | int res1 = 0 ; | |
27243 | PyObject *swig_obj[1] ; | |
27244 | ||
27245 | if (!args) SWIG_fail; | |
27246 | swig_obj[0] = args; | |
27247 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27248 | if (!SWIG_IsOK(res1)) { | |
27249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27250 | } | |
27251 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27252 | result = (wxString *)& ((arg1)->m_text); | |
27253 | { | |
d14a1e28 | 27254 | #if wxUSE_UNICODE |
0085ce49 | 27255 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 27256 | #else |
0085ce49 | 27257 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 | 27258 | #endif |
0085ce49 RD |
27259 | } |
27260 | return resultobj; | |
27261 | fail: | |
27262 | return NULL; | |
d14a1e28 RD |
27263 | } |
27264 | ||
27265 | ||
0085ce49 RD |
27266 | SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27267 | PyObject *resultobj = 0; | |
27268 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27269 | int arg2 ; | |
27270 | void *argp1 = 0 ; | |
27271 | int res1 = 0 ; | |
27272 | int val2 ; | |
27273 | int ecode2 = 0 ; | |
27274 | PyObject *swig_obj[2] ; | |
27275 | ||
27276 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail; | |
27277 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27278 | if (!SWIG_IsOK(res1)) { | |
27279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27280 | } | |
27281 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27282 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27283 | if (!SWIG_IsOK(ecode2)) { | |
27284 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'"); | |
27285 | } | |
27286 | arg2 = static_cast< int >(val2); | |
27287 | if (arg1) (arg1)->m_image = arg2; | |
27288 | ||
27289 | resultobj = SWIG_Py_Void(); | |
27290 | return resultobj; | |
27291 | fail: | |
27292 | return NULL; | |
d14a1e28 RD |
27293 | } |
27294 | ||
27295 | ||
0085ce49 RD |
27296 | SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27297 | PyObject *resultobj = 0; | |
27298 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27299 | int result; | |
27300 | void *argp1 = 0 ; | |
27301 | int res1 = 0 ; | |
27302 | PyObject *swig_obj[1] ; | |
27303 | ||
27304 | if (!args) SWIG_fail; | |
27305 | swig_obj[0] = args; | |
27306 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27307 | if (!SWIG_IsOK(res1)) { | |
27308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27309 | } | |
27310 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27311 | result = (int) ((arg1)->m_image); | |
27312 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27313 | return resultobj; | |
27314 | fail: | |
27315 | return NULL; | |
27316 | } | |
27317 | ||
27318 | ||
27319 | SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27320 | PyObject *resultobj = 0; | |
27321 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27322 | long arg2 ; | |
27323 | void *argp1 = 0 ; | |
27324 | int res1 = 0 ; | |
27325 | long val2 ; | |
27326 | int ecode2 = 0 ; | |
27327 | PyObject *swig_obj[2] ; | |
27328 | ||
27329 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail; | |
27330 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27331 | if (!SWIG_IsOK(res1)) { | |
27332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27333 | } | |
27334 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27335 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27336 | if (!SWIG_IsOK(ecode2)) { | |
27337 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'"); | |
27338 | } | |
27339 | arg2 = static_cast< long >(val2); | |
27340 | if (arg1) (arg1)->m_data = arg2; | |
27341 | ||
27342 | resultobj = SWIG_Py_Void(); | |
27343 | return resultobj; | |
27344 | fail: | |
27345 | return NULL; | |
d14a1e28 RD |
27346 | } |
27347 | ||
27348 | ||
0085ce49 RD |
27349 | SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27350 | PyObject *resultobj = 0; | |
27351 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27352 | long result; | |
27353 | void *argp1 = 0 ; | |
27354 | int res1 = 0 ; | |
27355 | PyObject *swig_obj[1] ; | |
27356 | ||
27357 | if (!args) SWIG_fail; | |
27358 | swig_obj[0] = args; | |
27359 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27360 | if (!SWIG_IsOK(res1)) { | |
27361 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27362 | } | |
27363 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27364 | result = (long) ((arg1)->m_data); | |
27365 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27366 | return resultobj; | |
27367 | fail: | |
27368 | return NULL; | |
27369 | } | |
27370 | ||
27371 | ||
27372 | SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27373 | PyObject *resultobj = 0; | |
27374 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27375 | int arg2 ; | |
27376 | void *argp1 = 0 ; | |
27377 | int res1 = 0 ; | |
27378 | int val2 ; | |
27379 | int ecode2 = 0 ; | |
27380 | PyObject *swig_obj[2] ; | |
27381 | ||
27382 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail; | |
27383 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27384 | if (!SWIG_IsOK(res1)) { | |
27385 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27386 | } | |
27387 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27388 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27389 | if (!SWIG_IsOK(ecode2)) { | |
27390 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'"); | |
27391 | } | |
27392 | arg2 = static_cast< int >(val2); | |
27393 | if (arg1) (arg1)->m_format = arg2; | |
27394 | ||
27395 | resultobj = SWIG_Py_Void(); | |
27396 | return resultobj; | |
27397 | fail: | |
27398 | return NULL; | |
d14a1e28 RD |
27399 | } |
27400 | ||
27401 | ||
0085ce49 RD |
27402 | SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27403 | PyObject *resultobj = 0; | |
27404 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27405 | int result; | |
27406 | void *argp1 = 0 ; | |
27407 | int res1 = 0 ; | |
27408 | PyObject *swig_obj[1] ; | |
27409 | ||
27410 | if (!args) SWIG_fail; | |
27411 | swig_obj[0] = args; | |
27412 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27413 | if (!SWIG_IsOK(res1)) { | |
27414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27415 | } | |
27416 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27417 | result = (int) ((arg1)->m_format); | |
27418 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27419 | return resultobj; | |
27420 | fail: | |
27421 | return NULL; | |
27422 | } | |
27423 | ||
27424 | ||
27425 | SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27426 | PyObject *resultobj = 0; | |
27427 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27428 | int arg2 ; | |
27429 | void *argp1 = 0 ; | |
27430 | int res1 = 0 ; | |
27431 | int val2 ; | |
27432 | int ecode2 = 0 ; | |
27433 | PyObject *swig_obj[2] ; | |
27434 | ||
27435 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail; | |
27436 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27437 | if (!SWIG_IsOK(res1)) { | |
27438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27439 | } | |
27440 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27441 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27442 | if (!SWIG_IsOK(ecode2)) { | |
27443 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'"); | |
27444 | } | |
27445 | arg2 = static_cast< int >(val2); | |
27446 | if (arg1) (arg1)->m_width = arg2; | |
27447 | ||
27448 | resultobj = SWIG_Py_Void(); | |
27449 | return resultobj; | |
27450 | fail: | |
27451 | return NULL; | |
d14a1e28 RD |
27452 | } |
27453 | ||
27454 | ||
0085ce49 RD |
27455 | SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27456 | PyObject *resultobj = 0; | |
27457 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27458 | int result; | |
27459 | void *argp1 = 0 ; | |
27460 | int res1 = 0 ; | |
27461 | PyObject *swig_obj[1] ; | |
27462 | ||
27463 | if (!args) SWIG_fail; | |
27464 | swig_obj[0] = args; | |
27465 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27466 | if (!SWIG_IsOK(res1)) { | |
27467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27468 | } | |
27469 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27470 | result = (int) ((arg1)->m_width); | |
27471 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27472 | return resultobj; | |
27473 | fail: | |
27474 | return NULL; | |
27475 | } | |
27476 | ||
27477 | ||
27478 | SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27479 | PyObject *obj; | |
27480 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27481 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj)); | |
27482 | return SWIG_Py_Void(); | |
27483 | } | |
27484 | ||
27485 | SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27486 | return SWIG_Python_InitShadowInstance(args); | |
27487 | } | |
27488 | ||
27489 | SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27490 | PyObject *resultobj = 0; | |
27491 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
27492 | int arg2 = (int) 0 ; | |
27493 | wxListEvent *result = 0 ; | |
27494 | int val1 ; | |
27495 | int ecode1 = 0 ; | |
27496 | int val2 ; | |
27497 | int ecode2 = 0 ; | |
27498 | PyObject * obj0 = 0 ; | |
27499 | PyObject * obj1 = 0 ; | |
27500 | char * kwnames[] = { | |
27501 | (char *) "commandType",(char *) "id", NULL | |
27502 | }; | |
27503 | ||
27504 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
27505 | if (obj0) { | |
27506 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
27507 | if (!SWIG_IsOK(ecode1)) { | |
27508 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
27509 | } | |
27510 | arg1 = static_cast< wxEventType >(val1); | |
27511 | } | |
27512 | if (obj1) { | |
27513 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27514 | if (!SWIG_IsOK(ecode2)) { | |
27515 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'"); | |
27516 | } | |
27517 | arg2 = static_cast< int >(val2); | |
27518 | } | |
27519 | { | |
27520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27521 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
27522 | wxPyEndAllowThreads(__tstate); | |
27523 | if (PyErr_Occurred()) SWIG_fail; | |
27524 | } | |
27525 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 ); | |
27526 | return resultobj; | |
27527 | fail: | |
27528 | return NULL; | |
27529 | } | |
27530 | ||
27531 | ||
27532 | SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27533 | PyObject *resultobj = 0; | |
27534 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27535 | int arg2 ; | |
27536 | void *argp1 = 0 ; | |
27537 | int res1 = 0 ; | |
27538 | int val2 ; | |
27539 | int ecode2 = 0 ; | |
27540 | PyObject *swig_obj[2] ; | |
27541 | ||
27542 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail; | |
27543 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27544 | if (!SWIG_IsOK(res1)) { | |
27545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27546 | } | |
27547 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27548 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27549 | if (!SWIG_IsOK(ecode2)) { | |
27550 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'"); | |
27551 | } | |
27552 | arg2 = static_cast< int >(val2); | |
27553 | if (arg1) (arg1)->m_code = arg2; | |
27554 | ||
27555 | resultobj = SWIG_Py_Void(); | |
27556 | return resultobj; | |
27557 | fail: | |
27558 | return NULL; | |
d14a1e28 RD |
27559 | } |
27560 | ||
27561 | ||
0085ce49 RD |
27562 | SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27563 | PyObject *resultobj = 0; | |
27564 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27565 | int result; | |
27566 | void *argp1 = 0 ; | |
27567 | int res1 = 0 ; | |
27568 | PyObject *swig_obj[1] ; | |
27569 | ||
27570 | if (!args) SWIG_fail; | |
27571 | swig_obj[0] = args; | |
27572 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27573 | if (!SWIG_IsOK(res1)) { | |
27574 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27575 | } | |
27576 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27577 | result = (int) ((arg1)->m_code); | |
27578 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27579 | return resultobj; | |
27580 | fail: | |
27581 | return NULL; | |
27582 | } | |
27583 | ||
27584 | ||
27585 | SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27586 | PyObject *resultobj = 0; | |
27587 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27588 | long arg2 ; | |
27589 | void *argp1 = 0 ; | |
27590 | int res1 = 0 ; | |
27591 | long val2 ; | |
27592 | int ecode2 = 0 ; | |
27593 | PyObject *swig_obj[2] ; | |
27594 | ||
27595 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail; | |
27596 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27597 | if (!SWIG_IsOK(res1)) { | |
27598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27599 | } | |
27600 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27601 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27602 | if (!SWIG_IsOK(ecode2)) { | |
27603 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'"); | |
27604 | } | |
27605 | arg2 = static_cast< long >(val2); | |
27606 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
27607 | ||
27608 | resultobj = SWIG_Py_Void(); | |
27609 | return resultobj; | |
27610 | fail: | |
27611 | return NULL; | |
d14a1e28 RD |
27612 | } |
27613 | ||
27614 | ||
0085ce49 RD |
27615 | SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27616 | PyObject *resultobj = 0; | |
27617 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27618 | long result; | |
27619 | void *argp1 = 0 ; | |
27620 | int res1 = 0 ; | |
27621 | PyObject *swig_obj[1] ; | |
27622 | ||
27623 | if (!args) SWIG_fail; | |
27624 | swig_obj[0] = args; | |
27625 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27626 | if (!SWIG_IsOK(res1)) { | |
27627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27628 | } | |
27629 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27630 | result = (long) ((arg1)->m_oldItemIndex); | |
27631 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27632 | return resultobj; | |
27633 | fail: | |
27634 | return NULL; | |
27635 | } | |
27636 | ||
27637 | ||
27638 | SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27639 | PyObject *resultobj = 0; | |
27640 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27641 | long arg2 ; | |
27642 | void *argp1 = 0 ; | |
27643 | int res1 = 0 ; | |
27644 | long val2 ; | |
27645 | int ecode2 = 0 ; | |
27646 | PyObject *swig_obj[2] ; | |
27647 | ||
27648 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail; | |
27649 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27650 | if (!SWIG_IsOK(res1)) { | |
27651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27652 | } | |
27653 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27654 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27655 | if (!SWIG_IsOK(ecode2)) { | |
27656 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'"); | |
27657 | } | |
27658 | arg2 = static_cast< long >(val2); | |
27659 | if (arg1) (arg1)->m_itemIndex = arg2; | |
27660 | ||
27661 | resultobj = SWIG_Py_Void(); | |
27662 | return resultobj; | |
27663 | fail: | |
27664 | return NULL; | |
d14a1e28 RD |
27665 | } |
27666 | ||
27667 | ||
0085ce49 RD |
27668 | SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27669 | PyObject *resultobj = 0; | |
27670 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27671 | long result; | |
27672 | void *argp1 = 0 ; | |
27673 | int res1 = 0 ; | |
27674 | PyObject *swig_obj[1] ; | |
27675 | ||
27676 | if (!args) SWIG_fail; | |
27677 | swig_obj[0] = args; | |
27678 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27679 | if (!SWIG_IsOK(res1)) { | |
27680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27681 | } | |
27682 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27683 | result = (long) ((arg1)->m_itemIndex); | |
27684 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27685 | return resultobj; | |
27686 | fail: | |
27687 | return NULL; | |
27688 | } | |
27689 | ||
27690 | ||
27691 | SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27692 | PyObject *resultobj = 0; | |
27693 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27694 | int arg2 ; | |
27695 | void *argp1 = 0 ; | |
27696 | int res1 = 0 ; | |
27697 | int val2 ; | |
27698 | int ecode2 = 0 ; | |
27699 | PyObject *swig_obj[2] ; | |
27700 | ||
27701 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail; | |
27702 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27703 | if (!SWIG_IsOK(res1)) { | |
27704 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27705 | } | |
27706 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27707 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27708 | if (!SWIG_IsOK(ecode2)) { | |
27709 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'"); | |
27710 | } | |
27711 | arg2 = static_cast< int >(val2); | |
27712 | if (arg1) (arg1)->m_col = arg2; | |
27713 | ||
27714 | resultobj = SWIG_Py_Void(); | |
27715 | return resultobj; | |
27716 | fail: | |
27717 | return NULL; | |
7e08d4ef RD |
27718 | } |
27719 | ||
27720 | ||
0085ce49 RD |
27721 | SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27722 | PyObject *resultobj = 0; | |
27723 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27724 | int result; | |
27725 | void *argp1 = 0 ; | |
27726 | int res1 = 0 ; | |
27727 | PyObject *swig_obj[1] ; | |
27728 | ||
27729 | if (!args) SWIG_fail; | |
27730 | swig_obj[0] = args; | |
27731 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27732 | if (!SWIG_IsOK(res1)) { | |
27733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27734 | } | |
27735 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27736 | result = (int) ((arg1)->m_col); | |
27737 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27738 | return resultobj; | |
27739 | fail: | |
27740 | return NULL; | |
27741 | } | |
27742 | ||
27743 | ||
27744 | SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27745 | PyObject *resultobj = 0; | |
27746 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27747 | wxPoint *arg2 = (wxPoint *) 0 ; | |
27748 | void *argp1 = 0 ; | |
27749 | int res1 = 0 ; | |
27750 | void *argp2 = 0 ; | |
27751 | int res2 = 0 ; | |
27752 | PyObject *swig_obj[2] ; | |
27753 | ||
27754 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail; | |
27755 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27756 | if (!SWIG_IsOK(res1)) { | |
27757 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27758 | } | |
27759 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27760 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 ); | |
27761 | if (!SWIG_IsOK(res2)) { | |
27762 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'"); | |
27763 | } | |
27764 | arg2 = reinterpret_cast< wxPoint * >(argp2); | |
27765 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
27766 | ||
27767 | resultobj = SWIG_Py_Void(); | |
27768 | return resultobj; | |
27769 | fail: | |
27770 | return NULL; | |
7e08d4ef RD |
27771 | } |
27772 | ||
27773 | ||
0085ce49 RD |
27774 | SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27775 | PyObject *resultobj = 0; | |
27776 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27777 | wxPoint *result = 0 ; | |
27778 | void *argp1 = 0 ; | |
27779 | int res1 = 0 ; | |
27780 | PyObject *swig_obj[1] ; | |
27781 | ||
27782 | if (!args) SWIG_fail; | |
27783 | swig_obj[0] = args; | |
27784 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27785 | if (!SWIG_IsOK(res1)) { | |
27786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27787 | } | |
27788 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27789 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
27790 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 ); | |
27791 | return resultobj; | |
27792 | fail: | |
27793 | return NULL; | |
27794 | } | |
27795 | ||
27796 | ||
27797 | SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27798 | PyObject *resultobj = 0; | |
27799 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27800 | wxListItem *result = 0 ; | |
27801 | void *argp1 = 0 ; | |
27802 | int res1 = 0 ; | |
27803 | PyObject *swig_obj[1] ; | |
27804 | ||
27805 | if (!args) SWIG_fail; | |
27806 | swig_obj[0] = args; | |
27807 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27808 | if (!SWIG_IsOK(res1)) { | |
27809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27810 | } | |
27811 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27812 | result = (wxListItem *)& ((arg1)->m_item); | |
27813 | { | |
27814 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
27815 | } | |
27816 | return resultobj; | |
27817 | fail: | |
27818 | return NULL; | |
7e08d4ef RD |
27819 | } |
27820 | ||
27821 | ||
0085ce49 RD |
27822 | SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27823 | PyObject *resultobj = 0; | |
27824 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27825 | int result; | |
27826 | void *argp1 = 0 ; | |
27827 | int res1 = 0 ; | |
27828 | PyObject *swig_obj[1] ; | |
27829 | ||
27830 | if (!args) SWIG_fail; | |
27831 | swig_obj[0] = args; | |
27832 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27833 | if (!SWIG_IsOK(res1)) { | |
27834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27835 | } | |
27836 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27837 | { | |
27838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27839 | result = (int)(arg1)->GetKeyCode(); | |
27840 | wxPyEndAllowThreads(__tstate); | |
27841 | if (PyErr_Occurred()) SWIG_fail; | |
27842 | } | |
27843 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27844 | return resultobj; | |
27845 | fail: | |
27846 | return NULL; | |
7e08d4ef RD |
27847 | } |
27848 | ||
27849 | ||
0085ce49 RD |
27850 | SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27851 | PyObject *resultobj = 0; | |
27852 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27853 | long result; | |
27854 | void *argp1 = 0 ; | |
27855 | int res1 = 0 ; | |
27856 | PyObject *swig_obj[1] ; | |
27857 | ||
27858 | if (!args) SWIG_fail; | |
27859 | swig_obj[0] = args; | |
27860 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27861 | if (!SWIG_IsOK(res1)) { | |
27862 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27863 | } | |
27864 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27865 | { | |
27866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27867 | result = (long)(arg1)->GetIndex(); | |
27868 | wxPyEndAllowThreads(__tstate); | |
27869 | if (PyErr_Occurred()) SWIG_fail; | |
27870 | } | |
27871 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27872 | return resultobj; | |
27873 | fail: | |
27874 | return NULL; | |
7e08d4ef RD |
27875 | } |
27876 | ||
27877 | ||
0085ce49 RD |
27878 | SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27879 | PyObject *resultobj = 0; | |
27880 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27881 | int result; | |
27882 | void *argp1 = 0 ; | |
27883 | int res1 = 0 ; | |
27884 | PyObject *swig_obj[1] ; | |
27885 | ||
27886 | if (!args) SWIG_fail; | |
27887 | swig_obj[0] = args; | |
27888 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27889 | if (!SWIG_IsOK(res1)) { | |
27890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27891 | } | |
27892 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27893 | { | |
27894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27895 | result = (int)(arg1)->GetColumn(); | |
27896 | wxPyEndAllowThreads(__tstate); | |
27897 | if (PyErr_Occurred()) SWIG_fail; | |
27898 | } | |
27899 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27900 | return resultobj; | |
27901 | fail: | |
27902 | return NULL; | |
d14a1e28 RD |
27903 | } |
27904 | ||
27905 | ||
0085ce49 RD |
27906 | SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27907 | PyObject *resultobj = 0; | |
27908 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27909 | wxPoint result; | |
27910 | void *argp1 = 0 ; | |
27911 | int res1 = 0 ; | |
27912 | PyObject *swig_obj[1] ; | |
27913 | ||
27914 | if (!args) SWIG_fail; | |
27915 | swig_obj[0] = args; | |
27916 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27917 | if (!SWIG_IsOK(res1)) { | |
27918 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27919 | } | |
27920 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27921 | { | |
27922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27923 | result = (arg1)->GetPoint(); | |
27924 | wxPyEndAllowThreads(__tstate); | |
27925 | if (PyErr_Occurred()) SWIG_fail; | |
27926 | } | |
27927 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
27928 | return resultobj; | |
27929 | fail: | |
27930 | return NULL; | |
d14a1e28 RD |
27931 | } |
27932 | ||
27933 | ||
0085ce49 RD |
27934 | SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27935 | PyObject *resultobj = 0; | |
27936 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27937 | wxString *result = 0 ; | |
27938 | void *argp1 = 0 ; | |
27939 | int res1 = 0 ; | |
27940 | PyObject *swig_obj[1] ; | |
27941 | ||
27942 | if (!args) SWIG_fail; | |
27943 | swig_obj[0] = args; | |
27944 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27945 | if (!SWIG_IsOK(res1)) { | |
27946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27947 | } | |
27948 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27949 | { | |
27950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 27951 | { |
0085ce49 RD |
27952 | wxString const &_result_ref = (arg1)->GetLabel(); |
27953 | result = (wxString *) &_result_ref; | |
4f89f6a3 | 27954 | } |
0085ce49 RD |
27955 | wxPyEndAllowThreads(__tstate); |
27956 | if (PyErr_Occurred()) SWIG_fail; | |
27957 | } | |
27958 | { | |
27959 | #if wxUSE_UNICODE | |
27960 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27961 | #else | |
27962 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27963 | #endif | |
27964 | } | |
27965 | return resultobj; | |
27966 | fail: | |
27967 | return NULL; | |
d14a1e28 RD |
27968 | } |
27969 | ||
27970 | ||
0085ce49 RD |
27971 | SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27972 | PyObject *resultobj = 0; | |
27973 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
27974 | wxString *result = 0 ; | |
27975 | void *argp1 = 0 ; | |
27976 | int res1 = 0 ; | |
27977 | PyObject *swig_obj[1] ; | |
27978 | ||
27979 | if (!args) SWIG_fail; | |
27980 | swig_obj[0] = args; | |
27981 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
27982 | if (!SWIG_IsOK(res1)) { | |
27983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
27984 | } | |
27985 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
27986 | { | |
27987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 27988 | { |
0085ce49 RD |
27989 | wxString const &_result_ref = (arg1)->GetText(); |
27990 | result = (wxString *) &_result_ref; | |
d14a1e28 | 27991 | } |
0085ce49 RD |
27992 | wxPyEndAllowThreads(__tstate); |
27993 | if (PyErr_Occurred()) SWIG_fail; | |
27994 | } | |
27995 | { | |
27996 | #if wxUSE_UNICODE | |
27997 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27998 | #else | |
27999 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28000 | #endif | |
28001 | } | |
28002 | return resultobj; | |
28003 | fail: | |
28004 | return NULL; | |
d14a1e28 RD |
28005 | } |
28006 | ||
28007 | ||
0085ce49 RD |
28008 | SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28009 | PyObject *resultobj = 0; | |
28010 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28011 | int result; | |
28012 | void *argp1 = 0 ; | |
28013 | int res1 = 0 ; | |
28014 | PyObject *swig_obj[1] ; | |
28015 | ||
28016 | if (!args) SWIG_fail; | |
28017 | swig_obj[0] = args; | |
28018 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28019 | if (!SWIG_IsOK(res1)) { | |
28020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28021 | } | |
28022 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28023 | { | |
28024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28025 | result = (int)(arg1)->GetImage(); | |
28026 | wxPyEndAllowThreads(__tstate); | |
28027 | if (PyErr_Occurred()) SWIG_fail; | |
28028 | } | |
28029 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28030 | return resultobj; | |
28031 | fail: | |
28032 | return NULL; | |
d14a1e28 RD |
28033 | } |
28034 | ||
28035 | ||
0085ce49 RD |
28036 | SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28037 | PyObject *resultobj = 0; | |
28038 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28039 | long result; | |
28040 | void *argp1 = 0 ; | |
28041 | int res1 = 0 ; | |
28042 | PyObject *swig_obj[1] ; | |
28043 | ||
28044 | if (!args) SWIG_fail; | |
28045 | swig_obj[0] = args; | |
28046 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28047 | if (!SWIG_IsOK(res1)) { | |
28048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28049 | } | |
28050 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28051 | { | |
28052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28053 | result = (long)(arg1)->GetData(); | |
28054 | wxPyEndAllowThreads(__tstate); | |
28055 | if (PyErr_Occurred()) SWIG_fail; | |
28056 | } | |
28057 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28058 | return resultobj; | |
28059 | fail: | |
28060 | return NULL; | |
d14a1e28 RD |
28061 | } |
28062 | ||
28063 | ||
0085ce49 RD |
28064 | SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28065 | PyObject *resultobj = 0; | |
28066 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28067 | long result; | |
28068 | void *argp1 = 0 ; | |
28069 | int res1 = 0 ; | |
28070 | PyObject *swig_obj[1] ; | |
28071 | ||
28072 | if (!args) SWIG_fail; | |
28073 | swig_obj[0] = args; | |
28074 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28075 | if (!SWIG_IsOK(res1)) { | |
28076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28077 | } | |
28078 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28079 | { | |
28080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28081 | result = (long)(arg1)->GetMask(); | |
28082 | wxPyEndAllowThreads(__tstate); | |
28083 | if (PyErr_Occurred()) SWIG_fail; | |
28084 | } | |
28085 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28086 | return resultobj; | |
28087 | fail: | |
28088 | return NULL; | |
d14a1e28 RD |
28089 | } |
28090 | ||
28091 | ||
0085ce49 RD |
28092 | SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28093 | PyObject *resultobj = 0; | |
28094 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28095 | wxListItem *result = 0 ; | |
28096 | void *argp1 = 0 ; | |
28097 | int res1 = 0 ; | |
28098 | PyObject *swig_obj[1] ; | |
28099 | ||
28100 | if (!args) SWIG_fail; | |
28101 | swig_obj[0] = args; | |
28102 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28103 | if (!SWIG_IsOK(res1)) { | |
28104 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28105 | } | |
28106 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28107 | { | |
28108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22bfe96c | 28109 | { |
0085ce49 RD |
28110 | wxListItem const &_result_ref = (arg1)->GetItem(); |
28111 | result = (wxListItem *) &_result_ref; | |
22bfe96c | 28112 | } |
0085ce49 RD |
28113 | wxPyEndAllowThreads(__tstate); |
28114 | if (PyErr_Occurred()) SWIG_fail; | |
28115 | } | |
28116 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28117 | return resultobj; | |
28118 | fail: | |
28119 | return NULL; | |
22bfe96c RD |
28120 | } |
28121 | ||
28122 | ||
0085ce49 RD |
28123 | SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28124 | PyObject *resultobj = 0; | |
28125 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28126 | long result; | |
28127 | void *argp1 = 0 ; | |
28128 | int res1 = 0 ; | |
28129 | PyObject *swig_obj[1] ; | |
28130 | ||
28131 | if (!args) SWIG_fail; | |
28132 | swig_obj[0] = args; | |
28133 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28134 | if (!SWIG_IsOK(res1)) { | |
28135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28136 | } | |
28137 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28138 | { | |
28139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28140 | result = (long)(arg1)->GetCacheFrom(); | |
28141 | wxPyEndAllowThreads(__tstate); | |
28142 | if (PyErr_Occurred()) SWIG_fail; | |
28143 | } | |
28144 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28145 | return resultobj; | |
28146 | fail: | |
28147 | return NULL; | |
d14a1e28 RD |
28148 | } |
28149 | ||
28150 | ||
0085ce49 RD |
28151 | SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28152 | PyObject *resultobj = 0; | |
28153 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28154 | long result; | |
28155 | void *argp1 = 0 ; | |
28156 | int res1 = 0 ; | |
28157 | PyObject *swig_obj[1] ; | |
28158 | ||
28159 | if (!args) SWIG_fail; | |
28160 | swig_obj[0] = args; | |
28161 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28162 | if (!SWIG_IsOK(res1)) { | |
28163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28164 | } | |
28165 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28166 | { | |
28167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28168 | result = (long)(arg1)->GetCacheTo(); | |
28169 | wxPyEndAllowThreads(__tstate); | |
28170 | if (PyErr_Occurred()) SWIG_fail; | |
28171 | } | |
28172 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28173 | return resultobj; | |
28174 | fail: | |
28175 | return NULL; | |
d14a1e28 RD |
28176 | } |
28177 | ||
28178 | ||
0085ce49 RD |
28179 | SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28180 | PyObject *resultobj = 0; | |
28181 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28182 | bool result; | |
28183 | void *argp1 = 0 ; | |
28184 | int res1 = 0 ; | |
28185 | PyObject *swig_obj[1] ; | |
28186 | ||
28187 | if (!args) SWIG_fail; | |
28188 | swig_obj[0] = args; | |
28189 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28190 | if (!SWIG_IsOK(res1)) { | |
28191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'"); | |
28192 | } | |
28193 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28194 | { | |
28195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28196 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
28197 | wxPyEndAllowThreads(__tstate); | |
28198 | if (PyErr_Occurred()) SWIG_fail; | |
28199 | } | |
28200 | { | |
28201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28202 | } | |
28203 | return resultobj; | |
28204 | fail: | |
28205 | return NULL; | |
28206 | } | |
28207 | ||
28208 | ||
28209 | SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28210 | PyObject *resultobj = 0; | |
28211 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28212 | bool arg2 ; | |
28213 | void *argp1 = 0 ; | |
28214 | int res1 = 0 ; | |
28215 | bool val2 ; | |
28216 | int ecode2 = 0 ; | |
28217 | PyObject * obj0 = 0 ; | |
28218 | PyObject * obj1 = 0 ; | |
28219 | char * kwnames[] = { | |
28220 | (char *) "self",(char *) "editCancelled", NULL | |
28221 | }; | |
28222 | ||
28223 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail; | |
28224 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28225 | if (!SWIG_IsOK(res1)) { | |
28226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28227 | } | |
28228 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28229 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
28230 | if (!SWIG_IsOK(ecode2)) { | |
28231 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'"); | |
28232 | } | |
28233 | arg2 = static_cast< bool >(val2); | |
28234 | { | |
28235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28236 | (arg1)->SetEditCanceled(arg2); | |
28237 | wxPyEndAllowThreads(__tstate); | |
28238 | if (PyErr_Occurred()) SWIG_fail; | |
28239 | } | |
28240 | resultobj = SWIG_Py_Void(); | |
28241 | return resultobj; | |
28242 | fail: | |
28243 | return NULL; | |
28244 | } | |
28245 | ||
28246 | ||
28247 | SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28248 | PyObject *obj; | |
28249 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28250 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj)); | |
28251 | return SWIG_Py_Void(); | |
28252 | } | |
28253 | ||
28254 | SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28255 | return SWIG_Python_InitShadowInstance(args); | |
28256 | } | |
28257 | ||
28258 | SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28259 | PyObject *resultobj = 0; | |
28260 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28261 | int arg2 = (int) -1 ; | |
28262 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28263 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28264 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28265 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28266 | long arg5 = (long) wxLC_ICON ; | |
28267 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28268 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
28269 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
28270 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28271 | wxPyListCtrl *result = 0 ; | |
28272 | void *argp1 = 0 ; | |
28273 | int res1 = 0 ; | |
28274 | int val2 ; | |
28275 | int ecode2 = 0 ; | |
28276 | wxPoint temp3 ; | |
28277 | wxSize temp4 ; | |
28278 | long val5 ; | |
28279 | int ecode5 = 0 ; | |
28280 | void *argp6 = 0 ; | |
28281 | int res6 = 0 ; | |
28282 | bool temp7 = false ; | |
28283 | PyObject * obj0 = 0 ; | |
28284 | PyObject * obj1 = 0 ; | |
28285 | PyObject * obj2 = 0 ; | |
28286 | PyObject * obj3 = 0 ; | |
28287 | PyObject * obj4 = 0 ; | |
28288 | PyObject * obj5 = 0 ; | |
28289 | PyObject * obj6 = 0 ; | |
28290 | char * kwnames[] = { | |
28291 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28292 | }; | |
28293 | ||
28294 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
28295 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28296 | if (!SWIG_IsOK(res1)) { | |
28297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
28298 | } | |
28299 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
28300 | if (obj1) { | |
28301 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28302 | if (!SWIG_IsOK(ecode2)) { | |
28303 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'"); | |
28304 | } | |
28305 | arg2 = static_cast< int >(val2); | |
28306 | } | |
28307 | if (obj2) { | |
093d3ff1 | 28308 | { |
0085ce49 RD |
28309 | arg3 = &temp3; |
28310 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 28311 | } |
0085ce49 RD |
28312 | } |
28313 | if (obj3) { | |
d14a1e28 | 28314 | { |
0085ce49 RD |
28315 | arg4 = &temp4; |
28316 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 28317 | } |
0085ce49 RD |
28318 | } |
28319 | if (obj4) { | |
28320 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
28321 | if (!SWIG_IsOK(ecode5)) { | |
28322 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'"); | |
28323 | } | |
28324 | arg5 = static_cast< long >(val5); | |
28325 | } | |
28326 | if (obj5) { | |
28327 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
28328 | if (!SWIG_IsOK(res6)) { | |
28329 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 28330 | } |
0085ce49 RD |
28331 | if (!argp6) { |
28332 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
28333 | } | |
28334 | arg6 = reinterpret_cast< wxValidator * >(argp6); | |
28335 | } | |
28336 | if (obj6) { | |
093d3ff1 | 28337 | { |
0085ce49 RD |
28338 | arg7 = wxString_in_helper(obj6); |
28339 | if (arg7 == NULL) SWIG_fail; | |
28340 | temp7 = true; | |
093d3ff1 | 28341 | } |
0085ce49 RD |
28342 | } |
28343 | { | |
28344 | if (!wxPyCheckForApp()) SWIG_fail; | |
28345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28346 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28347 | wxPyEndAllowThreads(__tstate); | |
28348 | if (PyErr_Occurred()) SWIG_fail; | |
28349 | } | |
28350 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 ); | |
28351 | { | |
28352 | if (temp7) | |
28353 | delete arg7; | |
28354 | } | |
28355 | return resultobj; | |
28356 | fail: | |
28357 | { | |
28358 | if (temp7) | |
28359 | delete arg7; | |
28360 | } | |
28361 | return NULL; | |
d14a1e28 RD |
28362 | } |
28363 | ||
28364 | ||
0085ce49 RD |
28365 | SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28366 | PyObject *resultobj = 0; | |
28367 | wxPyListCtrl *result = 0 ; | |
28368 | ||
28369 | if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail; | |
28370 | { | |
28371 | if (!wxPyCheckForApp()) SWIG_fail; | |
28372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28373 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
28374 | wxPyEndAllowThreads(__tstate); | |
28375 | if (PyErr_Occurred()) SWIG_fail; | |
28376 | } | |
28377 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 ); | |
28378 | return resultobj; | |
28379 | fail: | |
28380 | return NULL; | |
28381 | } | |
28382 | ||
28383 | ||
28384 | SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28385 | PyObject *resultobj = 0; | |
28386 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28387 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28388 | int arg3 = (int) -1 ; | |
28389 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28390 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28391 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28392 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28393 | long arg6 = (long) wxLC_ICON ; | |
28394 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
28395 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
28396 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
28397 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
28398 | bool result; | |
28399 | void *argp1 = 0 ; | |
28400 | int res1 = 0 ; | |
28401 | void *argp2 = 0 ; | |
28402 | int res2 = 0 ; | |
28403 | int val3 ; | |
28404 | int ecode3 = 0 ; | |
28405 | wxPoint temp4 ; | |
28406 | wxSize temp5 ; | |
28407 | long val6 ; | |
28408 | int ecode6 = 0 ; | |
28409 | void *argp7 = 0 ; | |
28410 | int res7 = 0 ; | |
28411 | bool temp8 = false ; | |
28412 | PyObject * obj0 = 0 ; | |
28413 | PyObject * obj1 = 0 ; | |
28414 | PyObject * obj2 = 0 ; | |
28415 | PyObject * obj3 = 0 ; | |
28416 | PyObject * obj4 = 0 ; | |
28417 | PyObject * obj5 = 0 ; | |
28418 | PyObject * obj6 = 0 ; | |
28419 | PyObject * obj7 = 0 ; | |
28420 | char * kwnames[] = { | |
28421 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28422 | }; | |
28423 | ||
28424 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
28425 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28426 | if (!SWIG_IsOK(res1)) { | |
28427 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28428 | } | |
28429 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28430 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28431 | if (!SWIG_IsOK(res2)) { | |
28432 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
28433 | } | |
28434 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
28435 | if (obj2) { | |
28436 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28437 | if (!SWIG_IsOK(ecode3)) { | |
28438 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
28439 | } | |
28440 | arg3 = static_cast< int >(val3); | |
28441 | } | |
28442 | if (obj3) { | |
093d3ff1 | 28443 | { |
0085ce49 RD |
28444 | arg4 = &temp4; |
28445 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 28446 | } |
0085ce49 RD |
28447 | } |
28448 | if (obj4) { | |
d14a1e28 | 28449 | { |
0085ce49 RD |
28450 | arg5 = &temp5; |
28451 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 28452 | } |
0085ce49 RD |
28453 | } |
28454 | if (obj5) { | |
28455 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
28456 | if (!SWIG_IsOK(ecode6)) { | |
28457 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
28458 | } | |
28459 | arg6 = static_cast< long >(val6); | |
28460 | } | |
28461 | if (obj6) { | |
28462 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
28463 | if (!SWIG_IsOK(res7)) { | |
28464 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 28465 | } |
0085ce49 RD |
28466 | if (!argp7) { |
28467 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 28468 | } |
0085ce49 RD |
28469 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
28470 | } | |
28471 | if (obj7) { | |
d14a1e28 | 28472 | { |
0085ce49 RD |
28473 | arg8 = wxString_in_helper(obj7); |
28474 | if (arg8 == NULL) SWIG_fail; | |
28475 | temp8 = true; | |
d14a1e28 | 28476 | } |
0085ce49 RD |
28477 | } |
28478 | { | |
28479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28480 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
28481 | wxPyEndAllowThreads(__tstate); | |
28482 | if (PyErr_Occurred()) SWIG_fail; | |
28483 | } | |
28484 | { | |
28485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28486 | } | |
28487 | { | |
28488 | if (temp8) | |
28489 | delete arg8; | |
28490 | } | |
28491 | return resultobj; | |
28492 | fail: | |
28493 | { | |
28494 | if (temp8) | |
28495 | delete arg8; | |
28496 | } | |
28497 | return NULL; | |
28498 | } | |
28499 | ||
28500 | ||
28501 | SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28502 | PyObject *resultobj = 0; | |
28503 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28504 | PyObject *arg2 = (PyObject *) 0 ; | |
28505 | PyObject *arg3 = (PyObject *) 0 ; | |
28506 | void *argp1 = 0 ; | |
28507 | int res1 = 0 ; | |
28508 | PyObject * obj0 = 0 ; | |
28509 | PyObject * obj1 = 0 ; | |
28510 | PyObject * obj2 = 0 ; | |
28511 | char * kwnames[] = { | |
28512 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28513 | }; | |
28514 | ||
28515 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28516 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28517 | if (!SWIG_IsOK(res1)) { | |
28518 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28519 | } | |
28520 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28521 | arg2 = obj1; | |
28522 | arg3 = obj2; | |
28523 | { | |
28524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28525 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28526 | wxPyEndAllowThreads(__tstate); | |
28527 | if (PyErr_Occurred()) SWIG_fail; | |
28528 | } | |
28529 | resultobj = SWIG_Py_Void(); | |
28530 | return resultobj; | |
28531 | fail: | |
28532 | return NULL; | |
28533 | } | |
28534 | ||
28535 | ||
28536 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28537 | PyObject *resultobj = 0; | |
28538 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28539 | int arg2 ; | |
28540 | wxListItem *result = 0 ; | |
28541 | void *argp1 = 0 ; | |
28542 | int res1 = 0 ; | |
28543 | int val2 ; | |
28544 | int ecode2 = 0 ; | |
28545 | PyObject * obj0 = 0 ; | |
28546 | PyObject * obj1 = 0 ; | |
28547 | char * kwnames[] = { | |
28548 | (char *) "self",(char *) "col", NULL | |
28549 | }; | |
28550 | ||
28551 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
28552 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28553 | if (!SWIG_IsOK(res1)) { | |
28554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28555 | } | |
28556 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28557 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28558 | if (!SWIG_IsOK(ecode2)) { | |
28559 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'"); | |
28560 | } | |
28561 | arg2 = static_cast< int >(val2); | |
28562 | { | |
28563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28564 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
28565 | wxPyEndAllowThreads(__tstate); | |
28566 | if (PyErr_Occurred()) SWIG_fail; | |
28567 | } | |
28568 | { | |
28569 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
28570 | } | |
28571 | return resultobj; | |
28572 | fail: | |
28573 | return NULL; | |
28574 | } | |
28575 | ||
28576 | ||
28577 | SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28578 | PyObject *resultobj = 0; | |
28579 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28580 | int arg2 ; | |
28581 | wxListItem *arg3 = 0 ; | |
28582 | bool result; | |
28583 | void *argp1 = 0 ; | |
28584 | int res1 = 0 ; | |
28585 | int val2 ; | |
28586 | int ecode2 = 0 ; | |
28587 | void *argp3 = 0 ; | |
28588 | int res3 = 0 ; | |
28589 | PyObject * obj0 = 0 ; | |
28590 | PyObject * obj1 = 0 ; | |
28591 | PyObject * obj2 = 0 ; | |
28592 | char * kwnames[] = { | |
28593 | (char *) "self",(char *) "col",(char *) "item", NULL | |
28594 | }; | |
28595 | ||
28596 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28597 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28598 | if (!SWIG_IsOK(res1)) { | |
28599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28600 | } | |
28601 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28602 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28603 | if (!SWIG_IsOK(ecode2)) { | |
28604 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'"); | |
28605 | } | |
28606 | arg2 = static_cast< int >(val2); | |
28607 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 ); | |
28608 | if (!SWIG_IsOK(res3)) { | |
28609 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
28610 | } | |
28611 | if (!argp3) { | |
28612 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
28613 | } | |
28614 | arg3 = reinterpret_cast< wxListItem * >(argp3); | |
28615 | { | |
28616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28617 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
28618 | wxPyEndAllowThreads(__tstate); | |
28619 | if (PyErr_Occurred()) SWIG_fail; | |
28620 | } | |
28621 | { | |
28622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28623 | } | |
28624 | return resultobj; | |
28625 | fail: | |
28626 | return NULL; | |
28627 | } | |
28628 | ||
28629 | ||
28630 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28631 | PyObject *resultobj = 0; | |
28632 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28633 | int arg2 ; | |
28634 | int result; | |
28635 | void *argp1 = 0 ; | |
28636 | int res1 = 0 ; | |
28637 | int val2 ; | |
28638 | int ecode2 = 0 ; | |
28639 | PyObject * obj0 = 0 ; | |
28640 | PyObject * obj1 = 0 ; | |
28641 | char * kwnames[] = { | |
28642 | (char *) "self",(char *) "col", NULL | |
28643 | }; | |
28644 | ||
28645 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
28646 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28647 | if (!SWIG_IsOK(res1)) { | |
28648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
28649 | } | |
28650 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28651 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28652 | if (!SWIG_IsOK(ecode2)) { | |
28653 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'"); | |
28654 | } | |
28655 | arg2 = static_cast< int >(val2); | |
28656 | { | |
28657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28658 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
28659 | wxPyEndAllowThreads(__tstate); | |
28660 | if (PyErr_Occurred()) SWIG_fail; | |
28661 | } | |
28662 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28663 | return resultobj; | |
28664 | fail: | |
28665 | return NULL; | |
28666 | } | |
28667 | ||
28668 | ||
28669 | SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28670 | PyObject *resultobj = 0; | |
28671 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28672 | int arg2 ; | |
28673 | int arg3 ; | |
28674 | bool result; | |
28675 | void *argp1 = 0 ; | |
28676 | int res1 = 0 ; | |
28677 | int val2 ; | |
28678 | int ecode2 = 0 ; | |
28679 | int val3 ; | |
28680 | int ecode3 = 0 ; | |
28681 | PyObject * obj0 = 0 ; | |
28682 | PyObject * obj1 = 0 ; | |
28683 | PyObject * obj2 = 0 ; | |
28684 | char * kwnames[] = { | |
28685 | (char *) "self",(char *) "col",(char *) "width", NULL | |
28686 | }; | |
28687 | ||
28688 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28689 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28690 | if (!SWIG_IsOK(res1)) { | |
28691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28692 | } | |
28693 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28694 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28695 | if (!SWIG_IsOK(ecode2)) { | |
28696 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'"); | |
28697 | } | |
28698 | arg2 = static_cast< int >(val2); | |
28699 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28700 | if (!SWIG_IsOK(ecode3)) { | |
28701 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'"); | |
28702 | } | |
28703 | arg3 = static_cast< int >(val3); | |
28704 | { | |
28705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28706 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
28707 | wxPyEndAllowThreads(__tstate); | |
28708 | if (PyErr_Occurred()) SWIG_fail; | |
28709 | } | |
28710 | { | |
28711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28712 | } | |
28713 | return resultobj; | |
28714 | fail: | |
28715 | return NULL; | |
d14a1e28 RD |
28716 | } |
28717 | ||
28718 | ||
0085ce49 RD |
28719 | SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28720 | PyObject *resultobj = 0; | |
28721 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28722 | int result; | |
28723 | void *argp1 = 0 ; | |
28724 | int res1 = 0 ; | |
28725 | PyObject *swig_obj[1] ; | |
28726 | ||
28727 | if (!args) SWIG_fail; | |
28728 | swig_obj[0] = args; | |
28729 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28730 | if (!SWIG_IsOK(res1)) { | |
28731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
28732 | } | |
28733 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28734 | { | |
28735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28736 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
28737 | wxPyEndAllowThreads(__tstate); | |
28738 | if (PyErr_Occurred()) SWIG_fail; | |
28739 | } | |
28740 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28741 | return resultobj; | |
28742 | fail: | |
28743 | return NULL; | |
d14a1e28 RD |
28744 | } |
28745 | ||
28746 | ||
0085ce49 RD |
28747 | SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28748 | PyObject *resultobj = 0; | |
28749 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28750 | wxRect result; | |
28751 | void *argp1 = 0 ; | |
28752 | int res1 = 0 ; | |
28753 | PyObject *swig_obj[1] ; | |
28754 | ||
28755 | if (!args) SWIG_fail; | |
28756 | swig_obj[0] = args; | |
28757 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28758 | if (!SWIG_IsOK(res1)) { | |
28759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
28760 | } | |
28761 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28762 | { | |
28763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28764 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
28765 | wxPyEndAllowThreads(__tstate); | |
28766 | if (PyErr_Occurred()) SWIG_fail; | |
28767 | } | |
28768 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
28769 | return resultobj; | |
28770 | fail: | |
28771 | return NULL; | |
d14a1e28 RD |
28772 | } |
28773 | ||
28774 | ||
0085ce49 RD |
28775 | SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28776 | PyObject *resultobj = 0; | |
28777 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28778 | wxTextCtrl *result = 0 ; | |
28779 | void *argp1 = 0 ; | |
28780 | int res1 = 0 ; | |
28781 | PyObject *swig_obj[1] ; | |
28782 | ||
28783 | if (!args) SWIG_fail; | |
28784 | swig_obj[0] = args; | |
28785 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28786 | if (!SWIG_IsOK(res1)) { | |
28787 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
28788 | } | |
28789 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28790 | { | |
28791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28792 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
28793 | wxPyEndAllowThreads(__tstate); | |
28794 | if (PyErr_Occurred()) SWIG_fail; | |
28795 | } | |
28796 | { | |
28797 | resultobj = wxPyMake_wxObject(result, 0); | |
28798 | } | |
28799 | return resultobj; | |
28800 | fail: | |
28801 | return NULL; | |
28802 | } | |
28803 | ||
28804 | ||
28805 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28806 | PyObject *resultobj = 0; | |
28807 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28808 | long arg2 ; | |
28809 | int arg3 = (int) 0 ; | |
28810 | wxListItem *result = 0 ; | |
28811 | void *argp1 = 0 ; | |
28812 | int res1 = 0 ; | |
28813 | long val2 ; | |
28814 | int ecode2 = 0 ; | |
28815 | int val3 ; | |
28816 | int ecode3 = 0 ; | |
28817 | PyObject * obj0 = 0 ; | |
28818 | PyObject * obj1 = 0 ; | |
28819 | PyObject * obj2 = 0 ; | |
28820 | char * kwnames[] = { | |
28821 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
28822 | }; | |
28823 | ||
28824 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28825 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28826 | if (!SWIG_IsOK(res1)) { | |
28827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28828 | } | |
28829 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28830 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
28831 | if (!SWIG_IsOK(ecode2)) { | |
28832 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'"); | |
28833 | } | |
28834 | arg2 = static_cast< long >(val2); | |
28835 | if (obj2) { | |
28836 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28837 | if (!SWIG_IsOK(ecode3)) { | |
28838 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'"); | |
28839 | } | |
28840 | arg3 = static_cast< int >(val3); | |
28841 | } | |
28842 | { | |
28843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28844 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
28845 | wxPyEndAllowThreads(__tstate); | |
28846 | if (PyErr_Occurred()) SWIG_fail; | |
28847 | } | |
28848 | { | |
28849 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
28850 | } | |
28851 | return resultobj; | |
28852 | fail: | |
28853 | return NULL; | |
28854 | } | |
28855 | ||
28856 | ||
28857 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28858 | PyObject *resultobj = 0; | |
28859 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28860 | wxListItem *arg2 = 0 ; | |
28861 | bool result; | |
28862 | void *argp1 = 0 ; | |
28863 | int res1 = 0 ; | |
28864 | void *argp2 = 0 ; | |
28865 | int res2 = 0 ; | |
28866 | PyObject * obj0 = 0 ; | |
28867 | PyObject * obj1 = 0 ; | |
28868 | char * kwnames[] = { | |
28869 | (char *) "self",(char *) "info", NULL | |
28870 | }; | |
28871 | ||
28872 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
28873 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28874 | if (!SWIG_IsOK(res1)) { | |
28875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28876 | } | |
28877 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28878 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 ); | |
28879 | if (!SWIG_IsOK(res2)) { | |
28880 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
28881 | } | |
28882 | if (!argp2) { | |
28883 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
28884 | } | |
28885 | arg2 = reinterpret_cast< wxListItem * >(argp2); | |
28886 | { | |
28887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28888 | result = (bool)(arg1)->SetItem(*arg2); | |
28889 | wxPyEndAllowThreads(__tstate); | |
28890 | if (PyErr_Occurred()) SWIG_fail; | |
28891 | } | |
28892 | { | |
28893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28894 | } | |
28895 | return resultobj; | |
28896 | fail: | |
28897 | return NULL; | |
28898 | } | |
28899 | ||
28900 | ||
28901 | SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28902 | PyObject *resultobj = 0; | |
28903 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28904 | long arg2 ; | |
28905 | int arg3 ; | |
28906 | wxString *arg4 = 0 ; | |
28907 | int arg5 = (int) -1 ; | |
28908 | long result; | |
28909 | void *argp1 = 0 ; | |
28910 | int res1 = 0 ; | |
28911 | long val2 ; | |
28912 | int ecode2 = 0 ; | |
28913 | int val3 ; | |
28914 | int ecode3 = 0 ; | |
28915 | bool temp4 = false ; | |
28916 | int val5 ; | |
28917 | int ecode5 = 0 ; | |
28918 | PyObject * obj0 = 0 ; | |
28919 | PyObject * obj1 = 0 ; | |
28920 | PyObject * obj2 = 0 ; | |
28921 | PyObject * obj3 = 0 ; | |
28922 | PyObject * obj4 = 0 ; | |
28923 | char * kwnames[] = { | |
28924 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
28925 | }; | |
28926 | ||
28927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
28928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28929 | if (!SWIG_IsOK(res1)) { | |
28930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
28931 | } | |
28932 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
28933 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
28934 | if (!SWIG_IsOK(ecode2)) { | |
28935 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'"); | |
28936 | } | |
28937 | arg2 = static_cast< long >(val2); | |
28938 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28939 | if (!SWIG_IsOK(ecode3)) { | |
28940 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'"); | |
28941 | } | |
28942 | arg3 = static_cast< int >(val3); | |
28943 | { | |
28944 | arg4 = wxString_in_helper(obj3); | |
28945 | if (arg4 == NULL) SWIG_fail; | |
28946 | temp4 = true; | |
28947 | } | |
28948 | if (obj4) { | |
28949 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
28950 | if (!SWIG_IsOK(ecode5)) { | |
28951 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'"); | |
28952 | } | |
28953 | arg5 = static_cast< int >(val5); | |
28954 | } | |
28955 | { | |
28956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28957 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
28958 | wxPyEndAllowThreads(__tstate); | |
28959 | if (PyErr_Occurred()) SWIG_fail; | |
28960 | } | |
28961 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28962 | { | |
28963 | if (temp4) | |
28964 | delete arg4; | |
28965 | } | |
28966 | return resultobj; | |
28967 | fail: | |
28968 | { | |
28969 | if (temp4) | |
28970 | delete arg4; | |
28971 | } | |
28972 | return NULL; | |
28973 | } | |
28974 | ||
28975 | ||
28976 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28977 | PyObject *resultobj = 0; | |
28978 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28979 | long arg2 ; | |
28980 | long arg3 ; | |
28981 | int result; | |
28982 | void *argp1 = 0 ; | |
28983 | int res1 = 0 ; | |
28984 | long val2 ; | |
28985 | int ecode2 = 0 ; | |
28986 | long val3 ; | |
28987 | int ecode3 = 0 ; | |
28988 | PyObject * obj0 = 0 ; | |
28989 | PyObject * obj1 = 0 ; | |
28990 | PyObject * obj2 = 0 ; | |
28991 | char * kwnames[] = { | |
28992 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
28993 | }; | |
28994 | ||
28995 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28996 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
28997 | if (!SWIG_IsOK(res1)) { | |
28998 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
28999 | } | |
29000 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29001 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29002 | if (!SWIG_IsOK(ecode2)) { | |
29003 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'"); | |
29004 | } | |
29005 | arg2 = static_cast< long >(val2); | |
29006 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29007 | if (!SWIG_IsOK(ecode3)) { | |
29008 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'"); | |
29009 | } | |
29010 | arg3 = static_cast< long >(val3); | |
29011 | { | |
29012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29013 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
29014 | wxPyEndAllowThreads(__tstate); | |
29015 | if (PyErr_Occurred()) SWIG_fail; | |
29016 | } | |
29017 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29018 | return resultobj; | |
29019 | fail: | |
29020 | return NULL; | |
29021 | } | |
29022 | ||
29023 | ||
29024 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29025 | PyObject *resultobj = 0; | |
29026 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29027 | long arg2 ; | |
29028 | long arg3 ; | |
29029 | long arg4 ; | |
29030 | bool result; | |
29031 | void *argp1 = 0 ; | |
29032 | int res1 = 0 ; | |
29033 | long val2 ; | |
29034 | int ecode2 = 0 ; | |
29035 | long val3 ; | |
29036 | int ecode3 = 0 ; | |
29037 | long val4 ; | |
29038 | int ecode4 = 0 ; | |
29039 | PyObject * obj0 = 0 ; | |
29040 | PyObject * obj1 = 0 ; | |
29041 | PyObject * obj2 = 0 ; | |
29042 | PyObject * obj3 = 0 ; | |
29043 | char * kwnames[] = { | |
29044 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
29045 | }; | |
29046 | ||
29047 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29048 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29049 | if (!SWIG_IsOK(res1)) { | |
29050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29051 | } | |
29052 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29053 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29054 | if (!SWIG_IsOK(ecode2)) { | |
29055 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'"); | |
29056 | } | |
29057 | arg2 = static_cast< long >(val2); | |
29058 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29059 | if (!SWIG_IsOK(ecode3)) { | |
29060 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'"); | |
29061 | } | |
29062 | arg3 = static_cast< long >(val3); | |
29063 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
29064 | if (!SWIG_IsOK(ecode4)) { | |
29065 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'"); | |
29066 | } | |
29067 | arg4 = static_cast< long >(val4); | |
29068 | { | |
29069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29070 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
29071 | wxPyEndAllowThreads(__tstate); | |
29072 | if (PyErr_Occurred()) SWIG_fail; | |
29073 | } | |
29074 | { | |
29075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29076 | } | |
29077 | return resultobj; | |
29078 | fail: | |
29079 | return NULL; | |
29080 | } | |
29081 | ||
29082 | ||
29083 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29084 | PyObject *resultobj = 0; | |
29085 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29086 | long arg2 ; | |
29087 | int arg3 ; | |
29088 | int arg4 = (int) -1 ; | |
29089 | bool result; | |
29090 | void *argp1 = 0 ; | |
29091 | int res1 = 0 ; | |
29092 | long val2 ; | |
29093 | int ecode2 = 0 ; | |
29094 | int val3 ; | |
29095 | int ecode3 = 0 ; | |
29096 | int val4 ; | |
29097 | int ecode4 = 0 ; | |
29098 | PyObject * obj0 = 0 ; | |
29099 | PyObject * obj1 = 0 ; | |
29100 | PyObject * obj2 = 0 ; | |
29101 | PyObject * obj3 = 0 ; | |
29102 | char * kwnames[] = { | |
29103 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
29104 | }; | |
29105 | ||
29106 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29107 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29108 | if (!SWIG_IsOK(res1)) { | |
29109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29110 | } | |
29111 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29112 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29113 | if (!SWIG_IsOK(ecode2)) { | |
29114 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'"); | |
29115 | } | |
29116 | arg2 = static_cast< long >(val2); | |
29117 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29118 | if (!SWIG_IsOK(ecode3)) { | |
29119 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'"); | |
29120 | } | |
29121 | arg3 = static_cast< int >(val3); | |
29122 | if (obj3) { | |
29123 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29124 | if (!SWIG_IsOK(ecode4)) { | |
29125 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'"); | |
29126 | } | |
29127 | arg4 = static_cast< int >(val4); | |
29128 | } | |
29129 | { | |
29130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29131 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
29132 | wxPyEndAllowThreads(__tstate); | |
29133 | if (PyErr_Occurred()) SWIG_fail; | |
29134 | } | |
29135 | { | |
29136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29137 | } | |
29138 | return resultobj; | |
29139 | fail: | |
29140 | return NULL; | |
29141 | } | |
29142 | ||
29143 | ||
29144 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29145 | PyObject *resultobj = 0; | |
29146 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29147 | long arg2 ; | |
29148 | long arg3 ; | |
29149 | int arg4 ; | |
29150 | bool result; | |
29151 | void *argp1 = 0 ; | |
29152 | int res1 = 0 ; | |
29153 | long val2 ; | |
29154 | int ecode2 = 0 ; | |
29155 | long val3 ; | |
29156 | int ecode3 = 0 ; | |
29157 | int val4 ; | |
29158 | int ecode4 = 0 ; | |
29159 | PyObject * obj0 = 0 ; | |
29160 | PyObject * obj1 = 0 ; | |
29161 | PyObject * obj2 = 0 ; | |
29162 | PyObject * obj3 = 0 ; | |
29163 | char * kwnames[] = { | |
29164 | (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL | |
29165 | }; | |
29166 | ||
29167 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29168 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29169 | if (!SWIG_IsOK(res1)) { | |
29170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29171 | } | |
29172 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29173 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29174 | if (!SWIG_IsOK(ecode2)) { | |
29175 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'"); | |
29176 | } | |
29177 | arg2 = static_cast< long >(val2); | |
29178 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29179 | if (!SWIG_IsOK(ecode3)) { | |
29180 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'"); | |
29181 | } | |
29182 | arg3 = static_cast< long >(val3); | |
29183 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29184 | if (!SWIG_IsOK(ecode4)) { | |
29185 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'"); | |
29186 | } | |
29187 | arg4 = static_cast< int >(val4); | |
29188 | { | |
29189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29190 | result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4); | |
29191 | wxPyEndAllowThreads(__tstate); | |
29192 | if (PyErr_Occurred()) SWIG_fail; | |
29193 | } | |
29194 | { | |
29195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29196 | } | |
29197 | return resultobj; | |
29198 | fail: | |
29199 | return NULL; | |
29200 | } | |
29201 | ||
29202 | ||
29203 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29204 | PyObject *resultobj = 0; | |
29205 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29206 | long arg2 ; | |
29207 | wxString result; | |
29208 | void *argp1 = 0 ; | |
29209 | int res1 = 0 ; | |
29210 | long val2 ; | |
29211 | int ecode2 = 0 ; | |
29212 | PyObject * obj0 = 0 ; | |
29213 | PyObject * obj1 = 0 ; | |
29214 | char * kwnames[] = { | |
29215 | (char *) "self",(char *) "item", NULL | |
29216 | }; | |
29217 | ||
29218 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail; | |
29219 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29220 | if (!SWIG_IsOK(res1)) { | |
29221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29222 | } | |
29223 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29224 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29225 | if (!SWIG_IsOK(ecode2)) { | |
29226 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'"); | |
29227 | } | |
29228 | arg2 = static_cast< long >(val2); | |
29229 | { | |
29230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29231 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
29232 | wxPyEndAllowThreads(__tstate); | |
29233 | if (PyErr_Occurred()) SWIG_fail; | |
29234 | } | |
29235 | { | |
29236 | #if wxUSE_UNICODE | |
29237 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29238 | #else | |
29239 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29240 | #endif | |
29241 | } | |
29242 | return resultobj; | |
29243 | fail: | |
29244 | return NULL; | |
29245 | } | |
29246 | ||
29247 | ||
29248 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29249 | PyObject *resultobj = 0; | |
29250 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29251 | long arg2 ; | |
29252 | wxString *arg3 = 0 ; | |
29253 | void *argp1 = 0 ; | |
29254 | int res1 = 0 ; | |
29255 | long val2 ; | |
29256 | int ecode2 = 0 ; | |
29257 | bool temp3 = false ; | |
29258 | PyObject * obj0 = 0 ; | |
29259 | PyObject * obj1 = 0 ; | |
29260 | PyObject * obj2 = 0 ; | |
29261 | char * kwnames[] = { | |
29262 | (char *) "self",(char *) "item",(char *) "str", NULL | |
29263 | }; | |
29264 | ||
29265 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29266 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29267 | if (!SWIG_IsOK(res1)) { | |
29268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29269 | } | |
29270 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29271 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29272 | if (!SWIG_IsOK(ecode2)) { | |
29273 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'"); | |
29274 | } | |
29275 | arg2 = static_cast< long >(val2); | |
29276 | { | |
29277 | arg3 = wxString_in_helper(obj2); | |
29278 | if (arg3 == NULL) SWIG_fail; | |
29279 | temp3 = true; | |
29280 | } | |
29281 | { | |
29282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29283 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
29284 | wxPyEndAllowThreads(__tstate); | |
29285 | if (PyErr_Occurred()) SWIG_fail; | |
29286 | } | |
29287 | resultobj = SWIG_Py_Void(); | |
29288 | { | |
29289 | if (temp3) | |
29290 | delete arg3; | |
29291 | } | |
29292 | return resultobj; | |
29293 | fail: | |
29294 | { | |
29295 | if (temp3) | |
29296 | delete arg3; | |
29297 | } | |
29298 | return NULL; | |
29299 | } | |
29300 | ||
29301 | ||
29302 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29303 | PyObject *resultobj = 0; | |
29304 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29305 | long arg2 ; | |
29306 | long result; | |
29307 | void *argp1 = 0 ; | |
29308 | int res1 = 0 ; | |
29309 | long val2 ; | |
29310 | int ecode2 = 0 ; | |
29311 | PyObject * obj0 = 0 ; | |
29312 | PyObject * obj1 = 0 ; | |
29313 | char * kwnames[] = { | |
29314 | (char *) "self",(char *) "item", NULL | |
29315 | }; | |
29316 | ||
29317 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail; | |
29318 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29319 | if (!SWIG_IsOK(res1)) { | |
29320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29321 | } | |
29322 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29323 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29324 | if (!SWIG_IsOK(ecode2)) { | |
29325 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'"); | |
29326 | } | |
29327 | arg2 = static_cast< long >(val2); | |
29328 | { | |
29329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29330 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
29331 | wxPyEndAllowThreads(__tstate); | |
29332 | if (PyErr_Occurred()) SWIG_fail; | |
29333 | } | |
29334 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
29335 | return resultobj; | |
29336 | fail: | |
29337 | return NULL; | |
29338 | } | |
29339 | ||
29340 | ||
29341 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29342 | PyObject *resultobj = 0; | |
29343 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29344 | long arg2 ; | |
29345 | long arg3 ; | |
29346 | bool result; | |
29347 | void *argp1 = 0 ; | |
29348 | int res1 = 0 ; | |
29349 | long val2 ; | |
29350 | int ecode2 = 0 ; | |
29351 | long val3 ; | |
29352 | int ecode3 = 0 ; | |
29353 | PyObject * obj0 = 0 ; | |
29354 | PyObject * obj1 = 0 ; | |
29355 | PyObject * obj2 = 0 ; | |
29356 | char * kwnames[] = { | |
29357 | (char *) "self",(char *) "item",(char *) "data", NULL | |
29358 | }; | |
29359 | ||
29360 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29361 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29362 | if (!SWIG_IsOK(res1)) { | |
29363 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29364 | } | |
29365 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29366 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29367 | if (!SWIG_IsOK(ecode2)) { | |
29368 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'"); | |
29369 | } | |
29370 | arg2 = static_cast< long >(val2); | |
29371 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29372 | if (!SWIG_IsOK(ecode3)) { | |
29373 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'"); | |
29374 | } | |
29375 | arg3 = static_cast< long >(val3); | |
29376 | { | |
29377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29378 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
29379 | wxPyEndAllowThreads(__tstate); | |
29380 | if (PyErr_Occurred()) SWIG_fail; | |
29381 | } | |
29382 | { | |
29383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29384 | } | |
29385 | return resultobj; | |
29386 | fail: | |
29387 | return NULL; | |
29388 | } | |
29389 | ||
29390 | ||
29391 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29392 | PyObject *resultobj = 0; | |
29393 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29394 | long arg2 ; | |
29395 | wxPoint result; | |
29396 | void *argp1 = 0 ; | |
29397 | int res1 = 0 ; | |
29398 | long val2 ; | |
29399 | int ecode2 = 0 ; | |
29400 | PyObject * obj0 = 0 ; | |
29401 | PyObject * obj1 = 0 ; | |
29402 | char * kwnames[] = { | |
29403 | (char *) "self",(char *) "item", NULL | |
29404 | }; | |
29405 | ||
29406 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
29407 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29408 | if (!SWIG_IsOK(res1)) { | |
29409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29410 | } | |
29411 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29412 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29413 | if (!SWIG_IsOK(ecode2)) { | |
29414 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'"); | |
29415 | } | |
29416 | arg2 = static_cast< long >(val2); | |
29417 | { | |
29418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29419 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
29420 | wxPyEndAllowThreads(__tstate); | |
29421 | if (PyErr_Occurred()) SWIG_fail; | |
29422 | } | |
29423 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
29424 | return resultobj; | |
29425 | fail: | |
29426 | return NULL; | |
29427 | } | |
29428 | ||
29429 | ||
29430 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29431 | PyObject *resultobj = 0; | |
29432 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29433 | long arg2 ; | |
29434 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
29435 | wxRect result; | |
29436 | void *argp1 = 0 ; | |
29437 | int res1 = 0 ; | |
29438 | long val2 ; | |
29439 | int ecode2 = 0 ; | |
29440 | int val3 ; | |
29441 | int ecode3 = 0 ; | |
29442 | PyObject * obj0 = 0 ; | |
29443 | PyObject * obj1 = 0 ; | |
29444 | PyObject * obj2 = 0 ; | |
29445 | char * kwnames[] = { | |
29446 | (char *) "self",(char *) "item",(char *) "code", NULL | |
29447 | }; | |
29448 | ||
29449 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29450 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29451 | if (!SWIG_IsOK(res1)) { | |
29452 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29453 | } | |
29454 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29455 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29456 | if (!SWIG_IsOK(ecode2)) { | |
29457 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'"); | |
29458 | } | |
29459 | arg2 = static_cast< long >(val2); | |
29460 | if (obj2) { | |
29461 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29462 | if (!SWIG_IsOK(ecode3)) { | |
29463 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'"); | |
29464 | } | |
29465 | arg3 = static_cast< int >(val3); | |
29466 | } | |
29467 | { | |
29468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29469 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
29470 | wxPyEndAllowThreads(__tstate); | |
29471 | if (PyErr_Occurred()) SWIG_fail; | |
29472 | } | |
29473 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
29474 | return resultobj; | |
29475 | fail: | |
29476 | return NULL; | |
29477 | } | |
29478 | ||
29479 | ||
29480 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29481 | PyObject *resultobj = 0; | |
29482 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29483 | long arg2 ; | |
29484 | wxPoint *arg3 = 0 ; | |
29485 | bool result; | |
29486 | void *argp1 = 0 ; | |
29487 | int res1 = 0 ; | |
29488 | long val2 ; | |
29489 | int ecode2 = 0 ; | |
29490 | wxPoint temp3 ; | |
29491 | PyObject * obj0 = 0 ; | |
29492 | PyObject * obj1 = 0 ; | |
29493 | PyObject * obj2 = 0 ; | |
29494 | char * kwnames[] = { | |
29495 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
29496 | }; | |
29497 | ||
29498 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29499 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29500 | if (!SWIG_IsOK(res1)) { | |
29501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29502 | } | |
29503 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29504 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29505 | if (!SWIG_IsOK(ecode2)) { | |
29506 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'"); | |
29507 | } | |
29508 | arg2 = static_cast< long >(val2); | |
29509 | { | |
29510 | arg3 = &temp3; | |
29511 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29512 | } | |
29513 | { | |
29514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29515 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
29516 | wxPyEndAllowThreads(__tstate); | |
29517 | if (PyErr_Occurred()) SWIG_fail; | |
29518 | } | |
29519 | { | |
29520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29521 | } | |
29522 | return resultobj; | |
29523 | fail: | |
29524 | return NULL; | |
d14a1e28 RD |
29525 | } |
29526 | ||
29527 | ||
0085ce49 RD |
29528 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29529 | PyObject *resultobj = 0; | |
29530 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29531 | int result; | |
29532 | void *argp1 = 0 ; | |
29533 | int res1 = 0 ; | |
29534 | PyObject *swig_obj[1] ; | |
29535 | ||
29536 | if (!args) SWIG_fail; | |
29537 | swig_obj[0] = args; | |
29538 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29539 | if (!SWIG_IsOK(res1)) { | |
29540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29541 | } | |
29542 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29543 | { | |
29544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29545 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
29546 | wxPyEndAllowThreads(__tstate); | |
29547 | if (PyErr_Occurred()) SWIG_fail; | |
29548 | } | |
29549 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29550 | return resultobj; | |
29551 | fail: | |
29552 | return NULL; | |
d14a1e28 RD |
29553 | } |
29554 | ||
29555 | ||
0085ce49 RD |
29556 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29557 | PyObject *resultobj = 0; | |
29558 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29559 | int result; | |
29560 | void *argp1 = 0 ; | |
29561 | int res1 = 0 ; | |
29562 | PyObject *swig_obj[1] ; | |
29563 | ||
29564 | if (!args) SWIG_fail; | |
29565 | swig_obj[0] = args; | |
29566 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29567 | if (!SWIG_IsOK(res1)) { | |
29568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29569 | } | |
29570 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29571 | { | |
29572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29573 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
29574 | wxPyEndAllowThreads(__tstate); | |
29575 | if (PyErr_Occurred()) SWIG_fail; | |
29576 | } | |
29577 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29578 | return resultobj; | |
29579 | fail: | |
29580 | return NULL; | |
d14a1e28 RD |
29581 | } |
29582 | ||
29583 | ||
0085ce49 RD |
29584 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29585 | PyObject *resultobj = 0; | |
29586 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29587 | wxSize result; | |
29588 | void *argp1 = 0 ; | |
29589 | int res1 = 0 ; | |
29590 | PyObject *swig_obj[1] ; | |
29591 | ||
29592 | if (!args) SWIG_fail; | |
29593 | swig_obj[0] = args; | |
29594 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29595 | if (!SWIG_IsOK(res1)) { | |
29596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29597 | } | |
29598 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29599 | { | |
29600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29601 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
29602 | wxPyEndAllowThreads(__tstate); | |
29603 | if (PyErr_Occurred()) SWIG_fail; | |
29604 | } | |
29605 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
29606 | return resultobj; | |
29607 | fail: | |
29608 | return NULL; | |
29609 | } | |
29610 | ||
29611 | ||
29612 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29613 | PyObject *resultobj = 0; | |
29614 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29615 | int arg2 ; | |
29616 | bool arg3 = (bool) false ; | |
29617 | void *argp1 = 0 ; | |
29618 | int res1 = 0 ; | |
29619 | int val2 ; | |
29620 | int ecode2 = 0 ; | |
29621 | bool val3 ; | |
29622 | int ecode3 = 0 ; | |
29623 | PyObject * obj0 = 0 ; | |
29624 | PyObject * obj1 = 0 ; | |
29625 | PyObject * obj2 = 0 ; | |
29626 | char * kwnames[] = { | |
29627 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
29628 | }; | |
29629 | ||
29630 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29631 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29632 | if (!SWIG_IsOK(res1)) { | |
29633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29634 | } | |
29635 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29636 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29637 | if (!SWIG_IsOK(ecode2)) { | |
29638 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'"); | |
29639 | } | |
29640 | arg2 = static_cast< int >(val2); | |
29641 | if (obj2) { | |
29642 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
29643 | if (!SWIG_IsOK(ecode3)) { | |
29644 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'"); | |
29645 | } | |
29646 | arg3 = static_cast< bool >(val3); | |
29647 | } | |
29648 | { | |
29649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29650 | (arg1)->SetItemSpacing(arg2,arg3); | |
29651 | wxPyEndAllowThreads(__tstate); | |
29652 | if (PyErr_Occurred()) SWIG_fail; | |
29653 | } | |
29654 | resultobj = SWIG_Py_Void(); | |
29655 | return resultobj; | |
29656 | fail: | |
29657 | return NULL; | |
22bfe96c RD |
29658 | } |
29659 | ||
29660 | ||
0085ce49 RD |
29661 | SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29662 | PyObject *resultobj = 0; | |
29663 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29664 | int result; | |
29665 | void *argp1 = 0 ; | |
29666 | int res1 = 0 ; | |
29667 | PyObject *swig_obj[1] ; | |
29668 | ||
29669 | if (!args) SWIG_fail; | |
29670 | swig_obj[0] = args; | |
29671 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29672 | if (!SWIG_IsOK(res1)) { | |
29673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29674 | } | |
29675 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29676 | { | |
29677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29678 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
29679 | wxPyEndAllowThreads(__tstate); | |
29680 | if (PyErr_Occurred()) SWIG_fail; | |
29681 | } | |
29682 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29683 | return resultobj; | |
29684 | fail: | |
29685 | return NULL; | |
d14a1e28 RD |
29686 | } |
29687 | ||
29688 | ||
0085ce49 RD |
29689 | SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29690 | PyObject *resultobj = 0; | |
29691 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29692 | wxColour result; | |
29693 | void *argp1 = 0 ; | |
29694 | int res1 = 0 ; | |
29695 | PyObject *swig_obj[1] ; | |
29696 | ||
29697 | if (!args) SWIG_fail; | |
29698 | swig_obj[0] = args; | |
29699 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29700 | if (!SWIG_IsOK(res1)) { | |
29701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29702 | } | |
29703 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29704 | { | |
29705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29706 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
29707 | wxPyEndAllowThreads(__tstate); | |
29708 | if (PyErr_Occurred()) SWIG_fail; | |
29709 | } | |
29710 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
29711 | return resultobj; | |
29712 | fail: | |
29713 | return NULL; | |
29714 | } | |
29715 | ||
29716 | ||
29717 | SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29718 | PyObject *resultobj = 0; | |
29719 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29720 | wxColour *arg2 = 0 ; | |
29721 | void *argp1 = 0 ; | |
29722 | int res1 = 0 ; | |
29723 | wxColour temp2 ; | |
29724 | PyObject * obj0 = 0 ; | |
29725 | PyObject * obj1 = 0 ; | |
29726 | char * kwnames[] = { | |
29727 | (char *) "self",(char *) "col", NULL | |
29728 | }; | |
29729 | ||
29730 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
29731 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29732 | if (!SWIG_IsOK(res1)) { | |
29733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29734 | } | |
29735 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29736 | { | |
29737 | arg2 = &temp2; | |
29738 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29739 | } | |
29740 | { | |
29741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29742 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
29743 | wxPyEndAllowThreads(__tstate); | |
29744 | if (PyErr_Occurred()) SWIG_fail; | |
29745 | } | |
29746 | resultobj = SWIG_Py_Void(); | |
29747 | return resultobj; | |
29748 | fail: | |
29749 | return NULL; | |
d14a1e28 RD |
29750 | } |
29751 | ||
29752 | ||
0085ce49 RD |
29753 | SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29754 | PyObject *resultobj = 0; | |
29755 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29756 | long result; | |
29757 | void *argp1 = 0 ; | |
29758 | int res1 = 0 ; | |
29759 | PyObject *swig_obj[1] ; | |
29760 | ||
29761 | if (!args) SWIG_fail; | |
29762 | swig_obj[0] = args; | |
29763 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29764 | if (!SWIG_IsOK(res1)) { | |
29765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29766 | } | |
29767 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29768 | { | |
29769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29770 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
29771 | wxPyEndAllowThreads(__tstate); | |
29772 | if (PyErr_Occurred()) SWIG_fail; | |
29773 | } | |
29774 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
29775 | return resultobj; | |
29776 | fail: | |
29777 | return NULL; | |
29778 | } | |
29779 | ||
29780 | ||
29781 | SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29782 | PyObject *resultobj = 0; | |
29783 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29784 | long arg2 ; | |
29785 | bool arg3 = (bool) true ; | |
29786 | void *argp1 = 0 ; | |
29787 | int res1 = 0 ; | |
29788 | long val2 ; | |
29789 | int ecode2 = 0 ; | |
29790 | bool val3 ; | |
29791 | int ecode3 = 0 ; | |
29792 | PyObject * obj0 = 0 ; | |
29793 | PyObject * obj1 = 0 ; | |
29794 | PyObject * obj2 = 0 ; | |
29795 | char * kwnames[] = { | |
29796 | (char *) "self",(char *) "style",(char *) "add", NULL | |
29797 | }; | |
29798 | ||
29799 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29800 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29801 | if (!SWIG_IsOK(res1)) { | |
29802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29803 | } | |
29804 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29805 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29806 | if (!SWIG_IsOK(ecode2)) { | |
29807 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'"); | |
29808 | } | |
29809 | arg2 = static_cast< long >(val2); | |
29810 | if (obj2) { | |
29811 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
29812 | if (!SWIG_IsOK(ecode3)) { | |
29813 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'"); | |
29814 | } | |
29815 | arg3 = static_cast< bool >(val3); | |
29816 | } | |
29817 | { | |
29818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29819 | (arg1)->SetSingleStyle(arg2,arg3); | |
29820 | wxPyEndAllowThreads(__tstate); | |
29821 | if (PyErr_Occurred()) SWIG_fail; | |
29822 | } | |
29823 | resultobj = SWIG_Py_Void(); | |
29824 | return resultobj; | |
29825 | fail: | |
29826 | return NULL; | |
29827 | } | |
29828 | ||
29829 | ||
29830 | SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29831 | PyObject *resultobj = 0; | |
29832 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29833 | long arg2 ; | |
29834 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
29835 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
29836 | long result; | |
29837 | void *argp1 = 0 ; | |
29838 | int res1 = 0 ; | |
29839 | long val2 ; | |
29840 | int ecode2 = 0 ; | |
29841 | int val3 ; | |
29842 | int ecode3 = 0 ; | |
29843 | int val4 ; | |
29844 | int ecode4 = 0 ; | |
29845 | PyObject * obj0 = 0 ; | |
29846 | PyObject * obj1 = 0 ; | |
29847 | PyObject * obj2 = 0 ; | |
29848 | PyObject * obj3 = 0 ; | |
29849 | char * kwnames[] = { | |
29850 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
29851 | }; | |
29852 | ||
29853 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29854 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29855 | if (!SWIG_IsOK(res1)) { | |
29856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29857 | } | |
29858 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29859 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29860 | if (!SWIG_IsOK(ecode2)) { | |
29861 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'"); | |
29862 | } | |
29863 | arg2 = static_cast< long >(val2); | |
29864 | if (obj2) { | |
29865 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29866 | if (!SWIG_IsOK(ecode3)) { | |
29867 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'"); | |
29868 | } | |
29869 | arg3 = static_cast< int >(val3); | |
29870 | } | |
29871 | if (obj3) { | |
29872 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29873 | if (!SWIG_IsOK(ecode4)) { | |
29874 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'"); | |
29875 | } | |
29876 | arg4 = static_cast< int >(val4); | |
29877 | } | |
29878 | { | |
29879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29880 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
29881 | wxPyEndAllowThreads(__tstate); | |
29882 | if (PyErr_Occurred()) SWIG_fail; | |
29883 | } | |
29884 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
29885 | return resultobj; | |
29886 | fail: | |
29887 | return NULL; | |
29888 | } | |
29889 | ||
29890 | ||
29891 | SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29892 | PyObject *resultobj = 0; | |
29893 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29894 | int arg2 ; | |
29895 | wxImageList *result = 0 ; | |
29896 | void *argp1 = 0 ; | |
29897 | int res1 = 0 ; | |
29898 | int val2 ; | |
29899 | int ecode2 = 0 ; | |
29900 | PyObject * obj0 = 0 ; | |
29901 | PyObject * obj1 = 0 ; | |
29902 | char * kwnames[] = { | |
29903 | (char *) "self",(char *) "which", NULL | |
29904 | }; | |
29905 | ||
29906 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
29907 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29908 | if (!SWIG_IsOK(res1)) { | |
29909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29910 | } | |
29911 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29912 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29913 | if (!SWIG_IsOK(ecode2)) { | |
29914 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'"); | |
29915 | } | |
29916 | arg2 = static_cast< int >(val2); | |
29917 | { | |
29918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29919 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
29920 | wxPyEndAllowThreads(__tstate); | |
29921 | if (PyErr_Occurred()) SWIG_fail; | |
29922 | } | |
29923 | { | |
29924 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
29925 | } | |
29926 | return resultobj; | |
29927 | fail: | |
29928 | return NULL; | |
29929 | } | |
29930 | ||
29931 | ||
29932 | SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29933 | PyObject *resultobj = 0; | |
29934 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29935 | wxImageList *arg2 = (wxImageList *) 0 ; | |
29936 | int arg3 ; | |
29937 | void *argp1 = 0 ; | |
29938 | int res1 = 0 ; | |
29939 | void *argp2 = 0 ; | |
29940 | int res2 = 0 ; | |
29941 | int val3 ; | |
29942 | int ecode3 = 0 ; | |
29943 | PyObject * obj0 = 0 ; | |
29944 | PyObject * obj1 = 0 ; | |
29945 | PyObject * obj2 = 0 ; | |
29946 | char * kwnames[] = { | |
29947 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
29948 | }; | |
29949 | ||
29950 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29951 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29952 | if (!SWIG_IsOK(res1)) { | |
29953 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29954 | } | |
29955 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29956 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
29957 | if (!SWIG_IsOK(res2)) { | |
29958 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
29959 | } | |
29960 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
29961 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29962 | if (!SWIG_IsOK(ecode3)) { | |
29963 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'"); | |
29964 | } | |
29965 | arg3 = static_cast< int >(val3); | |
29966 | { | |
29967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29968 | (arg1)->SetImageList(arg2,arg3); | |
29969 | wxPyEndAllowThreads(__tstate); | |
29970 | if (PyErr_Occurred()) SWIG_fail; | |
29971 | } | |
29972 | resultobj = SWIG_Py_Void(); | |
29973 | return resultobj; | |
29974 | fail: | |
29975 | return NULL; | |
29976 | } | |
29977 | ||
29978 | ||
29979 | SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29980 | PyObject *resultobj = 0; | |
29981 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29982 | wxImageList *arg2 = (wxImageList *) 0 ; | |
29983 | int arg3 ; | |
29984 | void *argp1 = 0 ; | |
29985 | int res1 = 0 ; | |
29986 | int res2 = 0 ; | |
29987 | int val3 ; | |
29988 | int ecode3 = 0 ; | |
29989 | PyObject * obj0 = 0 ; | |
29990 | PyObject * obj1 = 0 ; | |
29991 | PyObject * obj2 = 0 ; | |
29992 | char * kwnames[] = { | |
29993 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
29994 | }; | |
29995 | ||
29996 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29997 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29998 | if (!SWIG_IsOK(res1)) { | |
29999 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30000 | } | |
30001 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30002 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
30003 | if (!SWIG_IsOK(res2)) { | |
30004 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
30005 | } | |
30006 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30007 | if (!SWIG_IsOK(ecode3)) { | |
30008 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'"); | |
30009 | } | |
30010 | arg3 = static_cast< int >(val3); | |
30011 | { | |
30012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30013 | (arg1)->AssignImageList(arg2,arg3); | |
30014 | wxPyEndAllowThreads(__tstate); | |
30015 | if (PyErr_Occurred()) SWIG_fail; | |
30016 | } | |
30017 | resultobj = SWIG_Py_Void(); | |
30018 | return resultobj; | |
30019 | fail: | |
30020 | return NULL; | |
d14a1e28 RD |
30021 | } |
30022 | ||
30023 | ||
0085ce49 RD |
30024 | SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30025 | PyObject *resultobj = 0; | |
30026 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30027 | bool result; | |
30028 | void *argp1 = 0 ; | |
30029 | int res1 = 0 ; | |
30030 | PyObject *swig_obj[1] ; | |
30031 | ||
30032 | if (!args) SWIG_fail; | |
30033 | swig_obj[0] = args; | |
30034 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30035 | if (!SWIG_IsOK(res1)) { | |
30036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30037 | } | |
30038 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30039 | { | |
30040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30041 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
30042 | wxPyEndAllowThreads(__tstate); | |
30043 | if (PyErr_Occurred()) SWIG_fail; | |
30044 | } | |
30045 | { | |
30046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30047 | } | |
30048 | return resultobj; | |
30049 | fail: | |
30050 | return NULL; | |
d14a1e28 RD |
30051 | } |
30052 | ||
30053 | ||
0085ce49 RD |
30054 | SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30055 | PyObject *resultobj = 0; | |
30056 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30057 | bool result; | |
30058 | void *argp1 = 0 ; | |
30059 | int res1 = 0 ; | |
30060 | PyObject *swig_obj[1] ; | |
30061 | ||
30062 | if (!args) SWIG_fail; | |
30063 | swig_obj[0] = args; | |
30064 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30065 | if (!SWIG_IsOK(res1)) { | |
30066 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30067 | } | |
30068 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30069 | { | |
30070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30071 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
30072 | wxPyEndAllowThreads(__tstate); | |
30073 | if (PyErr_Occurred()) SWIG_fail; | |
30074 | } | |
30075 | { | |
30076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30077 | } | |
30078 | return resultobj; | |
30079 | fail: | |
30080 | return NULL; | |
30081 | } | |
30082 | ||
30083 | ||
30084 | SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30085 | PyObject *resultobj = 0; | |
30086 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30087 | long arg2 ; | |
30088 | void *argp1 = 0 ; | |
30089 | int res1 = 0 ; | |
30090 | long val2 ; | |
30091 | int ecode2 = 0 ; | |
30092 | PyObject * obj0 = 0 ; | |
30093 | PyObject * obj1 = 0 ; | |
30094 | char * kwnames[] = { | |
30095 | (char *) "self",(char *) "item", NULL | |
30096 | }; | |
30097 | ||
30098 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
30099 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30100 | if (!SWIG_IsOK(res1)) { | |
30101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30102 | } | |
30103 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30104 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30105 | if (!SWIG_IsOK(ecode2)) { | |
30106 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'"); | |
30107 | } | |
30108 | arg2 = static_cast< long >(val2); | |
30109 | { | |
30110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30111 | (arg1)->RefreshItem(arg2); | |
30112 | wxPyEndAllowThreads(__tstate); | |
30113 | if (PyErr_Occurred()) SWIG_fail; | |
30114 | } | |
30115 | resultobj = SWIG_Py_Void(); | |
30116 | return resultobj; | |
30117 | fail: | |
30118 | return NULL; | |
30119 | } | |
30120 | ||
30121 | ||
30122 | SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30123 | PyObject *resultobj = 0; | |
30124 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30125 | long arg2 ; | |
30126 | long arg3 ; | |
30127 | void *argp1 = 0 ; | |
30128 | int res1 = 0 ; | |
30129 | long val2 ; | |
30130 | int ecode2 = 0 ; | |
30131 | long val3 ; | |
30132 | int ecode3 = 0 ; | |
30133 | PyObject * obj0 = 0 ; | |
30134 | PyObject * obj1 = 0 ; | |
30135 | PyObject * obj2 = 0 ; | |
30136 | char * kwnames[] = { | |
30137 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
30138 | }; | |
30139 | ||
30140 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30141 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30142 | if (!SWIG_IsOK(res1)) { | |
30143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30144 | } | |
30145 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30146 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30147 | if (!SWIG_IsOK(ecode2)) { | |
30148 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'"); | |
30149 | } | |
30150 | arg2 = static_cast< long >(val2); | |
30151 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
30152 | if (!SWIG_IsOK(ecode3)) { | |
30153 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'"); | |
30154 | } | |
30155 | arg3 = static_cast< long >(val3); | |
30156 | { | |
30157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30158 | (arg1)->RefreshItems(arg2,arg3); | |
30159 | wxPyEndAllowThreads(__tstate); | |
30160 | if (PyErr_Occurred()) SWIG_fail; | |
30161 | } | |
30162 | resultobj = SWIG_Py_Void(); | |
30163 | return resultobj; | |
30164 | fail: | |
30165 | return NULL; | |
30166 | } | |
30167 | ||
30168 | ||
30169 | SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30170 | PyObject *resultobj = 0; | |
30171 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30172 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
30173 | bool result; | |
30174 | void *argp1 = 0 ; | |
30175 | int res1 = 0 ; | |
30176 | int val2 ; | |
30177 | int ecode2 = 0 ; | |
30178 | PyObject * obj0 = 0 ; | |
30179 | PyObject * obj1 = 0 ; | |
30180 | char * kwnames[] = { | |
30181 | (char *) "self",(char *) "flag", NULL | |
30182 | }; | |
30183 | ||
30184 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail; | |
30185 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30186 | if (!SWIG_IsOK(res1)) { | |
30187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30188 | } | |
30189 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30190 | if (obj1) { | |
30191 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30192 | if (!SWIG_IsOK(ecode2)) { | |
30193 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'"); | |
30194 | } | |
30195 | arg2 = static_cast< int >(val2); | |
30196 | } | |
30197 | { | |
30198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30199 | result = (bool)(arg1)->Arrange(arg2); | |
30200 | wxPyEndAllowThreads(__tstate); | |
30201 | if (PyErr_Occurred()) SWIG_fail; | |
30202 | } | |
30203 | { | |
30204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30205 | } | |
30206 | return resultobj; | |
30207 | fail: | |
30208 | return NULL; | |
30209 | } | |
30210 | ||
30211 | ||
30212 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30213 | PyObject *resultobj = 0; | |
30214 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30215 | long arg2 ; | |
30216 | bool result; | |
30217 | void *argp1 = 0 ; | |
30218 | int res1 = 0 ; | |
30219 | long val2 ; | |
30220 | int ecode2 = 0 ; | |
30221 | PyObject * obj0 = 0 ; | |
30222 | PyObject * obj1 = 0 ; | |
30223 | char * kwnames[] = { | |
30224 | (char *) "self",(char *) "item", NULL | |
30225 | }; | |
30226 | ||
30227 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
30228 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30229 | if (!SWIG_IsOK(res1)) { | |
30230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30231 | } | |
30232 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30233 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30234 | if (!SWIG_IsOK(ecode2)) { | |
30235 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'"); | |
30236 | } | |
30237 | arg2 = static_cast< long >(val2); | |
30238 | { | |
30239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30240 | result = (bool)(arg1)->DeleteItem(arg2); | |
30241 | wxPyEndAllowThreads(__tstate); | |
30242 | if (PyErr_Occurred()) SWIG_fail; | |
30243 | } | |
30244 | { | |
30245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30246 | } | |
30247 | return resultobj; | |
30248 | fail: | |
30249 | return NULL; | |
7e08d4ef RD |
30250 | } |
30251 | ||
30252 | ||
0085ce49 RD |
30253 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30254 | PyObject *resultobj = 0; | |
30255 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30256 | bool result; | |
30257 | void *argp1 = 0 ; | |
30258 | int res1 = 0 ; | |
30259 | PyObject *swig_obj[1] ; | |
30260 | ||
30261 | if (!args) SWIG_fail; | |
30262 | swig_obj[0] = args; | |
30263 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30264 | if (!SWIG_IsOK(res1)) { | |
30265 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30266 | } | |
30267 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30268 | { | |
30269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30270 | result = (bool)(arg1)->DeleteAllItems(); | |
30271 | wxPyEndAllowThreads(__tstate); | |
30272 | if (PyErr_Occurred()) SWIG_fail; | |
30273 | } | |
30274 | { | |
30275 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30276 | } | |
30277 | return resultobj; | |
30278 | fail: | |
30279 | return NULL; | |
30280 | } | |
30281 | ||
30282 | ||
30283 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30284 | PyObject *resultobj = 0; | |
30285 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30286 | int arg2 ; | |
30287 | bool result; | |
30288 | void *argp1 = 0 ; | |
30289 | int res1 = 0 ; | |
30290 | int val2 ; | |
30291 | int ecode2 = 0 ; | |
30292 | PyObject * obj0 = 0 ; | |
30293 | PyObject * obj1 = 0 ; | |
30294 | char * kwnames[] = { | |
30295 | (char *) "self",(char *) "col", NULL | |
30296 | }; | |
30297 | ||
30298 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
30299 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30300 | if (!SWIG_IsOK(res1)) { | |
30301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30302 | } | |
30303 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30304 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30305 | if (!SWIG_IsOK(ecode2)) { | |
30306 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'"); | |
30307 | } | |
30308 | arg2 = static_cast< int >(val2); | |
30309 | { | |
30310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30311 | result = (bool)(arg1)->DeleteColumn(arg2); | |
30312 | wxPyEndAllowThreads(__tstate); | |
30313 | if (PyErr_Occurred()) SWIG_fail; | |
30314 | } | |
30315 | { | |
30316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30317 | } | |
30318 | return resultobj; | |
30319 | fail: | |
30320 | return NULL; | |
7e08d4ef RD |
30321 | } |
30322 | ||
30323 | ||
0085ce49 RD |
30324 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30325 | PyObject *resultobj = 0; | |
30326 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30327 | bool result; | |
30328 | void *argp1 = 0 ; | |
30329 | int res1 = 0 ; | |
30330 | PyObject *swig_obj[1] ; | |
30331 | ||
30332 | if (!args) SWIG_fail; | |
30333 | swig_obj[0] = args; | |
30334 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30335 | if (!SWIG_IsOK(res1)) { | |
30336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30337 | } | |
30338 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30339 | { | |
30340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30341 | result = (bool)(arg1)->DeleteAllColumns(); | |
30342 | wxPyEndAllowThreads(__tstate); | |
30343 | if (PyErr_Occurred()) SWIG_fail; | |
30344 | } | |
30345 | { | |
30346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30347 | } | |
30348 | return resultobj; | |
30349 | fail: | |
30350 | return NULL; | |
7e08d4ef RD |
30351 | } |
30352 | ||
30353 | ||
0085ce49 RD |
30354 | SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30355 | PyObject *resultobj = 0; | |
30356 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30357 | void *argp1 = 0 ; | |
30358 | int res1 = 0 ; | |
30359 | PyObject *swig_obj[1] ; | |
30360 | ||
30361 | if (!args) SWIG_fail; | |
30362 | swig_obj[0] = args; | |
30363 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30364 | if (!SWIG_IsOK(res1)) { | |
30365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30366 | } | |
30367 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30368 | { | |
30369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30370 | (arg1)->ClearAll(); | |
30371 | wxPyEndAllowThreads(__tstate); | |
30372 | if (PyErr_Occurred()) SWIG_fail; | |
30373 | } | |
30374 | resultobj = SWIG_Py_Void(); | |
30375 | return resultobj; | |
30376 | fail: | |
30377 | return NULL; | |
30378 | } | |
30379 | ||
30380 | ||
30381 | SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30382 | PyObject *resultobj = 0; | |
30383 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30384 | long arg2 ; | |
30385 | void *argp1 = 0 ; | |
30386 | int res1 = 0 ; | |
30387 | long val2 ; | |
30388 | int ecode2 = 0 ; | |
30389 | PyObject * obj0 = 0 ; | |
30390 | PyObject * obj1 = 0 ; | |
30391 | char * kwnames[] = { | |
30392 | (char *) "self",(char *) "item", NULL | |
30393 | }; | |
30394 | ||
30395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
30396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30397 | if (!SWIG_IsOK(res1)) { | |
30398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30399 | } | |
30400 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30401 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30402 | if (!SWIG_IsOK(ecode2)) { | |
30403 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'"); | |
30404 | } | |
30405 | arg2 = static_cast< long >(val2); | |
30406 | { | |
30407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30408 | (arg1)->EditLabel(arg2); | |
30409 | wxPyEndAllowThreads(__tstate); | |
30410 | if (PyErr_Occurred()) SWIG_fail; | |
30411 | } | |
30412 | resultobj = SWIG_Py_Void(); | |
30413 | return resultobj; | |
30414 | fail: | |
30415 | return NULL; | |
30416 | } | |
30417 | ||
30418 | ||
30419 | SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30420 | PyObject *resultobj = 0; | |
30421 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30422 | long arg2 ; | |
30423 | bool result; | |
30424 | void *argp1 = 0 ; | |
30425 | int res1 = 0 ; | |
30426 | long val2 ; | |
30427 | int ecode2 = 0 ; | |
30428 | PyObject * obj0 = 0 ; | |
30429 | PyObject * obj1 = 0 ; | |
30430 | char * kwnames[] = { | |
30431 | (char *) "self",(char *) "item", NULL | |
30432 | }; | |
30433 | ||
30434 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
30435 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30436 | if (!SWIG_IsOK(res1)) { | |
30437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30438 | } | |
30439 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30440 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30441 | if (!SWIG_IsOK(ecode2)) { | |
30442 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'"); | |
30443 | } | |
30444 | arg2 = static_cast< long >(val2); | |
30445 | { | |
30446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30447 | result = (bool)(arg1)->EnsureVisible(arg2); | |
30448 | wxPyEndAllowThreads(__tstate); | |
30449 | if (PyErr_Occurred()) SWIG_fail; | |
30450 | } | |
30451 | { | |
30452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30453 | } | |
30454 | return resultobj; | |
30455 | fail: | |
30456 | return NULL; | |
30457 | } | |
30458 | ||
30459 | ||
30460 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30461 | PyObject *resultobj = 0; | |
30462 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30463 | long arg2 ; | |
30464 | wxString *arg3 = 0 ; | |
30465 | bool arg4 = (bool) false ; | |
30466 | long result; | |
30467 | void *argp1 = 0 ; | |
30468 | int res1 = 0 ; | |
30469 | long val2 ; | |
30470 | int ecode2 = 0 ; | |
30471 | bool temp3 = false ; | |
30472 | bool val4 ; | |
30473 | int ecode4 = 0 ; | |
30474 | PyObject * obj0 = 0 ; | |
30475 | PyObject * obj1 = 0 ; | |
30476 | PyObject * obj2 = 0 ; | |
30477 | PyObject * obj3 = 0 ; | |
30478 | char * kwnames[] = { | |
30479 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
30480 | }; | |
30481 | ||
30482 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30483 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30484 | if (!SWIG_IsOK(res1)) { | |
30485 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30486 | } | |
30487 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30488 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30489 | if (!SWIG_IsOK(ecode2)) { | |
30490 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'"); | |
30491 | } | |
30492 | arg2 = static_cast< long >(val2); | |
30493 | { | |
30494 | arg3 = wxString_in_helper(obj2); | |
30495 | if (arg3 == NULL) SWIG_fail; | |
30496 | temp3 = true; | |
30497 | } | |
30498 | if (obj3) { | |
30499 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
30500 | if (!SWIG_IsOK(ecode4)) { | |
30501 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'"); | |
30502 | } | |
30503 | arg4 = static_cast< bool >(val4); | |
30504 | } | |
30505 | { | |
30506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30507 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
30508 | wxPyEndAllowThreads(__tstate); | |
30509 | if (PyErr_Occurred()) SWIG_fail; | |
30510 | } | |
30511 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30512 | { | |
30513 | if (temp3) | |
30514 | delete arg3; | |
30515 | } | |
30516 | return resultobj; | |
30517 | fail: | |
30518 | { | |
30519 | if (temp3) | |
30520 | delete arg3; | |
30521 | } | |
30522 | return NULL; | |
30523 | } | |
30524 | ||
30525 | ||
30526 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30527 | PyObject *resultobj = 0; | |
30528 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30529 | long arg2 ; | |
30530 | long arg3 ; | |
30531 | long result; | |
30532 | void *argp1 = 0 ; | |
30533 | int res1 = 0 ; | |
30534 | long val2 ; | |
30535 | int ecode2 = 0 ; | |
30536 | long val3 ; | |
30537 | int ecode3 = 0 ; | |
30538 | PyObject * obj0 = 0 ; | |
30539 | PyObject * obj1 = 0 ; | |
30540 | PyObject * obj2 = 0 ; | |
30541 | char * kwnames[] = { | |
30542 | (char *) "self",(char *) "start",(char *) "data", NULL | |
30543 | }; | |
30544 | ||
30545 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30546 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30547 | if (!SWIG_IsOK(res1)) { | |
30548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30549 | } | |
30550 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30551 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30552 | if (!SWIG_IsOK(ecode2)) { | |
30553 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'"); | |
30554 | } | |
30555 | arg2 = static_cast< long >(val2); | |
30556 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
30557 | if (!SWIG_IsOK(ecode3)) { | |
30558 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'"); | |
30559 | } | |
30560 | arg3 = static_cast< long >(val3); | |
30561 | { | |
30562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30563 | result = (long)(arg1)->FindItem(arg2,arg3); | |
30564 | wxPyEndAllowThreads(__tstate); | |
30565 | if (PyErr_Occurred()) SWIG_fail; | |
30566 | } | |
30567 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30568 | return resultobj; | |
30569 | fail: | |
30570 | return NULL; | |
30571 | } | |
30572 | ||
30573 | ||
30574 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30575 | PyObject *resultobj = 0; | |
30576 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30577 | long arg2 ; | |
30578 | wxPoint *arg3 = 0 ; | |
30579 | int arg4 ; | |
30580 | long result; | |
30581 | void *argp1 = 0 ; | |
30582 | int res1 = 0 ; | |
30583 | long val2 ; | |
30584 | int ecode2 = 0 ; | |
30585 | wxPoint temp3 ; | |
30586 | int val4 ; | |
30587 | int ecode4 = 0 ; | |
30588 | PyObject * obj0 = 0 ; | |
30589 | PyObject * obj1 = 0 ; | |
30590 | PyObject * obj2 = 0 ; | |
30591 | PyObject * obj3 = 0 ; | |
30592 | char * kwnames[] = { | |
30593 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
30594 | }; | |
30595 | ||
30596 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30597 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30598 | if (!SWIG_IsOK(res1)) { | |
30599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30600 | } | |
30601 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30602 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30603 | if (!SWIG_IsOK(ecode2)) { | |
30604 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'"); | |
30605 | } | |
30606 | arg2 = static_cast< long >(val2); | |
30607 | { | |
30608 | arg3 = &temp3; | |
30609 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30610 | } | |
30611 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30612 | if (!SWIG_IsOK(ecode4)) { | |
30613 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'"); | |
30614 | } | |
30615 | arg4 = static_cast< int >(val4); | |
30616 | { | |
30617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30618 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
30619 | wxPyEndAllowThreads(__tstate); | |
30620 | if (PyErr_Occurred()) SWIG_fail; | |
30621 | } | |
30622 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30623 | return resultobj; | |
30624 | fail: | |
30625 | return NULL; | |
30626 | } | |
30627 | ||
30628 | ||
30629 | SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30630 | PyObject *resultobj = 0; | |
30631 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30632 | wxPoint *arg2 = 0 ; | |
30633 | int *arg3 = 0 ; | |
30634 | long result; | |
30635 | void *argp1 = 0 ; | |
30636 | int res1 = 0 ; | |
30637 | wxPoint temp2 ; | |
30638 | int temp3 ; | |
30639 | int res3 = SWIG_TMPOBJ ; | |
30640 | PyObject * obj0 = 0 ; | |
30641 | PyObject * obj1 = 0 ; | |
30642 | char * kwnames[] = { | |
30643 | (char *) "self",(char *) "point", NULL | |
30644 | }; | |
30645 | ||
30646 | arg3 = &temp3; | |
30647 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
30648 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30649 | if (!SWIG_IsOK(res1)) { | |
30650 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30651 | } | |
30652 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30653 | { | |
30654 | arg2 = &temp2; | |
30655 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30656 | } | |
30657 | { | |
30658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30659 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
30660 | wxPyEndAllowThreads(__tstate); | |
30661 | if (PyErr_Occurred()) SWIG_fail; | |
30662 | } | |
30663 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30664 | if (SWIG_IsTmpObj(res3)) { | |
30665 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
30666 | } else { | |
30667 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
30668 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
30669 | } | |
30670 | return resultobj; | |
30671 | fail: | |
30672 | return NULL; | |
30673 | } | |
30674 | ||
30675 | ||
30676 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30677 | PyObject *resultobj = 0; | |
30678 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30679 | wxListItem *arg2 = 0 ; | |
30680 | long result; | |
30681 | void *argp1 = 0 ; | |
30682 | int res1 = 0 ; | |
30683 | void *argp2 = 0 ; | |
30684 | int res2 = 0 ; | |
30685 | PyObject * obj0 = 0 ; | |
30686 | PyObject * obj1 = 0 ; | |
30687 | char * kwnames[] = { | |
30688 | (char *) "self",(char *) "info", NULL | |
30689 | }; | |
30690 | ||
30691 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
30692 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30693 | if (!SWIG_IsOK(res1)) { | |
30694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30695 | } | |
30696 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30697 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 ); | |
30698 | if (!SWIG_IsOK(res2)) { | |
30699 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
30700 | } | |
30701 | if (!argp2) { | |
30702 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
30703 | } | |
30704 | arg2 = reinterpret_cast< wxListItem * >(argp2); | |
30705 | { | |
30706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30707 | result = (long)(arg1)->InsertItem(*arg2); | |
30708 | wxPyEndAllowThreads(__tstate); | |
30709 | if (PyErr_Occurred()) SWIG_fail; | |
30710 | } | |
30711 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30712 | return resultobj; | |
30713 | fail: | |
30714 | return NULL; | |
30715 | } | |
30716 | ||
30717 | ||
30718 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30719 | PyObject *resultobj = 0; | |
30720 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30721 | long arg2 ; | |
30722 | wxString *arg3 = 0 ; | |
30723 | int arg4 = (int) -1 ; | |
30724 | long result; | |
30725 | void *argp1 = 0 ; | |
30726 | int res1 = 0 ; | |
30727 | long val2 ; | |
30728 | int ecode2 = 0 ; | |
30729 | bool temp3 = false ; | |
30730 | int val4 ; | |
30731 | int ecode4 = 0 ; | |
30732 | PyObject * obj0 = 0 ; | |
30733 | PyObject * obj1 = 0 ; | |
30734 | PyObject * obj2 = 0 ; | |
30735 | PyObject * obj3 = 0 ; | |
30736 | char * kwnames[] = { | |
30737 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
30738 | }; | |
30739 | ||
30740 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30741 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30742 | if (!SWIG_IsOK(res1)) { | |
30743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30744 | } | |
30745 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30746 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30747 | if (!SWIG_IsOK(ecode2)) { | |
30748 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'"); | |
30749 | } | |
30750 | arg2 = static_cast< long >(val2); | |
30751 | { | |
30752 | arg3 = wxString_in_helper(obj2); | |
30753 | if (arg3 == NULL) SWIG_fail; | |
30754 | temp3 = true; | |
30755 | } | |
30756 | if (obj3) { | |
30757 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30758 | if (!SWIG_IsOK(ecode4)) { | |
30759 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'"); | |
30760 | } | |
30761 | arg4 = static_cast< int >(val4); | |
30762 | } | |
30763 | { | |
30764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30765 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
30766 | wxPyEndAllowThreads(__tstate); | |
30767 | if (PyErr_Occurred()) SWIG_fail; | |
30768 | } | |
30769 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30770 | { | |
30771 | if (temp3) | |
30772 | delete arg3; | |
30773 | } | |
30774 | return resultobj; | |
30775 | fail: | |
30776 | { | |
30777 | if (temp3) | |
30778 | delete arg3; | |
30779 | } | |
30780 | return NULL; | |
30781 | } | |
30782 | ||
30783 | ||
30784 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30785 | PyObject *resultobj = 0; | |
30786 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30787 | long arg2 ; | |
30788 | int arg3 ; | |
30789 | long result; | |
30790 | void *argp1 = 0 ; | |
30791 | int res1 = 0 ; | |
30792 | long val2 ; | |
30793 | int ecode2 = 0 ; | |
30794 | int val3 ; | |
30795 | int ecode3 = 0 ; | |
30796 | PyObject * obj0 = 0 ; | |
30797 | PyObject * obj1 = 0 ; | |
30798 | PyObject * obj2 = 0 ; | |
30799 | char * kwnames[] = { | |
30800 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
30801 | }; | |
30802 | ||
30803 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30804 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30805 | if (!SWIG_IsOK(res1)) { | |
30806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30807 | } | |
30808 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30809 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30810 | if (!SWIG_IsOK(ecode2)) { | |
30811 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'"); | |
30812 | } | |
30813 | arg2 = static_cast< long >(val2); | |
30814 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30815 | if (!SWIG_IsOK(ecode3)) { | |
30816 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'"); | |
30817 | } | |
30818 | arg3 = static_cast< int >(val3); | |
30819 | { | |
30820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30821 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
30822 | wxPyEndAllowThreads(__tstate); | |
30823 | if (PyErr_Occurred()) SWIG_fail; | |
30824 | } | |
30825 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30826 | return resultobj; | |
30827 | fail: | |
30828 | return NULL; | |
30829 | } | |
30830 | ||
30831 | ||
30832 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30833 | PyObject *resultobj = 0; | |
30834 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30835 | long arg2 ; | |
30836 | wxString *arg3 = 0 ; | |
30837 | int arg4 ; | |
30838 | long result; | |
30839 | void *argp1 = 0 ; | |
30840 | int res1 = 0 ; | |
30841 | long val2 ; | |
30842 | int ecode2 = 0 ; | |
30843 | bool temp3 = false ; | |
30844 | int val4 ; | |
30845 | int ecode4 = 0 ; | |
30846 | PyObject * obj0 = 0 ; | |
30847 | PyObject * obj1 = 0 ; | |
30848 | PyObject * obj2 = 0 ; | |
30849 | PyObject * obj3 = 0 ; | |
30850 | char * kwnames[] = { | |
30851 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
30852 | }; | |
30853 | ||
30854 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30855 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30856 | if (!SWIG_IsOK(res1)) { | |
30857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30858 | } | |
30859 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30860 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30861 | if (!SWIG_IsOK(ecode2)) { | |
30862 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'"); | |
30863 | } | |
30864 | arg2 = static_cast< long >(val2); | |
30865 | { | |
30866 | arg3 = wxString_in_helper(obj2); | |
30867 | if (arg3 == NULL) SWIG_fail; | |
30868 | temp3 = true; | |
30869 | } | |
30870 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30871 | if (!SWIG_IsOK(ecode4)) { | |
30872 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'"); | |
30873 | } | |
30874 | arg4 = static_cast< int >(val4); | |
30875 | { | |
30876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30877 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
30878 | wxPyEndAllowThreads(__tstate); | |
30879 | if (PyErr_Occurred()) SWIG_fail; | |
30880 | } | |
30881 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30882 | { | |
30883 | if (temp3) | |
30884 | delete arg3; | |
30885 | } | |
30886 | return resultobj; | |
30887 | fail: | |
30888 | { | |
30889 | if (temp3) | |
30890 | delete arg3; | |
30891 | } | |
30892 | return NULL; | |
30893 | } | |
30894 | ||
30895 | ||
30896 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30897 | PyObject *resultobj = 0; | |
30898 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30899 | long arg2 ; | |
30900 | wxListItem *arg3 = 0 ; | |
30901 | long result; | |
30902 | void *argp1 = 0 ; | |
30903 | int res1 = 0 ; | |
30904 | long val2 ; | |
30905 | int ecode2 = 0 ; | |
30906 | void *argp3 = 0 ; | |
30907 | int res3 = 0 ; | |
30908 | PyObject * obj0 = 0 ; | |
30909 | PyObject * obj1 = 0 ; | |
30910 | PyObject * obj2 = 0 ; | |
30911 | char * kwnames[] = { | |
30912 | (char *) "self",(char *) "col",(char *) "info", NULL | |
30913 | }; | |
30914 | ||
30915 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30916 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30917 | if (!SWIG_IsOK(res1)) { | |
30918 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30919 | } | |
30920 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30921 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30922 | if (!SWIG_IsOK(ecode2)) { | |
30923 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'"); | |
30924 | } | |
30925 | arg2 = static_cast< long >(val2); | |
30926 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 ); | |
30927 | if (!SWIG_IsOK(res3)) { | |
30928 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
30929 | } | |
30930 | if (!argp3) { | |
30931 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
30932 | } | |
30933 | arg3 = reinterpret_cast< wxListItem * >(argp3); | |
30934 | { | |
30935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30936 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
30937 | wxPyEndAllowThreads(__tstate); | |
30938 | if (PyErr_Occurred()) SWIG_fail; | |
30939 | } | |
30940 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30941 | return resultobj; | |
30942 | fail: | |
30943 | return NULL; | |
30944 | } | |
30945 | ||
30946 | ||
30947 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30948 | PyObject *resultobj = 0; | |
30949 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30950 | long arg2 ; | |
30951 | wxString *arg3 = 0 ; | |
30952 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
30953 | int arg5 = (int) -1 ; | |
30954 | long result; | |
30955 | void *argp1 = 0 ; | |
30956 | int res1 = 0 ; | |
30957 | long val2 ; | |
30958 | int ecode2 = 0 ; | |
30959 | bool temp3 = false ; | |
30960 | int val4 ; | |
30961 | int ecode4 = 0 ; | |
30962 | int val5 ; | |
30963 | int ecode5 = 0 ; | |
30964 | PyObject * obj0 = 0 ; | |
30965 | PyObject * obj1 = 0 ; | |
30966 | PyObject * obj2 = 0 ; | |
30967 | PyObject * obj3 = 0 ; | |
30968 | PyObject * obj4 = 0 ; | |
30969 | char * kwnames[] = { | |
30970 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
30971 | }; | |
30972 | ||
30973 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
30974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30975 | if (!SWIG_IsOK(res1)) { | |
30976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30977 | } | |
30978 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30979 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30980 | if (!SWIG_IsOK(ecode2)) { | |
30981 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'"); | |
30982 | } | |
30983 | arg2 = static_cast< long >(val2); | |
30984 | { | |
30985 | arg3 = wxString_in_helper(obj2); | |
30986 | if (arg3 == NULL) SWIG_fail; | |
30987 | temp3 = true; | |
30988 | } | |
30989 | if (obj3) { | |
30990 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30991 | if (!SWIG_IsOK(ecode4)) { | |
30992 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'"); | |
30993 | } | |
30994 | arg4 = static_cast< int >(val4); | |
30995 | } | |
30996 | if (obj4) { | |
30997 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
30998 | if (!SWIG_IsOK(ecode5)) { | |
30999 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'"); | |
31000 | } | |
31001 | arg5 = static_cast< int >(val5); | |
31002 | } | |
31003 | { | |
31004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31005 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
31006 | wxPyEndAllowThreads(__tstate); | |
31007 | if (PyErr_Occurred()) SWIG_fail; | |
31008 | } | |
31009 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31010 | { | |
31011 | if (temp3) | |
31012 | delete arg3; | |
31013 | } | |
31014 | return resultobj; | |
31015 | fail: | |
31016 | { | |
31017 | if (temp3) | |
31018 | delete arg3; | |
31019 | } | |
31020 | return NULL; | |
31021 | } | |
31022 | ||
31023 | ||
31024 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31025 | PyObject *resultobj = 0; | |
31026 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31027 | long arg2 ; | |
31028 | void *argp1 = 0 ; | |
31029 | int res1 = 0 ; | |
31030 | long val2 ; | |
31031 | int ecode2 = 0 ; | |
31032 | PyObject * obj0 = 0 ; | |
31033 | PyObject * obj1 = 0 ; | |
31034 | char * kwnames[] = { | |
31035 | (char *) "self",(char *) "count", NULL | |
31036 | }; | |
31037 | ||
31038 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
31039 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31040 | if (!SWIG_IsOK(res1)) { | |
31041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31042 | } | |
31043 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31044 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31045 | if (!SWIG_IsOK(ecode2)) { | |
31046 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'"); | |
31047 | } | |
31048 | arg2 = static_cast< long >(val2); | |
31049 | { | |
31050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31051 | (arg1)->SetItemCount(arg2); | |
31052 | wxPyEndAllowThreads(__tstate); | |
31053 | if (PyErr_Occurred()) SWIG_fail; | |
31054 | } | |
31055 | resultobj = SWIG_Py_Void(); | |
31056 | return resultobj; | |
31057 | fail: | |
31058 | return NULL; | |
31059 | } | |
31060 | ||
31061 | ||
31062 | SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31063 | PyObject *resultobj = 0; | |
31064 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31065 | int arg2 ; | |
31066 | int arg3 ; | |
31067 | bool result; | |
31068 | void *argp1 = 0 ; | |
31069 | int res1 = 0 ; | |
31070 | int val2 ; | |
31071 | int ecode2 = 0 ; | |
31072 | int val3 ; | |
31073 | int ecode3 = 0 ; | |
31074 | PyObject * obj0 = 0 ; | |
31075 | PyObject * obj1 = 0 ; | |
31076 | PyObject * obj2 = 0 ; | |
31077 | char * kwnames[] = { | |
31078 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
31079 | }; | |
31080 | ||
31081 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31082 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31083 | if (!SWIG_IsOK(res1)) { | |
31084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31085 | } | |
31086 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31087 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31088 | if (!SWIG_IsOK(ecode2)) { | |
31089 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'"); | |
31090 | } | |
31091 | arg2 = static_cast< int >(val2); | |
31092 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31093 | if (!SWIG_IsOK(ecode3)) { | |
31094 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'"); | |
31095 | } | |
31096 | arg3 = static_cast< int >(val3); | |
31097 | { | |
31098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31099 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
31100 | wxPyEndAllowThreads(__tstate); | |
31101 | if (PyErr_Occurred()) SWIG_fail; | |
31102 | } | |
31103 | { | |
31104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31105 | } | |
31106 | return resultobj; | |
31107 | fail: | |
31108 | return NULL; | |
31109 | } | |
31110 | ||
31111 | ||
31112 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31113 | PyObject *resultobj = 0; | |
31114 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31115 | long arg2 ; | |
31116 | wxColour *arg3 = 0 ; | |
31117 | void *argp1 = 0 ; | |
31118 | int res1 = 0 ; | |
31119 | long val2 ; | |
31120 | int ecode2 = 0 ; | |
31121 | wxColour temp3 ; | |
31122 | PyObject * obj0 = 0 ; | |
31123 | PyObject * obj1 = 0 ; | |
31124 | PyObject * obj2 = 0 ; | |
31125 | char * kwnames[] = { | |
31126 | (char *) "self",(char *) "item",(char *) "col", NULL | |
31127 | }; | |
31128 | ||
31129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31131 | if (!SWIG_IsOK(res1)) { | |
31132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31133 | } | |
31134 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31135 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31136 | if (!SWIG_IsOK(ecode2)) { | |
31137 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'"); | |
31138 | } | |
31139 | arg2 = static_cast< long >(val2); | |
31140 | { | |
31141 | arg3 = &temp3; | |
31142 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31143 | } | |
31144 | { | |
31145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31146 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
31147 | wxPyEndAllowThreads(__tstate); | |
31148 | if (PyErr_Occurred()) SWIG_fail; | |
31149 | } | |
31150 | resultobj = SWIG_Py_Void(); | |
31151 | return resultobj; | |
31152 | fail: | |
31153 | return NULL; | |
31154 | } | |
31155 | ||
31156 | ||
31157 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31158 | PyObject *resultobj = 0; | |
31159 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31160 | long arg2 ; | |
31161 | wxColour result; | |
31162 | void *argp1 = 0 ; | |
31163 | int res1 = 0 ; | |
31164 | long val2 ; | |
31165 | int ecode2 = 0 ; | |
31166 | PyObject * obj0 = 0 ; | |
31167 | PyObject * obj1 = 0 ; | |
31168 | char * kwnames[] = { | |
31169 | (char *) "self",(char *) "item", NULL | |
31170 | }; | |
31171 | ||
31172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
31173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31174 | if (!SWIG_IsOK(res1)) { | |
31175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
31176 | } | |
31177 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31178 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31179 | if (!SWIG_IsOK(ecode2)) { | |
31180 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'"); | |
31181 | } | |
31182 | arg2 = static_cast< long >(val2); | |
31183 | { | |
31184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31185 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
31186 | wxPyEndAllowThreads(__tstate); | |
31187 | if (PyErr_Occurred()) SWIG_fail; | |
31188 | } | |
31189 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
31190 | return resultobj; | |
31191 | fail: | |
31192 | return NULL; | |
31193 | } | |
31194 | ||
31195 | ||
31196 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31197 | PyObject *resultobj = 0; | |
31198 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31199 | long arg2 ; | |
31200 | wxColour *arg3 = 0 ; | |
31201 | void *argp1 = 0 ; | |
31202 | int res1 = 0 ; | |
31203 | long val2 ; | |
31204 | int ecode2 = 0 ; | |
31205 | wxColour temp3 ; | |
31206 | PyObject * obj0 = 0 ; | |
31207 | PyObject * obj1 = 0 ; | |
31208 | PyObject * obj2 = 0 ; | |
31209 | char * kwnames[] = { | |
31210 | (char *) "self",(char *) "item",(char *) "col", NULL | |
31211 | }; | |
31212 | ||
31213 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31214 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31215 | if (!SWIG_IsOK(res1)) { | |
31216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31217 | } | |
31218 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31219 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31220 | if (!SWIG_IsOK(ecode2)) { | |
31221 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'"); | |
31222 | } | |
31223 | arg2 = static_cast< long >(val2); | |
31224 | { | |
31225 | arg3 = &temp3; | |
31226 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31227 | } | |
31228 | { | |
31229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31230 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
31231 | wxPyEndAllowThreads(__tstate); | |
31232 | if (PyErr_Occurred()) SWIG_fail; | |
31233 | } | |
31234 | resultobj = SWIG_Py_Void(); | |
31235 | return resultobj; | |
31236 | fail: | |
31237 | return NULL; | |
31238 | } | |
31239 | ||
31240 | ||
31241 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31242 | PyObject *resultobj = 0; | |
31243 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31244 | long arg2 ; | |
31245 | wxColour result; | |
31246 | void *argp1 = 0 ; | |
31247 | int res1 = 0 ; | |
31248 | long val2 ; | |
31249 | int ecode2 = 0 ; | |
31250 | PyObject * obj0 = 0 ; | |
31251 | PyObject * obj1 = 0 ; | |
31252 | char * kwnames[] = { | |
31253 | (char *) "self",(char *) "item", NULL | |
31254 | }; | |
31255 | ||
31256 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
31257 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31258 | if (!SWIG_IsOK(res1)) { | |
31259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
31260 | } | |
31261 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31262 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31263 | if (!SWIG_IsOK(ecode2)) { | |
31264 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'"); | |
31265 | } | |
31266 | arg2 = static_cast< long >(val2); | |
31267 | { | |
31268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31269 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
31270 | wxPyEndAllowThreads(__tstate); | |
31271 | if (PyErr_Occurred()) SWIG_fail; | |
31272 | } | |
31273 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
31274 | return resultobj; | |
31275 | fail: | |
31276 | return NULL; | |
31277 | } | |
31278 | ||
31279 | ||
31280 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31281 | PyObject *resultobj = 0; | |
31282 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31283 | long arg2 ; | |
31284 | wxFont *arg3 = 0 ; | |
31285 | void *argp1 = 0 ; | |
31286 | int res1 = 0 ; | |
31287 | long val2 ; | |
31288 | int ecode2 = 0 ; | |
31289 | void *argp3 = 0 ; | |
31290 | int res3 = 0 ; | |
31291 | PyObject * obj0 = 0 ; | |
31292 | PyObject * obj1 = 0 ; | |
31293 | PyObject * obj2 = 0 ; | |
31294 | char * kwnames[] = { | |
31295 | (char *) "self",(char *) "item",(char *) "f", NULL | |
31296 | }; | |
31297 | ||
31298 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31299 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31300 | if (!SWIG_IsOK(res1)) { | |
31301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31302 | } | |
31303 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31304 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31305 | if (!SWIG_IsOK(ecode2)) { | |
31306 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'"); | |
31307 | } | |
31308 | arg2 = static_cast< long >(val2); | |
31309 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
31310 | if (!SWIG_IsOK(res3)) { | |
31311 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
31312 | } | |
31313 | if (!argp3) { | |
31314 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
31315 | } | |
31316 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
31317 | { | |
31318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31319 | (arg1)->SetItemFont(arg2,(wxFont const &)*arg3); | |
31320 | wxPyEndAllowThreads(__tstate); | |
31321 | if (PyErr_Occurred()) SWIG_fail; | |
31322 | } | |
31323 | resultobj = SWIG_Py_Void(); | |
31324 | return resultobj; | |
31325 | fail: | |
31326 | return NULL; | |
31327 | } | |
31328 | ||
31329 | ||
31330 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31331 | PyObject *resultobj = 0; | |
31332 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31333 | long arg2 ; | |
31334 | wxFont result; | |
31335 | void *argp1 = 0 ; | |
31336 | int res1 = 0 ; | |
31337 | long val2 ; | |
31338 | int ecode2 = 0 ; | |
31339 | PyObject * obj0 = 0 ; | |
31340 | PyObject * obj1 = 0 ; | |
31341 | char * kwnames[] = { | |
31342 | (char *) "self",(char *) "item", NULL | |
31343 | }; | |
31344 | ||
31345 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
31346 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31347 | if (!SWIG_IsOK(res1)) { | |
31348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
31349 | } | |
31350 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31351 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31352 | if (!SWIG_IsOK(ecode2)) { | |
31353 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'"); | |
31354 | } | |
31355 | arg2 = static_cast< long >(val2); | |
31356 | { | |
31357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31358 | result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2); | |
31359 | wxPyEndAllowThreads(__tstate); | |
31360 | if (PyErr_Occurred()) SWIG_fail; | |
31361 | } | |
31362 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
31363 | return resultobj; | |
31364 | fail: | |
31365 | return NULL; | |
31366 | } | |
31367 | ||
31368 | ||
31369 | SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31370 | PyObject *resultobj = 0; | |
31371 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31372 | PyObject *arg2 = (PyObject *) 0 ; | |
31373 | bool result; | |
31374 | void *argp1 = 0 ; | |
31375 | int res1 = 0 ; | |
31376 | PyObject * obj0 = 0 ; | |
31377 | PyObject * obj1 = 0 ; | |
31378 | char * kwnames[] = { | |
31379 | (char *) "self",(char *) "func", NULL | |
31380 | }; | |
31381 | ||
31382 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail; | |
31383 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31384 | if (!SWIG_IsOK(res1)) { | |
31385 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31386 | } | |
31387 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31388 | arg2 = obj1; | |
31389 | { | |
31390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31391 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
31392 | wxPyEndAllowThreads(__tstate); | |
31393 | if (PyErr_Occurred()) SWIG_fail; | |
31394 | } | |
31395 | { | |
31396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31397 | } | |
31398 | return resultobj; | |
31399 | fail: | |
31400 | return NULL; | |
7e08d4ef RD |
31401 | } |
31402 | ||
31403 | ||
0085ce49 RD |
31404 | SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31405 | PyObject *resultobj = 0; | |
31406 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31407 | wxWindow *result = 0 ; | |
31408 | void *argp1 = 0 ; | |
31409 | int res1 = 0 ; | |
31410 | PyObject *swig_obj[1] ; | |
31411 | ||
31412 | if (!args) SWIG_fail; | |
31413 | swig_obj[0] = args; | |
31414 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31415 | if (!SWIG_IsOK(res1)) { | |
31416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31417 | } | |
31418 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31419 | { | |
31420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31421 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
31422 | wxPyEndAllowThreads(__tstate); | |
31423 | if (PyErr_Occurred()) SWIG_fail; | |
31424 | } | |
31425 | { | |
31426 | resultobj = wxPyMake_wxObject(result, 0); | |
31427 | } | |
31428 | return resultobj; | |
31429 | fail: | |
31430 | return NULL; | |
31431 | } | |
31432 | ||
31433 | ||
31434 | SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31435 | PyObject *resultobj = 0; | |
31436 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
31437 | SwigValueWrapper<wxVisualAttributes > result; | |
31438 | int val1 ; | |
31439 | int ecode1 = 0 ; | |
31440 | PyObject * obj0 = 0 ; | |
31441 | char * kwnames[] = { | |
31442 | (char *) "variant", NULL | |
31443 | }; | |
31444 | ||
31445 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
31446 | if (obj0) { | |
31447 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31448 | if (!SWIG_IsOK(ecode1)) { | |
31449 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
31450 | } | |
31451 | arg1 = static_cast< wxWindowVariant >(val1); | |
31452 | } | |
31453 | { | |
31454 | if (!wxPyCheckForApp()) SWIG_fail; | |
31455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31456 | result = wxPyListCtrl::GetClassDefaultAttributes(arg1); | |
31457 | wxPyEndAllowThreads(__tstate); | |
31458 | if (PyErr_Occurred()) SWIG_fail; | |
31459 | } | |
31460 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
31461 | return resultobj; | |
31462 | fail: | |
31463 | return NULL; | |
31464 | } | |
31465 | ||
31466 | ||
31467 | SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31468 | PyObject *obj; | |
31469 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31470 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj)); | |
31471 | return SWIG_Py_Void(); | |
31472 | } | |
31473 | ||
31474 | SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31475 | return SWIG_Python_InitShadowInstance(args); | |
31476 | } | |
31477 | ||
31478 | SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31479 | PyObject *resultobj = 0; | |
31480 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31481 | int arg2 = (int) -1 ; | |
31482 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
31483 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
31484 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
31485 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
31486 | long arg5 = (long) wxLC_REPORT ; | |
31487 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
31488 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
31489 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
31490 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
31491 | wxListView *result = 0 ; | |
31492 | void *argp1 = 0 ; | |
31493 | int res1 = 0 ; | |
31494 | int val2 ; | |
31495 | int ecode2 = 0 ; | |
31496 | wxPoint temp3 ; | |
31497 | wxSize temp4 ; | |
31498 | long val5 ; | |
31499 | int ecode5 = 0 ; | |
31500 | void *argp6 = 0 ; | |
31501 | int res6 = 0 ; | |
31502 | bool temp7 = false ; | |
31503 | PyObject * obj0 = 0 ; | |
31504 | PyObject * obj1 = 0 ; | |
31505 | PyObject * obj2 = 0 ; | |
31506 | PyObject * obj3 = 0 ; | |
31507 | PyObject * obj4 = 0 ; | |
31508 | PyObject * obj5 = 0 ; | |
31509 | PyObject * obj6 = 0 ; | |
31510 | char * kwnames[] = { | |
31511 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
31512 | }; | |
31513 | ||
31514 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
31515 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31516 | if (!SWIG_IsOK(res1)) { | |
31517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
31518 | } | |
31519 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
31520 | if (obj1) { | |
31521 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31522 | if (!SWIG_IsOK(ecode2)) { | |
31523 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'"); | |
31524 | } | |
31525 | arg2 = static_cast< int >(val2); | |
31526 | } | |
31527 | if (obj2) { | |
7e08d4ef | 31528 | { |
0085ce49 RD |
31529 | arg3 = &temp3; |
31530 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7e08d4ef | 31531 | } |
0085ce49 RD |
31532 | } |
31533 | if (obj3) { | |
7e08d4ef | 31534 | { |
0085ce49 RD |
31535 | arg4 = &temp4; |
31536 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7e08d4ef | 31537 | } |
0085ce49 RD |
31538 | } |
31539 | if (obj4) { | |
31540 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
31541 | if (!SWIG_IsOK(ecode5)) { | |
31542 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'"); | |
31543 | } | |
31544 | arg5 = static_cast< long >(val5); | |
31545 | } | |
31546 | if (obj5) { | |
31547 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
31548 | if (!SWIG_IsOK(res6)) { | |
31549 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 31550 | } |
0085ce49 RD |
31551 | if (!argp6) { |
31552 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 31553 | } |
0085ce49 RD |
31554 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
31555 | } | |
31556 | if (obj6) { | |
7e08d4ef | 31557 | { |
0085ce49 RD |
31558 | arg7 = wxString_in_helper(obj6); |
31559 | if (arg7 == NULL) SWIG_fail; | |
31560 | temp7 = true; | |
7e08d4ef | 31561 | } |
0085ce49 RD |
31562 | } |
31563 | { | |
31564 | if (!wxPyCheckForApp()) SWIG_fail; | |
31565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31566 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
31567 | wxPyEndAllowThreads(__tstate); | |
31568 | if (PyErr_Occurred()) SWIG_fail; | |
31569 | } | |
31570 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 ); | |
31571 | { | |
31572 | if (temp7) | |
31573 | delete arg7; | |
31574 | } | |
31575 | return resultobj; | |
31576 | fail: | |
31577 | { | |
31578 | if (temp7) | |
31579 | delete arg7; | |
31580 | } | |
31581 | return NULL; | |
7e08d4ef RD |
31582 | } |
31583 | ||
31584 | ||
0085ce49 RD |
31585 | SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31586 | PyObject *resultobj = 0; | |
31587 | wxListView *result = 0 ; | |
31588 | ||
31589 | if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail; | |
31590 | { | |
31591 | if (!wxPyCheckForApp()) SWIG_fail; | |
31592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31593 | result = (wxListView *)new wxListView(); | |
31594 | wxPyEndAllowThreads(__tstate); | |
31595 | if (PyErr_Occurred()) SWIG_fail; | |
31596 | } | |
31597 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 ); | |
31598 | return resultobj; | |
31599 | fail: | |
31600 | return NULL; | |
31601 | } | |
31602 | ||
31603 | ||
31604 | SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31605 | PyObject *resultobj = 0; | |
31606 | wxListView *arg1 = (wxListView *) 0 ; | |
31607 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31608 | int arg3 = (int) -1 ; | |
31609 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
31610 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
31611 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
31612 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
31613 | long arg6 = (long) wxLC_REPORT ; | |
31614 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
31615 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
31616 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
31617 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
31618 | bool result; | |
31619 | void *argp1 = 0 ; | |
31620 | int res1 = 0 ; | |
31621 | void *argp2 = 0 ; | |
31622 | int res2 = 0 ; | |
31623 | int val3 ; | |
31624 | int ecode3 = 0 ; | |
31625 | wxPoint temp4 ; | |
31626 | wxSize temp5 ; | |
31627 | long val6 ; | |
31628 | int ecode6 = 0 ; | |
31629 | void *argp7 = 0 ; | |
31630 | int res7 = 0 ; | |
31631 | bool temp8 = false ; | |
31632 | PyObject * obj0 = 0 ; | |
31633 | PyObject * obj1 = 0 ; | |
31634 | PyObject * obj2 = 0 ; | |
31635 | PyObject * obj3 = 0 ; | |
31636 | PyObject * obj4 = 0 ; | |
31637 | PyObject * obj5 = 0 ; | |
31638 | PyObject * obj6 = 0 ; | |
31639 | PyObject * obj7 = 0 ; | |
31640 | char * kwnames[] = { | |
31641 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
31642 | }; | |
31643 | ||
31644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
31645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31646 | if (!SWIG_IsOK(res1)) { | |
31647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'"); | |
31648 | } | |
31649 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31650 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31651 | if (!SWIG_IsOK(res2)) { | |
31652 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
31653 | } | |
31654 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
31655 | if (obj2) { | |
31656 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31657 | if (!SWIG_IsOK(ecode3)) { | |
31658 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'"); | |
31659 | } | |
31660 | arg3 = static_cast< int >(val3); | |
31661 | } | |
31662 | if (obj3) { | |
7e08d4ef | 31663 | { |
0085ce49 RD |
31664 | arg4 = &temp4; |
31665 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7e08d4ef | 31666 | } |
0085ce49 RD |
31667 | } |
31668 | if (obj4) { | |
7e08d4ef | 31669 | { |
0085ce49 RD |
31670 | arg5 = &temp5; |
31671 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7e08d4ef | 31672 | } |
0085ce49 RD |
31673 | } |
31674 | if (obj5) { | |
31675 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
31676 | if (!SWIG_IsOK(ecode6)) { | |
31677 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'"); | |
31678 | } | |
31679 | arg6 = static_cast< long >(val6); | |
31680 | } | |
31681 | if (obj6) { | |
31682 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
31683 | if (!SWIG_IsOK(res7)) { | |
31684 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 31685 | } |
0085ce49 RD |
31686 | if (!argp7) { |
31687 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 31688 | } |
0085ce49 RD |
31689 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
31690 | } | |
31691 | if (obj7) { | |
7e08d4ef | 31692 | { |
0085ce49 RD |
31693 | arg8 = wxString_in_helper(obj7); |
31694 | if (arg8 == NULL) SWIG_fail; | |
31695 | temp8 = true; | |
7e08d4ef | 31696 | } |
0085ce49 RD |
31697 | } |
31698 | { | |
31699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31700 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
31701 | wxPyEndAllowThreads(__tstate); | |
31702 | if (PyErr_Occurred()) SWIG_fail; | |
31703 | } | |
31704 | { | |
31705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31706 | } | |
31707 | { | |
31708 | if (temp8) | |
31709 | delete arg8; | |
31710 | } | |
31711 | return resultobj; | |
31712 | fail: | |
31713 | { | |
31714 | if (temp8) | |
31715 | delete arg8; | |
31716 | } | |
31717 | return NULL; | |
31718 | } | |
31719 | ||
31720 | ||
31721 | SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31722 | PyObject *resultobj = 0; | |
31723 | wxListView *arg1 = (wxListView *) 0 ; | |
31724 | long arg2 ; | |
31725 | bool arg3 = (bool) true ; | |
31726 | void *argp1 = 0 ; | |
31727 | int res1 = 0 ; | |
31728 | long val2 ; | |
31729 | int ecode2 = 0 ; | |
31730 | bool val3 ; | |
31731 | int ecode3 = 0 ; | |
31732 | PyObject * obj0 = 0 ; | |
31733 | PyObject * obj1 = 0 ; | |
31734 | PyObject * obj2 = 0 ; | |
31735 | char * kwnames[] = { | |
31736 | (char *) "self",(char *) "n",(char *) "on", NULL | |
31737 | }; | |
31738 | ||
31739 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31740 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31741 | if (!SWIG_IsOK(res1)) { | |
31742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'"); | |
31743 | } | |
31744 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31745 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31746 | if (!SWIG_IsOK(ecode2)) { | |
31747 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'"); | |
31748 | } | |
31749 | arg2 = static_cast< long >(val2); | |
31750 | if (obj2) { | |
31751 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
31752 | if (!SWIG_IsOK(ecode3)) { | |
31753 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'"); | |
31754 | } | |
31755 | arg3 = static_cast< bool >(val3); | |
31756 | } | |
31757 | { | |
31758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31759 | (arg1)->Select(arg2,arg3); | |
31760 | wxPyEndAllowThreads(__tstate); | |
31761 | if (PyErr_Occurred()) SWIG_fail; | |
31762 | } | |
31763 | resultobj = SWIG_Py_Void(); | |
31764 | return resultobj; | |
31765 | fail: | |
31766 | return NULL; | |
31767 | } | |
31768 | ||
31769 | ||
31770 | SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31771 | PyObject *resultobj = 0; | |
31772 | wxListView *arg1 = (wxListView *) 0 ; | |
31773 | long arg2 ; | |
31774 | void *argp1 = 0 ; | |
31775 | int res1 = 0 ; | |
31776 | long val2 ; | |
31777 | int ecode2 = 0 ; | |
31778 | PyObject * obj0 = 0 ; | |
31779 | PyObject * obj1 = 0 ; | |
31780 | char * kwnames[] = { | |
31781 | (char *) "self",(char *) "index", NULL | |
31782 | }; | |
31783 | ||
31784 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail; | |
31785 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31786 | if (!SWIG_IsOK(res1)) { | |
31787 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'"); | |
31788 | } | |
31789 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31790 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31791 | if (!SWIG_IsOK(ecode2)) { | |
31792 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'"); | |
31793 | } | |
31794 | arg2 = static_cast< long >(val2); | |
31795 | { | |
31796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31797 | (arg1)->Focus(arg2); | |
31798 | wxPyEndAllowThreads(__tstate); | |
31799 | if (PyErr_Occurred()) SWIG_fail; | |
31800 | } | |
31801 | resultobj = SWIG_Py_Void(); | |
31802 | return resultobj; | |
31803 | fail: | |
31804 | return NULL; | |
7e08d4ef RD |
31805 | } |
31806 | ||
31807 | ||
0085ce49 RD |
31808 | SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31809 | PyObject *resultobj = 0; | |
31810 | wxListView *arg1 = (wxListView *) 0 ; | |
31811 | long result; | |
31812 | void *argp1 = 0 ; | |
31813 | int res1 = 0 ; | |
31814 | PyObject *swig_obj[1] ; | |
31815 | ||
31816 | if (!args) SWIG_fail; | |
31817 | swig_obj[0] = args; | |
31818 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31819 | if (!SWIG_IsOK(res1)) { | |
31820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
31821 | } | |
31822 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31823 | { | |
31824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31825 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
31826 | wxPyEndAllowThreads(__tstate); | |
31827 | if (PyErr_Occurred()) SWIG_fail; | |
31828 | } | |
31829 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31830 | return resultobj; | |
31831 | fail: | |
31832 | return NULL; | |
31833 | } | |
31834 | ||
31835 | ||
31836 | SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31837 | PyObject *resultobj = 0; | |
31838 | wxListView *arg1 = (wxListView *) 0 ; | |
31839 | long arg2 ; | |
31840 | long result; | |
31841 | void *argp1 = 0 ; | |
31842 | int res1 = 0 ; | |
31843 | long val2 ; | |
31844 | int ecode2 = 0 ; | |
31845 | PyObject * obj0 = 0 ; | |
31846 | PyObject * obj1 = 0 ; | |
31847 | char * kwnames[] = { | |
31848 | (char *) "self",(char *) "item", NULL | |
31849 | }; | |
31850 | ||
31851 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
31852 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31853 | if (!SWIG_IsOK(res1)) { | |
31854 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
31855 | } | |
31856 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31857 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31858 | if (!SWIG_IsOK(ecode2)) { | |
31859 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'"); | |
31860 | } | |
31861 | arg2 = static_cast< long >(val2); | |
31862 | { | |
31863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31864 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
31865 | wxPyEndAllowThreads(__tstate); | |
31866 | if (PyErr_Occurred()) SWIG_fail; | |
31867 | } | |
31868 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31869 | return resultobj; | |
31870 | fail: | |
31871 | return NULL; | |
7e08d4ef RD |
31872 | } |
31873 | ||
31874 | ||
0085ce49 RD |
31875 | SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31876 | PyObject *resultobj = 0; | |
31877 | wxListView *arg1 = (wxListView *) 0 ; | |
31878 | long result; | |
31879 | void *argp1 = 0 ; | |
31880 | int res1 = 0 ; | |
31881 | PyObject *swig_obj[1] ; | |
31882 | ||
31883 | if (!args) SWIG_fail; | |
31884 | swig_obj[0] = args; | |
31885 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31886 | if (!SWIG_IsOK(res1)) { | |
31887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
31888 | } | |
31889 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31890 | { | |
31891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31892 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
31893 | wxPyEndAllowThreads(__tstate); | |
31894 | if (PyErr_Occurred()) SWIG_fail; | |
31895 | } | |
31896 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31897 | return resultobj; | |
31898 | fail: | |
31899 | return NULL; | |
31900 | } | |
31901 | ||
31902 | ||
31903 | SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31904 | PyObject *resultobj = 0; | |
31905 | wxListView *arg1 = (wxListView *) 0 ; | |
31906 | long arg2 ; | |
31907 | bool result; | |
31908 | void *argp1 = 0 ; | |
31909 | int res1 = 0 ; | |
31910 | long val2 ; | |
31911 | int ecode2 = 0 ; | |
31912 | PyObject * obj0 = 0 ; | |
31913 | PyObject * obj1 = 0 ; | |
31914 | char * kwnames[] = { | |
31915 | (char *) "self",(char *) "index", NULL | |
31916 | }; | |
31917 | ||
31918 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
31919 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31920 | if (!SWIG_IsOK(res1)) { | |
31921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'"); | |
31922 | } | |
31923 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31924 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31925 | if (!SWIG_IsOK(ecode2)) { | |
31926 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'"); | |
31927 | } | |
31928 | arg2 = static_cast< long >(val2); | |
31929 | { | |
31930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31931 | result = (bool)(arg1)->IsSelected(arg2); | |
31932 | wxPyEndAllowThreads(__tstate); | |
31933 | if (PyErr_Occurred()) SWIG_fail; | |
31934 | } | |
31935 | { | |
31936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31937 | } | |
31938 | return resultobj; | |
31939 | fail: | |
31940 | return NULL; | |
31941 | } | |
31942 | ||
31943 | ||
31944 | SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31945 | PyObject *resultobj = 0; | |
31946 | wxListView *arg1 = (wxListView *) 0 ; | |
31947 | int arg2 ; | |
31948 | int arg3 ; | |
31949 | void *argp1 = 0 ; | |
31950 | int res1 = 0 ; | |
31951 | int val2 ; | |
31952 | int ecode2 = 0 ; | |
31953 | int val3 ; | |
31954 | int ecode3 = 0 ; | |
31955 | PyObject * obj0 = 0 ; | |
31956 | PyObject * obj1 = 0 ; | |
31957 | PyObject * obj2 = 0 ; | |
31958 | char * kwnames[] = { | |
31959 | (char *) "self",(char *) "col",(char *) "image", NULL | |
31960 | }; | |
31961 | ||
31962 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31963 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
31964 | if (!SWIG_IsOK(res1)) { | |
31965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'"); | |
31966 | } | |
31967 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
31968 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31969 | if (!SWIG_IsOK(ecode2)) { | |
31970 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'"); | |
31971 | } | |
31972 | arg2 = static_cast< int >(val2); | |
31973 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31974 | if (!SWIG_IsOK(ecode3)) { | |
31975 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'"); | |
31976 | } | |
31977 | arg3 = static_cast< int >(val3); | |
31978 | { | |
31979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31980 | (arg1)->SetColumnImage(arg2,arg3); | |
31981 | wxPyEndAllowThreads(__tstate); | |
31982 | if (PyErr_Occurred()) SWIG_fail; | |
31983 | } | |
31984 | resultobj = SWIG_Py_Void(); | |
31985 | return resultobj; | |
31986 | fail: | |
31987 | return NULL; | |
31988 | } | |
31989 | ||
31990 | ||
31991 | SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31992 | PyObject *resultobj = 0; | |
31993 | wxListView *arg1 = (wxListView *) 0 ; | |
31994 | int arg2 ; | |
31995 | void *argp1 = 0 ; | |
31996 | int res1 = 0 ; | |
31997 | int val2 ; | |
31998 | int ecode2 = 0 ; | |
31999 | PyObject * obj0 = 0 ; | |
32000 | PyObject * obj1 = 0 ; | |
32001 | char * kwnames[] = { | |
32002 | (char *) "self",(char *) "col", NULL | |
32003 | }; | |
32004 | ||
32005 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
32006 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32007 | if (!SWIG_IsOK(res1)) { | |
32008 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32009 | } | |
32010 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32011 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32012 | if (!SWIG_IsOK(ecode2)) { | |
32013 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'"); | |
32014 | } | |
32015 | arg2 = static_cast< int >(val2); | |
32016 | { | |
32017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32018 | (arg1)->ClearColumnImage(arg2); | |
32019 | wxPyEndAllowThreads(__tstate); | |
32020 | if (PyErr_Occurred()) SWIG_fail; | |
32021 | } | |
32022 | resultobj = SWIG_Py_Void(); | |
32023 | return resultobj; | |
32024 | fail: | |
32025 | return NULL; | |
7e08d4ef RD |
32026 | } |
32027 | ||
32028 | ||
0085ce49 RD |
32029 | SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32030 | PyObject *obj; | |
32031 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32032 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj)); | |
32033 | return SWIG_Py_Void(); | |
7e08d4ef RD |
32034 | } |
32035 | ||
0085ce49 RD |
32036 | SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32037 | return SWIG_Python_InitShadowInstance(args); | |
32038 | } | |
7e08d4ef | 32039 | |
0085ce49 RD |
32040 | SWIGINTERN int TreeCtrlNameStr_set(PyObject *) { |
32041 | SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only."); | |
32042 | return 1; | |
7e08d4ef RD |
32043 | } |
32044 | ||
32045 | ||
0085ce49 RD |
32046 | SWIGINTERN PyObject *TreeCtrlNameStr_get(void) { |
32047 | PyObject *pyobj = 0; | |
32048 | ||
32049 | { | |
32050 | #if wxUSE_UNICODE | |
32051 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
32052 | #else | |
32053 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
32054 | #endif | |
32055 | } | |
32056 | return pyobj; | |
7e08d4ef RD |
32057 | } |
32058 | ||
32059 | ||
0085ce49 RD |
32060 | SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32061 | PyObject *resultobj = 0; | |
32062 | wxTreeItemId *result = 0 ; | |
32063 | ||
32064 | if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail; | |
32065 | { | |
32066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32067 | result = (wxTreeItemId *)new wxTreeItemId(); | |
32068 | wxPyEndAllowThreads(__tstate); | |
32069 | if (PyErr_Occurred()) SWIG_fail; | |
32070 | } | |
32071 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 ); | |
32072 | return resultobj; | |
32073 | fail: | |
32074 | return NULL; | |
d14a1e28 RD |
32075 | } |
32076 | ||
32077 | ||
0085ce49 RD |
32078 | SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32079 | PyObject *resultobj = 0; | |
32080 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32081 | void *argp1 = 0 ; | |
32082 | int res1 = 0 ; | |
32083 | PyObject *swig_obj[1] ; | |
32084 | ||
32085 | if (!args) SWIG_fail; | |
32086 | swig_obj[0] = args; | |
32087 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 ); | |
32088 | if (!SWIG_IsOK(res1)) { | |
32089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32090 | } | |
32091 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32092 | { | |
32093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32094 | delete arg1; | |
7e08d4ef | 32095 | |
0085ce49 RD |
32096 | wxPyEndAllowThreads(__tstate); |
32097 | if (PyErr_Occurred()) SWIG_fail; | |
32098 | } | |
32099 | resultobj = SWIG_Py_Void(); | |
32100 | return resultobj; | |
32101 | fail: | |
32102 | return NULL; | |
7e08d4ef RD |
32103 | } |
32104 | ||
32105 | ||
0085ce49 RD |
32106 | SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32107 | PyObject *resultobj = 0; | |
32108 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32109 | bool result; | |
32110 | void *argp1 = 0 ; | |
32111 | int res1 = 0 ; | |
32112 | PyObject *swig_obj[1] ; | |
32113 | ||
32114 | if (!args) SWIG_fail; | |
32115 | swig_obj[0] = args; | |
32116 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32117 | if (!SWIG_IsOK(res1)) { | |
32118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'"); | |
32119 | } | |
32120 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32121 | { | |
32122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32123 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
32124 | wxPyEndAllowThreads(__tstate); | |
32125 | if (PyErr_Occurred()) SWIG_fail; | |
32126 | } | |
32127 | { | |
32128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32129 | } | |
32130 | return resultobj; | |
32131 | fail: | |
32132 | return NULL; | |
32133 | } | |
32134 | ||
32135 | ||
32136 | SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32137 | PyObject *resultobj = 0; | |
32138 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32139 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
32140 | bool result; | |
32141 | void *argp1 = 0 ; | |
32142 | int res1 = 0 ; | |
32143 | void *argp2 = 0 ; | |
32144 | int res2 = 0 ; | |
32145 | PyObject * obj0 = 0 ; | |
32146 | PyObject * obj1 = 0 ; | |
32147 | char * kwnames[] = { | |
32148 | (char *) "self",(char *) "other", NULL | |
32149 | }; | |
32150 | ||
32151 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
32152 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32153 | if (!SWIG_IsOK(res1)) { | |
32154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32155 | } | |
32156 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32157 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32158 | if (!SWIG_IsOK(res2)) { | |
32159 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'"); | |
32160 | } | |
32161 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32162 | { | |
32163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32164 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); | |
32165 | wxPyEndAllowThreads(__tstate); | |
32166 | if (PyErr_Occurred()) SWIG_fail; | |
32167 | } | |
32168 | { | |
32169 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32170 | } | |
32171 | return resultobj; | |
32172 | fail: | |
32173 | return NULL; | |
32174 | } | |
32175 | ||
32176 | ||
32177 | SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32178 | PyObject *resultobj = 0; | |
32179 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32180 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
32181 | bool result; | |
32182 | void *argp1 = 0 ; | |
32183 | int res1 = 0 ; | |
32184 | void *argp2 = 0 ; | |
32185 | int res2 = 0 ; | |
32186 | PyObject * obj0 = 0 ; | |
32187 | PyObject * obj1 = 0 ; | |
32188 | char * kwnames[] = { | |
32189 | (char *) "self",(char *) "other", NULL | |
32190 | }; | |
32191 | ||
32192 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
32193 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32194 | if (!SWIG_IsOK(res1)) { | |
32195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32196 | } | |
32197 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32198 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32199 | if (!SWIG_IsOK(res2)) { | |
32200 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'"); | |
32201 | } | |
32202 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32203 | { | |
32204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32205 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); | |
32206 | wxPyEndAllowThreads(__tstate); | |
32207 | if (PyErr_Occurred()) SWIG_fail; | |
32208 | } | |
32209 | { | |
32210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32211 | } | |
32212 | return resultobj; | |
32213 | fail: | |
32214 | return NULL; | |
7e08d4ef RD |
32215 | } |
32216 | ||
32217 | ||
0085ce49 RD |
32218 | SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32219 | PyObject *resultobj = 0; | |
32220 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32221 | void *arg2 = (void *) 0 ; | |
32222 | void *argp1 = 0 ; | |
32223 | int res1 = 0 ; | |
32224 | int res2 ; | |
32225 | PyObject *swig_obj[2] ; | |
32226 | ||
32227 | if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail; | |
32228 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32229 | if (!SWIG_IsOK(res1)) { | |
32230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32231 | } | |
32232 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32233 | res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); | |
32234 | if (!SWIG_IsOK(res2)) { | |
32235 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'"); | |
32236 | } | |
32237 | if (arg1) (arg1)->m_pItem = arg2; | |
32238 | ||
32239 | resultobj = SWIG_Py_Void(); | |
32240 | return resultobj; | |
32241 | fail: | |
32242 | return NULL; | |
7e08d4ef RD |
32243 | } |
32244 | ||
32245 | ||
0085ce49 RD |
32246 | SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32247 | PyObject *resultobj = 0; | |
32248 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32249 | void *result = 0 ; | |
32250 | void *argp1 = 0 ; | |
32251 | int res1 = 0 ; | |
32252 | PyObject *swig_obj[1] ; | |
32253 | ||
32254 | if (!args) SWIG_fail; | |
32255 | swig_obj[0] = args; | |
32256 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32257 | if (!SWIG_IsOK(res1)) { | |
32258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32259 | } | |
32260 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32261 | result = (void *) ((arg1)->m_pItem); | |
32262 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
32263 | return resultobj; | |
32264 | fail: | |
32265 | return NULL; | |
7e08d4ef RD |
32266 | } |
32267 | ||
32268 | ||
0085ce49 RD |
32269 | SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32270 | PyObject *obj; | |
32271 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32272 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj)); | |
32273 | return SWIG_Py_Void(); | |
7e08d4ef RD |
32274 | } |
32275 | ||
0085ce49 RD |
32276 | SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32277 | return SWIG_Python_InitShadowInstance(args); | |
32278 | } | |
7e08d4ef | 32279 | |
0085ce49 RD |
32280 | SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32281 | PyObject *resultobj = 0; | |
32282 | PyObject *arg1 = (PyObject *) NULL ; | |
32283 | wxPyTreeItemData *result = 0 ; | |
32284 | PyObject * obj0 = 0 ; | |
32285 | char * kwnames[] = { | |
32286 | (char *) "obj", NULL | |
32287 | }; | |
32288 | ||
32289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail; | |
32290 | if (obj0) { | |
32291 | arg1 = obj0; | |
32292 | } | |
32293 | { | |
32294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32295 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
32296 | wxPyEndAllowThreads(__tstate); | |
32297 | if (PyErr_Occurred()) SWIG_fail; | |
32298 | } | |
32299 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 ); | |
32300 | return resultobj; | |
32301 | fail: | |
32302 | return NULL; | |
7e08d4ef RD |
32303 | } |
32304 | ||
32305 | ||
0085ce49 RD |
32306 | SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32307 | PyObject *resultobj = 0; | |
32308 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32309 | void *argp1 = 0 ; | |
32310 | int res1 = 0 ; | |
32311 | PyObject *swig_obj[1] ; | |
32312 | ||
32313 | if (!args) SWIG_fail; | |
32314 | swig_obj[0] = args; | |
32315 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
32316 | if (!SWIG_IsOK(res1)) { | |
32317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32318 | } | |
32319 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32320 | { | |
32321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32322 | delete arg1; | |
1fbf26be | 32323 | |
0085ce49 RD |
32324 | wxPyEndAllowThreads(__tstate); |
32325 | if (PyErr_Occurred()) SWIG_fail; | |
32326 | } | |
32327 | resultobj = SWIG_Py_Void(); | |
32328 | return resultobj; | |
32329 | fail: | |
32330 | return NULL; | |
1fbf26be RD |
32331 | } |
32332 | ||
32333 | ||
0085ce49 RD |
32334 | SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32335 | PyObject *resultobj = 0; | |
32336 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32337 | PyObject *result = 0 ; | |
32338 | void *argp1 = 0 ; | |
32339 | int res1 = 0 ; | |
32340 | PyObject *swig_obj[1] ; | |
32341 | ||
32342 | if (!args) SWIG_fail; | |
32343 | swig_obj[0] = args; | |
32344 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
32345 | if (!SWIG_IsOK(res1)) { | |
32346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32347 | } | |
32348 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32349 | { | |
32350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32351 | result = (PyObject *)(arg1)->GetData(); | |
32352 | wxPyEndAllowThreads(__tstate); | |
32353 | if (PyErr_Occurred()) SWIG_fail; | |
32354 | } | |
32355 | resultobj = result; | |
32356 | return resultobj; | |
32357 | fail: | |
32358 | return NULL; | |
32359 | } | |
32360 | ||
32361 | ||
32362 | SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32363 | PyObject *resultobj = 0; | |
32364 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32365 | PyObject *arg2 = (PyObject *) 0 ; | |
32366 | void *argp1 = 0 ; | |
32367 | int res1 = 0 ; | |
32368 | PyObject * obj0 = 0 ; | |
32369 | PyObject * obj1 = 0 ; | |
32370 | char * kwnames[] = { | |
32371 | (char *) "self",(char *) "obj", NULL | |
32372 | }; | |
32373 | ||
32374 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
32375 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
32376 | if (!SWIG_IsOK(res1)) { | |
32377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32378 | } | |
32379 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32380 | arg2 = obj1; | |
32381 | { | |
32382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32383 | (arg1)->SetData(arg2); | |
32384 | wxPyEndAllowThreads(__tstate); | |
32385 | if (PyErr_Occurred()) SWIG_fail; | |
32386 | } | |
32387 | resultobj = SWIG_Py_Void(); | |
32388 | return resultobj; | |
32389 | fail: | |
32390 | return NULL; | |
d14a1e28 RD |
32391 | } |
32392 | ||
32393 | ||
0085ce49 RD |
32394 | SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32395 | PyObject *resultobj = 0; | |
32396 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32397 | wxTreeItemId *result = 0 ; | |
32398 | void *argp1 = 0 ; | |
32399 | int res1 = 0 ; | |
32400 | PyObject *swig_obj[1] ; | |
32401 | ||
32402 | if (!args) SWIG_fail; | |
32403 | swig_obj[0] = args; | |
32404 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
32405 | if (!SWIG_IsOK(res1)) { | |
32406 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32407 | } | |
32408 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32409 | { | |
32410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2ef75293 | 32411 | { |
0085ce49 RD |
32412 | wxTreeItemId const &_result_ref = (arg1)->GetId(); |
32413 | result = (wxTreeItemId *) &_result_ref; | |
2ef75293 | 32414 | } |
0085ce49 RD |
32415 | wxPyEndAllowThreads(__tstate); |
32416 | if (PyErr_Occurred()) SWIG_fail; | |
32417 | } | |
32418 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32419 | return resultobj; | |
32420 | fail: | |
32421 | return NULL; | |
32422 | } | |
32423 | ||
32424 | ||
32425 | SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32426 | PyObject *resultobj = 0; | |
32427 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32428 | wxTreeItemId *arg2 = 0 ; | |
32429 | void *argp1 = 0 ; | |
32430 | int res1 = 0 ; | |
32431 | void *argp2 = 0 ; | |
32432 | int res2 = 0 ; | |
32433 | PyObject * obj0 = 0 ; | |
32434 | PyObject * obj1 = 0 ; | |
32435 | char * kwnames[] = { | |
32436 | (char *) "self",(char *) "id", NULL | |
32437 | }; | |
32438 | ||
32439 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
32440 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
32441 | if (!SWIG_IsOK(res1)) { | |
32442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32443 | } | |
32444 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32445 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
32446 | if (!SWIG_IsOK(res2)) { | |
32447 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
32448 | } | |
32449 | if (!argp2) { | |
32450 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
32451 | } | |
32452 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32453 | { | |
32454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32455 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
32456 | wxPyEndAllowThreads(__tstate); | |
32457 | if (PyErr_Occurred()) SWIG_fail; | |
32458 | } | |
32459 | resultobj = SWIG_Py_Void(); | |
32460 | return resultobj; | |
32461 | fail: | |
32462 | return NULL; | |
2ef75293 RD |
32463 | } |
32464 | ||
32465 | ||
0085ce49 RD |
32466 | SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32467 | PyObject *resultobj = 0; | |
32468 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32469 | void *argp1 = 0 ; | |
32470 | int res1 = 0 ; | |
32471 | PyObject *swig_obj[1] ; | |
32472 | ||
32473 | if (!args) SWIG_fail; | |
32474 | swig_obj[0] = args; | |
32475 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
32476 | if (!SWIG_IsOK(res1)) { | |
32477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32478 | } | |
32479 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32480 | { | |
32481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32482 | wxPyTreeItemData_Destroy(arg1); | |
32483 | wxPyEndAllowThreads(__tstate); | |
32484 | if (PyErr_Occurred()) SWIG_fail; | |
32485 | } | |
32486 | resultobj = SWIG_Py_Void(); | |
32487 | return resultobj; | |
32488 | fail: | |
32489 | return NULL; | |
2ef75293 RD |
32490 | } |
32491 | ||
32492 | ||
0085ce49 RD |
32493 | SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32494 | PyObject *obj; | |
32495 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32496 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj)); | |
32497 | return SWIG_Py_Void(); | |
2ef75293 RD |
32498 | } |
32499 | ||
0085ce49 RD |
32500 | SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32501 | return SWIG_Python_InitShadowInstance(args); | |
32502 | } | |
2ef75293 | 32503 | |
0085ce49 RD |
32504 | SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32505 | PyObject *resultobj = 0; | |
32506 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
32507 | int arg2 = (int) 0 ; | |
32508 | wxTreeEvent *result = 0 ; | |
32509 | int val1 ; | |
32510 | int ecode1 = 0 ; | |
32511 | int val2 ; | |
32512 | int ecode2 = 0 ; | |
32513 | PyObject * obj0 = 0 ; | |
32514 | PyObject * obj1 = 0 ; | |
32515 | char * kwnames[] = { | |
32516 | (char *) "commandType",(char *) "id", NULL | |
32517 | }; | |
32518 | ||
32519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
32520 | if (obj0) { | |
32521 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32522 | if (!SWIG_IsOK(ecode1)) { | |
32523 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
32524 | } | |
32525 | arg1 = static_cast< wxEventType >(val1); | |
32526 | } | |
32527 | if (obj1) { | |
32528 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32529 | if (!SWIG_IsOK(ecode2)) { | |
32530 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'"); | |
32531 | } | |
32532 | arg2 = static_cast< int >(val2); | |
32533 | } | |
32534 | { | |
32535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32536 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
32537 | wxPyEndAllowThreads(__tstate); | |
32538 | if (PyErr_Occurred()) SWIG_fail; | |
32539 | } | |
32540 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 ); | |
32541 | return resultobj; | |
32542 | fail: | |
32543 | return NULL; | |
70b7a5fe RD |
32544 | } |
32545 | ||
32546 | ||
0085ce49 RD |
32547 | SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32548 | PyObject *resultobj = 0; | |
32549 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32550 | wxTreeItemId result; | |
32551 | void *argp1 = 0 ; | |
32552 | int res1 = 0 ; | |
32553 | PyObject *swig_obj[1] ; | |
32554 | ||
32555 | if (!args) SWIG_fail; | |
32556 | swig_obj[0] = args; | |
32557 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32558 | if (!SWIG_IsOK(res1)) { | |
32559 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
32560 | } | |
32561 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32562 | { | |
32563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32564 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
32565 | wxPyEndAllowThreads(__tstate); | |
32566 | if (PyErr_Occurred()) SWIG_fail; | |
32567 | } | |
32568 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
32569 | return resultobj; | |
32570 | fail: | |
32571 | return NULL; | |
32572 | } | |
32573 | ||
32574 | ||
32575 | SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32576 | PyObject *resultobj = 0; | |
32577 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32578 | wxTreeItemId *arg2 = 0 ; | |
32579 | void *argp1 = 0 ; | |
32580 | int res1 = 0 ; | |
32581 | void *argp2 = 0 ; | |
32582 | int res2 = 0 ; | |
32583 | PyObject * obj0 = 0 ; | |
32584 | PyObject * obj1 = 0 ; | |
32585 | char * kwnames[] = { | |
32586 | (char *) "self",(char *) "item", NULL | |
32587 | }; | |
32588 | ||
32589 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
32590 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32591 | if (!SWIG_IsOK(res1)) { | |
32592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
32593 | } | |
32594 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32595 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
32596 | if (!SWIG_IsOK(res2)) { | |
32597 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
32598 | } | |
32599 | if (!argp2) { | |
32600 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
32601 | } | |
32602 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32603 | { | |
32604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32605 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
32606 | wxPyEndAllowThreads(__tstate); | |
32607 | if (PyErr_Occurred()) SWIG_fail; | |
32608 | } | |
32609 | resultobj = SWIG_Py_Void(); | |
32610 | return resultobj; | |
32611 | fail: | |
32612 | return NULL; | |
2ef75293 RD |
32613 | } |
32614 | ||
32615 | ||
0085ce49 RD |
32616 | SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32617 | PyObject *resultobj = 0; | |
32618 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32619 | wxTreeItemId result; | |
32620 | void *argp1 = 0 ; | |
32621 | int res1 = 0 ; | |
32622 | PyObject *swig_obj[1] ; | |
32623 | ||
32624 | if (!args) SWIG_fail; | |
32625 | swig_obj[0] = args; | |
32626 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32627 | if (!SWIG_IsOK(res1)) { | |
32628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
32629 | } | |
32630 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32631 | { | |
32632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32633 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
32634 | wxPyEndAllowThreads(__tstate); | |
32635 | if (PyErr_Occurred()) SWIG_fail; | |
32636 | } | |
32637 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
32638 | return resultobj; | |
32639 | fail: | |
32640 | return NULL; | |
32641 | } | |
32642 | ||
32643 | ||
32644 | SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32645 | PyObject *resultobj = 0; | |
32646 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32647 | wxTreeItemId *arg2 = 0 ; | |
32648 | void *argp1 = 0 ; | |
32649 | int res1 = 0 ; | |
32650 | void *argp2 = 0 ; | |
32651 | int res2 = 0 ; | |
32652 | PyObject * obj0 = 0 ; | |
32653 | PyObject * obj1 = 0 ; | |
32654 | char * kwnames[] = { | |
32655 | (char *) "self",(char *) "item", NULL | |
32656 | }; | |
32657 | ||
32658 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
32659 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32660 | if (!SWIG_IsOK(res1)) { | |
32661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
32662 | } | |
32663 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32664 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
32665 | if (!SWIG_IsOK(res2)) { | |
32666 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
32667 | } | |
32668 | if (!argp2) { | |
32669 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
32670 | } | |
32671 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32672 | { | |
32673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32674 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
32675 | wxPyEndAllowThreads(__tstate); | |
32676 | if (PyErr_Occurred()) SWIG_fail; | |
32677 | } | |
32678 | resultobj = SWIG_Py_Void(); | |
32679 | return resultobj; | |
32680 | fail: | |
32681 | return NULL; | |
2ef75293 RD |
32682 | } |
32683 | ||
32684 | ||
0085ce49 RD |
32685 | SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32686 | PyObject *resultobj = 0; | |
32687 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32688 | wxPoint result; | |
32689 | void *argp1 = 0 ; | |
32690 | int res1 = 0 ; | |
32691 | PyObject *swig_obj[1] ; | |
32692 | ||
32693 | if (!args) SWIG_fail; | |
32694 | swig_obj[0] = args; | |
32695 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32696 | if (!SWIG_IsOK(res1)) { | |
32697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
32698 | } | |
32699 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32700 | { | |
32701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32702 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
32703 | wxPyEndAllowThreads(__tstate); | |
32704 | if (PyErr_Occurred()) SWIG_fail; | |
32705 | } | |
32706 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
32707 | return resultobj; | |
32708 | fail: | |
32709 | return NULL; | |
32710 | } | |
32711 | ||
32712 | ||
32713 | SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32714 | PyObject *resultobj = 0; | |
32715 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32716 | wxPoint *arg2 = 0 ; | |
32717 | void *argp1 = 0 ; | |
32718 | int res1 = 0 ; | |
32719 | wxPoint temp2 ; | |
32720 | PyObject * obj0 = 0 ; | |
32721 | PyObject * obj1 = 0 ; | |
32722 | char * kwnames[] = { | |
32723 | (char *) "self",(char *) "pt", NULL | |
32724 | }; | |
32725 | ||
32726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
32727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32728 | if (!SWIG_IsOK(res1)) { | |
32729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
32730 | } | |
32731 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32732 | { | |
32733 | arg2 = &temp2; | |
32734 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
32735 | } | |
32736 | { | |
32737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32738 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
32739 | wxPyEndAllowThreads(__tstate); | |
32740 | if (PyErr_Occurred()) SWIG_fail; | |
32741 | } | |
32742 | resultobj = SWIG_Py_Void(); | |
32743 | return resultobj; | |
32744 | fail: | |
32745 | return NULL; | |
d14a1e28 RD |
32746 | } |
32747 | ||
32748 | ||
0085ce49 RD |
32749 | SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32750 | PyObject *resultobj = 0; | |
32751 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32752 | wxKeyEvent *result = 0 ; | |
32753 | void *argp1 = 0 ; | |
32754 | int res1 = 0 ; | |
32755 | PyObject *swig_obj[1] ; | |
32756 | ||
32757 | if (!args) SWIG_fail; | |
32758 | swig_obj[0] = args; | |
32759 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32760 | if (!SWIG_IsOK(res1)) { | |
32761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
32762 | } | |
32763 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32764 | { | |
32765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 32766 | { |
0085ce49 RD |
32767 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); |
32768 | result = (wxKeyEvent *) &_result_ref; | |
d14a1e28 | 32769 | } |
0085ce49 RD |
32770 | wxPyEndAllowThreads(__tstate); |
32771 | if (PyErr_Occurred()) SWIG_fail; | |
32772 | } | |
32773 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 ); | |
32774 | return resultobj; | |
32775 | fail: | |
32776 | return NULL; | |
d14a1e28 RD |
32777 | } |
32778 | ||
32779 | ||
0085ce49 RD |
32780 | SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32781 | PyObject *resultobj = 0; | |
32782 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32783 | int result; | |
32784 | void *argp1 = 0 ; | |
32785 | int res1 = 0 ; | |
32786 | PyObject *swig_obj[1] ; | |
32787 | ||
32788 | if (!args) SWIG_fail; | |
32789 | swig_obj[0] = args; | |
32790 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32791 | if (!SWIG_IsOK(res1)) { | |
32792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
32793 | } | |
32794 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32795 | { | |
32796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32797 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
32798 | wxPyEndAllowThreads(__tstate); | |
32799 | if (PyErr_Occurred()) SWIG_fail; | |
32800 | } | |
32801 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
32802 | return resultobj; | |
32803 | fail: | |
32804 | return NULL; | |
32805 | } | |
32806 | ||
32807 | ||
32808 | SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32809 | PyObject *resultobj = 0; | |
32810 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32811 | wxKeyEvent *arg2 = 0 ; | |
32812 | void *argp1 = 0 ; | |
32813 | int res1 = 0 ; | |
32814 | void *argp2 = 0 ; | |
32815 | int res2 = 0 ; | |
32816 | PyObject * obj0 = 0 ; | |
32817 | PyObject * obj1 = 0 ; | |
32818 | char * kwnames[] = { | |
32819 | (char *) "self",(char *) "evt", NULL | |
32820 | }; | |
32821 | ||
32822 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
32823 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32824 | if (!SWIG_IsOK(res1)) { | |
32825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
32826 | } | |
32827 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32828 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0); | |
32829 | if (!SWIG_IsOK(res2)) { | |
32830 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
32831 | } | |
32832 | if (!argp2) { | |
32833 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
32834 | } | |
32835 | arg2 = reinterpret_cast< wxKeyEvent * >(argp2); | |
32836 | { | |
32837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32838 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
32839 | wxPyEndAllowThreads(__tstate); | |
32840 | if (PyErr_Occurred()) SWIG_fail; | |
32841 | } | |
32842 | resultobj = SWIG_Py_Void(); | |
32843 | return resultobj; | |
32844 | fail: | |
32845 | return NULL; | |
d14a1e28 RD |
32846 | } |
32847 | ||
32848 | ||
0085ce49 RD |
32849 | SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32850 | PyObject *resultobj = 0; | |
32851 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32852 | wxString *result = 0 ; | |
32853 | void *argp1 = 0 ; | |
32854 | int res1 = 0 ; | |
32855 | PyObject *swig_obj[1] ; | |
32856 | ||
32857 | if (!args) SWIG_fail; | |
32858 | swig_obj[0] = args; | |
32859 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32860 | if (!SWIG_IsOK(res1)) { | |
32861 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
32862 | } | |
32863 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32864 | { | |
32865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 32866 | { |
0085ce49 RD |
32867 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); |
32868 | result = (wxString *) &_result_ref; | |
093d3ff1 | 32869 | } |
0085ce49 RD |
32870 | wxPyEndAllowThreads(__tstate); |
32871 | if (PyErr_Occurred()) SWIG_fail; | |
32872 | } | |
32873 | { | |
32874 | #if wxUSE_UNICODE | |
32875 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32876 | #else | |
32877 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32878 | #endif | |
32879 | } | |
32880 | return resultobj; | |
32881 | fail: | |
32882 | return NULL; | |
32883 | } | |
32884 | ||
32885 | ||
32886 | SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32887 | PyObject *resultobj = 0; | |
32888 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32889 | wxString *arg2 = 0 ; | |
32890 | void *argp1 = 0 ; | |
32891 | int res1 = 0 ; | |
32892 | bool temp2 = false ; | |
32893 | PyObject * obj0 = 0 ; | |
32894 | PyObject * obj1 = 0 ; | |
32895 | char * kwnames[] = { | |
32896 | (char *) "self",(char *) "label", NULL | |
32897 | }; | |
32898 | ||
32899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
32900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32901 | if (!SWIG_IsOK(res1)) { | |
32902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
32903 | } | |
32904 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32905 | { | |
32906 | arg2 = wxString_in_helper(obj1); | |
32907 | if (arg2 == NULL) SWIG_fail; | |
32908 | temp2 = true; | |
32909 | } | |
32910 | { | |
32911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32912 | (arg1)->SetLabel((wxString const &)*arg2); | |
32913 | wxPyEndAllowThreads(__tstate); | |
32914 | if (PyErr_Occurred()) SWIG_fail; | |
32915 | } | |
32916 | resultobj = SWIG_Py_Void(); | |
32917 | { | |
32918 | if (temp2) | |
32919 | delete arg2; | |
32920 | } | |
32921 | return resultobj; | |
32922 | fail: | |
32923 | { | |
32924 | if (temp2) | |
32925 | delete arg2; | |
32926 | } | |
32927 | return NULL; | |
d14a1e28 RD |
32928 | } |
32929 | ||
32930 | ||
0085ce49 RD |
32931 | SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32932 | PyObject *resultobj = 0; | |
32933 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32934 | bool result; | |
32935 | void *argp1 = 0 ; | |
32936 | int res1 = 0 ; | |
32937 | PyObject *swig_obj[1] ; | |
32938 | ||
32939 | if (!args) SWIG_fail; | |
32940 | swig_obj[0] = args; | |
32941 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32942 | if (!SWIG_IsOK(res1)) { | |
32943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
32944 | } | |
32945 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32946 | { | |
32947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32948 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
32949 | wxPyEndAllowThreads(__tstate); | |
32950 | if (PyErr_Occurred()) SWIG_fail; | |
32951 | } | |
32952 | { | |
32953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32954 | } | |
32955 | return resultobj; | |
32956 | fail: | |
32957 | return NULL; | |
32958 | } | |
32959 | ||
32960 | ||
32961 | SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32962 | PyObject *resultobj = 0; | |
32963 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
32964 | bool arg2 ; | |
32965 | void *argp1 = 0 ; | |
32966 | int res1 = 0 ; | |
32967 | bool val2 ; | |
32968 | int ecode2 = 0 ; | |
32969 | PyObject * obj0 = 0 ; | |
32970 | PyObject * obj1 = 0 ; | |
32971 | char * kwnames[] = { | |
32972 | (char *) "self",(char *) "editCancelled", NULL | |
32973 | }; | |
32974 | ||
32975 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail; | |
32976 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
32977 | if (!SWIG_IsOK(res1)) { | |
32978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
32979 | } | |
32980 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
32981 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
32982 | if (!SWIG_IsOK(ecode2)) { | |
32983 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'"); | |
32984 | } | |
32985 | arg2 = static_cast< bool >(val2); | |
32986 | { | |
32987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32988 | (arg1)->SetEditCanceled(arg2); | |
32989 | wxPyEndAllowThreads(__tstate); | |
32990 | if (PyErr_Occurred()) SWIG_fail; | |
32991 | } | |
32992 | resultobj = SWIG_Py_Void(); | |
32993 | return resultobj; | |
32994 | fail: | |
32995 | return NULL; | |
32996 | } | |
32997 | ||
32998 | ||
32999 | SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33000 | PyObject *resultobj = 0; | |
33001 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33002 | wxString *arg2 = 0 ; | |
33003 | void *argp1 = 0 ; | |
33004 | int res1 = 0 ; | |
33005 | bool temp2 = false ; | |
33006 | PyObject * obj0 = 0 ; | |
33007 | PyObject * obj1 = 0 ; | |
33008 | char * kwnames[] = { | |
33009 | (char *) "self",(char *) "toolTip", NULL | |
33010 | }; | |
33011 | ||
33012 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail; | |
33013 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33014 | if (!SWIG_IsOK(res1)) { | |
33015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33016 | } | |
33017 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33018 | { | |
33019 | arg2 = wxString_in_helper(obj1); | |
33020 | if (arg2 == NULL) SWIG_fail; | |
33021 | temp2 = true; | |
33022 | } | |
33023 | { | |
33024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33025 | (arg1)->SetToolTip((wxString const &)*arg2); | |
33026 | wxPyEndAllowThreads(__tstate); | |
33027 | if (PyErr_Occurred()) SWIG_fail; | |
33028 | } | |
33029 | resultobj = SWIG_Py_Void(); | |
33030 | { | |
33031 | if (temp2) | |
33032 | delete arg2; | |
33033 | } | |
33034 | return resultobj; | |
33035 | fail: | |
33036 | { | |
33037 | if (temp2) | |
33038 | delete arg2; | |
33039 | } | |
33040 | return NULL; | |
d14a1e28 RD |
33041 | } |
33042 | ||
33043 | ||
0085ce49 RD |
33044 | SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33045 | PyObject *resultobj = 0; | |
33046 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33047 | wxString result; | |
33048 | void *argp1 = 0 ; | |
33049 | int res1 = 0 ; | |
33050 | PyObject *swig_obj[1] ; | |
33051 | ||
33052 | if (!args) SWIG_fail; | |
33053 | swig_obj[0] = args; | |
33054 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33055 | if (!SWIG_IsOK(res1)) { | |
33056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33057 | } | |
33058 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33059 | { | |
33060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33061 | result = (arg1)->GetToolTip(); | |
33062 | wxPyEndAllowThreads(__tstate); | |
33063 | if (PyErr_Occurred()) SWIG_fail; | |
33064 | } | |
33065 | { | |
33066 | #if wxUSE_UNICODE | |
33067 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33068 | #else | |
33069 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33070 | #endif | |
33071 | } | |
33072 | return resultobj; | |
33073 | fail: | |
33074 | return NULL; | |
33075 | } | |
33076 | ||
33077 | ||
33078 | SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33079 | PyObject *obj; | |
33080 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33081 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj)); | |
33082 | return SWIG_Py_Void(); | |
33083 | } | |
33084 | ||
33085 | SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33086 | return SWIG_Python_InitShadowInstance(args); | |
33087 | } | |
33088 | ||
33089 | SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33090 | PyObject *resultobj = 0; | |
33091 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33092 | int arg2 = (int) -1 ; | |
33093 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
33094 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33095 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33096 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33097 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
33098 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
33099 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
33100 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
33101 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33102 | wxPyTreeCtrl *result = 0 ; | |
33103 | void *argp1 = 0 ; | |
33104 | int res1 = 0 ; | |
33105 | int val2 ; | |
33106 | int ecode2 = 0 ; | |
33107 | wxPoint temp3 ; | |
33108 | wxSize temp4 ; | |
33109 | long val5 ; | |
33110 | int ecode5 = 0 ; | |
33111 | void *argp6 = 0 ; | |
33112 | int res6 = 0 ; | |
33113 | bool temp7 = false ; | |
33114 | PyObject * obj0 = 0 ; | |
33115 | PyObject * obj1 = 0 ; | |
33116 | PyObject * obj2 = 0 ; | |
33117 | PyObject * obj3 = 0 ; | |
33118 | PyObject * obj4 = 0 ; | |
33119 | PyObject * obj5 = 0 ; | |
33120 | PyObject * obj6 = 0 ; | |
33121 | char * kwnames[] = { | |
33122 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33123 | }; | |
33124 | ||
33125 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
33126 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33127 | if (!SWIG_IsOK(res1)) { | |
33128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
33129 | } | |
33130 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
33131 | if (obj1) { | |
33132 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33133 | if (!SWIG_IsOK(ecode2)) { | |
33134 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'"); | |
33135 | } | |
33136 | arg2 = static_cast< int >(val2); | |
33137 | } | |
33138 | if (obj2) { | |
d14a1e28 | 33139 | { |
0085ce49 RD |
33140 | arg3 = &temp3; |
33141 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 33142 | } |
0085ce49 RD |
33143 | } |
33144 | if (obj3) { | |
093d3ff1 | 33145 | { |
0085ce49 RD |
33146 | arg4 = &temp4; |
33147 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 33148 | } |
0085ce49 RD |
33149 | } |
33150 | if (obj4) { | |
33151 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
33152 | if (!SWIG_IsOK(ecode5)) { | |
33153 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'"); | |
33154 | } | |
33155 | arg5 = static_cast< long >(val5); | |
33156 | } | |
33157 | if (obj5) { | |
33158 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
33159 | if (!SWIG_IsOK(res6)) { | |
33160 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 33161 | } |
0085ce49 RD |
33162 | if (!argp6) { |
33163 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 33164 | } |
0085ce49 RD |
33165 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
33166 | } | |
33167 | if (obj6) { | |
4f89f6a3 | 33168 | { |
0085ce49 RD |
33169 | arg7 = wxString_in_helper(obj6); |
33170 | if (arg7 == NULL) SWIG_fail; | |
33171 | temp7 = true; | |
4f89f6a3 | 33172 | } |
0085ce49 RD |
33173 | } |
33174 | { | |
33175 | if (!wxPyCheckForApp()) SWIG_fail; | |
33176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33177 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
33178 | wxPyEndAllowThreads(__tstate); | |
33179 | if (PyErr_Occurred()) SWIG_fail; | |
33180 | } | |
33181 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 ); | |
33182 | { | |
33183 | if (temp7) | |
33184 | delete arg7; | |
33185 | } | |
33186 | return resultobj; | |
33187 | fail: | |
33188 | { | |
33189 | if (temp7) | |
33190 | delete arg7; | |
33191 | } | |
33192 | return NULL; | |
d14a1e28 RD |
33193 | } |
33194 | ||
33195 | ||
0085ce49 RD |
33196 | SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33197 | PyObject *resultobj = 0; | |
33198 | wxPyTreeCtrl *result = 0 ; | |
33199 | ||
33200 | if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail; | |
33201 | { | |
33202 | if (!wxPyCheckForApp()) SWIG_fail; | |
33203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33204 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
33205 | wxPyEndAllowThreads(__tstate); | |
33206 | if (PyErr_Occurred()) SWIG_fail; | |
33207 | } | |
33208 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 ); | |
33209 | return resultobj; | |
33210 | fail: | |
33211 | return NULL; | |
33212 | } | |
33213 | ||
33214 | ||
33215 | SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33216 | PyObject *resultobj = 0; | |
33217 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33218 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33219 | int arg3 = (int) -1 ; | |
33220 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
33221 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
33222 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
33223 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
33224 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
33225 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
33226 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
33227 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
33228 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
33229 | bool result; | |
33230 | void *argp1 = 0 ; | |
33231 | int res1 = 0 ; | |
33232 | void *argp2 = 0 ; | |
33233 | int res2 = 0 ; | |
33234 | int val3 ; | |
33235 | int ecode3 = 0 ; | |
33236 | wxPoint temp4 ; | |
33237 | wxSize temp5 ; | |
33238 | long val6 ; | |
33239 | int ecode6 = 0 ; | |
33240 | void *argp7 = 0 ; | |
33241 | int res7 = 0 ; | |
33242 | bool temp8 = false ; | |
33243 | PyObject * obj0 = 0 ; | |
33244 | PyObject * obj1 = 0 ; | |
33245 | PyObject * obj2 = 0 ; | |
33246 | PyObject * obj3 = 0 ; | |
33247 | PyObject * obj4 = 0 ; | |
33248 | PyObject * obj5 = 0 ; | |
33249 | PyObject * obj6 = 0 ; | |
33250 | PyObject * obj7 = 0 ; | |
33251 | char * kwnames[] = { | |
33252 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33253 | }; | |
33254 | ||
33255 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
33256 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33257 | if (!SWIG_IsOK(res1)) { | |
33258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33259 | } | |
33260 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33261 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33262 | if (!SWIG_IsOK(res2)) { | |
33263 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
33264 | } | |
33265 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
33266 | if (obj2) { | |
33267 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33268 | if (!SWIG_IsOK(ecode3)) { | |
33269 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
33270 | } | |
33271 | arg3 = static_cast< int >(val3); | |
33272 | } | |
33273 | if (obj3) { | |
4f89f6a3 | 33274 | { |
0085ce49 RD |
33275 | arg4 = &temp4; |
33276 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 33277 | } |
0085ce49 RD |
33278 | } |
33279 | if (obj4) { | |
d14a1e28 | 33280 | { |
0085ce49 RD |
33281 | arg5 = &temp5; |
33282 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 33283 | } |
0085ce49 RD |
33284 | } |
33285 | if (obj5) { | |
33286 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
33287 | if (!SWIG_IsOK(ecode6)) { | |
33288 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
33289 | } | |
33290 | arg6 = static_cast< long >(val6); | |
33291 | } | |
33292 | if (obj6) { | |
33293 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
33294 | if (!SWIG_IsOK(res7)) { | |
33295 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
4f89f6a3 | 33296 | } |
0085ce49 RD |
33297 | if (!argp7) { |
33298 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 33299 | } |
0085ce49 RD |
33300 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
33301 | } | |
33302 | if (obj7) { | |
4276dc52 | 33303 | { |
0085ce49 RD |
33304 | arg8 = wxString_in_helper(obj7); |
33305 | if (arg8 == NULL) SWIG_fail; | |
33306 | temp8 = true; | |
4276dc52 | 33307 | } |
0085ce49 RD |
33308 | } |
33309 | { | |
33310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33311 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
33312 | wxPyEndAllowThreads(__tstate); | |
33313 | if (PyErr_Occurred()) SWIG_fail; | |
33314 | } | |
33315 | { | |
33316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33317 | } | |
33318 | { | |
33319 | if (temp8) | |
33320 | delete arg8; | |
33321 | } | |
33322 | return resultobj; | |
33323 | fail: | |
33324 | { | |
33325 | if (temp8) | |
33326 | delete arg8; | |
33327 | } | |
33328 | return NULL; | |
33329 | } | |
33330 | ||
33331 | ||
33332 | SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33333 | PyObject *resultobj = 0; | |
33334 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33335 | PyObject *arg2 = (PyObject *) 0 ; | |
33336 | PyObject *arg3 = (PyObject *) 0 ; | |
33337 | void *argp1 = 0 ; | |
33338 | int res1 = 0 ; | |
33339 | PyObject * obj0 = 0 ; | |
33340 | PyObject * obj1 = 0 ; | |
33341 | PyObject * obj2 = 0 ; | |
33342 | char * kwnames[] = { | |
33343 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
33344 | }; | |
33345 | ||
33346 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33347 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33348 | if (!SWIG_IsOK(res1)) { | |
33349 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33350 | } | |
33351 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33352 | arg2 = obj1; | |
33353 | arg3 = obj2; | |
33354 | { | |
33355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33356 | (arg1)->_setCallbackInfo(arg2,arg3); | |
33357 | wxPyEndAllowThreads(__tstate); | |
33358 | if (PyErr_Occurred()) SWIG_fail; | |
33359 | } | |
33360 | resultobj = SWIG_Py_Void(); | |
33361 | return resultobj; | |
33362 | fail: | |
33363 | return NULL; | |
d14a1e28 RD |
33364 | } |
33365 | ||
33366 | ||
0085ce49 RD |
33367 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33368 | PyObject *resultobj = 0; | |
33369 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
e9d6f3a4 | 33370 | unsigned int result; |
0085ce49 RD |
33371 | void *argp1 = 0 ; |
33372 | int res1 = 0 ; | |
33373 | PyObject *swig_obj[1] ; | |
33374 | ||
33375 | if (!args) SWIG_fail; | |
33376 | swig_obj[0] = args; | |
33377 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33378 | if (!SWIG_IsOK(res1)) { | |
33379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33380 | } | |
33381 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33382 | { | |
33383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e9d6f3a4 | 33384 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount(); |
0085ce49 RD |
33385 | wxPyEndAllowThreads(__tstate); |
33386 | if (PyErr_Occurred()) SWIG_fail; | |
33387 | } | |
e9d6f3a4 | 33388 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
0085ce49 RD |
33389 | return resultobj; |
33390 | fail: | |
33391 | return NULL; | |
d14a1e28 RD |
33392 | } |
33393 | ||
33394 | ||
0085ce49 RD |
33395 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33396 | PyObject *resultobj = 0; | |
33397 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33398 | unsigned int result; | |
33399 | void *argp1 = 0 ; | |
33400 | int res1 = 0 ; | |
33401 | PyObject *swig_obj[1] ; | |
33402 | ||
33403 | if (!args) SWIG_fail; | |
33404 | swig_obj[0] = args; | |
33405 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33406 | if (!SWIG_IsOK(res1)) { | |
33407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33408 | } | |
33409 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33410 | { | |
33411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33412 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
33413 | wxPyEndAllowThreads(__tstate); | |
33414 | if (PyErr_Occurred()) SWIG_fail; | |
33415 | } | |
33416 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); | |
33417 | return resultobj; | |
33418 | fail: | |
33419 | return NULL; | |
33420 | } | |
33421 | ||
33422 | ||
33423 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33424 | PyObject *resultobj = 0; | |
33425 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33426 | unsigned int arg2 ; | |
33427 | void *argp1 = 0 ; | |
33428 | int res1 = 0 ; | |
33429 | unsigned int val2 ; | |
33430 | int ecode2 = 0 ; | |
33431 | PyObject * obj0 = 0 ; | |
33432 | PyObject * obj1 = 0 ; | |
33433 | char * kwnames[] = { | |
33434 | (char *) "self",(char *) "indent", NULL | |
33435 | }; | |
33436 | ||
33437 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
33438 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33439 | if (!SWIG_IsOK(res1)) { | |
33440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33441 | } | |
33442 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33443 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
33444 | if (!SWIG_IsOK(ecode2)) { | |
33445 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'"); | |
33446 | } | |
33447 | arg2 = static_cast< unsigned int >(val2); | |
33448 | { | |
33449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33450 | (arg1)->SetIndent(arg2); | |
33451 | wxPyEndAllowThreads(__tstate); | |
33452 | if (PyErr_Occurred()) SWIG_fail; | |
33453 | } | |
33454 | resultobj = SWIG_Py_Void(); | |
33455 | return resultobj; | |
33456 | fail: | |
33457 | return NULL; | |
d14a1e28 RD |
33458 | } |
33459 | ||
33460 | ||
0085ce49 RD |
33461 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33462 | PyObject *resultobj = 0; | |
33463 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33464 | unsigned int result; | |
33465 | void *argp1 = 0 ; | |
33466 | int res1 = 0 ; | |
33467 | PyObject *swig_obj[1] ; | |
33468 | ||
33469 | if (!args) SWIG_fail; | |
33470 | swig_obj[0] = args; | |
33471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33472 | if (!SWIG_IsOK(res1)) { | |
33473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33474 | } | |
33475 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33476 | { | |
33477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33478 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
33479 | wxPyEndAllowThreads(__tstate); | |
33480 | if (PyErr_Occurred()) SWIG_fail; | |
33481 | } | |
33482 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); | |
33483 | return resultobj; | |
33484 | fail: | |
33485 | return NULL; | |
33486 | } | |
33487 | ||
33488 | ||
33489 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33490 | PyObject *resultobj = 0; | |
33491 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33492 | unsigned int arg2 ; | |
33493 | void *argp1 = 0 ; | |
33494 | int res1 = 0 ; | |
33495 | unsigned int val2 ; | |
33496 | int ecode2 = 0 ; | |
33497 | PyObject * obj0 = 0 ; | |
33498 | PyObject * obj1 = 0 ; | |
33499 | char * kwnames[] = { | |
33500 | (char *) "self",(char *) "spacing", NULL | |
33501 | }; | |
33502 | ||
33503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail; | |
33504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33505 | if (!SWIG_IsOK(res1)) { | |
33506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33507 | } | |
33508 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33509 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
33510 | if (!SWIG_IsOK(ecode2)) { | |
33511 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'"); | |
33512 | } | |
33513 | arg2 = static_cast< unsigned int >(val2); | |
33514 | { | |
33515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33516 | (arg1)->SetSpacing(arg2); | |
33517 | wxPyEndAllowThreads(__tstate); | |
33518 | if (PyErr_Occurred()) SWIG_fail; | |
33519 | } | |
33520 | resultobj = SWIG_Py_Void(); | |
33521 | return resultobj; | |
33522 | fail: | |
33523 | return NULL; | |
d14a1e28 RD |
33524 | } |
33525 | ||
33526 | ||
0085ce49 RD |
33527 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33528 | PyObject *resultobj = 0; | |
33529 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33530 | wxImageList *result = 0 ; | |
33531 | void *argp1 = 0 ; | |
33532 | int res1 = 0 ; | |
33533 | PyObject *swig_obj[1] ; | |
33534 | ||
33535 | if (!args) SWIG_fail; | |
33536 | swig_obj[0] = args; | |
33537 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33538 | if (!SWIG_IsOK(res1)) { | |
33539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33540 | } | |
33541 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33542 | { | |
33543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33544 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
33545 | wxPyEndAllowThreads(__tstate); | |
33546 | if (PyErr_Occurred()) SWIG_fail; | |
33547 | } | |
33548 | { | |
33549 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
33550 | } | |
33551 | return resultobj; | |
33552 | fail: | |
33553 | return NULL; | |
d14a1e28 RD |
33554 | } |
33555 | ||
33556 | ||
0085ce49 RD |
33557 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33558 | PyObject *resultobj = 0; | |
33559 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33560 | wxImageList *result = 0 ; | |
33561 | void *argp1 = 0 ; | |
33562 | int res1 = 0 ; | |
33563 | PyObject *swig_obj[1] ; | |
33564 | ||
33565 | if (!args) SWIG_fail; | |
33566 | swig_obj[0] = args; | |
33567 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33568 | if (!SWIG_IsOK(res1)) { | |
33569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33570 | } | |
33571 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33572 | { | |
33573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33574 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
33575 | wxPyEndAllowThreads(__tstate); | |
33576 | if (PyErr_Occurred()) SWIG_fail; | |
33577 | } | |
33578 | { | |
33579 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
33580 | } | |
33581 | return resultobj; | |
33582 | fail: | |
33583 | return NULL; | |
33584 | } | |
33585 | ||
33586 | ||
33587 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33588 | PyObject *resultobj = 0; | |
33589 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33590 | wxImageList *arg2 = (wxImageList *) 0 ; | |
33591 | void *argp1 = 0 ; | |
33592 | int res1 = 0 ; | |
33593 | void *argp2 = 0 ; | |
33594 | int res2 = 0 ; | |
33595 | PyObject * obj0 = 0 ; | |
33596 | PyObject * obj1 = 0 ; | |
33597 | char * kwnames[] = { | |
33598 | (char *) "self",(char *) "imageList", NULL | |
33599 | }; | |
33600 | ||
33601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
33602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33603 | if (!SWIG_IsOK(res1)) { | |
33604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33605 | } | |
33606 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33607 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
33608 | if (!SWIG_IsOK(res2)) { | |
33609 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
33610 | } | |
33611 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
33612 | { | |
33613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33614 | (arg1)->SetImageList(arg2); | |
33615 | wxPyEndAllowThreads(__tstate); | |
33616 | if (PyErr_Occurred()) SWIG_fail; | |
33617 | } | |
33618 | resultobj = SWIG_Py_Void(); | |
33619 | return resultobj; | |
33620 | fail: | |
33621 | return NULL; | |
33622 | } | |
33623 | ||
33624 | ||
33625 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33626 | PyObject *resultobj = 0; | |
33627 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33628 | wxImageList *arg2 = (wxImageList *) 0 ; | |
33629 | void *argp1 = 0 ; | |
33630 | int res1 = 0 ; | |
33631 | void *argp2 = 0 ; | |
33632 | int res2 = 0 ; | |
33633 | PyObject * obj0 = 0 ; | |
33634 | PyObject * obj1 = 0 ; | |
33635 | char * kwnames[] = { | |
33636 | (char *) "self",(char *) "imageList", NULL | |
33637 | }; | |
33638 | ||
33639 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
33640 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33641 | if (!SWIG_IsOK(res1)) { | |
33642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33643 | } | |
33644 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33645 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
33646 | if (!SWIG_IsOK(res2)) { | |
33647 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
33648 | } | |
33649 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
33650 | { | |
33651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33652 | (arg1)->SetStateImageList(arg2); | |
33653 | wxPyEndAllowThreads(__tstate); | |
33654 | if (PyErr_Occurred()) SWIG_fail; | |
33655 | } | |
33656 | resultobj = SWIG_Py_Void(); | |
33657 | return resultobj; | |
33658 | fail: | |
33659 | return NULL; | |
33660 | } | |
33661 | ||
33662 | ||
33663 | SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33664 | PyObject *resultobj = 0; | |
33665 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33666 | wxImageList *arg2 = (wxImageList *) 0 ; | |
33667 | void *argp1 = 0 ; | |
33668 | int res1 = 0 ; | |
33669 | int res2 = 0 ; | |
33670 | PyObject * obj0 = 0 ; | |
33671 | PyObject * obj1 = 0 ; | |
33672 | char * kwnames[] = { | |
33673 | (char *) "self",(char *) "imageList", NULL | |
33674 | }; | |
33675 | ||
33676 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
33677 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33678 | if (!SWIG_IsOK(res1)) { | |
33679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33680 | } | |
33681 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33682 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
33683 | if (!SWIG_IsOK(res2)) { | |
33684 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
33685 | } | |
33686 | { | |
33687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33688 | (arg1)->AssignImageList(arg2); | |
33689 | wxPyEndAllowThreads(__tstate); | |
33690 | if (PyErr_Occurred()) SWIG_fail; | |
33691 | } | |
33692 | resultobj = SWIG_Py_Void(); | |
33693 | return resultobj; | |
33694 | fail: | |
33695 | return NULL; | |
33696 | } | |
33697 | ||
33698 | ||
33699 | SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33700 | PyObject *resultobj = 0; | |
33701 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33702 | wxImageList *arg2 = (wxImageList *) 0 ; | |
33703 | void *argp1 = 0 ; | |
33704 | int res1 = 0 ; | |
33705 | int res2 = 0 ; | |
33706 | PyObject * obj0 = 0 ; | |
33707 | PyObject * obj1 = 0 ; | |
33708 | char * kwnames[] = { | |
33709 | (char *) "self",(char *) "imageList", NULL | |
33710 | }; | |
33711 | ||
33712 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
33713 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33714 | if (!SWIG_IsOK(res1)) { | |
33715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33716 | } | |
33717 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33718 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
33719 | if (!SWIG_IsOK(res2)) { | |
33720 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
33721 | } | |
33722 | { | |
33723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33724 | (arg1)->AssignStateImageList(arg2); | |
33725 | wxPyEndAllowThreads(__tstate); | |
33726 | if (PyErr_Occurred()) SWIG_fail; | |
33727 | } | |
33728 | resultobj = SWIG_Py_Void(); | |
33729 | return resultobj; | |
33730 | fail: | |
33731 | return NULL; | |
33732 | } | |
33733 | ||
33734 | ||
33735 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33736 | PyObject *resultobj = 0; | |
33737 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33738 | wxTreeItemId *arg2 = 0 ; | |
33739 | wxString result; | |
33740 | void *argp1 = 0 ; | |
33741 | int res1 = 0 ; | |
33742 | void *argp2 = 0 ; | |
33743 | int res2 = 0 ; | |
33744 | PyObject * obj0 = 0 ; | |
33745 | PyObject * obj1 = 0 ; | |
33746 | char * kwnames[] = { | |
33747 | (char *) "self",(char *) "item", NULL | |
33748 | }; | |
33749 | ||
33750 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail; | |
33751 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33752 | if (!SWIG_IsOK(res1)) { | |
33753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33754 | } | |
33755 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33756 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33757 | if (!SWIG_IsOK(res2)) { | |
33758 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33759 | } | |
33760 | if (!argp2) { | |
33761 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33762 | } | |
33763 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33764 | { | |
33765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33766 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
33767 | wxPyEndAllowThreads(__tstate); | |
33768 | if (PyErr_Occurred()) SWIG_fail; | |
33769 | } | |
33770 | { | |
d14a1e28 | 33771 | #if wxUSE_UNICODE |
0085ce49 | 33772 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 33773 | #else |
0085ce49 | 33774 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 33775 | #endif |
0085ce49 RD |
33776 | } |
33777 | return resultobj; | |
33778 | fail: | |
33779 | return NULL; | |
33780 | } | |
33781 | ||
33782 | ||
33783 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33784 | PyObject *resultobj = 0; | |
33785 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33786 | wxTreeItemId *arg2 = 0 ; | |
33787 | wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; | |
33788 | int result; | |
33789 | void *argp1 = 0 ; | |
33790 | int res1 = 0 ; | |
33791 | void *argp2 = 0 ; | |
33792 | int res2 = 0 ; | |
33793 | int val3 ; | |
33794 | int ecode3 = 0 ; | |
33795 | PyObject * obj0 = 0 ; | |
33796 | PyObject * obj1 = 0 ; | |
33797 | PyObject * obj2 = 0 ; | |
33798 | char * kwnames[] = { | |
33799 | (char *) "self",(char *) "item",(char *) "which", NULL | |
33800 | }; | |
33801 | ||
33802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33804 | if (!SWIG_IsOK(res1)) { | |
33805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33806 | } | |
33807 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33808 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33809 | if (!SWIG_IsOK(res2)) { | |
33810 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33811 | } | |
33812 | if (!argp2) { | |
33813 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33814 | } | |
33815 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33816 | if (obj2) { | |
33817 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33818 | if (!SWIG_IsOK(ecode3)) { | |
33819 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'"); | |
33820 | } | |
33821 | arg3 = static_cast< wxTreeItemIcon >(val3); | |
33822 | } | |
33823 | { | |
33824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33825 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3); | |
33826 | wxPyEndAllowThreads(__tstate); | |
33827 | if (PyErr_Occurred()) SWIG_fail; | |
33828 | } | |
33829 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33830 | return resultobj; | |
33831 | fail: | |
33832 | return NULL; | |
33833 | } | |
33834 | ||
33835 | ||
33836 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33837 | PyObject *resultobj = 0; | |
33838 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33839 | wxTreeItemId *arg2 = 0 ; | |
33840 | wxPyTreeItemData *result = 0 ; | |
33841 | void *argp1 = 0 ; | |
33842 | int res1 = 0 ; | |
33843 | void *argp2 = 0 ; | |
33844 | int res2 = 0 ; | |
33845 | PyObject * obj0 = 0 ; | |
33846 | PyObject * obj1 = 0 ; | |
33847 | char * kwnames[] = { | |
33848 | (char *) "self",(char *) "item", NULL | |
33849 | }; | |
33850 | ||
33851 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail; | |
33852 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33853 | if (!SWIG_IsOK(res1)) { | |
33854 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33855 | } | |
33856 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33857 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33858 | if (!SWIG_IsOK(res2)) { | |
33859 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33860 | } | |
33861 | if (!argp2) { | |
33862 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33863 | } | |
33864 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33865 | { | |
33866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33867 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
33868 | wxPyEndAllowThreads(__tstate); | |
33869 | if (PyErr_Occurred()) SWIG_fail; | |
33870 | } | |
33871 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33872 | return resultobj; | |
33873 | fail: | |
33874 | return NULL; | |
33875 | } | |
33876 | ||
33877 | ||
33878 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33879 | PyObject *resultobj = 0; | |
33880 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33881 | wxTreeItemId *arg2 = 0 ; | |
33882 | PyObject *result = 0 ; | |
33883 | void *argp1 = 0 ; | |
33884 | int res1 = 0 ; | |
33885 | void *argp2 = 0 ; | |
33886 | int res2 = 0 ; | |
33887 | PyObject * obj0 = 0 ; | |
33888 | PyObject * obj1 = 0 ; | |
33889 | char * kwnames[] = { | |
33890 | (char *) "self",(char *) "item", NULL | |
33891 | }; | |
33892 | ||
33893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail; | |
33894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33895 | if (!SWIG_IsOK(res1)) { | |
33896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33897 | } | |
33898 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33899 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33900 | if (!SWIG_IsOK(res2)) { | |
33901 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33902 | } | |
33903 | if (!argp2) { | |
33904 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33905 | } | |
33906 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33907 | { | |
33908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33909 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
33910 | wxPyEndAllowThreads(__tstate); | |
33911 | if (PyErr_Occurred()) SWIG_fail; | |
33912 | } | |
33913 | resultobj = result; | |
33914 | return resultobj; | |
33915 | fail: | |
33916 | return NULL; | |
33917 | } | |
33918 | ||
33919 | ||
33920 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33921 | PyObject *resultobj = 0; | |
33922 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33923 | wxTreeItemId *arg2 = 0 ; | |
33924 | wxColour result; | |
33925 | void *argp1 = 0 ; | |
33926 | int res1 = 0 ; | |
33927 | void *argp2 = 0 ; | |
33928 | int res2 = 0 ; | |
33929 | PyObject * obj0 = 0 ; | |
33930 | PyObject * obj1 = 0 ; | |
33931 | char * kwnames[] = { | |
33932 | (char *) "self",(char *) "item", NULL | |
33933 | }; | |
33934 | ||
33935 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33936 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33937 | if (!SWIG_IsOK(res1)) { | |
33938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33939 | } | |
33940 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33941 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33942 | if (!SWIG_IsOK(res2)) { | |
33943 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33944 | } | |
33945 | if (!argp2) { | |
33946 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33947 | } | |
33948 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33949 | { | |
33950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33951 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
33952 | wxPyEndAllowThreads(__tstate); | |
33953 | if (PyErr_Occurred()) SWIG_fail; | |
33954 | } | |
33955 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33956 | return resultobj; | |
33957 | fail: | |
33958 | return NULL; | |
33959 | } | |
33960 | ||
33961 | ||
33962 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33963 | PyObject *resultobj = 0; | |
33964 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33965 | wxTreeItemId *arg2 = 0 ; | |
33966 | wxColour result; | |
33967 | void *argp1 = 0 ; | |
33968 | int res1 = 0 ; | |
33969 | void *argp2 = 0 ; | |
33970 | int res2 = 0 ; | |
33971 | PyObject * obj0 = 0 ; | |
33972 | PyObject * obj1 = 0 ; | |
33973 | char * kwnames[] = { | |
33974 | (char *) "self",(char *) "item", NULL | |
33975 | }; | |
33976 | ||
33977 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33978 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33979 | if (!SWIG_IsOK(res1)) { | |
33980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
33981 | } | |
33982 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
33983 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33984 | if (!SWIG_IsOK(res2)) { | |
33985 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33986 | } | |
33987 | if (!argp2) { | |
33988 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33989 | } | |
33990 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33991 | { | |
33992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33993 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
33994 | wxPyEndAllowThreads(__tstate); | |
33995 | if (PyErr_Occurred()) SWIG_fail; | |
33996 | } | |
33997 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33998 | return resultobj; | |
33999 | fail: | |
34000 | return NULL; | |
34001 | } | |
34002 | ||
34003 | ||
34004 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34005 | PyObject *resultobj = 0; | |
34006 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34007 | wxTreeItemId *arg2 = 0 ; | |
34008 | wxFont result; | |
34009 | void *argp1 = 0 ; | |
34010 | int res1 = 0 ; | |
34011 | void *argp2 = 0 ; | |
34012 | int res2 = 0 ; | |
34013 | PyObject * obj0 = 0 ; | |
34014 | PyObject * obj1 = 0 ; | |
34015 | char * kwnames[] = { | |
34016 | (char *) "self",(char *) "item", NULL | |
34017 | }; | |
34018 | ||
34019 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
34020 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34021 | if (!SWIG_IsOK(res1)) { | |
34022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34023 | } | |
34024 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34025 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34026 | if (!SWIG_IsOK(res2)) { | |
34027 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34028 | } | |
34029 | if (!argp2) { | |
34030 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34031 | } | |
34032 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34033 | { | |
34034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34035 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
34036 | wxPyEndAllowThreads(__tstate); | |
34037 | if (PyErr_Occurred()) SWIG_fail; | |
34038 | } | |
34039 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
34040 | return resultobj; | |
34041 | fail: | |
34042 | return NULL; | |
34043 | } | |
34044 | ||
34045 | ||
34046 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34047 | PyObject *resultobj = 0; | |
34048 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34049 | wxTreeItemId *arg2 = 0 ; | |
34050 | wxString *arg3 = 0 ; | |
34051 | void *argp1 = 0 ; | |
34052 | int res1 = 0 ; | |
34053 | void *argp2 = 0 ; | |
34054 | int res2 = 0 ; | |
34055 | bool temp3 = false ; | |
34056 | PyObject * obj0 = 0 ; | |
34057 | PyObject * obj1 = 0 ; | |
34058 | PyObject * obj2 = 0 ; | |
34059 | char * kwnames[] = { | |
34060 | (char *) "self",(char *) "item",(char *) "text", NULL | |
34061 | }; | |
34062 | ||
34063 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34064 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34065 | if (!SWIG_IsOK(res1)) { | |
34066 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34067 | } | |
34068 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34069 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34070 | if (!SWIG_IsOK(res2)) { | |
34071 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34072 | } | |
34073 | if (!argp2) { | |
34074 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34075 | } | |
34076 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34077 | { | |
34078 | arg3 = wxString_in_helper(obj2); | |
34079 | if (arg3 == NULL) SWIG_fail; | |
34080 | temp3 = true; | |
34081 | } | |
34082 | { | |
34083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34084 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
34085 | wxPyEndAllowThreads(__tstate); | |
34086 | if (PyErr_Occurred()) SWIG_fail; | |
34087 | } | |
34088 | resultobj = SWIG_Py_Void(); | |
34089 | { | |
34090 | if (temp3) | |
34091 | delete arg3; | |
34092 | } | |
34093 | return resultobj; | |
34094 | fail: | |
34095 | { | |
34096 | if (temp3) | |
34097 | delete arg3; | |
34098 | } | |
34099 | return NULL; | |
34100 | } | |
34101 | ||
34102 | ||
34103 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34104 | PyObject *resultobj = 0; | |
34105 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34106 | wxTreeItemId *arg2 = 0 ; | |
34107 | int arg3 ; | |
34108 | wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; | |
34109 | void *argp1 = 0 ; | |
34110 | int res1 = 0 ; | |
34111 | void *argp2 = 0 ; | |
34112 | int res2 = 0 ; | |
34113 | int val3 ; | |
34114 | int ecode3 = 0 ; | |
34115 | int val4 ; | |
34116 | int ecode4 = 0 ; | |
34117 | PyObject * obj0 = 0 ; | |
34118 | PyObject * obj1 = 0 ; | |
34119 | PyObject * obj2 = 0 ; | |
34120 | PyObject * obj3 = 0 ; | |
34121 | char * kwnames[] = { | |
34122 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
34123 | }; | |
34124 | ||
34125 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34126 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34127 | if (!SWIG_IsOK(res1)) { | |
34128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34129 | } | |
34130 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34131 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34132 | if (!SWIG_IsOK(res2)) { | |
34133 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34134 | } | |
34135 | if (!argp2) { | |
34136 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34137 | } | |
34138 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34139 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34140 | if (!SWIG_IsOK(ecode3)) { | |
34141 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'"); | |
34142 | } | |
34143 | arg3 = static_cast< int >(val3); | |
34144 | if (obj3) { | |
34145 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34146 | if (!SWIG_IsOK(ecode4)) { | |
34147 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'"); | |
34148 | } | |
34149 | arg4 = static_cast< wxTreeItemIcon >(val4); | |
34150 | } | |
34151 | { | |
34152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34153 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4); | |
34154 | wxPyEndAllowThreads(__tstate); | |
34155 | if (PyErr_Occurred()) SWIG_fail; | |
34156 | } | |
34157 | resultobj = SWIG_Py_Void(); | |
34158 | return resultobj; | |
34159 | fail: | |
34160 | return NULL; | |
34161 | } | |
34162 | ||
34163 | ||
34164 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34165 | PyObject *resultobj = 0; | |
34166 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34167 | wxTreeItemId *arg2 = 0 ; | |
34168 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
34169 | void *argp1 = 0 ; | |
34170 | int res1 = 0 ; | |
34171 | void *argp2 = 0 ; | |
34172 | int res2 = 0 ; | |
34173 | int res3 = 0 ; | |
34174 | PyObject * obj0 = 0 ; | |
34175 | PyObject * obj1 = 0 ; | |
34176 | PyObject * obj2 = 0 ; | |
34177 | char * kwnames[] = { | |
34178 | (char *) "self",(char *) "item",(char *) "data", NULL | |
34179 | }; | |
34180 | ||
34181 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34182 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34183 | if (!SWIG_IsOK(res1)) { | |
34184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34185 | } | |
34186 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34187 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34188 | if (!SWIG_IsOK(res2)) { | |
34189 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34190 | } | |
34191 | if (!argp2) { | |
34192 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34193 | } | |
34194 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34195 | res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
34196 | if (!SWIG_IsOK(res3)) { | |
34197 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'"); | |
34198 | } | |
34199 | { | |
34200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34201 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
34202 | wxPyEndAllowThreads(__tstate); | |
34203 | if (PyErr_Occurred()) SWIG_fail; | |
34204 | } | |
34205 | resultobj = SWIG_Py_Void(); | |
34206 | return resultobj; | |
34207 | fail: | |
34208 | return NULL; | |
34209 | } | |
34210 | ||
34211 | ||
34212 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34213 | PyObject *resultobj = 0; | |
34214 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34215 | wxTreeItemId *arg2 = 0 ; | |
34216 | PyObject *arg3 = (PyObject *) 0 ; | |
34217 | void *argp1 = 0 ; | |
34218 | int res1 = 0 ; | |
34219 | void *argp2 = 0 ; | |
34220 | int res2 = 0 ; | |
34221 | PyObject * obj0 = 0 ; | |
34222 | PyObject * obj1 = 0 ; | |
34223 | PyObject * obj2 = 0 ; | |
34224 | char * kwnames[] = { | |
34225 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
34226 | }; | |
34227 | ||
34228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34230 | if (!SWIG_IsOK(res1)) { | |
34231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34232 | } | |
34233 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34234 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34235 | if (!SWIG_IsOK(res2)) { | |
34236 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34237 | } | |
34238 | if (!argp2) { | |
34239 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34240 | } | |
34241 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34242 | arg3 = obj2; | |
34243 | { | |
34244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34245 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
34246 | wxPyEndAllowThreads(__tstate); | |
34247 | if (PyErr_Occurred()) SWIG_fail; | |
34248 | } | |
34249 | resultobj = SWIG_Py_Void(); | |
34250 | return resultobj; | |
34251 | fail: | |
34252 | return NULL; | |
34253 | } | |
34254 | ||
34255 | ||
34256 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34257 | PyObject *resultobj = 0; | |
34258 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34259 | wxTreeItemId *arg2 = 0 ; | |
34260 | bool arg3 = (bool) true ; | |
34261 | void *argp1 = 0 ; | |
34262 | int res1 = 0 ; | |
34263 | void *argp2 = 0 ; | |
34264 | int res2 = 0 ; | |
34265 | bool val3 ; | |
34266 | int ecode3 = 0 ; | |
34267 | PyObject * obj0 = 0 ; | |
34268 | PyObject * obj1 = 0 ; | |
34269 | PyObject * obj2 = 0 ; | |
34270 | char * kwnames[] = { | |
34271 | (char *) "self",(char *) "item",(char *) "has", NULL | |
34272 | }; | |
34273 | ||
34274 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34275 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34276 | if (!SWIG_IsOK(res1)) { | |
34277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34278 | } | |
34279 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34280 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34281 | if (!SWIG_IsOK(res2)) { | |
34282 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34283 | } | |
34284 | if (!argp2) { | |
34285 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34286 | } | |
34287 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34288 | if (obj2) { | |
34289 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
34290 | if (!SWIG_IsOK(ecode3)) { | |
34291 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'"); | |
34292 | } | |
34293 | arg3 = static_cast< bool >(val3); | |
34294 | } | |
34295 | { | |
34296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34297 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
34298 | wxPyEndAllowThreads(__tstate); | |
34299 | if (PyErr_Occurred()) SWIG_fail; | |
34300 | } | |
34301 | resultobj = SWIG_Py_Void(); | |
34302 | return resultobj; | |
34303 | fail: | |
34304 | return NULL; | |
34305 | } | |
34306 | ||
34307 | ||
34308 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34309 | PyObject *resultobj = 0; | |
34310 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34311 | wxTreeItemId *arg2 = 0 ; | |
34312 | bool arg3 = (bool) true ; | |
34313 | void *argp1 = 0 ; | |
34314 | int res1 = 0 ; | |
34315 | void *argp2 = 0 ; | |
34316 | int res2 = 0 ; | |
34317 | bool val3 ; | |
34318 | int ecode3 = 0 ; | |
34319 | PyObject * obj0 = 0 ; | |
34320 | PyObject * obj1 = 0 ; | |
34321 | PyObject * obj2 = 0 ; | |
34322 | char * kwnames[] = { | |
34323 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
34324 | }; | |
34325 | ||
34326 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34327 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34328 | if (!SWIG_IsOK(res1)) { | |
34329 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34330 | } | |
34331 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34332 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34333 | if (!SWIG_IsOK(res2)) { | |
34334 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34335 | } | |
34336 | if (!argp2) { | |
34337 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34338 | } | |
34339 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34340 | if (obj2) { | |
34341 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
34342 | if (!SWIG_IsOK(ecode3)) { | |
34343 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'"); | |
34344 | } | |
34345 | arg3 = static_cast< bool >(val3); | |
34346 | } | |
34347 | { | |
34348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34349 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
34350 | wxPyEndAllowThreads(__tstate); | |
34351 | if (PyErr_Occurred()) SWIG_fail; | |
34352 | } | |
34353 | resultobj = SWIG_Py_Void(); | |
34354 | return resultobj; | |
34355 | fail: | |
34356 | return NULL; | |
34357 | } | |
34358 | ||
34359 | ||
34360 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34361 | PyObject *resultobj = 0; | |
34362 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34363 | wxTreeItemId *arg2 = 0 ; | |
34364 | bool arg3 = (bool) true ; | |
34365 | void *argp1 = 0 ; | |
34366 | int res1 = 0 ; | |
34367 | void *argp2 = 0 ; | |
34368 | int res2 = 0 ; | |
34369 | bool val3 ; | |
34370 | int ecode3 = 0 ; | |
34371 | PyObject * obj0 = 0 ; | |
34372 | PyObject * obj1 = 0 ; | |
34373 | PyObject * obj2 = 0 ; | |
34374 | char * kwnames[] = { | |
34375 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
34376 | }; | |
34377 | ||
34378 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34379 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34380 | if (!SWIG_IsOK(res1)) { | |
34381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34382 | } | |
34383 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34384 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34385 | if (!SWIG_IsOK(res2)) { | |
34386 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34387 | } | |
34388 | if (!argp2) { | |
34389 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34390 | } | |
34391 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34392 | if (obj2) { | |
34393 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
34394 | if (!SWIG_IsOK(ecode3)) { | |
34395 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'"); | |
34396 | } | |
34397 | arg3 = static_cast< bool >(val3); | |
34398 | } | |
34399 | { | |
34400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34401 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
34402 | wxPyEndAllowThreads(__tstate); | |
34403 | if (PyErr_Occurred()) SWIG_fail; | |
34404 | } | |
34405 | resultobj = SWIG_Py_Void(); | |
34406 | return resultobj; | |
34407 | fail: | |
34408 | return NULL; | |
34409 | } | |
34410 | ||
34411 | ||
34412 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34413 | PyObject *resultobj = 0; | |
34414 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34415 | wxTreeItemId *arg2 = 0 ; | |
34416 | wxColour *arg3 = 0 ; | |
34417 | void *argp1 = 0 ; | |
34418 | int res1 = 0 ; | |
34419 | void *argp2 = 0 ; | |
34420 | int res2 = 0 ; | |
34421 | wxColour temp3 ; | |
34422 | PyObject * obj0 = 0 ; | |
34423 | PyObject * obj1 = 0 ; | |
34424 | PyObject * obj2 = 0 ; | |
34425 | char * kwnames[] = { | |
34426 | (char *) "self",(char *) "item",(char *) "col", NULL | |
34427 | }; | |
34428 | ||
34429 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34430 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34431 | if (!SWIG_IsOK(res1)) { | |
34432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34433 | } | |
34434 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34435 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34436 | if (!SWIG_IsOK(res2)) { | |
34437 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34438 | } | |
34439 | if (!argp2) { | |
34440 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34441 | } | |
34442 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34443 | { | |
34444 | arg3 = &temp3; | |
34445 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
34446 | } | |
34447 | { | |
34448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34449 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
34450 | wxPyEndAllowThreads(__tstate); | |
34451 | if (PyErr_Occurred()) SWIG_fail; | |
34452 | } | |
34453 | resultobj = SWIG_Py_Void(); | |
34454 | return resultobj; | |
34455 | fail: | |
34456 | return NULL; | |
34457 | } | |
34458 | ||
34459 | ||
34460 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34461 | PyObject *resultobj = 0; | |
34462 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34463 | wxTreeItemId *arg2 = 0 ; | |
34464 | wxColour *arg3 = 0 ; | |
34465 | void *argp1 = 0 ; | |
34466 | int res1 = 0 ; | |
34467 | void *argp2 = 0 ; | |
34468 | int res2 = 0 ; | |
34469 | wxColour temp3 ; | |
34470 | PyObject * obj0 = 0 ; | |
34471 | PyObject * obj1 = 0 ; | |
34472 | PyObject * obj2 = 0 ; | |
34473 | char * kwnames[] = { | |
34474 | (char *) "self",(char *) "item",(char *) "col", NULL | |
34475 | }; | |
34476 | ||
34477 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34478 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34479 | if (!SWIG_IsOK(res1)) { | |
34480 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34481 | } | |
34482 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34483 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34484 | if (!SWIG_IsOK(res2)) { | |
34485 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34486 | } | |
34487 | if (!argp2) { | |
34488 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34489 | } | |
34490 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34491 | { | |
34492 | arg3 = &temp3; | |
34493 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
34494 | } | |
34495 | { | |
34496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34497 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
34498 | wxPyEndAllowThreads(__tstate); | |
34499 | if (PyErr_Occurred()) SWIG_fail; | |
34500 | } | |
34501 | resultobj = SWIG_Py_Void(); | |
34502 | return resultobj; | |
34503 | fail: | |
34504 | return NULL; | |
34505 | } | |
34506 | ||
34507 | ||
34508 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34509 | PyObject *resultobj = 0; | |
34510 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34511 | wxTreeItemId *arg2 = 0 ; | |
34512 | wxFont *arg3 = 0 ; | |
34513 | void *argp1 = 0 ; | |
34514 | int res1 = 0 ; | |
34515 | void *argp2 = 0 ; | |
34516 | int res2 = 0 ; | |
34517 | void *argp3 = 0 ; | |
34518 | int res3 = 0 ; | |
34519 | PyObject * obj0 = 0 ; | |
34520 | PyObject * obj1 = 0 ; | |
34521 | PyObject * obj2 = 0 ; | |
34522 | char * kwnames[] = { | |
34523 | (char *) "self",(char *) "item",(char *) "font", NULL | |
34524 | }; | |
34525 | ||
34526 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34527 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34528 | if (!SWIG_IsOK(res1)) { | |
34529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34530 | } | |
34531 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34532 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34533 | if (!SWIG_IsOK(res2)) { | |
34534 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34535 | } | |
34536 | if (!argp2) { | |
34537 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34538 | } | |
34539 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34540 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
34541 | if (!SWIG_IsOK(res3)) { | |
34542 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
34543 | } | |
34544 | if (!argp3) { | |
34545 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
34546 | } | |
34547 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
34548 | { | |
34549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34550 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
34551 | wxPyEndAllowThreads(__tstate); | |
34552 | if (PyErr_Occurred()) SWIG_fail; | |
34553 | } | |
34554 | resultobj = SWIG_Py_Void(); | |
34555 | return resultobj; | |
34556 | fail: | |
34557 | return NULL; | |
34558 | } | |
34559 | ||
34560 | ||
34561 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34562 | PyObject *resultobj = 0; | |
34563 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34564 | wxTreeItemId *arg2 = 0 ; | |
34565 | bool result; | |
34566 | void *argp1 = 0 ; | |
34567 | int res1 = 0 ; | |
34568 | void *argp2 = 0 ; | |
34569 | int res2 = 0 ; | |
34570 | PyObject * obj0 = 0 ; | |
34571 | PyObject * obj1 = 0 ; | |
34572 | char * kwnames[] = { | |
34573 | (char *) "self",(char *) "item", NULL | |
34574 | }; | |
34575 | ||
34576 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
34577 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34578 | if (!SWIG_IsOK(res1)) { | |
34579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34580 | } | |
34581 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34582 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34583 | if (!SWIG_IsOK(res2)) { | |
34584 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34585 | } | |
34586 | if (!argp2) { | |
34587 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34588 | } | |
34589 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34590 | { | |
34591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34592 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
34593 | wxPyEndAllowThreads(__tstate); | |
34594 | if (PyErr_Occurred()) SWIG_fail; | |
34595 | } | |
34596 | { | |
34597 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34598 | } | |
34599 | return resultobj; | |
34600 | fail: | |
34601 | return NULL; | |
34602 | } | |
34603 | ||
34604 | ||
34605 | SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34606 | PyObject *resultobj = 0; | |
34607 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34608 | wxTreeItemId *arg2 = 0 ; | |
34609 | bool result; | |
34610 | void *argp1 = 0 ; | |
34611 | int res1 = 0 ; | |
34612 | void *argp2 = 0 ; | |
34613 | int res2 = 0 ; | |
34614 | PyObject * obj0 = 0 ; | |
34615 | PyObject * obj1 = 0 ; | |
34616 | char * kwnames[] = { | |
34617 | (char *) "self",(char *) "item", NULL | |
34618 | }; | |
34619 | ||
34620 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
34621 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34622 | if (!SWIG_IsOK(res1)) { | |
34623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34624 | } | |
34625 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34626 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34627 | if (!SWIG_IsOK(res2)) { | |
34628 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34629 | } | |
34630 | if (!argp2) { | |
34631 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34632 | } | |
34633 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34634 | { | |
34635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34636 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
34637 | wxPyEndAllowThreads(__tstate); | |
34638 | if (PyErr_Occurred()) SWIG_fail; | |
34639 | } | |
34640 | { | |
34641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34642 | } | |
34643 | return resultobj; | |
34644 | fail: | |
34645 | return NULL; | |
34646 | } | |
34647 | ||
34648 | ||
34649 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34650 | PyObject *resultobj = 0; | |
34651 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34652 | wxTreeItemId *arg2 = 0 ; | |
34653 | bool result; | |
34654 | void *argp1 = 0 ; | |
34655 | int res1 = 0 ; | |
34656 | void *argp2 = 0 ; | |
34657 | int res2 = 0 ; | |
34658 | PyObject * obj0 = 0 ; | |
34659 | PyObject * obj1 = 0 ; | |
34660 | char * kwnames[] = { | |
34661 | (char *) "self",(char *) "item", NULL | |
34662 | }; | |
34663 | ||
34664 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail; | |
34665 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34666 | if (!SWIG_IsOK(res1)) { | |
34667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34668 | } | |
34669 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34670 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34671 | if (!SWIG_IsOK(res2)) { | |
34672 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34673 | } | |
34674 | if (!argp2) { | |
34675 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34676 | } | |
34677 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34678 | { | |
34679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34680 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
34681 | wxPyEndAllowThreads(__tstate); | |
34682 | if (PyErr_Occurred()) SWIG_fail; | |
34683 | } | |
34684 | { | |
34685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34686 | } | |
34687 | return resultobj; | |
34688 | fail: | |
34689 | return NULL; | |
34690 | } | |
34691 | ||
34692 | ||
34693 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34694 | PyObject *resultobj = 0; | |
34695 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34696 | wxTreeItemId *arg2 = 0 ; | |
34697 | bool result; | |
34698 | void *argp1 = 0 ; | |
34699 | int res1 = 0 ; | |
34700 | void *argp2 = 0 ; | |
34701 | int res2 = 0 ; | |
34702 | PyObject * obj0 = 0 ; | |
34703 | PyObject * obj1 = 0 ; | |
34704 | char * kwnames[] = { | |
34705 | (char *) "self",(char *) "item", NULL | |
34706 | }; | |
34707 | ||
34708 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
34709 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34710 | if (!SWIG_IsOK(res1)) { | |
34711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34712 | } | |
34713 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34714 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34715 | if (!SWIG_IsOK(res2)) { | |
34716 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34717 | } | |
34718 | if (!argp2) { | |
34719 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34720 | } | |
34721 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34722 | { | |
34723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34724 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
34725 | wxPyEndAllowThreads(__tstate); | |
34726 | if (PyErr_Occurred()) SWIG_fail; | |
34727 | } | |
34728 | { | |
34729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34730 | } | |
34731 | return resultobj; | |
34732 | fail: | |
34733 | return NULL; | |
34734 | } | |
34735 | ||
34736 | ||
34737 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34738 | PyObject *resultobj = 0; | |
34739 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34740 | wxTreeItemId *arg2 = 0 ; | |
34741 | bool result; | |
34742 | void *argp1 = 0 ; | |
34743 | int res1 = 0 ; | |
34744 | void *argp2 = 0 ; | |
34745 | int res2 = 0 ; | |
34746 | PyObject * obj0 = 0 ; | |
34747 | PyObject * obj1 = 0 ; | |
34748 | char * kwnames[] = { | |
34749 | (char *) "self",(char *) "item", NULL | |
34750 | }; | |
34751 | ||
34752 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail; | |
34753 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34754 | if (!SWIG_IsOK(res1)) { | |
34755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34756 | } | |
34757 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34758 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34759 | if (!SWIG_IsOK(res2)) { | |
34760 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34761 | } | |
34762 | if (!argp2) { | |
34763 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34764 | } | |
34765 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34766 | { | |
34767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34768 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
34769 | wxPyEndAllowThreads(__tstate); | |
34770 | if (PyErr_Occurred()) SWIG_fail; | |
34771 | } | |
34772 | { | |
34773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34774 | } | |
34775 | return resultobj; | |
34776 | fail: | |
34777 | return NULL; | |
34778 | } | |
34779 | ||
34780 | ||
34781 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34782 | PyObject *resultobj = 0; | |
34783 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34784 | wxTreeItemId *arg2 = 0 ; | |
34785 | bool arg3 = (bool) true ; | |
34786 | size_t result; | |
34787 | void *argp1 = 0 ; | |
34788 | int res1 = 0 ; | |
34789 | void *argp2 = 0 ; | |
34790 | int res2 = 0 ; | |
34791 | bool val3 ; | |
34792 | int ecode3 = 0 ; | |
34793 | PyObject * obj0 = 0 ; | |
34794 | PyObject * obj1 = 0 ; | |
34795 | PyObject * obj2 = 0 ; | |
34796 | char * kwnames[] = { | |
34797 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
34798 | }; | |
34799 | ||
34800 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34801 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34802 | if (!SWIG_IsOK(res1)) { | |
34803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34804 | } | |
34805 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34806 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34807 | if (!SWIG_IsOK(res2)) { | |
34808 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34809 | } | |
34810 | if (!argp2) { | |
34811 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34812 | } | |
34813 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34814 | if (obj2) { | |
34815 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
34816 | if (!SWIG_IsOK(ecode3)) { | |
34817 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'"); | |
34818 | } | |
34819 | arg3 = static_cast< bool >(val3); | |
34820 | } | |
34821 | { | |
34822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34823 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
34824 | wxPyEndAllowThreads(__tstate); | |
34825 | if (PyErr_Occurred()) SWIG_fail; | |
34826 | } | |
34827 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
34828 | return resultobj; | |
34829 | fail: | |
34830 | return NULL; | |
d14a1e28 RD |
34831 | } |
34832 | ||
34833 | ||
0085ce49 RD |
34834 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34835 | PyObject *resultobj = 0; | |
34836 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34837 | wxTreeItemId result; | |
34838 | void *argp1 = 0 ; | |
34839 | int res1 = 0 ; | |
34840 | PyObject *swig_obj[1] ; | |
34841 | ||
34842 | if (!args) SWIG_fail; | |
34843 | swig_obj[0] = args; | |
34844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34845 | if (!SWIG_IsOK(res1)) { | |
34846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34847 | } | |
34848 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34849 | { | |
34850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34851 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
34852 | wxPyEndAllowThreads(__tstate); | |
34853 | if (PyErr_Occurred()) SWIG_fail; | |
34854 | } | |
34855 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
34856 | return resultobj; | |
34857 | fail: | |
34858 | return NULL; | |
d14a1e28 RD |
34859 | } |
34860 | ||
34861 | ||
0085ce49 RD |
34862 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34863 | PyObject *resultobj = 0; | |
34864 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34865 | wxTreeItemId result; | |
34866 | void *argp1 = 0 ; | |
34867 | int res1 = 0 ; | |
34868 | PyObject *swig_obj[1] ; | |
34869 | ||
34870 | if (!args) SWIG_fail; | |
34871 | swig_obj[0] = args; | |
34872 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34873 | if (!SWIG_IsOK(res1)) { | |
34874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34875 | } | |
34876 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34877 | { | |
34878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34879 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
34880 | wxPyEndAllowThreads(__tstate); | |
34881 | if (PyErr_Occurred()) SWIG_fail; | |
34882 | } | |
34883 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
34884 | return resultobj; | |
34885 | fail: | |
34886 | return NULL; | |
d14a1e28 RD |
34887 | } |
34888 | ||
34889 | ||
0085ce49 RD |
34890 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34891 | PyObject *resultobj = 0; | |
34892 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34893 | PyObject *result = 0 ; | |
34894 | void *argp1 = 0 ; | |
34895 | int res1 = 0 ; | |
34896 | PyObject *swig_obj[1] ; | |
34897 | ||
34898 | if (!args) SWIG_fail; | |
34899 | swig_obj[0] = args; | |
34900 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34901 | if (!SWIG_IsOK(res1)) { | |
34902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34903 | } | |
34904 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34905 | { | |
34906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34907 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
34908 | wxPyEndAllowThreads(__tstate); | |
34909 | if (PyErr_Occurred()) SWIG_fail; | |
34910 | } | |
34911 | resultobj = result; | |
34912 | return resultobj; | |
34913 | fail: | |
34914 | return NULL; | |
34915 | } | |
34916 | ||
34917 | ||
34918 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34919 | PyObject *resultobj = 0; | |
34920 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34921 | wxTreeItemId *arg2 = 0 ; | |
34922 | wxTreeItemId result; | |
34923 | void *argp1 = 0 ; | |
34924 | int res1 = 0 ; | |
34925 | void *argp2 = 0 ; | |
34926 | int res2 = 0 ; | |
34927 | PyObject * obj0 = 0 ; | |
34928 | PyObject * obj1 = 0 ; | |
34929 | char * kwnames[] = { | |
34930 | (char *) "self",(char *) "item", NULL | |
34931 | }; | |
34932 | ||
34933 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
34934 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34935 | if (!SWIG_IsOK(res1)) { | |
34936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34937 | } | |
34938 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34939 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34940 | if (!SWIG_IsOK(res2)) { | |
34941 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34942 | } | |
34943 | if (!argp2) { | |
34944 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34945 | } | |
34946 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34947 | { | |
34948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34949 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
34950 | wxPyEndAllowThreads(__tstate); | |
34951 | if (PyErr_Occurred()) SWIG_fail; | |
34952 | } | |
34953 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
34954 | return resultobj; | |
34955 | fail: | |
34956 | return NULL; | |
34957 | } | |
34958 | ||
34959 | ||
34960 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34961 | PyObject *resultobj = 0; | |
34962 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34963 | wxTreeItemId *arg2 = 0 ; | |
34964 | PyObject *result = 0 ; | |
34965 | void *argp1 = 0 ; | |
34966 | int res1 = 0 ; | |
34967 | void *argp2 = 0 ; | |
34968 | int res2 = 0 ; | |
34969 | PyObject * obj0 = 0 ; | |
34970 | PyObject * obj1 = 0 ; | |
34971 | char * kwnames[] = { | |
34972 | (char *) "self",(char *) "item", NULL | |
34973 | }; | |
34974 | ||
34975 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
34976 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34977 | if (!SWIG_IsOK(res1)) { | |
34978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34979 | } | |
34980 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34981 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34982 | if (!SWIG_IsOK(res2)) { | |
34983 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34984 | } | |
34985 | if (!argp2) { | |
34986 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34987 | } | |
34988 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34989 | { | |
34990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34991 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
34992 | wxPyEndAllowThreads(__tstate); | |
34993 | if (PyErr_Occurred()) SWIG_fail; | |
34994 | } | |
34995 | resultobj = result; | |
34996 | return resultobj; | |
34997 | fail: | |
34998 | return NULL; | |
34999 | } | |
35000 | ||
35001 | ||
35002 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35003 | PyObject *resultobj = 0; | |
35004 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35005 | wxTreeItemId *arg2 = 0 ; | |
35006 | void *arg3 = (void *) 0 ; | |
35007 | PyObject *result = 0 ; | |
35008 | void *argp1 = 0 ; | |
35009 | int res1 = 0 ; | |
35010 | void *argp2 = 0 ; | |
35011 | int res2 = 0 ; | |
35012 | int res3 ; | |
35013 | PyObject * obj0 = 0 ; | |
35014 | PyObject * obj1 = 0 ; | |
35015 | PyObject * obj2 = 0 ; | |
35016 | char * kwnames[] = { | |
35017 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
35018 | }; | |
35019 | ||
35020 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35021 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35022 | if (!SWIG_IsOK(res1)) { | |
35023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35024 | } | |
35025 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35026 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35027 | if (!SWIG_IsOK(res2)) { | |
35028 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35029 | } | |
35030 | if (!argp2) { | |
35031 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35032 | } | |
35033 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35034 | res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); | |
35035 | if (!SWIG_IsOK(res3)) { | |
35036 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'"); | |
35037 | } | |
35038 | { | |
35039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35040 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
35041 | wxPyEndAllowThreads(__tstate); | |
35042 | if (PyErr_Occurred()) SWIG_fail; | |
35043 | } | |
35044 | resultobj = result; | |
35045 | return resultobj; | |
35046 | fail: | |
35047 | return NULL; | |
35048 | } | |
35049 | ||
35050 | ||
35051 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35052 | PyObject *resultobj = 0; | |
35053 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35054 | wxTreeItemId *arg2 = 0 ; | |
35055 | wxTreeItemId result; | |
35056 | void *argp1 = 0 ; | |
35057 | int res1 = 0 ; | |
35058 | void *argp2 = 0 ; | |
35059 | int res2 = 0 ; | |
35060 | PyObject * obj0 = 0 ; | |
35061 | PyObject * obj1 = 0 ; | |
35062 | char * kwnames[] = { | |
35063 | (char *) "self",(char *) "item", NULL | |
35064 | }; | |
35065 | ||
35066 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
35067 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35068 | if (!SWIG_IsOK(res1)) { | |
35069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35070 | } | |
35071 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35072 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35073 | if (!SWIG_IsOK(res2)) { | |
35074 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35075 | } | |
35076 | if (!argp2) { | |
35077 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35078 | } | |
35079 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35080 | { | |
35081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35082 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
35083 | wxPyEndAllowThreads(__tstate); | |
35084 | if (PyErr_Occurred()) SWIG_fail; | |
35085 | } | |
35086 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35087 | return resultobj; | |
35088 | fail: | |
35089 | return NULL; | |
35090 | } | |
35091 | ||
35092 | ||
35093 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35094 | PyObject *resultobj = 0; | |
35095 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35096 | wxTreeItemId *arg2 = 0 ; | |
35097 | wxTreeItemId result; | |
35098 | void *argp1 = 0 ; | |
35099 | int res1 = 0 ; | |
35100 | void *argp2 = 0 ; | |
35101 | int res2 = 0 ; | |
35102 | PyObject * obj0 = 0 ; | |
35103 | PyObject * obj1 = 0 ; | |
35104 | char * kwnames[] = { | |
35105 | (char *) "self",(char *) "item", NULL | |
35106 | }; | |
35107 | ||
35108 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail; | |
35109 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35110 | if (!SWIG_IsOK(res1)) { | |
35111 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35112 | } | |
35113 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35114 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35115 | if (!SWIG_IsOK(res2)) { | |
35116 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35117 | } | |
35118 | if (!argp2) { | |
35119 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35120 | } | |
35121 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35122 | { | |
35123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35124 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
35125 | wxPyEndAllowThreads(__tstate); | |
35126 | if (PyErr_Occurred()) SWIG_fail; | |
35127 | } | |
35128 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35129 | return resultobj; | |
35130 | fail: | |
35131 | return NULL; | |
35132 | } | |
35133 | ||
35134 | ||
35135 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35136 | PyObject *resultobj = 0; | |
35137 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35138 | wxTreeItemId *arg2 = 0 ; | |
35139 | wxTreeItemId result; | |
35140 | void *argp1 = 0 ; | |
35141 | int res1 = 0 ; | |
35142 | void *argp2 = 0 ; | |
35143 | int res2 = 0 ; | |
35144 | PyObject * obj0 = 0 ; | |
35145 | PyObject * obj1 = 0 ; | |
35146 | char * kwnames[] = { | |
35147 | (char *) "self",(char *) "item", NULL | |
35148 | }; | |
35149 | ||
35150 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail; | |
35151 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35152 | if (!SWIG_IsOK(res1)) { | |
35153 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35154 | } | |
35155 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35156 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35157 | if (!SWIG_IsOK(res2)) { | |
35158 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35159 | } | |
35160 | if (!argp2) { | |
35161 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35162 | } | |
35163 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35164 | { | |
35165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35166 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
35167 | wxPyEndAllowThreads(__tstate); | |
35168 | if (PyErr_Occurred()) SWIG_fail; | |
35169 | } | |
35170 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35171 | return resultobj; | |
35172 | fail: | |
35173 | return NULL; | |
d14a1e28 RD |
35174 | } |
35175 | ||
35176 | ||
0085ce49 RD |
35177 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35178 | PyObject *resultobj = 0; | |
35179 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35180 | wxTreeItemId result; | |
35181 | void *argp1 = 0 ; | |
35182 | int res1 = 0 ; | |
35183 | PyObject *swig_obj[1] ; | |
35184 | ||
35185 | if (!args) SWIG_fail; | |
35186 | swig_obj[0] = args; | |
35187 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35188 | if (!SWIG_IsOK(res1)) { | |
35189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35190 | } | |
35191 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35192 | { | |
35193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35194 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
35195 | wxPyEndAllowThreads(__tstate); | |
35196 | if (PyErr_Occurred()) SWIG_fail; | |
35197 | } | |
35198 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35199 | return resultobj; | |
35200 | fail: | |
35201 | return NULL; | |
35202 | } | |
35203 | ||
35204 | ||
35205 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35206 | PyObject *resultobj = 0; | |
35207 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35208 | wxTreeItemId *arg2 = 0 ; | |
35209 | wxTreeItemId result; | |
35210 | void *argp1 = 0 ; | |
35211 | int res1 = 0 ; | |
35212 | void *argp2 = 0 ; | |
35213 | int res2 = 0 ; | |
35214 | PyObject * obj0 = 0 ; | |
35215 | PyObject * obj1 = 0 ; | |
35216 | char * kwnames[] = { | |
35217 | (char *) "self",(char *) "item", NULL | |
35218 | }; | |
35219 | ||
35220 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
35221 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35222 | if (!SWIG_IsOK(res1)) { | |
35223 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35224 | } | |
35225 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35226 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35227 | if (!SWIG_IsOK(res2)) { | |
35228 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35229 | } | |
35230 | if (!argp2) { | |
35231 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35232 | } | |
35233 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35234 | { | |
35235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35236 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
35237 | wxPyEndAllowThreads(__tstate); | |
35238 | if (PyErr_Occurred()) SWIG_fail; | |
35239 | } | |
35240 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35241 | return resultobj; | |
35242 | fail: | |
35243 | return NULL; | |
35244 | } | |
35245 | ||
35246 | ||
35247 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35248 | PyObject *resultobj = 0; | |
35249 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35250 | wxTreeItemId *arg2 = 0 ; | |
35251 | wxTreeItemId result; | |
35252 | void *argp1 = 0 ; | |
35253 | int res1 = 0 ; | |
35254 | void *argp2 = 0 ; | |
35255 | int res2 = 0 ; | |
35256 | PyObject * obj0 = 0 ; | |
35257 | PyObject * obj1 = 0 ; | |
35258 | char * kwnames[] = { | |
35259 | (char *) "self",(char *) "item", NULL | |
35260 | }; | |
35261 | ||
35262 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
35263 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35264 | if (!SWIG_IsOK(res1)) { | |
35265 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35266 | } | |
35267 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35268 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35269 | if (!SWIG_IsOK(res2)) { | |
35270 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35271 | } | |
35272 | if (!argp2) { | |
35273 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35274 | } | |
35275 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35276 | { | |
35277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35278 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
35279 | wxPyEndAllowThreads(__tstate); | |
35280 | if (PyErr_Occurred()) SWIG_fail; | |
35281 | } | |
35282 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35283 | return resultobj; | |
35284 | fail: | |
35285 | return NULL; | |
35286 | } | |
35287 | ||
35288 | ||
35289 | SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35290 | PyObject *resultobj = 0; | |
35291 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35292 | wxString *arg2 = 0 ; | |
35293 | int arg3 = (int) -1 ; | |
35294 | int arg4 = (int) -1 ; | |
35295 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
35296 | wxTreeItemId result; | |
35297 | void *argp1 = 0 ; | |
35298 | int res1 = 0 ; | |
35299 | bool temp2 = false ; | |
35300 | int val3 ; | |
35301 | int ecode3 = 0 ; | |
35302 | int val4 ; | |
35303 | int ecode4 = 0 ; | |
35304 | int res5 = 0 ; | |
35305 | PyObject * obj0 = 0 ; | |
35306 | PyObject * obj1 = 0 ; | |
35307 | PyObject * obj2 = 0 ; | |
35308 | PyObject * obj3 = 0 ; | |
35309 | PyObject * obj4 = 0 ; | |
35310 | char * kwnames[] = { | |
35311 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
35312 | }; | |
35313 | ||
35314 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35315 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35316 | if (!SWIG_IsOK(res1)) { | |
35317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35318 | } | |
35319 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35320 | { | |
35321 | arg2 = wxString_in_helper(obj1); | |
35322 | if (arg2 == NULL) SWIG_fail; | |
35323 | temp2 = true; | |
35324 | } | |
35325 | if (obj2) { | |
35326 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35327 | if (!SWIG_IsOK(ecode3)) { | |
35328 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'"); | |
35329 | } | |
35330 | arg3 = static_cast< int >(val3); | |
35331 | } | |
35332 | if (obj3) { | |
35333 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35334 | if (!SWIG_IsOK(ecode4)) { | |
35335 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'"); | |
35336 | } | |
35337 | arg4 = static_cast< int >(val4); | |
35338 | } | |
35339 | if (obj4) { | |
35340 | res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
35341 | if (!SWIG_IsOK(res5)) { | |
35342 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'"); | |
3a04f143 | 35343 | } |
0085ce49 RD |
35344 | } |
35345 | { | |
35346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35347 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
35348 | wxPyEndAllowThreads(__tstate); | |
35349 | if (PyErr_Occurred()) SWIG_fail; | |
35350 | } | |
35351 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35352 | { | |
35353 | if (temp2) | |
35354 | delete arg2; | |
35355 | } | |
35356 | return resultobj; | |
35357 | fail: | |
35358 | { | |
35359 | if (temp2) | |
35360 | delete arg2; | |
35361 | } | |
35362 | return NULL; | |
35363 | } | |
35364 | ||
35365 | ||
35366 | SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35367 | PyObject *resultobj = 0; | |
35368 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35369 | wxTreeItemId *arg2 = 0 ; | |
35370 | wxString *arg3 = 0 ; | |
35371 | int arg4 = (int) -1 ; | |
35372 | int arg5 = (int) -1 ; | |
35373 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
35374 | wxTreeItemId result; | |
35375 | void *argp1 = 0 ; | |
35376 | int res1 = 0 ; | |
35377 | void *argp2 = 0 ; | |
35378 | int res2 = 0 ; | |
35379 | bool temp3 = false ; | |
35380 | int val4 ; | |
35381 | int ecode4 = 0 ; | |
35382 | int val5 ; | |
35383 | int ecode5 = 0 ; | |
35384 | int res6 = 0 ; | |
35385 | PyObject * obj0 = 0 ; | |
35386 | PyObject * obj1 = 0 ; | |
35387 | PyObject * obj2 = 0 ; | |
35388 | PyObject * obj3 = 0 ; | |
35389 | PyObject * obj4 = 0 ; | |
35390 | PyObject * obj5 = 0 ; | |
35391 | char * kwnames[] = { | |
35392 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
35393 | }; | |
35394 | ||
35395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
35396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35397 | if (!SWIG_IsOK(res1)) { | |
35398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35399 | } | |
35400 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35401 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35402 | if (!SWIG_IsOK(res2)) { | |
35403 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35404 | } | |
35405 | if (!argp2) { | |
35406 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35407 | } | |
35408 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35409 | { | |
35410 | arg3 = wxString_in_helper(obj2); | |
35411 | if (arg3 == NULL) SWIG_fail; | |
35412 | temp3 = true; | |
35413 | } | |
35414 | if (obj3) { | |
35415 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35416 | if (!SWIG_IsOK(ecode4)) { | |
35417 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'"); | |
35418 | } | |
35419 | arg4 = static_cast< int >(val4); | |
35420 | } | |
35421 | if (obj4) { | |
35422 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35423 | if (!SWIG_IsOK(ecode5)) { | |
35424 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'"); | |
35425 | } | |
35426 | arg5 = static_cast< int >(val5); | |
35427 | } | |
35428 | if (obj5) { | |
35429 | res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
35430 | if (!SWIG_IsOK(res6)) { | |
35431 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'"); | |
3a04f143 | 35432 | } |
0085ce49 RD |
35433 | } |
35434 | { | |
35435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35436 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
35437 | wxPyEndAllowThreads(__tstate); | |
35438 | if (PyErr_Occurred()) SWIG_fail; | |
35439 | } | |
35440 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35441 | { | |
35442 | if (temp3) | |
35443 | delete arg3; | |
35444 | } | |
35445 | return resultobj; | |
35446 | fail: | |
35447 | { | |
35448 | if (temp3) | |
35449 | delete arg3; | |
35450 | } | |
35451 | return NULL; | |
35452 | } | |
35453 | ||
35454 | ||
35455 | SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35456 | PyObject *resultobj = 0; | |
35457 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35458 | wxTreeItemId *arg2 = 0 ; | |
35459 | wxTreeItemId *arg3 = 0 ; | |
35460 | wxString *arg4 = 0 ; | |
35461 | int arg5 = (int) -1 ; | |
35462 | int arg6 = (int) -1 ; | |
35463 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
35464 | wxTreeItemId result; | |
35465 | void *argp1 = 0 ; | |
35466 | int res1 = 0 ; | |
35467 | void *argp2 = 0 ; | |
35468 | int res2 = 0 ; | |
35469 | void *argp3 = 0 ; | |
35470 | int res3 = 0 ; | |
35471 | bool temp4 = false ; | |
35472 | int val5 ; | |
35473 | int ecode5 = 0 ; | |
35474 | int val6 ; | |
35475 | int ecode6 = 0 ; | |
35476 | int res7 = 0 ; | |
35477 | PyObject * obj0 = 0 ; | |
35478 | PyObject * obj1 = 0 ; | |
35479 | PyObject * obj2 = 0 ; | |
35480 | PyObject * obj3 = 0 ; | |
35481 | PyObject * obj4 = 0 ; | |
35482 | PyObject * obj5 = 0 ; | |
35483 | PyObject * obj6 = 0 ; | |
35484 | char * kwnames[] = { | |
35485 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
35486 | }; | |
35487 | ||
35488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
35489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35490 | if (!SWIG_IsOK(res1)) { | |
35491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35492 | } | |
35493 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35494 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35495 | if (!SWIG_IsOK(res2)) { | |
35496 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35497 | } | |
35498 | if (!argp2) { | |
35499 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35500 | } | |
35501 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35502 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35503 | if (!SWIG_IsOK(res3)) { | |
35504 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'"); | |
35505 | } | |
35506 | if (!argp3) { | |
35507 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'"); | |
35508 | } | |
35509 | arg3 = reinterpret_cast< wxTreeItemId * >(argp3); | |
35510 | { | |
35511 | arg4 = wxString_in_helper(obj3); | |
35512 | if (arg4 == NULL) SWIG_fail; | |
35513 | temp4 = true; | |
35514 | } | |
35515 | if (obj4) { | |
35516 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35517 | if (!SWIG_IsOK(ecode5)) { | |
35518 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'"); | |
35519 | } | |
35520 | arg5 = static_cast< int >(val5); | |
35521 | } | |
35522 | if (obj5) { | |
35523 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
35524 | if (!SWIG_IsOK(ecode6)) { | |
35525 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'"); | |
35526 | } | |
35527 | arg6 = static_cast< int >(val6); | |
35528 | } | |
35529 | if (obj6) { | |
35530 | res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
35531 | if (!SWIG_IsOK(res7)) { | |
35532 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'"); | |
093d3ff1 | 35533 | } |
0085ce49 RD |
35534 | } |
35535 | { | |
35536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35537 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
35538 | wxPyEndAllowThreads(__tstate); | |
35539 | if (PyErr_Occurred()) SWIG_fail; | |
35540 | } | |
35541 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35542 | { | |
35543 | if (temp4) | |
35544 | delete arg4; | |
35545 | } | |
35546 | return resultobj; | |
35547 | fail: | |
35548 | { | |
35549 | if (temp4) | |
35550 | delete arg4; | |
35551 | } | |
35552 | return NULL; | |
35553 | } | |
35554 | ||
35555 | ||
35556 | SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35557 | PyObject *resultobj = 0; | |
35558 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35559 | wxTreeItemId *arg2 = 0 ; | |
35560 | size_t arg3 ; | |
35561 | wxString *arg4 = 0 ; | |
35562 | int arg5 = (int) -1 ; | |
35563 | int arg6 = (int) -1 ; | |
35564 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
35565 | wxTreeItemId result; | |
35566 | void *argp1 = 0 ; | |
35567 | int res1 = 0 ; | |
35568 | void *argp2 = 0 ; | |
35569 | int res2 = 0 ; | |
35570 | size_t val3 ; | |
35571 | int ecode3 = 0 ; | |
35572 | bool temp4 = false ; | |
35573 | int val5 ; | |
35574 | int ecode5 = 0 ; | |
35575 | int val6 ; | |
35576 | int ecode6 = 0 ; | |
35577 | int res7 = 0 ; | |
35578 | PyObject * obj0 = 0 ; | |
35579 | PyObject * obj1 = 0 ; | |
35580 | PyObject * obj2 = 0 ; | |
35581 | PyObject * obj3 = 0 ; | |
35582 | PyObject * obj4 = 0 ; | |
35583 | PyObject * obj5 = 0 ; | |
35584 | PyObject * obj6 = 0 ; | |
35585 | char * kwnames[] = { | |
35586 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
35587 | }; | |
35588 | ||
35589 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
35590 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35591 | if (!SWIG_IsOK(res1)) { | |
35592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35593 | } | |
35594 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35595 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35596 | if (!SWIG_IsOK(res2)) { | |
35597 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35598 | } | |
35599 | if (!argp2) { | |
35600 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35601 | } | |
35602 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35603 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
35604 | if (!SWIG_IsOK(ecode3)) { | |
35605 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'"); | |
35606 | } | |
35607 | arg3 = static_cast< size_t >(val3); | |
35608 | { | |
35609 | arg4 = wxString_in_helper(obj3); | |
35610 | if (arg4 == NULL) SWIG_fail; | |
35611 | temp4 = true; | |
35612 | } | |
35613 | if (obj4) { | |
35614 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35615 | if (!SWIG_IsOK(ecode5)) { | |
35616 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'"); | |
35617 | } | |
35618 | arg5 = static_cast< int >(val5); | |
35619 | } | |
35620 | if (obj5) { | |
35621 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
35622 | if (!SWIG_IsOK(ecode6)) { | |
35623 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'"); | |
35624 | } | |
35625 | arg6 = static_cast< int >(val6); | |
35626 | } | |
35627 | if (obj6) { | |
35628 | res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
35629 | if (!SWIG_IsOK(res7)) { | |
35630 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'"); | |
3a04f143 | 35631 | } |
0085ce49 RD |
35632 | } |
35633 | { | |
35634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35635 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
35636 | wxPyEndAllowThreads(__tstate); | |
35637 | if (PyErr_Occurred()) SWIG_fail; | |
35638 | } | |
35639 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35640 | { | |
35641 | if (temp4) | |
35642 | delete arg4; | |
35643 | } | |
35644 | return resultobj; | |
35645 | fail: | |
35646 | { | |
35647 | if (temp4) | |
35648 | delete arg4; | |
35649 | } | |
35650 | return NULL; | |
35651 | } | |
35652 | ||
35653 | ||
35654 | SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35655 | PyObject *resultobj = 0; | |
35656 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35657 | wxTreeItemId *arg2 = 0 ; | |
35658 | wxString *arg3 = 0 ; | |
35659 | int arg4 = (int) -1 ; | |
35660 | int arg5 = (int) -1 ; | |
35661 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
35662 | wxTreeItemId result; | |
35663 | void *argp1 = 0 ; | |
35664 | int res1 = 0 ; | |
35665 | void *argp2 = 0 ; | |
35666 | int res2 = 0 ; | |
35667 | bool temp3 = false ; | |
35668 | int val4 ; | |
35669 | int ecode4 = 0 ; | |
35670 | int val5 ; | |
35671 | int ecode5 = 0 ; | |
35672 | int res6 = 0 ; | |
35673 | PyObject * obj0 = 0 ; | |
35674 | PyObject * obj1 = 0 ; | |
35675 | PyObject * obj2 = 0 ; | |
35676 | PyObject * obj3 = 0 ; | |
35677 | PyObject * obj4 = 0 ; | |
35678 | PyObject * obj5 = 0 ; | |
35679 | char * kwnames[] = { | |
35680 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
35681 | }; | |
35682 | ||
35683 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
35684 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35685 | if (!SWIG_IsOK(res1)) { | |
35686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35687 | } | |
35688 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35689 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35690 | if (!SWIG_IsOK(res2)) { | |
35691 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35692 | } | |
35693 | if (!argp2) { | |
35694 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35695 | } | |
35696 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35697 | { | |
35698 | arg3 = wxString_in_helper(obj2); | |
35699 | if (arg3 == NULL) SWIG_fail; | |
35700 | temp3 = true; | |
35701 | } | |
35702 | if (obj3) { | |
35703 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35704 | if (!SWIG_IsOK(ecode4)) { | |
35705 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'"); | |
35706 | } | |
35707 | arg4 = static_cast< int >(val4); | |
35708 | } | |
35709 | if (obj4) { | |
35710 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35711 | if (!SWIG_IsOK(ecode5)) { | |
35712 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'"); | |
35713 | } | |
35714 | arg5 = static_cast< int >(val5); | |
35715 | } | |
35716 | if (obj5) { | |
35717 | res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
35718 | if (!SWIG_IsOK(res6)) { | |
35719 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'"); | |
3a04f143 | 35720 | } |
0085ce49 RD |
35721 | } |
35722 | { | |
35723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35724 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
35725 | wxPyEndAllowThreads(__tstate); | |
35726 | if (PyErr_Occurred()) SWIG_fail; | |
35727 | } | |
35728 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35729 | { | |
35730 | if (temp3) | |
35731 | delete arg3; | |
35732 | } | |
35733 | return resultobj; | |
35734 | fail: | |
35735 | { | |
35736 | if (temp3) | |
35737 | delete arg3; | |
35738 | } | |
35739 | return NULL; | |
35740 | } | |
35741 | ||
35742 | ||
35743 | SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35744 | PyObject *resultobj = 0; | |
35745 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35746 | wxTreeItemId *arg2 = 0 ; | |
35747 | void *argp1 = 0 ; | |
35748 | int res1 = 0 ; | |
35749 | void *argp2 = 0 ; | |
35750 | int res2 = 0 ; | |
35751 | PyObject * obj0 = 0 ; | |
35752 | PyObject * obj1 = 0 ; | |
35753 | char * kwnames[] = { | |
35754 | (char *) "self",(char *) "item", NULL | |
35755 | }; | |
35756 | ||
35757 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail; | |
35758 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35759 | if (!SWIG_IsOK(res1)) { | |
35760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35761 | } | |
35762 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35763 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35764 | if (!SWIG_IsOK(res2)) { | |
35765 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35766 | } | |
35767 | if (!argp2) { | |
35768 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35769 | } | |
35770 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35771 | { | |
35772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35773 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
35774 | wxPyEndAllowThreads(__tstate); | |
35775 | if (PyErr_Occurred()) SWIG_fail; | |
35776 | } | |
35777 | resultobj = SWIG_Py_Void(); | |
35778 | return resultobj; | |
35779 | fail: | |
35780 | return NULL; | |
35781 | } | |
35782 | ||
35783 | ||
35784 | SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35785 | PyObject *resultobj = 0; | |
35786 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35787 | wxTreeItemId *arg2 = 0 ; | |
35788 | void *argp1 = 0 ; | |
35789 | int res1 = 0 ; | |
35790 | void *argp2 = 0 ; | |
35791 | int res2 = 0 ; | |
35792 | PyObject * obj0 = 0 ; | |
35793 | PyObject * obj1 = 0 ; | |
35794 | char * kwnames[] = { | |
35795 | (char *) "self",(char *) "item", NULL | |
35796 | }; | |
35797 | ||
35798 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
35799 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35800 | if (!SWIG_IsOK(res1)) { | |
35801 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35802 | } | |
35803 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35804 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35805 | if (!SWIG_IsOK(res2)) { | |
35806 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35807 | } | |
35808 | if (!argp2) { | |
35809 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35810 | } | |
35811 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35812 | { | |
35813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35814 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
35815 | wxPyEndAllowThreads(__tstate); | |
35816 | if (PyErr_Occurred()) SWIG_fail; | |
35817 | } | |
35818 | resultobj = SWIG_Py_Void(); | |
35819 | return resultobj; | |
35820 | fail: | |
35821 | return NULL; | |
3a04f143 RD |
35822 | } |
35823 | ||
35824 | ||
0085ce49 RD |
35825 | SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35826 | PyObject *resultobj = 0; | |
35827 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35828 | void *argp1 = 0 ; | |
35829 | int res1 = 0 ; | |
35830 | PyObject *swig_obj[1] ; | |
35831 | ||
35832 | if (!args) SWIG_fail; | |
35833 | swig_obj[0] = args; | |
35834 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35835 | if (!SWIG_IsOK(res1)) { | |
35836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35837 | } | |
35838 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35839 | { | |
35840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35841 | (arg1)->DeleteAllItems(); | |
35842 | wxPyEndAllowThreads(__tstate); | |
35843 | if (PyErr_Occurred()) SWIG_fail; | |
35844 | } | |
35845 | resultobj = SWIG_Py_Void(); | |
35846 | return resultobj; | |
35847 | fail: | |
35848 | return NULL; | |
35849 | } | |
35850 | ||
35851 | ||
35852 | SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35853 | PyObject *resultobj = 0; | |
35854 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35855 | wxTreeItemId *arg2 = 0 ; | |
35856 | void *argp1 = 0 ; | |
35857 | int res1 = 0 ; | |
35858 | void *argp2 = 0 ; | |
35859 | int res2 = 0 ; | |
35860 | PyObject * obj0 = 0 ; | |
35861 | PyObject * obj1 = 0 ; | |
35862 | char * kwnames[] = { | |
35863 | (char *) "self",(char *) "item", NULL | |
35864 | }; | |
35865 | ||
35866 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail; | |
35867 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35868 | if (!SWIG_IsOK(res1)) { | |
35869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35870 | } | |
35871 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35872 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35873 | if (!SWIG_IsOK(res2)) { | |
35874 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35875 | } | |
35876 | if (!argp2) { | |
35877 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35878 | } | |
35879 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35880 | { | |
35881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35882 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
35883 | wxPyEndAllowThreads(__tstate); | |
35884 | if (PyErr_Occurred()) SWIG_fail; | |
35885 | } | |
35886 | resultobj = SWIG_Py_Void(); | |
35887 | return resultobj; | |
35888 | fail: | |
35889 | return NULL; | |
35890 | } | |
35891 | ||
35892 | ||
35893 | SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35894 | PyObject *resultobj = 0; | |
35895 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35896 | wxTreeItemId *arg2 = 0 ; | |
35897 | void *argp1 = 0 ; | |
35898 | int res1 = 0 ; | |
35899 | void *argp2 = 0 ; | |
35900 | int res2 = 0 ; | |
35901 | PyObject * obj0 = 0 ; | |
35902 | PyObject * obj1 = 0 ; | |
35903 | char * kwnames[] = { | |
35904 | (char *) "self",(char *) "item", NULL | |
35905 | }; | |
35906 | ||
35907 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail; | |
35908 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35909 | if (!SWIG_IsOK(res1)) { | |
35910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35911 | } | |
35912 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35913 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35914 | if (!SWIG_IsOK(res2)) { | |
35915 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35916 | } | |
35917 | if (!argp2) { | |
35918 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35919 | } | |
35920 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35921 | { | |
35922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35923 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
35924 | wxPyEndAllowThreads(__tstate); | |
35925 | if (PyErr_Occurred()) SWIG_fail; | |
35926 | } | |
35927 | resultobj = SWIG_Py_Void(); | |
35928 | return resultobj; | |
35929 | fail: | |
35930 | return NULL; | |
35931 | } | |
35932 | ||
35933 | ||
35934 | SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35935 | PyObject *resultobj = 0; | |
35936 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35937 | wxTreeItemId *arg2 = 0 ; | |
35938 | void *argp1 = 0 ; | |
35939 | int res1 = 0 ; | |
35940 | void *argp2 = 0 ; | |
35941 | int res2 = 0 ; | |
35942 | PyObject * obj0 = 0 ; | |
35943 | PyObject * obj1 = 0 ; | |
35944 | char * kwnames[] = { | |
35945 | (char *) "self",(char *) "item", NULL | |
35946 | }; | |
35947 | ||
35948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail; | |
35949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35950 | if (!SWIG_IsOK(res1)) { | |
35951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35952 | } | |
35953 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35954 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35955 | if (!SWIG_IsOK(res2)) { | |
35956 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35957 | } | |
35958 | if (!argp2) { | |
35959 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35960 | } | |
35961 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35962 | { | |
35963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35964 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
35965 | wxPyEndAllowThreads(__tstate); | |
35966 | if (PyErr_Occurred()) SWIG_fail; | |
35967 | } | |
35968 | resultobj = SWIG_Py_Void(); | |
35969 | return resultobj; | |
35970 | fail: | |
35971 | return NULL; | |
35972 | } | |
35973 | ||
35974 | ||
35975 | SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35976 | PyObject *resultobj = 0; | |
35977 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35978 | wxTreeItemId *arg2 = 0 ; | |
35979 | void *argp1 = 0 ; | |
35980 | int res1 = 0 ; | |
35981 | void *argp2 = 0 ; | |
35982 | int res2 = 0 ; | |
35983 | PyObject * obj0 = 0 ; | |
35984 | PyObject * obj1 = 0 ; | |
35985 | char * kwnames[] = { | |
35986 | (char *) "self",(char *) "item", NULL | |
35987 | }; | |
35988 | ||
35989 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
35990 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35991 | if (!SWIG_IsOK(res1)) { | |
35992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35993 | } | |
35994 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35995 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35996 | if (!SWIG_IsOK(res2)) { | |
35997 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35998 | } | |
35999 | if (!argp2) { | |
36000 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36001 | } | |
36002 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36003 | { | |
36004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36005 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
36006 | wxPyEndAllowThreads(__tstate); | |
36007 | if (PyErr_Occurred()) SWIG_fail; | |
36008 | } | |
36009 | resultobj = SWIG_Py_Void(); | |
36010 | return resultobj; | |
36011 | fail: | |
36012 | return NULL; | |
d14a1e28 RD |
36013 | } |
36014 | ||
36015 | ||
0085ce49 RD |
36016 | SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36017 | PyObject *resultobj = 0; | |
36018 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36019 | void *argp1 = 0 ; | |
36020 | int res1 = 0 ; | |
36021 | PyObject *swig_obj[1] ; | |
36022 | ||
36023 | if (!args) SWIG_fail; | |
36024 | swig_obj[0] = args; | |
36025 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36026 | if (!SWIG_IsOK(res1)) { | |
36027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36028 | } | |
36029 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36030 | { | |
36031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36032 | (arg1)->Unselect(); | |
36033 | wxPyEndAllowThreads(__tstate); | |
36034 | if (PyErr_Occurred()) SWIG_fail; | |
36035 | } | |
36036 | resultobj = SWIG_Py_Void(); | |
36037 | return resultobj; | |
36038 | fail: | |
36039 | return NULL; | |
36040 | } | |
36041 | ||
36042 | ||
36043 | SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36044 | PyObject *resultobj = 0; | |
36045 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36046 | wxTreeItemId *arg2 = 0 ; | |
36047 | void *argp1 = 0 ; | |
36048 | int res1 = 0 ; | |
36049 | void *argp2 = 0 ; | |
36050 | int res2 = 0 ; | |
36051 | PyObject * obj0 = 0 ; | |
36052 | PyObject * obj1 = 0 ; | |
36053 | char * kwnames[] = { | |
36054 | (char *) "self",(char *) "item", NULL | |
36055 | }; | |
36056 | ||
36057 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
36058 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36059 | if (!SWIG_IsOK(res1)) { | |
36060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36061 | } | |
36062 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36063 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36064 | if (!SWIG_IsOK(res2)) { | |
36065 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36066 | } | |
36067 | if (!argp2) { | |
36068 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36069 | } | |
36070 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36071 | { | |
36072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36073 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
36074 | wxPyEndAllowThreads(__tstate); | |
36075 | if (PyErr_Occurred()) SWIG_fail; | |
36076 | } | |
36077 | resultobj = SWIG_Py_Void(); | |
36078 | return resultobj; | |
36079 | fail: | |
36080 | return NULL; | |
d14a1e28 RD |
36081 | } |
36082 | ||
36083 | ||
0085ce49 RD |
36084 | SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36085 | PyObject *resultobj = 0; | |
36086 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36087 | void *argp1 = 0 ; | |
36088 | int res1 = 0 ; | |
36089 | PyObject *swig_obj[1] ; | |
36090 | ||
36091 | if (!args) SWIG_fail; | |
36092 | swig_obj[0] = args; | |
36093 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36094 | if (!SWIG_IsOK(res1)) { | |
36095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36096 | } | |
36097 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36098 | { | |
36099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36100 | (arg1)->UnselectAll(); | |
36101 | wxPyEndAllowThreads(__tstate); | |
36102 | if (PyErr_Occurred()) SWIG_fail; | |
36103 | } | |
36104 | resultobj = SWIG_Py_Void(); | |
36105 | return resultobj; | |
36106 | fail: | |
36107 | return NULL; | |
36108 | } | |
36109 | ||
36110 | ||
36111 | SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36112 | PyObject *resultobj = 0; | |
36113 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36114 | wxTreeItemId *arg2 = 0 ; | |
36115 | bool arg3 = (bool) true ; | |
36116 | void *argp1 = 0 ; | |
36117 | int res1 = 0 ; | |
36118 | void *argp2 = 0 ; | |
36119 | int res2 = 0 ; | |
36120 | bool val3 ; | |
36121 | int ecode3 = 0 ; | |
36122 | PyObject * obj0 = 0 ; | |
36123 | PyObject * obj1 = 0 ; | |
36124 | PyObject * obj2 = 0 ; | |
36125 | char * kwnames[] = { | |
36126 | (char *) "self",(char *) "item",(char *) "select", NULL | |
36127 | }; | |
36128 | ||
36129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36131 | if (!SWIG_IsOK(res1)) { | |
36132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36133 | } | |
36134 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36135 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36136 | if (!SWIG_IsOK(res2)) { | |
36137 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36138 | } | |
36139 | if (!argp2) { | |
36140 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36141 | } | |
36142 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36143 | if (obj2) { | |
36144 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
36145 | if (!SWIG_IsOK(ecode3)) { | |
36146 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'"); | |
36147 | } | |
36148 | arg3 = static_cast< bool >(val3); | |
36149 | } | |
36150 | { | |
36151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36152 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
36153 | wxPyEndAllowThreads(__tstate); | |
36154 | if (PyErr_Occurred()) SWIG_fail; | |
36155 | } | |
36156 | resultobj = SWIG_Py_Void(); | |
36157 | return resultobj; | |
36158 | fail: | |
36159 | return NULL; | |
36160 | } | |
36161 | ||
36162 | ||
36163 | SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36164 | PyObject *resultobj = 0; | |
36165 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36166 | wxTreeItemId *arg2 = 0 ; | |
36167 | void *argp1 = 0 ; | |
36168 | int res1 = 0 ; | |
36169 | void *argp2 = 0 ; | |
36170 | int res2 = 0 ; | |
36171 | PyObject * obj0 = 0 ; | |
36172 | PyObject * obj1 = 0 ; | |
36173 | char * kwnames[] = { | |
36174 | (char *) "self",(char *) "item", NULL | |
36175 | }; | |
36176 | ||
36177 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
36178 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36179 | if (!SWIG_IsOK(res1)) { | |
36180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36181 | } | |
36182 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36183 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36184 | if (!SWIG_IsOK(res2)) { | |
36185 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36186 | } | |
36187 | if (!argp2) { | |
36188 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36189 | } | |
36190 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36191 | { | |
36192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36193 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); | |
36194 | wxPyEndAllowThreads(__tstate); | |
36195 | if (PyErr_Occurred()) SWIG_fail; | |
36196 | } | |
36197 | resultobj = SWIG_Py_Void(); | |
36198 | return resultobj; | |
36199 | fail: | |
36200 | return NULL; | |
36201 | } | |
36202 | ||
36203 | ||
36204 | SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36205 | PyObject *resultobj = 0; | |
36206 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36207 | wxTreeItemId *arg2 = 0 ; | |
36208 | void *argp1 = 0 ; | |
36209 | int res1 = 0 ; | |
36210 | void *argp2 = 0 ; | |
36211 | int res2 = 0 ; | |
36212 | PyObject * obj0 = 0 ; | |
36213 | PyObject * obj1 = 0 ; | |
36214 | char * kwnames[] = { | |
36215 | (char *) "self",(char *) "item", NULL | |
36216 | }; | |
36217 | ||
36218 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
36219 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36220 | if (!SWIG_IsOK(res1)) { | |
36221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36222 | } | |
36223 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36224 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36225 | if (!SWIG_IsOK(res2)) { | |
36226 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36227 | } | |
36228 | if (!argp2) { | |
36229 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36230 | } | |
36231 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36232 | { | |
36233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36234 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
36235 | wxPyEndAllowThreads(__tstate); | |
36236 | if (PyErr_Occurred()) SWIG_fail; | |
36237 | } | |
36238 | resultobj = SWIG_Py_Void(); | |
36239 | return resultobj; | |
36240 | fail: | |
36241 | return NULL; | |
36242 | } | |
36243 | ||
36244 | ||
36245 | SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36246 | PyObject *resultobj = 0; | |
36247 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36248 | wxTreeItemId *arg2 = 0 ; | |
36249 | void *argp1 = 0 ; | |
36250 | int res1 = 0 ; | |
36251 | void *argp2 = 0 ; | |
36252 | int res2 = 0 ; | |
36253 | PyObject * obj0 = 0 ; | |
36254 | PyObject * obj1 = 0 ; | |
36255 | char * kwnames[] = { | |
36256 | (char *) "self",(char *) "item", NULL | |
36257 | }; | |
36258 | ||
36259 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail; | |
36260 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36261 | if (!SWIG_IsOK(res1)) { | |
36262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36263 | } | |
36264 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36265 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36266 | if (!SWIG_IsOK(res2)) { | |
36267 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36268 | } | |
36269 | if (!argp2) { | |
36270 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36271 | } | |
36272 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36273 | { | |
36274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36275 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
36276 | wxPyEndAllowThreads(__tstate); | |
36277 | if (PyErr_Occurred()) SWIG_fail; | |
36278 | } | |
36279 | resultobj = SWIG_Py_Void(); | |
36280 | return resultobj; | |
36281 | fail: | |
36282 | return NULL; | |
36283 | } | |
36284 | ||
36285 | ||
36286 | SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36287 | PyObject *resultobj = 0; | |
36288 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36289 | wxTreeItemId *arg2 = 0 ; | |
36290 | void *argp1 = 0 ; | |
36291 | int res1 = 0 ; | |
36292 | void *argp2 = 0 ; | |
36293 | int res2 = 0 ; | |
36294 | PyObject * obj0 = 0 ; | |
36295 | PyObject * obj1 = 0 ; | |
36296 | char * kwnames[] = { | |
36297 | (char *) "self",(char *) "item", NULL | |
36298 | }; | |
36299 | ||
36300 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
36301 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36302 | if (!SWIG_IsOK(res1)) { | |
36303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36304 | } | |
36305 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36306 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36307 | if (!SWIG_IsOK(res2)) { | |
36308 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36309 | } | |
36310 | if (!argp2) { | |
36311 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36312 | } | |
36313 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36314 | { | |
36315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36316 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
36317 | wxPyEndAllowThreads(__tstate); | |
36318 | if (PyErr_Occurred()) SWIG_fail; | |
36319 | } | |
36320 | resultobj = SWIG_Py_Void(); | |
36321 | return resultobj; | |
36322 | fail: | |
36323 | return NULL; | |
d14a1e28 RD |
36324 | } |
36325 | ||
36326 | ||
0085ce49 RD |
36327 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36328 | PyObject *resultobj = 0; | |
36329 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36330 | wxTextCtrl *result = 0 ; | |
36331 | void *argp1 = 0 ; | |
36332 | int res1 = 0 ; | |
36333 | PyObject *swig_obj[1] ; | |
36334 | ||
36335 | if (!args) SWIG_fail; | |
36336 | swig_obj[0] = args; | |
36337 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36338 | if (!SWIG_IsOK(res1)) { | |
36339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
36340 | } | |
36341 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36342 | { | |
36343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36344 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
36345 | wxPyEndAllowThreads(__tstate); | |
36346 | if (PyErr_Occurred()) SWIG_fail; | |
36347 | } | |
36348 | { | |
36349 | resultobj = wxPyMake_wxObject(result, 0); | |
36350 | } | |
36351 | return resultobj; | |
36352 | fail: | |
36353 | return NULL; | |
36354 | } | |
36355 | ||
36356 | ||
36357 | SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36358 | PyObject *resultobj = 0; | |
36359 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36360 | wxTreeItemId *arg2 = 0 ; | |
36361 | void *argp1 = 0 ; | |
36362 | int res1 = 0 ; | |
36363 | void *argp2 = 0 ; | |
36364 | int res2 = 0 ; | |
36365 | PyObject * obj0 = 0 ; | |
36366 | PyObject * obj1 = 0 ; | |
36367 | char * kwnames[] = { | |
36368 | (char *) "self",(char *) "item", NULL | |
36369 | }; | |
36370 | ||
36371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
36372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36373 | if (!SWIG_IsOK(res1)) { | |
36374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36375 | } | |
36376 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36377 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36378 | if (!SWIG_IsOK(res2)) { | |
36379 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36380 | } | |
36381 | if (!argp2) { | |
36382 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36383 | } | |
36384 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36385 | { | |
36386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36387 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
36388 | wxPyEndAllowThreads(__tstate); | |
36389 | if (PyErr_Occurred()) SWIG_fail; | |
36390 | } | |
36391 | resultobj = SWIG_Py_Void(); | |
36392 | return resultobj; | |
36393 | fail: | |
36394 | return NULL; | |
36395 | } | |
36396 | ||
36397 | ||
36398 | SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36399 | PyObject *resultobj = 0; | |
36400 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36401 | wxPoint *arg2 = 0 ; | |
36402 | int *arg3 = 0 ; | |
36403 | wxTreeItemId result; | |
36404 | void *argp1 = 0 ; | |
36405 | int res1 = 0 ; | |
36406 | wxPoint temp2 ; | |
36407 | int temp3 ; | |
36408 | int res3 = SWIG_TMPOBJ ; | |
36409 | PyObject * obj0 = 0 ; | |
36410 | PyObject * obj1 = 0 ; | |
36411 | char * kwnames[] = { | |
36412 | (char *) "self",(char *) "point", NULL | |
36413 | }; | |
36414 | ||
36415 | arg3 = &temp3; | |
36416 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
36417 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36418 | if (!SWIG_IsOK(res1)) { | |
36419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36420 | } | |
36421 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36422 | { | |
36423 | arg2 = &temp2; | |
36424 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36425 | } | |
36426 | { | |
36427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36428 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
36429 | wxPyEndAllowThreads(__tstate); | |
36430 | if (PyErr_Occurred()) SWIG_fail; | |
36431 | } | |
36432 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36433 | if (SWIG_IsTmpObj(res3)) { | |
36434 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
36435 | } else { | |
36436 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
36437 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
36438 | } | |
36439 | return resultobj; | |
36440 | fail: | |
36441 | return NULL; | |
36442 | } | |
36443 | ||
36444 | ||
36445 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36446 | PyObject *resultobj = 0; | |
36447 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36448 | wxTreeItemId *arg2 = 0 ; | |
36449 | bool arg3 = (bool) false ; | |
36450 | PyObject *result = 0 ; | |
36451 | void *argp1 = 0 ; | |
36452 | int res1 = 0 ; | |
36453 | void *argp2 = 0 ; | |
36454 | int res2 = 0 ; | |
36455 | bool val3 ; | |
36456 | int ecode3 = 0 ; | |
36457 | PyObject * obj0 = 0 ; | |
36458 | PyObject * obj1 = 0 ; | |
36459 | PyObject * obj2 = 0 ; | |
36460 | char * kwnames[] = { | |
36461 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
36462 | }; | |
36463 | ||
36464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36466 | if (!SWIG_IsOK(res1)) { | |
36467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36468 | } | |
36469 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36470 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36471 | if (!SWIG_IsOK(res2)) { | |
36472 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36473 | } | |
36474 | if (!argp2) { | |
36475 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36476 | } | |
36477 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36478 | if (obj2) { | |
36479 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
36480 | if (!SWIG_IsOK(ecode3)) { | |
36481 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'"); | |
36482 | } | |
36483 | arg3 = static_cast< bool >(val3); | |
36484 | } | |
36485 | { | |
36486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36487 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
36488 | wxPyEndAllowThreads(__tstate); | |
36489 | if (PyErr_Occurred()) SWIG_fail; | |
36490 | } | |
36491 | resultobj = result; | |
36492 | return resultobj; | |
36493 | fail: | |
36494 | return NULL; | |
36495 | } | |
36496 | ||
36497 | ||
36498 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36499 | PyObject *resultobj = 0; | |
36500 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
36501 | SwigValueWrapper<wxVisualAttributes > result; | |
36502 | int val1 ; | |
36503 | int ecode1 = 0 ; | |
36504 | PyObject * obj0 = 0 ; | |
36505 | char * kwnames[] = { | |
36506 | (char *) "variant", NULL | |
36507 | }; | |
36508 | ||
36509 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
36510 | if (obj0) { | |
36511 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
36512 | if (!SWIG_IsOK(ecode1)) { | |
36513 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
36514 | } | |
36515 | arg1 = static_cast< wxWindowVariant >(val1); | |
36516 | } | |
36517 | { | |
36518 | if (!wxPyCheckForApp()) SWIG_fail; | |
36519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36520 | result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1); | |
36521 | wxPyEndAllowThreads(__tstate); | |
36522 | if (PyErr_Occurred()) SWIG_fail; | |
36523 | } | |
36524 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
36525 | return resultobj; | |
36526 | fail: | |
36527 | return NULL; | |
d14a1e28 RD |
36528 | } |
36529 | ||
36530 | ||
0085ce49 RD |
36531 | SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36532 | PyObject *obj; | |
36533 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
36534 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj)); | |
36535 | return SWIG_Py_Void(); | |
d14a1e28 RD |
36536 | } |
36537 | ||
0085ce49 RD |
36538 | SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36539 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
36540 | } |
36541 | ||
0085ce49 RD |
36542 | SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) { |
36543 | SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
36544 | return 1; | |
d14a1e28 RD |
36545 | } |
36546 | ||
36547 | ||
0085ce49 RD |
36548 | SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) { |
36549 | PyObject *pyobj = 0; | |
36550 | ||
36551 | { | |
36552 | #if wxUSE_UNICODE | |
36553 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
36554 | #else | |
36555 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
36556 | #endif | |
36557 | } | |
36558 | return pyobj; | |
36559 | } | |
36560 | ||
36561 | ||
36562 | SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36563 | PyObject *resultobj = 0; | |
36564 | wxWindow *arg1 = (wxWindow *) 0 ; | |
36565 | int arg2 = (int) (int)-1 ; | |
36566 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
36567 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
36568 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
36569 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
36570 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
36571 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
36572 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
36573 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
36574 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
36575 | int arg8 = (int) 0 ; | |
36576 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
36577 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
36578 | wxGenericDirCtrl *result = 0 ; | |
36579 | void *argp1 = 0 ; | |
36580 | int res1 = 0 ; | |
36581 | int val2 ; | |
36582 | int ecode2 = 0 ; | |
36583 | bool temp3 = false ; | |
36584 | wxPoint temp4 ; | |
36585 | wxSize temp5 ; | |
36586 | long val6 ; | |
36587 | int ecode6 = 0 ; | |
36588 | bool temp7 = false ; | |
36589 | int val8 ; | |
36590 | int ecode8 = 0 ; | |
36591 | bool temp9 = false ; | |
36592 | PyObject * obj0 = 0 ; | |
36593 | PyObject * obj1 = 0 ; | |
36594 | PyObject * obj2 = 0 ; | |
36595 | PyObject * obj3 = 0 ; | |
36596 | PyObject * obj4 = 0 ; | |
36597 | PyObject * obj5 = 0 ; | |
36598 | PyObject * obj6 = 0 ; | |
36599 | PyObject * obj7 = 0 ; | |
36600 | PyObject * obj8 = 0 ; | |
36601 | char * kwnames[] = { | |
36602 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
36603 | }; | |
36604 | ||
36605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
36606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
36607 | if (!SWIG_IsOK(res1)) { | |
36608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
36609 | } | |
36610 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
36611 | if (obj1) { | |
36612 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36613 | if (!SWIG_IsOK(ecode2)) { | |
36614 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'"); | |
36615 | } | |
36616 | arg2 = static_cast< int >(val2); | |
36617 | } | |
36618 | if (obj2) { | |
d14a1e28 | 36619 | { |
0085ce49 RD |
36620 | arg3 = wxString_in_helper(obj2); |
36621 | if (arg3 == NULL) SWIG_fail; | |
36622 | temp3 = true; | |
d14a1e28 | 36623 | } |
0085ce49 RD |
36624 | } |
36625 | if (obj3) { | |
4f89f6a3 | 36626 | { |
0085ce49 RD |
36627 | arg4 = &temp4; |
36628 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 36629 | } |
0085ce49 RD |
36630 | } |
36631 | if (obj4) { | |
093d3ff1 | 36632 | { |
0085ce49 RD |
36633 | arg5 = &temp5; |
36634 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 36635 | } |
0085ce49 RD |
36636 | } |
36637 | if (obj5) { | |
36638 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
36639 | if (!SWIG_IsOK(ecode6)) { | |
36640 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'"); | |
36641 | } | |
36642 | arg6 = static_cast< long >(val6); | |
36643 | } | |
36644 | if (obj6) { | |
093d3ff1 | 36645 | { |
0085ce49 RD |
36646 | arg7 = wxString_in_helper(obj6); |
36647 | if (arg7 == NULL) SWIG_fail; | |
36648 | temp7 = true; | |
093d3ff1 | 36649 | } |
0085ce49 RD |
36650 | } |
36651 | if (obj7) { | |
36652 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
36653 | if (!SWIG_IsOK(ecode8)) { | |
36654 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'"); | |
36655 | } | |
36656 | arg8 = static_cast< int >(val8); | |
36657 | } | |
36658 | if (obj8) { | |
d14a1e28 | 36659 | { |
0085ce49 RD |
36660 | arg9 = wxString_in_helper(obj8); |
36661 | if (arg9 == NULL) SWIG_fail; | |
36662 | temp9 = true; | |
d14a1e28 | 36663 | } |
0085ce49 RD |
36664 | } |
36665 | { | |
36666 | if (!wxPyCheckForApp()) SWIG_fail; | |
36667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36668 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
36669 | wxPyEndAllowThreads(__tstate); | |
36670 | if (PyErr_Occurred()) SWIG_fail; | |
36671 | } | |
36672 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 ); | |
36673 | { | |
36674 | if (temp3) | |
36675 | delete arg3; | |
36676 | } | |
36677 | { | |
36678 | if (temp7) | |
36679 | delete arg7; | |
36680 | } | |
36681 | { | |
36682 | if (temp9) | |
36683 | delete arg9; | |
36684 | } | |
36685 | return resultobj; | |
36686 | fail: | |
36687 | { | |
36688 | if (temp3) | |
36689 | delete arg3; | |
36690 | } | |
36691 | { | |
36692 | if (temp7) | |
36693 | delete arg7; | |
36694 | } | |
36695 | { | |
36696 | if (temp9) | |
36697 | delete arg9; | |
36698 | } | |
36699 | return NULL; | |
d14a1e28 RD |
36700 | } |
36701 | ||
36702 | ||
0085ce49 RD |
36703 | SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36704 | PyObject *resultobj = 0; | |
36705 | wxGenericDirCtrl *result = 0 ; | |
36706 | ||
36707 | if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail; | |
36708 | { | |
36709 | if (!wxPyCheckForApp()) SWIG_fail; | |
36710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36711 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
36712 | wxPyEndAllowThreads(__tstate); | |
36713 | if (PyErr_Occurred()) SWIG_fail; | |
36714 | } | |
36715 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 ); | |
36716 | return resultobj; | |
36717 | fail: | |
36718 | return NULL; | |
36719 | } | |
36720 | ||
36721 | ||
36722 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36723 | PyObject *resultobj = 0; | |
36724 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
36725 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36726 | int arg3 = (int) (int)-1 ; | |
36727 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
36728 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
36729 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
36730 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
36731 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
36732 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
36733 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
36734 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
36735 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
36736 | int arg9 = (int) 0 ; | |
36737 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
36738 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
36739 | bool result; | |
36740 | void *argp1 = 0 ; | |
36741 | int res1 = 0 ; | |
36742 | void *argp2 = 0 ; | |
36743 | int res2 = 0 ; | |
36744 | int val3 ; | |
36745 | int ecode3 = 0 ; | |
36746 | bool temp4 = false ; | |
36747 | wxPoint temp5 ; | |
36748 | wxSize temp6 ; | |
36749 | long val7 ; | |
36750 | int ecode7 = 0 ; | |
36751 | bool temp8 = false ; | |
36752 | int val9 ; | |
36753 | int ecode9 = 0 ; | |
36754 | bool temp10 = false ; | |
36755 | PyObject * obj0 = 0 ; | |
36756 | PyObject * obj1 = 0 ; | |
36757 | PyObject * obj2 = 0 ; | |
36758 | PyObject * obj3 = 0 ; | |
36759 | PyObject * obj4 = 0 ; | |
36760 | PyObject * obj5 = 0 ; | |
36761 | PyObject * obj6 = 0 ; | |
36762 | PyObject * obj7 = 0 ; | |
36763 | PyObject * obj8 = 0 ; | |
36764 | PyObject * obj9 = 0 ; | |
36765 | char * kwnames[] = { | |
36766 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
36767 | }; | |
36768 | ||
36769 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
36770 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
36771 | if (!SWIG_IsOK(res1)) { | |
36772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
36773 | } | |
36774 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
36775 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
36776 | if (!SWIG_IsOK(res2)) { | |
36777 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
36778 | } | |
36779 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
36780 | if (obj2) { | |
36781 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36782 | if (!SWIG_IsOK(ecode3)) { | |
36783 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
36784 | } | |
36785 | arg3 = static_cast< int >(val3); | |
36786 | } | |
36787 | if (obj3) { | |
093d3ff1 | 36788 | { |
0085ce49 RD |
36789 | arg4 = wxString_in_helper(obj3); |
36790 | if (arg4 == NULL) SWIG_fail; | |
36791 | temp4 = true; | |
093d3ff1 | 36792 | } |
0085ce49 RD |
36793 | } |
36794 | if (obj4) { | |
093d3ff1 | 36795 | { |
0085ce49 RD |
36796 | arg5 = &temp5; |
36797 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 36798 | } |
0085ce49 RD |
36799 | } |
36800 | if (obj5) { | |
d14a1e28 | 36801 | { |
0085ce49 RD |
36802 | arg6 = &temp6; |
36803 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 36804 | } |
0085ce49 RD |
36805 | } |
36806 | if (obj6) { | |
36807 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
36808 | if (!SWIG_IsOK(ecode7)) { | |
36809 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
36810 | } | |
36811 | arg7 = static_cast< long >(val7); | |
36812 | } | |
36813 | if (obj7) { | |
093d3ff1 | 36814 | { |
0085ce49 RD |
36815 | arg8 = wxString_in_helper(obj7); |
36816 | if (arg8 == NULL) SWIG_fail; | |
36817 | temp8 = true; | |
093d3ff1 | 36818 | } |
0085ce49 RD |
36819 | } |
36820 | if (obj8) { | |
36821 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
36822 | if (!SWIG_IsOK(ecode9)) { | |
36823 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'"); | |
36824 | } | |
36825 | arg9 = static_cast< int >(val9); | |
36826 | } | |
36827 | if (obj9) { | |
093d3ff1 | 36828 | { |
0085ce49 RD |
36829 | arg10 = wxString_in_helper(obj9); |
36830 | if (arg10 == NULL) SWIG_fail; | |
36831 | temp10 = true; | |
093d3ff1 | 36832 | } |
0085ce49 RD |
36833 | } |
36834 | { | |
36835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36836 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
36837 | wxPyEndAllowThreads(__tstate); | |
36838 | if (PyErr_Occurred()) SWIG_fail; | |
36839 | } | |
36840 | { | |
36841 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36842 | } | |
36843 | { | |
36844 | if (temp4) | |
36845 | delete arg4; | |
36846 | } | |
36847 | { | |
36848 | if (temp8) | |
36849 | delete arg8; | |
36850 | } | |
36851 | { | |
36852 | if (temp10) | |
36853 | delete arg10; | |
36854 | } | |
36855 | return resultobj; | |
36856 | fail: | |
36857 | { | |
36858 | if (temp4) | |
36859 | delete arg4; | |
36860 | } | |
36861 | { | |
36862 | if (temp8) | |
36863 | delete arg8; | |
36864 | } | |
36865 | { | |
36866 | if (temp10) | |
36867 | delete arg10; | |
36868 | } | |
36869 | return NULL; | |
36870 | } | |
36871 | ||
36872 | ||
36873 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36874 | PyObject *resultobj = 0; | |
36875 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
36876 | wxString *arg2 = 0 ; | |
36877 | bool result; | |
36878 | void *argp1 = 0 ; | |
36879 | int res1 = 0 ; | |
36880 | bool temp2 = false ; | |
36881 | PyObject * obj0 = 0 ; | |
36882 | PyObject * obj1 = 0 ; | |
36883 | char * kwnames[] = { | |
36884 | (char *) "self",(char *) "path", NULL | |
36885 | }; | |
36886 | ||
36887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
36888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
36889 | if (!SWIG_IsOK(res1)) { | |
36890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
36891 | } | |
36892 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
36893 | { | |
36894 | arg2 = wxString_in_helper(obj1); | |
36895 | if (arg2 == NULL) SWIG_fail; | |
36896 | temp2 = true; | |
36897 | } | |
36898 | { | |
36899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36900 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
36901 | wxPyEndAllowThreads(__tstate); | |
36902 | if (PyErr_Occurred()) SWIG_fail; | |
36903 | } | |
36904 | { | |
36905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36906 | } | |
36907 | { | |
36908 | if (temp2) | |
36909 | delete arg2; | |
36910 | } | |
36911 | return resultobj; | |
36912 | fail: | |
36913 | { | |
36914 | if (temp2) | |
36915 | delete arg2; | |
36916 | } | |
36917 | return NULL; | |
d14a1e28 RD |
36918 | } |
36919 | ||
36920 | ||
0085ce49 RD |
36921 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36922 | PyObject *resultobj = 0; | |
36923 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
36924 | wxString result; | |
36925 | void *argp1 = 0 ; | |
36926 | int res1 = 0 ; | |
36927 | PyObject *swig_obj[1] ; | |
36928 | ||
36929 | if (!args) SWIG_fail; | |
36930 | swig_obj[0] = args; | |
36931 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
36932 | if (!SWIG_IsOK(res1)) { | |
36933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
36934 | } | |
36935 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
36936 | { | |
36937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36938 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
36939 | wxPyEndAllowThreads(__tstate); | |
36940 | if (PyErr_Occurred()) SWIG_fail; | |
36941 | } | |
36942 | { | |
36943 | #if wxUSE_UNICODE | |
36944 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
36945 | #else | |
36946 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
36947 | #endif | |
36948 | } | |
36949 | return resultobj; | |
36950 | fail: | |
36951 | return NULL; | |
36952 | } | |
36953 | ||
36954 | ||
36955 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36956 | PyObject *resultobj = 0; | |
36957 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
36958 | wxString *arg2 = 0 ; | |
36959 | void *argp1 = 0 ; | |
36960 | int res1 = 0 ; | |
36961 | bool temp2 = false ; | |
36962 | PyObject * obj0 = 0 ; | |
36963 | PyObject * obj1 = 0 ; | |
36964 | char * kwnames[] = { | |
36965 | (char *) "self",(char *) "path", NULL | |
36966 | }; | |
36967 | ||
36968 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
36969 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
36970 | if (!SWIG_IsOK(res1)) { | |
36971 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
36972 | } | |
36973 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
36974 | { | |
36975 | arg2 = wxString_in_helper(obj1); | |
36976 | if (arg2 == NULL) SWIG_fail; | |
36977 | temp2 = true; | |
36978 | } | |
36979 | { | |
36980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36981 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
36982 | wxPyEndAllowThreads(__tstate); | |
36983 | if (PyErr_Occurred()) SWIG_fail; | |
36984 | } | |
36985 | resultobj = SWIG_Py_Void(); | |
36986 | { | |
36987 | if (temp2) | |
36988 | delete arg2; | |
36989 | } | |
36990 | return resultobj; | |
36991 | fail: | |
36992 | { | |
36993 | if (temp2) | |
36994 | delete arg2; | |
36995 | } | |
36996 | return NULL; | |
d14a1e28 RD |
36997 | } |
36998 | ||
36999 | ||
0085ce49 RD |
37000 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37001 | PyObject *resultobj = 0; | |
37002 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37003 | wxString result; | |
37004 | void *argp1 = 0 ; | |
37005 | int res1 = 0 ; | |
37006 | PyObject *swig_obj[1] ; | |
37007 | ||
37008 | if (!args) SWIG_fail; | |
37009 | swig_obj[0] = args; | |
37010 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37011 | if (!SWIG_IsOK(res1)) { | |
37012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
37013 | } | |
37014 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37015 | { | |
37016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37017 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
37018 | wxPyEndAllowThreads(__tstate); | |
37019 | if (PyErr_Occurred()) SWIG_fail; | |
37020 | } | |
37021 | { | |
37022 | #if wxUSE_UNICODE | |
37023 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
37024 | #else | |
37025 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
37026 | #endif | |
37027 | } | |
37028 | return resultobj; | |
37029 | fail: | |
37030 | return NULL; | |
d14a1e28 RD |
37031 | } |
37032 | ||
37033 | ||
0085ce49 RD |
37034 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37035 | PyObject *resultobj = 0; | |
37036 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37037 | wxString result; | |
37038 | void *argp1 = 0 ; | |
37039 | int res1 = 0 ; | |
37040 | PyObject *swig_obj[1] ; | |
37041 | ||
37042 | if (!args) SWIG_fail; | |
37043 | swig_obj[0] = args; | |
37044 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37045 | if (!SWIG_IsOK(res1)) { | |
37046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
37047 | } | |
37048 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37049 | { | |
37050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37051 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
37052 | wxPyEndAllowThreads(__tstate); | |
37053 | if (PyErr_Occurred()) SWIG_fail; | |
37054 | } | |
37055 | { | |
37056 | #if wxUSE_UNICODE | |
37057 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
37058 | #else | |
37059 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
37060 | #endif | |
37061 | } | |
37062 | return resultobj; | |
37063 | fail: | |
37064 | return NULL; | |
37065 | } | |
37066 | ||
37067 | ||
37068 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37069 | PyObject *resultobj = 0; | |
37070 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37071 | wxString *arg2 = 0 ; | |
37072 | void *argp1 = 0 ; | |
37073 | int res1 = 0 ; | |
37074 | bool temp2 = false ; | |
37075 | PyObject * obj0 = 0 ; | |
37076 | PyObject * obj1 = 0 ; | |
37077 | char * kwnames[] = { | |
37078 | (char *) "self",(char *) "path", NULL | |
37079 | }; | |
37080 | ||
37081 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
37082 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37083 | if (!SWIG_IsOK(res1)) { | |
37084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37085 | } | |
37086 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37087 | { | |
37088 | arg2 = wxString_in_helper(obj1); | |
37089 | if (arg2 == NULL) SWIG_fail; | |
37090 | temp2 = true; | |
37091 | } | |
37092 | { | |
37093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37094 | (arg1)->SetPath((wxString const &)*arg2); | |
37095 | wxPyEndAllowThreads(__tstate); | |
37096 | if (PyErr_Occurred()) SWIG_fail; | |
37097 | } | |
37098 | resultobj = SWIG_Py_Void(); | |
37099 | { | |
37100 | if (temp2) | |
37101 | delete arg2; | |
37102 | } | |
37103 | return resultobj; | |
37104 | fail: | |
37105 | { | |
37106 | if (temp2) | |
37107 | delete arg2; | |
37108 | } | |
37109 | return NULL; | |
37110 | } | |
37111 | ||
37112 | ||
37113 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37114 | PyObject *resultobj = 0; | |
37115 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37116 | bool arg2 ; | |
37117 | void *argp1 = 0 ; | |
37118 | int res1 = 0 ; | |
37119 | bool val2 ; | |
37120 | int ecode2 = 0 ; | |
37121 | PyObject * obj0 = 0 ; | |
37122 | PyObject * obj1 = 0 ; | |
37123 | char * kwnames[] = { | |
37124 | (char *) "self",(char *) "show", NULL | |
37125 | }; | |
37126 | ||
37127 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail; | |
37128 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37129 | if (!SWIG_IsOK(res1)) { | |
37130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37131 | } | |
37132 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37133 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
37134 | if (!SWIG_IsOK(ecode2)) { | |
37135 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'"); | |
37136 | } | |
37137 | arg2 = static_cast< bool >(val2); | |
37138 | { | |
37139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37140 | (arg1)->ShowHidden(arg2); | |
37141 | wxPyEndAllowThreads(__tstate); | |
37142 | if (PyErr_Occurred()) SWIG_fail; | |
37143 | } | |
37144 | resultobj = SWIG_Py_Void(); | |
37145 | return resultobj; | |
37146 | fail: | |
37147 | return NULL; | |
d14a1e28 RD |
37148 | } |
37149 | ||
37150 | ||
0085ce49 RD |
37151 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37152 | PyObject *resultobj = 0; | |
37153 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37154 | bool result; | |
37155 | void *argp1 = 0 ; | |
37156 | int res1 = 0 ; | |
37157 | PyObject *swig_obj[1] ; | |
37158 | ||
37159 | if (!args) SWIG_fail; | |
37160 | swig_obj[0] = args; | |
37161 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37162 | if (!SWIG_IsOK(res1)) { | |
37163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37164 | } | |
37165 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37166 | { | |
37167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37168 | result = (bool)(arg1)->GetShowHidden(); | |
37169 | wxPyEndAllowThreads(__tstate); | |
37170 | if (PyErr_Occurred()) SWIG_fail; | |
37171 | } | |
37172 | { | |
37173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37174 | } | |
37175 | return resultobj; | |
37176 | fail: | |
37177 | return NULL; | |
d14a1e28 RD |
37178 | } |
37179 | ||
37180 | ||
0085ce49 RD |
37181 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37182 | PyObject *resultobj = 0; | |
37183 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37184 | wxString result; | |
37185 | void *argp1 = 0 ; | |
37186 | int res1 = 0 ; | |
37187 | PyObject *swig_obj[1] ; | |
37188 | ||
37189 | if (!args) SWIG_fail; | |
37190 | swig_obj[0] = args; | |
37191 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37192 | if (!SWIG_IsOK(res1)) { | |
37193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
37194 | } | |
37195 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37196 | { | |
37197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37198 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
37199 | wxPyEndAllowThreads(__tstate); | |
37200 | if (PyErr_Occurred()) SWIG_fail; | |
37201 | } | |
37202 | { | |
37203 | #if wxUSE_UNICODE | |
37204 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
37205 | #else | |
37206 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
37207 | #endif | |
37208 | } | |
37209 | return resultobj; | |
37210 | fail: | |
37211 | return NULL; | |
37212 | } | |
37213 | ||
37214 | ||
37215 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37216 | PyObject *resultobj = 0; | |
37217 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37218 | wxString *arg2 = 0 ; | |
37219 | void *argp1 = 0 ; | |
37220 | int res1 = 0 ; | |
37221 | bool temp2 = false ; | |
37222 | PyObject * obj0 = 0 ; | |
37223 | PyObject * obj1 = 0 ; | |
37224 | char * kwnames[] = { | |
37225 | (char *) "self",(char *) "filter", NULL | |
37226 | }; | |
37227 | ||
37228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail; | |
37229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37230 | if (!SWIG_IsOK(res1)) { | |
37231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37232 | } | |
37233 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37234 | { | |
37235 | arg2 = wxString_in_helper(obj1); | |
37236 | if (arg2 == NULL) SWIG_fail; | |
37237 | temp2 = true; | |
37238 | } | |
37239 | { | |
37240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37241 | (arg1)->SetFilter((wxString const &)*arg2); | |
37242 | wxPyEndAllowThreads(__tstate); | |
37243 | if (PyErr_Occurred()) SWIG_fail; | |
37244 | } | |
37245 | resultobj = SWIG_Py_Void(); | |
37246 | { | |
37247 | if (temp2) | |
37248 | delete arg2; | |
37249 | } | |
37250 | return resultobj; | |
37251 | fail: | |
37252 | { | |
37253 | if (temp2) | |
37254 | delete arg2; | |
37255 | } | |
37256 | return NULL; | |
d14a1e28 RD |
37257 | } |
37258 | ||
37259 | ||
0085ce49 RD |
37260 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37261 | PyObject *resultobj = 0; | |
37262 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37263 | int result; | |
37264 | void *argp1 = 0 ; | |
37265 | int res1 = 0 ; | |
37266 | PyObject *swig_obj[1] ; | |
37267 | ||
37268 | if (!args) SWIG_fail; | |
37269 | swig_obj[0] = args; | |
37270 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37271 | if (!SWIG_IsOK(res1)) { | |
37272 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
37273 | } | |
37274 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37275 | { | |
37276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37277 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
37278 | wxPyEndAllowThreads(__tstate); | |
37279 | if (PyErr_Occurred()) SWIG_fail; | |
37280 | } | |
37281 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
37282 | return resultobj; | |
37283 | fail: | |
37284 | return NULL; | |
37285 | } | |
37286 | ||
37287 | ||
37288 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37289 | PyObject *resultobj = 0; | |
37290 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37291 | int arg2 ; | |
37292 | void *argp1 = 0 ; | |
37293 | int res1 = 0 ; | |
37294 | int val2 ; | |
37295 | int ecode2 = 0 ; | |
37296 | PyObject * obj0 = 0 ; | |
37297 | PyObject * obj1 = 0 ; | |
37298 | char * kwnames[] = { | |
37299 | (char *) "self",(char *) "n", NULL | |
37300 | }; | |
37301 | ||
37302 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
37303 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37304 | if (!SWIG_IsOK(res1)) { | |
37305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37306 | } | |
37307 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37308 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37309 | if (!SWIG_IsOK(ecode2)) { | |
37310 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'"); | |
37311 | } | |
37312 | arg2 = static_cast< int >(val2); | |
37313 | { | |
37314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37315 | (arg1)->SetFilterIndex(arg2); | |
37316 | wxPyEndAllowThreads(__tstate); | |
37317 | if (PyErr_Occurred()) SWIG_fail; | |
37318 | } | |
37319 | resultobj = SWIG_Py_Void(); | |
37320 | return resultobj; | |
37321 | fail: | |
37322 | return NULL; | |
d14a1e28 RD |
37323 | } |
37324 | ||
37325 | ||
0085ce49 RD |
37326 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37327 | PyObject *resultobj = 0; | |
37328 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37329 | wxTreeItemId result; | |
37330 | void *argp1 = 0 ; | |
37331 | int res1 = 0 ; | |
37332 | PyObject *swig_obj[1] ; | |
37333 | ||
37334 | if (!args) SWIG_fail; | |
37335 | swig_obj[0] = args; | |
37336 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37337 | if (!SWIG_IsOK(res1)) { | |
37338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37339 | } | |
37340 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37341 | { | |
37342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37343 | result = (arg1)->GetRootId(); | |
37344 | wxPyEndAllowThreads(__tstate); | |
37345 | if (PyErr_Occurred()) SWIG_fail; | |
37346 | } | |
37347 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
37348 | return resultobj; | |
37349 | fail: | |
37350 | return NULL; | |
d14a1e28 RD |
37351 | } |
37352 | ||
37353 | ||
0085ce49 RD |
37354 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37355 | PyObject *resultobj = 0; | |
37356 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37357 | wxPyTreeCtrl *result = 0 ; | |
37358 | void *argp1 = 0 ; | |
37359 | int res1 = 0 ; | |
37360 | PyObject *swig_obj[1] ; | |
37361 | ||
37362 | if (!args) SWIG_fail; | |
37363 | swig_obj[0] = args; | |
37364 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37365 | if (!SWIG_IsOK(res1)) { | |
37366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
37367 | } | |
37368 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37369 | { | |
37370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37371 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
37372 | wxPyEndAllowThreads(__tstate); | |
37373 | if (PyErr_Occurred()) SWIG_fail; | |
37374 | } | |
37375 | { | |
37376 | resultobj = wxPyMake_wxObject(result, 0); | |
37377 | } | |
37378 | return resultobj; | |
37379 | fail: | |
37380 | return NULL; | |
d14a1e28 RD |
37381 | } |
37382 | ||
37383 | ||
0085ce49 RD |
37384 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37385 | PyObject *resultobj = 0; | |
37386 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37387 | wxDirFilterListCtrl *result = 0 ; | |
37388 | void *argp1 = 0 ; | |
37389 | int res1 = 0 ; | |
37390 | PyObject *swig_obj[1] ; | |
37391 | ||
37392 | if (!args) SWIG_fail; | |
37393 | swig_obj[0] = args; | |
37394 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37395 | if (!SWIG_IsOK(res1)) { | |
37396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
37397 | } | |
37398 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37399 | { | |
37400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37401 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
37402 | wxPyEndAllowThreads(__tstate); | |
37403 | if (PyErr_Occurred()) SWIG_fail; | |
37404 | } | |
37405 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
37406 | return resultobj; | |
37407 | fail: | |
37408 | return NULL; | |
37409 | } | |
37410 | ||
37411 | ||
37412 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37413 | PyObject *resultobj = 0; | |
37414 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37415 | wxTreeItemId arg2 ; | |
37416 | wxString *arg3 = 0 ; | |
37417 | bool *arg4 = 0 ; | |
37418 | wxTreeItemId result; | |
37419 | void *argp1 = 0 ; | |
37420 | int res1 = 0 ; | |
37421 | void *argp2 ; | |
37422 | int res2 = 0 ; | |
37423 | bool temp3 = false ; | |
37424 | bool temp4 ; | |
37425 | int res4 = SWIG_TMPOBJ ; | |
37426 | PyObject * obj0 = 0 ; | |
37427 | PyObject * obj1 = 0 ; | |
37428 | PyObject * obj2 = 0 ; | |
37429 | char * kwnames[] = { | |
37430 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
37431 | }; | |
37432 | ||
37433 | arg4 = &temp4; | |
37434 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37435 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37436 | if (!SWIG_IsOK(res1)) { | |
37437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37438 | } | |
37439 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37440 | { | |
37441 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37442 | if (!SWIG_IsOK(res2)) { | |
37443 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'"); | |
37444 | } | |
37445 | if (!argp2) { | |
37446 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'"); | |
37447 | } else { | |
37448 | wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2); | |
37449 | arg2 = *temp; | |
37450 | if (SWIG_IsNewObj(res2)) delete temp; | |
d14a1e28 | 37451 | } |
0085ce49 RD |
37452 | } |
37453 | { | |
37454 | arg3 = wxString_in_helper(obj2); | |
37455 | if (arg3 == NULL) SWIG_fail; | |
37456 | temp3 = true; | |
37457 | } | |
37458 | { | |
37459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37460 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
37461 | wxPyEndAllowThreads(__tstate); | |
37462 | if (PyErr_Occurred()) SWIG_fail; | |
37463 | } | |
37464 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
37465 | if (SWIG_IsTmpObj(res4)) { | |
37466 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4))); | |
37467 | } else { | |
37468 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
37469 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags)); | |
37470 | } | |
37471 | { | |
37472 | if (temp3) | |
37473 | delete arg3; | |
37474 | } | |
37475 | return resultobj; | |
37476 | fail: | |
37477 | { | |
37478 | if (temp3) | |
37479 | delete arg3; | |
37480 | } | |
37481 | return NULL; | |
d14a1e28 RD |
37482 | } |
37483 | ||
37484 | ||
0085ce49 RD |
37485 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37486 | PyObject *resultobj = 0; | |
37487 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37488 | void *argp1 = 0 ; | |
37489 | int res1 = 0 ; | |
37490 | PyObject *swig_obj[1] ; | |
37491 | ||
37492 | if (!args) SWIG_fail; | |
37493 | swig_obj[0] = args; | |
37494 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37495 | if (!SWIG_IsOK(res1)) { | |
37496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37497 | } | |
37498 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37499 | { | |
37500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37501 | (arg1)->DoResize(); | |
37502 | wxPyEndAllowThreads(__tstate); | |
37503 | if (PyErr_Occurred()) SWIG_fail; | |
37504 | } | |
37505 | resultobj = SWIG_Py_Void(); | |
37506 | return resultobj; | |
37507 | fail: | |
37508 | return NULL; | |
d14a1e28 RD |
37509 | } |
37510 | ||
37511 | ||
0085ce49 RD |
37512 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37513 | PyObject *resultobj = 0; | |
37514 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37515 | void *argp1 = 0 ; | |
37516 | int res1 = 0 ; | |
37517 | PyObject *swig_obj[1] ; | |
37518 | ||
37519 | if (!args) SWIG_fail; | |
37520 | swig_obj[0] = args; | |
37521 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37522 | if (!SWIG_IsOK(res1)) { | |
37523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37524 | } | |
37525 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37526 | { | |
37527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37528 | (arg1)->ReCreateTree(); | |
37529 | wxPyEndAllowThreads(__tstate); | |
37530 | if (PyErr_Occurred()) SWIG_fail; | |
37531 | } | |
37532 | resultobj = SWIG_Py_Void(); | |
37533 | return resultobj; | |
37534 | fail: | |
37535 | return NULL; | |
37536 | } | |
37537 | ||
37538 | ||
37539 | SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37540 | PyObject *obj; | |
37541 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
37542 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj)); | |
37543 | return SWIG_Py_Void(); | |
37544 | } | |
37545 | ||
37546 | SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37547 | return SWIG_Python_InitShadowInstance(args); | |
37548 | } | |
37549 | ||
37550 | SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37551 | PyObject *resultobj = 0; | |
37552 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37553 | int arg2 = (int) (int)-1 ; | |
37554 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
37555 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
37556 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
37557 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
37558 | long arg5 = (long) 0 ; | |
37559 | wxDirFilterListCtrl *result = 0 ; | |
37560 | void *argp1 = 0 ; | |
37561 | int res1 = 0 ; | |
37562 | int val2 ; | |
37563 | int ecode2 = 0 ; | |
37564 | wxPoint temp3 ; | |
37565 | wxSize temp4 ; | |
37566 | long val5 ; | |
37567 | int ecode5 = 0 ; | |
37568 | PyObject * obj0 = 0 ; | |
37569 | PyObject * obj1 = 0 ; | |
37570 | PyObject * obj2 = 0 ; | |
37571 | PyObject * obj3 = 0 ; | |
37572 | PyObject * obj4 = 0 ; | |
37573 | char * kwnames[] = { | |
37574 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
37575 | }; | |
37576 | ||
37577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37578 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37579 | if (!SWIG_IsOK(res1)) { | |
37580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37581 | } | |
37582 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37583 | if (obj1) { | |
37584 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37585 | if (!SWIG_IsOK(ecode2)) { | |
37586 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'"); | |
37587 | } | |
37588 | arg2 = static_cast< int >(val2); | |
37589 | } | |
37590 | if (obj2) { | |
d14a1e28 | 37591 | { |
0085ce49 RD |
37592 | arg3 = &temp3; |
37593 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 37594 | } |
0085ce49 RD |
37595 | } |
37596 | if (obj3) { | |
d14a1e28 | 37597 | { |
0085ce49 RD |
37598 | arg4 = &temp4; |
37599 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 37600 | } |
0085ce49 RD |
37601 | } |
37602 | if (obj4) { | |
37603 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
37604 | if (!SWIG_IsOK(ecode5)) { | |
37605 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'"); | |
37606 | } | |
37607 | arg5 = static_cast< long >(val5); | |
37608 | } | |
37609 | { | |
37610 | if (!wxPyCheckForApp()) SWIG_fail; | |
37611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37612 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
37613 | wxPyEndAllowThreads(__tstate); | |
37614 | if (PyErr_Occurred()) SWIG_fail; | |
37615 | } | |
37616 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 ); | |
37617 | return resultobj; | |
37618 | fail: | |
37619 | return NULL; | |
d14a1e28 RD |
37620 | } |
37621 | ||
37622 | ||
0085ce49 RD |
37623 | SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37624 | PyObject *resultobj = 0; | |
37625 | wxDirFilterListCtrl *result = 0 ; | |
37626 | ||
37627 | if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail; | |
37628 | { | |
37629 | if (!wxPyCheckForApp()) SWIG_fail; | |
37630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37631 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
37632 | wxPyEndAllowThreads(__tstate); | |
37633 | if (PyErr_Occurred()) SWIG_fail; | |
37634 | } | |
37635 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 ); | |
37636 | return resultobj; | |
37637 | fail: | |
37638 | return NULL; | |
37639 | } | |
37640 | ||
37641 | ||
37642 | SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37643 | PyObject *resultobj = 0; | |
37644 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
37645 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
37646 | int arg3 = (int) (int)-1 ; | |
37647 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
37648 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
37649 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
37650 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
37651 | long arg6 = (long) 0 ; | |
37652 | bool result; | |
37653 | void *argp1 = 0 ; | |
37654 | int res1 = 0 ; | |
37655 | void *argp2 = 0 ; | |
37656 | int res2 = 0 ; | |
37657 | int val3 ; | |
37658 | int ecode3 = 0 ; | |
37659 | wxPoint temp4 ; | |
37660 | wxSize temp5 ; | |
37661 | long val6 ; | |
37662 | int ecode6 = 0 ; | |
37663 | PyObject * obj0 = 0 ; | |
37664 | PyObject * obj1 = 0 ; | |
37665 | PyObject * obj2 = 0 ; | |
37666 | PyObject * obj3 = 0 ; | |
37667 | PyObject * obj4 = 0 ; | |
37668 | PyObject * obj5 = 0 ; | |
37669 | char * kwnames[] = { | |
37670 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
37671 | }; | |
37672 | ||
37673 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
37674 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
37675 | if (!SWIG_IsOK(res1)) { | |
37676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'"); | |
37677 | } | |
37678 | arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1); | |
37679 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37680 | if (!SWIG_IsOK(res2)) { | |
37681 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'"); | |
37682 | } | |
37683 | arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2); | |
37684 | if (obj2) { | |
37685 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37686 | if (!SWIG_IsOK(ecode3)) { | |
37687 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
37688 | } | |
37689 | arg3 = static_cast< int >(val3); | |
37690 | } | |
37691 | if (obj3) { | |
093d3ff1 | 37692 | { |
0085ce49 RD |
37693 | arg4 = &temp4; |
37694 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 37695 | } |
0085ce49 RD |
37696 | } |
37697 | if (obj4) { | |
d14a1e28 | 37698 | { |
0085ce49 RD |
37699 | arg5 = &temp5; |
37700 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 37701 | } |
0085ce49 RD |
37702 | } |
37703 | if (obj5) { | |
37704 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
37705 | if (!SWIG_IsOK(ecode6)) { | |
37706 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
37707 | } | |
37708 | arg6 = static_cast< long >(val6); | |
37709 | } | |
37710 | { | |
37711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37712 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
37713 | wxPyEndAllowThreads(__tstate); | |
37714 | if (PyErr_Occurred()) SWIG_fail; | |
37715 | } | |
37716 | { | |
37717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37718 | } | |
37719 | return resultobj; | |
37720 | fail: | |
37721 | return NULL; | |
37722 | } | |
37723 | ||
37724 | ||
37725 | SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37726 | PyObject *resultobj = 0; | |
37727 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
37728 | wxString *arg2 = 0 ; | |
37729 | int arg3 ; | |
37730 | void *argp1 = 0 ; | |
37731 | int res1 = 0 ; | |
37732 | bool temp2 = false ; | |
37733 | int val3 ; | |
37734 | int ecode3 = 0 ; | |
37735 | PyObject * obj0 = 0 ; | |
37736 | PyObject * obj1 = 0 ; | |
37737 | PyObject * obj2 = 0 ; | |
37738 | char * kwnames[] = { | |
37739 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
37740 | }; | |
37741 | ||
37742 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37743 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
37744 | if (!SWIG_IsOK(res1)) { | |
37745 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'"); | |
37746 | } | |
37747 | arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1); | |
37748 | { | |
37749 | arg2 = wxString_in_helper(obj1); | |
37750 | if (arg2 == NULL) SWIG_fail; | |
37751 | temp2 = true; | |
37752 | } | |
37753 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37754 | if (!SWIG_IsOK(ecode3)) { | |
37755 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'"); | |
37756 | } | |
37757 | arg3 = static_cast< int >(val3); | |
37758 | { | |
37759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37760 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
37761 | wxPyEndAllowThreads(__tstate); | |
37762 | if (PyErr_Occurred()) SWIG_fail; | |
37763 | } | |
37764 | resultobj = SWIG_Py_Void(); | |
37765 | { | |
37766 | if (temp2) | |
37767 | delete arg2; | |
37768 | } | |
37769 | return resultobj; | |
37770 | fail: | |
37771 | { | |
37772 | if (temp2) | |
37773 | delete arg2; | |
37774 | } | |
37775 | return NULL; | |
37776 | } | |
37777 | ||
37778 | ||
37779 | SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37780 | PyObject *obj; | |
37781 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
37782 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj)); | |
37783 | return SWIG_Py_Void(); | |
37784 | } | |
37785 | ||
37786 | SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37787 | return SWIG_Python_InitShadowInstance(args); | |
37788 | } | |
37789 | ||
37790 | SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37791 | PyObject *resultobj = 0; | |
37792 | wxWindow *arg1 = (wxWindow *) 0 ; | |
37793 | int arg2 = (int) (int)-1 ; | |
37794 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
37795 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
37796 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
37797 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
37798 | long arg5 = (long) 0 ; | |
37799 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
37800 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
37801 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
37802 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
37803 | wxPyControl *result = 0 ; | |
37804 | void *argp1 = 0 ; | |
37805 | int res1 = 0 ; | |
37806 | int val2 ; | |
37807 | int ecode2 = 0 ; | |
37808 | wxPoint temp3 ; | |
37809 | wxSize temp4 ; | |
37810 | long val5 ; | |
37811 | int ecode5 = 0 ; | |
37812 | void *argp6 = 0 ; | |
37813 | int res6 = 0 ; | |
37814 | bool temp7 = false ; | |
37815 | PyObject * obj0 = 0 ; | |
37816 | PyObject * obj1 = 0 ; | |
37817 | PyObject * obj2 = 0 ; | |
37818 | PyObject * obj3 = 0 ; | |
37819 | PyObject * obj4 = 0 ; | |
37820 | PyObject * obj5 = 0 ; | |
37821 | PyObject * obj6 = 0 ; | |
37822 | char * kwnames[] = { | |
37823 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
37824 | }; | |
37825 | ||
37826 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
37827 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
37828 | if (!SWIG_IsOK(res1)) { | |
37829 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
37830 | } | |
37831 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
37832 | if (obj1) { | |
37833 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37834 | if (!SWIG_IsOK(ecode2)) { | |
37835 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'"); | |
37836 | } | |
37837 | arg2 = static_cast< int >(val2); | |
37838 | } | |
37839 | if (obj2) { | |
093d3ff1 | 37840 | { |
0085ce49 RD |
37841 | arg3 = &temp3; |
37842 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 37843 | } |
0085ce49 RD |
37844 | } |
37845 | if (obj3) { | |
d14a1e28 | 37846 | { |
0085ce49 RD |
37847 | arg4 = &temp4; |
37848 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 37849 | } |
0085ce49 RD |
37850 | } |
37851 | if (obj4) { | |
37852 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
37853 | if (!SWIG_IsOK(ecode5)) { | |
37854 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'"); | |
37855 | } | |
37856 | arg5 = static_cast< long >(val5); | |
37857 | } | |
37858 | if (obj5) { | |
37859 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
37860 | if (!SWIG_IsOK(res6)) { | |
37861 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
37862 | } | |
37863 | if (!argp6) { | |
37864 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 37865 | } |
0085ce49 RD |
37866 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
37867 | } | |
37868 | if (obj6) { | |
d14a1e28 | 37869 | { |
0085ce49 RD |
37870 | arg7 = wxString_in_helper(obj6); |
37871 | if (arg7 == NULL) SWIG_fail; | |
37872 | temp7 = true; | |
d14a1e28 | 37873 | } |
0085ce49 RD |
37874 | } |
37875 | { | |
37876 | if (!wxPyCheckForApp()) SWIG_fail; | |
37877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37878 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
37879 | wxPyEndAllowThreads(__tstate); | |
37880 | if (PyErr_Occurred()) SWIG_fail; | |
37881 | } | |
37882 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 ); | |
37883 | { | |
37884 | if (temp7) | |
37885 | delete arg7; | |
37886 | } | |
37887 | return resultobj; | |
37888 | fail: | |
37889 | { | |
37890 | if (temp7) | |
37891 | delete arg7; | |
37892 | } | |
37893 | return NULL; | |
d14a1e28 RD |
37894 | } |
37895 | ||
37896 | ||
0085ce49 RD |
37897 | SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37898 | PyObject *resultobj = 0; | |
37899 | wxPyControl *result = 0 ; | |
37900 | ||
37901 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail; | |
37902 | { | |
37903 | if (!wxPyCheckForApp()) SWIG_fail; | |
37904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37905 | result = (wxPyControl *)new wxPyControl(); | |
37906 | wxPyEndAllowThreads(__tstate); | |
37907 | if (PyErr_Occurred()) SWIG_fail; | |
37908 | } | |
37909 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 ); | |
37910 | return resultobj; | |
37911 | fail: | |
37912 | return NULL; | |
37913 | } | |
37914 | ||
37915 | ||
37916 | SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37917 | PyObject *resultobj = 0; | |
37918 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
37919 | PyObject *arg2 = (PyObject *) 0 ; | |
37920 | PyObject *arg3 = (PyObject *) 0 ; | |
37921 | void *argp1 = 0 ; | |
37922 | int res1 = 0 ; | |
37923 | PyObject * obj0 = 0 ; | |
37924 | PyObject * obj1 = 0 ; | |
37925 | PyObject * obj2 = 0 ; | |
37926 | char * kwnames[] = { | |
37927 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
37928 | }; | |
37929 | ||
37930 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37931 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
37932 | if (!SWIG_IsOK(res1)) { | |
37933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
37934 | } | |
37935 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
37936 | arg2 = obj1; | |
37937 | arg3 = obj2; | |
37938 | { | |
37939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37940 | (arg1)->_setCallbackInfo(arg2,arg3); | |
37941 | wxPyEndAllowThreads(__tstate); | |
37942 | if (PyErr_Occurred()) SWIG_fail; | |
37943 | } | |
37944 | resultobj = SWIG_Py_Void(); | |
37945 | return resultobj; | |
37946 | fail: | |
37947 | return NULL; | |
37948 | } | |
37949 | ||
37950 | ||
37951 | SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37952 | PyObject *resultobj = 0; | |
37953 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
37954 | wxSize *arg2 = 0 ; | |
37955 | void *argp1 = 0 ; | |
37956 | int res1 = 0 ; | |
37957 | wxSize temp2 ; | |
37958 | PyObject * obj0 = 0 ; | |
37959 | PyObject * obj1 = 0 ; | |
37960 | char * kwnames[] = { | |
37961 | (char *) "self",(char *) "size", NULL | |
37962 | }; | |
37963 | ||
37964 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
37965 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
37966 | if (!SWIG_IsOK(res1)) { | |
37967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
37968 | } | |
37969 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
37970 | { | |
37971 | arg2 = &temp2; | |
37972 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
37973 | } | |
37974 | { | |
37975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37976 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
37977 | wxPyEndAllowThreads(__tstate); | |
37978 | if (PyErr_Occurred()) SWIG_fail; | |
37979 | } | |
37980 | resultobj = SWIG_Py_Void(); | |
37981 | return resultobj; | |
37982 | fail: | |
37983 | return NULL; | |
37984 | } | |
37985 | ||
37986 | ||
37987 | SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37988 | PyObject *resultobj = 0; | |
37989 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
37990 | wxDC *arg2 = (wxDC *) 0 ; | |
37991 | bool result; | |
37992 | void *argp1 = 0 ; | |
37993 | int res1 = 0 ; | |
37994 | void *argp2 = 0 ; | |
37995 | int res2 = 0 ; | |
37996 | PyObject * obj0 = 0 ; | |
37997 | PyObject * obj1 = 0 ; | |
37998 | char * kwnames[] = { | |
37999 | (char *) "self",(char *) "dc", NULL | |
38000 | }; | |
38001 | ||
38002 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38003 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38004 | if (!SWIG_IsOK(res1)) { | |
38005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38006 | } | |
38007 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38008 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
38009 | if (!SWIG_IsOK(res2)) { | |
38010 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
38011 | } | |
38012 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
38013 | { | |
38014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38015 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
38016 | wxPyEndAllowThreads(__tstate); | |
38017 | if (PyErr_Occurred()) SWIG_fail; | |
38018 | } | |
38019 | { | |
38020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38021 | } | |
38022 | return resultobj; | |
38023 | fail: | |
38024 | return NULL; | |
38025 | } | |
38026 | ||
38027 | ||
38028 | SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38029 | PyObject *resultobj = 0; | |
38030 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38031 | int arg2 ; | |
38032 | int arg3 ; | |
38033 | int arg4 ; | |
38034 | int arg5 ; | |
38035 | void *argp1 = 0 ; | |
38036 | int res1 = 0 ; | |
38037 | int val2 ; | |
38038 | int ecode2 = 0 ; | |
38039 | int val3 ; | |
38040 | int ecode3 = 0 ; | |
38041 | int val4 ; | |
38042 | int ecode4 = 0 ; | |
38043 | int val5 ; | |
38044 | int ecode5 = 0 ; | |
38045 | PyObject * obj0 = 0 ; | |
38046 | PyObject * obj1 = 0 ; | |
38047 | PyObject * obj2 = 0 ; | |
38048 | PyObject * obj3 = 0 ; | |
38049 | PyObject * obj4 = 0 ; | |
38050 | char * kwnames[] = { | |
38051 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
38052 | }; | |
38053 | ||
38054 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38055 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38056 | if (!SWIG_IsOK(res1)) { | |
38057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38058 | } | |
38059 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38060 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38061 | if (!SWIG_IsOK(ecode2)) { | |
38062 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
38063 | } | |
38064 | arg2 = static_cast< int >(val2); | |
38065 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38066 | if (!SWIG_IsOK(ecode3)) { | |
38067 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
38068 | } | |
38069 | arg3 = static_cast< int >(val3); | |
38070 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38071 | if (!SWIG_IsOK(ecode4)) { | |
38072 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
38073 | } | |
38074 | arg4 = static_cast< int >(val4); | |
38075 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38076 | if (!SWIG_IsOK(ecode5)) { | |
38077 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
38078 | } | |
38079 | arg5 = static_cast< int >(val5); | |
38080 | { | |
38081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38082 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
38083 | wxPyEndAllowThreads(__tstate); | |
38084 | if (PyErr_Occurred()) SWIG_fail; | |
38085 | } | |
38086 | resultobj = SWIG_Py_Void(); | |
38087 | return resultobj; | |
38088 | fail: | |
38089 | return NULL; | |
38090 | } | |
38091 | ||
38092 | ||
38093 | SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38094 | PyObject *resultobj = 0; | |
38095 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38096 | int arg2 ; | |
38097 | int arg3 ; | |
38098 | int arg4 ; | |
38099 | int arg5 ; | |
38100 | int arg6 = (int) wxSIZE_AUTO ; | |
38101 | void *argp1 = 0 ; | |
38102 | int res1 = 0 ; | |
38103 | int val2 ; | |
38104 | int ecode2 = 0 ; | |
38105 | int val3 ; | |
38106 | int ecode3 = 0 ; | |
38107 | int val4 ; | |
38108 | int ecode4 = 0 ; | |
38109 | int val5 ; | |
38110 | int ecode5 = 0 ; | |
38111 | int val6 ; | |
38112 | int ecode6 = 0 ; | |
38113 | PyObject * obj0 = 0 ; | |
38114 | PyObject * obj1 = 0 ; | |
38115 | PyObject * obj2 = 0 ; | |
38116 | PyObject * obj3 = 0 ; | |
38117 | PyObject * obj4 = 0 ; | |
38118 | PyObject * obj5 = 0 ; | |
38119 | char * kwnames[] = { | |
38120 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
38121 | }; | |
38122 | ||
38123 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
38124 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38125 | if (!SWIG_IsOK(res1)) { | |
38126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38127 | } | |
38128 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38129 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38130 | if (!SWIG_IsOK(ecode2)) { | |
38131 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
38132 | } | |
38133 | arg2 = static_cast< int >(val2); | |
38134 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38135 | if (!SWIG_IsOK(ecode3)) { | |
38136 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
38137 | } | |
38138 | arg3 = static_cast< int >(val3); | |
38139 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38140 | if (!SWIG_IsOK(ecode4)) { | |
38141 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
38142 | } | |
38143 | arg4 = static_cast< int >(val4); | |
38144 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38145 | if (!SWIG_IsOK(ecode5)) { | |
38146 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
38147 | } | |
38148 | arg5 = static_cast< int >(val5); | |
38149 | if (obj5) { | |
38150 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
38151 | if (!SWIG_IsOK(ecode6)) { | |
38152 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
38153 | } | |
38154 | arg6 = static_cast< int >(val6); | |
38155 | } | |
38156 | { | |
38157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38158 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
38159 | wxPyEndAllowThreads(__tstate); | |
38160 | if (PyErr_Occurred()) SWIG_fail; | |
38161 | } | |
38162 | resultobj = SWIG_Py_Void(); | |
38163 | return resultobj; | |
38164 | fail: | |
38165 | return NULL; | |
38166 | } | |
38167 | ||
38168 | ||
38169 | SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38170 | PyObject *resultobj = 0; | |
38171 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38172 | int arg2 ; | |
38173 | int arg3 ; | |
38174 | void *argp1 = 0 ; | |
38175 | int res1 = 0 ; | |
38176 | int val2 ; | |
38177 | int ecode2 = 0 ; | |
38178 | int val3 ; | |
38179 | int ecode3 = 0 ; | |
38180 | PyObject * obj0 = 0 ; | |
38181 | PyObject * obj1 = 0 ; | |
38182 | PyObject * obj2 = 0 ; | |
38183 | char * kwnames[] = { | |
38184 | (char *) "self",(char *) "width",(char *) "height", NULL | |
38185 | }; | |
38186 | ||
38187 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38188 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38189 | if (!SWIG_IsOK(res1)) { | |
38190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38191 | } | |
38192 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38193 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38194 | if (!SWIG_IsOK(ecode2)) { | |
38195 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
38196 | } | |
38197 | arg2 = static_cast< int >(val2); | |
38198 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38199 | if (!SWIG_IsOK(ecode3)) { | |
38200 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
38201 | } | |
38202 | arg3 = static_cast< int >(val3); | |
38203 | { | |
38204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38205 | (arg1)->DoSetClientSize(arg2,arg3); | |
38206 | wxPyEndAllowThreads(__tstate); | |
38207 | if (PyErr_Occurred()) SWIG_fail; | |
38208 | } | |
38209 | resultobj = SWIG_Py_Void(); | |
38210 | return resultobj; | |
38211 | fail: | |
38212 | return NULL; | |
38213 | } | |
38214 | ||
38215 | ||
38216 | SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38217 | PyObject *resultobj = 0; | |
38218 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38219 | int arg2 ; | |
38220 | int arg3 ; | |
38221 | void *argp1 = 0 ; | |
38222 | int res1 = 0 ; | |
38223 | int val2 ; | |
38224 | int ecode2 = 0 ; | |
38225 | int val3 ; | |
38226 | int ecode3 = 0 ; | |
38227 | PyObject * obj0 = 0 ; | |
38228 | PyObject * obj1 = 0 ; | |
38229 | PyObject * obj2 = 0 ; | |
38230 | char * kwnames[] = { | |
38231 | (char *) "self",(char *) "x",(char *) "y", NULL | |
38232 | }; | |
38233 | ||
38234 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38235 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38236 | if (!SWIG_IsOK(res1)) { | |
38237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38238 | } | |
38239 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38240 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38241 | if (!SWIG_IsOK(ecode2)) { | |
38242 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
38243 | } | |
38244 | arg2 = static_cast< int >(val2); | |
38245 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38246 | if (!SWIG_IsOK(ecode3)) { | |
38247 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
38248 | } | |
38249 | arg3 = static_cast< int >(val3); | |
38250 | { | |
38251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38252 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
38253 | wxPyEndAllowThreads(__tstate); | |
38254 | if (PyErr_Occurred()) SWIG_fail; | |
38255 | } | |
38256 | resultobj = SWIG_Py_Void(); | |
38257 | return resultobj; | |
38258 | fail: | |
38259 | return NULL; | |
38260 | } | |
38261 | ||
38262 | ||
38263 | SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38264 | PyObject *resultobj = 0; | |
38265 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38266 | int *arg2 = (int *) 0 ; | |
38267 | int *arg3 = (int *) 0 ; | |
38268 | void *argp1 = 0 ; | |
38269 | int res1 = 0 ; | |
38270 | int temp2 ; | |
38271 | int res2 = SWIG_TMPOBJ ; | |
38272 | int temp3 ; | |
38273 | int res3 = SWIG_TMPOBJ ; | |
38274 | PyObject *swig_obj[1] ; | |
38275 | ||
38276 | arg2 = &temp2; | |
38277 | arg3 = &temp3; | |
38278 | if (!args) SWIG_fail; | |
38279 | swig_obj[0] = args; | |
38280 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38281 | if (!SWIG_IsOK(res1)) { | |
38282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
38283 | } | |
38284 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38285 | { | |
38286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38287 | ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3); | |
38288 | wxPyEndAllowThreads(__tstate); | |
38289 | if (PyErr_Occurred()) SWIG_fail; | |
38290 | } | |
38291 | resultobj = SWIG_Py_Void(); | |
38292 | if (SWIG_IsTmpObj(res2)) { | |
38293 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
38294 | } else { | |
38295 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
38296 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
38297 | } | |
38298 | if (SWIG_IsTmpObj(res3)) { | |
38299 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
38300 | } else { | |
38301 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
38302 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
38303 | } | |
38304 | return resultobj; | |
38305 | fail: | |
38306 | return NULL; | |
38307 | } | |
38308 | ||
38309 | ||
38310 | SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38311 | PyObject *resultobj = 0; | |
38312 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38313 | int *arg2 = (int *) 0 ; | |
38314 | int *arg3 = (int *) 0 ; | |
38315 | void *argp1 = 0 ; | |
38316 | int res1 = 0 ; | |
38317 | int temp2 ; | |
38318 | int res2 = SWIG_TMPOBJ ; | |
38319 | int temp3 ; | |
38320 | int res3 = SWIG_TMPOBJ ; | |
38321 | PyObject *swig_obj[1] ; | |
38322 | ||
38323 | arg2 = &temp2; | |
38324 | arg3 = &temp3; | |
38325 | if (!args) SWIG_fail; | |
38326 | swig_obj[0] = args; | |
38327 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38328 | if (!SWIG_IsOK(res1)) { | |
38329 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
38330 | } | |
38331 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38332 | { | |
38333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38334 | ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3); | |
38335 | wxPyEndAllowThreads(__tstate); | |
38336 | if (PyErr_Occurred()) SWIG_fail; | |
38337 | } | |
38338 | resultobj = SWIG_Py_Void(); | |
38339 | if (SWIG_IsTmpObj(res2)) { | |
38340 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
38341 | } else { | |
38342 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
38343 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
38344 | } | |
38345 | if (SWIG_IsTmpObj(res3)) { | |
38346 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
38347 | } else { | |
38348 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
38349 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
38350 | } | |
38351 | return resultobj; | |
38352 | fail: | |
38353 | return NULL; | |
38354 | } | |
38355 | ||
38356 | ||
38357 | SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38358 | PyObject *resultobj = 0; | |
38359 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38360 | int *arg2 = (int *) 0 ; | |
38361 | int *arg3 = (int *) 0 ; | |
38362 | void *argp1 = 0 ; | |
38363 | int res1 = 0 ; | |
38364 | int temp2 ; | |
38365 | int res2 = SWIG_TMPOBJ ; | |
38366 | int temp3 ; | |
38367 | int res3 = SWIG_TMPOBJ ; | |
38368 | PyObject *swig_obj[1] ; | |
38369 | ||
38370 | arg2 = &temp2; | |
38371 | arg3 = &temp3; | |
38372 | if (!args) SWIG_fail; | |
38373 | swig_obj[0] = args; | |
38374 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38375 | if (!SWIG_IsOK(res1)) { | |
38376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
38377 | } | |
38378 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38379 | { | |
38380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38381 | ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3); | |
38382 | wxPyEndAllowThreads(__tstate); | |
38383 | if (PyErr_Occurred()) SWIG_fail; | |
38384 | } | |
38385 | resultobj = SWIG_Py_Void(); | |
38386 | if (SWIG_IsTmpObj(res2)) { | |
38387 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
38388 | } else { | |
38389 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
38390 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
38391 | } | |
38392 | if (SWIG_IsTmpObj(res3)) { | |
38393 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
38394 | } else { | |
38395 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
38396 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
38397 | } | |
38398 | return resultobj; | |
38399 | fail: | |
38400 | return NULL; | |
d14a1e28 RD |
38401 | } |
38402 | ||
38403 | ||
0085ce49 RD |
38404 | SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38405 | PyObject *resultobj = 0; | |
38406 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38407 | wxSize result; | |
38408 | void *argp1 = 0 ; | |
38409 | int res1 = 0 ; | |
38410 | PyObject *swig_obj[1] ; | |
38411 | ||
38412 | if (!args) SWIG_fail; | |
38413 | swig_obj[0] = args; | |
38414 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38415 | if (!SWIG_IsOK(res1)) { | |
38416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
38417 | } | |
38418 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38419 | { | |
38420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38421 | result = ((wxPyControl const *)arg1)->DoGetVirtualSize(); | |
38422 | wxPyEndAllowThreads(__tstate); | |
38423 | if (PyErr_Occurred()) SWIG_fail; | |
38424 | } | |
38425 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
38426 | return resultobj; | |
38427 | fail: | |
38428 | return NULL; | |
d14a1e28 RD |
38429 | } |
38430 | ||
38431 | ||
0085ce49 RD |
38432 | SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38433 | PyObject *resultobj = 0; | |
38434 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38435 | wxSize result; | |
38436 | void *argp1 = 0 ; | |
38437 | int res1 = 0 ; | |
38438 | PyObject *swig_obj[1] ; | |
38439 | ||
38440 | if (!args) SWIG_fail; | |
38441 | swig_obj[0] = args; | |
38442 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38443 | if (!SWIG_IsOK(res1)) { | |
38444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
38445 | } | |
38446 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38447 | { | |
38448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38449 | result = ((wxPyControl const *)arg1)->DoGetBestSize(); | |
38450 | wxPyEndAllowThreads(__tstate); | |
38451 | if (PyErr_Occurred()) SWIG_fail; | |
38452 | } | |
38453 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
38454 | return resultobj; | |
38455 | fail: | |
38456 | return NULL; | |
d14a1e28 RD |
38457 | } |
38458 | ||
38459 | ||
0085ce49 RD |
38460 | SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38461 | PyObject *resultobj = 0; | |
38462 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38463 | SwigValueWrapper<wxVisualAttributes > result; | |
38464 | void *argp1 = 0 ; | |
38465 | int res1 = 0 ; | |
38466 | PyObject *swig_obj[1] ; | |
38467 | ||
38468 | if (!args) SWIG_fail; | |
38469 | swig_obj[0] = args; | |
38470 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38471 | if (!SWIG_IsOK(res1)) { | |
38472 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38473 | } | |
38474 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38475 | { | |
38476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38477 | result = (arg1)->GetDefaultAttributes(); | |
38478 | wxPyEndAllowThreads(__tstate); | |
38479 | if (PyErr_Occurred()) SWIG_fail; | |
38480 | } | |
38481 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
38482 | return resultobj; | |
38483 | fail: | |
38484 | return NULL; | |
d14a1e28 RD |
38485 | } |
38486 | ||
38487 | ||
0085ce49 RD |
38488 | SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38489 | PyObject *resultobj = 0; | |
38490 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38491 | void *argp1 = 0 ; | |
38492 | int res1 = 0 ; | |
38493 | PyObject *swig_obj[1] ; | |
38494 | ||
38495 | if (!args) SWIG_fail; | |
38496 | swig_obj[0] = args; | |
38497 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38498 | if (!SWIG_IsOK(res1)) { | |
38499 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38500 | } | |
38501 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38502 | { | |
38503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38504 | (arg1)->OnInternalIdle(); | |
38505 | wxPyEndAllowThreads(__tstate); | |
38506 | if (PyErr_Occurred()) SWIG_fail; | |
38507 | } | |
38508 | resultobj = SWIG_Py_Void(); | |
38509 | return resultobj; | |
38510 | fail: | |
38511 | return NULL; | |
38512 | } | |
38513 | ||
38514 | ||
38515 | SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38516 | PyObject *obj; | |
38517 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38518 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj)); | |
38519 | return SWIG_Py_Void(); | |
38520 | } | |
38521 | ||
38522 | SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38523 | return SWIG_Python_InitShadowInstance(args); | |
38524 | } | |
38525 | ||
38526 | SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38527 | PyObject *resultobj = 0; | |
38528 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
38529 | int arg2 = (int) 0 ; | |
38530 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
38531 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
38532 | wxHelpEvent *result = 0 ; | |
38533 | int val1 ; | |
38534 | int ecode1 = 0 ; | |
38535 | int val2 ; | |
38536 | int ecode2 = 0 ; | |
38537 | wxPoint temp3 ; | |
38538 | PyObject * obj0 = 0 ; | |
38539 | PyObject * obj1 = 0 ; | |
38540 | PyObject * obj2 = 0 ; | |
38541 | char * kwnames[] = { | |
38542 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
38543 | }; | |
38544 | ||
38545 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38546 | if (obj0) { | |
38547 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
38548 | if (!SWIG_IsOK(ecode1)) { | |
38549 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
38550 | } | |
38551 | arg1 = static_cast< wxEventType >(val1); | |
38552 | } | |
38553 | if (obj1) { | |
38554 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38555 | if (!SWIG_IsOK(ecode2)) { | |
38556 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'"); | |
38557 | } | |
38558 | arg2 = static_cast< int >(val2); | |
38559 | } | |
38560 | if (obj2) { | |
d14a1e28 | 38561 | { |
0085ce49 RD |
38562 | arg3 = &temp3; |
38563 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 38564 | } |
0085ce49 RD |
38565 | } |
38566 | { | |
38567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38568 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
38569 | wxPyEndAllowThreads(__tstate); | |
38570 | if (PyErr_Occurred()) SWIG_fail; | |
38571 | } | |
38572 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 ); | |
38573 | return resultobj; | |
38574 | fail: | |
38575 | return NULL; | |
d14a1e28 RD |
38576 | } |
38577 | ||
38578 | ||
0085ce49 RD |
38579 | SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38580 | PyObject *resultobj = 0; | |
38581 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
38582 | wxPoint result; | |
38583 | void *argp1 = 0 ; | |
38584 | int res1 = 0 ; | |
38585 | PyObject *swig_obj[1] ; | |
38586 | ||
38587 | if (!args) SWIG_fail; | |
38588 | swig_obj[0] = args; | |
38589 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
38590 | if (!SWIG_IsOK(res1)) { | |
38591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
38592 | } | |
38593 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
38594 | { | |
38595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38596 | result = ((wxHelpEvent const *)arg1)->GetPosition(); | |
38597 | wxPyEndAllowThreads(__tstate); | |
38598 | if (PyErr_Occurred()) SWIG_fail; | |
38599 | } | |
38600 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
38601 | return resultobj; | |
38602 | fail: | |
38603 | return NULL; | |
38604 | } | |
38605 | ||
38606 | ||
38607 | SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38608 | PyObject *resultobj = 0; | |
38609 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
38610 | wxPoint *arg2 = 0 ; | |
38611 | void *argp1 = 0 ; | |
38612 | int res1 = 0 ; | |
38613 | wxPoint temp2 ; | |
38614 | PyObject * obj0 = 0 ; | |
38615 | PyObject * obj1 = 0 ; | |
38616 | char * kwnames[] = { | |
38617 | (char *) "self",(char *) "pos", NULL | |
38618 | }; | |
38619 | ||
38620 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
38621 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
38622 | if (!SWIG_IsOK(res1)) { | |
38623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
38624 | } | |
38625 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
38626 | { | |
38627 | arg2 = &temp2; | |
38628 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
38629 | } | |
38630 | { | |
38631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38632 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
38633 | wxPyEndAllowThreads(__tstate); | |
38634 | if (PyErr_Occurred()) SWIG_fail; | |
38635 | } | |
38636 | resultobj = SWIG_Py_Void(); | |
38637 | return resultobj; | |
38638 | fail: | |
38639 | return NULL; | |
d14a1e28 RD |
38640 | } |
38641 | ||
38642 | ||
0085ce49 RD |
38643 | SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38644 | PyObject *resultobj = 0; | |
38645 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
38646 | wxString *result = 0 ; | |
38647 | void *argp1 = 0 ; | |
38648 | int res1 = 0 ; | |
38649 | PyObject *swig_obj[1] ; | |
38650 | ||
38651 | if (!args) SWIG_fail; | |
38652 | swig_obj[0] = args; | |
38653 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
38654 | if (!SWIG_IsOK(res1)) { | |
38655 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
38656 | } | |
38657 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
38658 | { | |
38659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 38660 | { |
0085ce49 RD |
38661 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); |
38662 | result = (wxString *) &_result_ref; | |
093d3ff1 | 38663 | } |
0085ce49 RD |
38664 | wxPyEndAllowThreads(__tstate); |
38665 | if (PyErr_Occurred()) SWIG_fail; | |
38666 | } | |
38667 | { | |
38668 | #if wxUSE_UNICODE | |
38669 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
38670 | #else | |
38671 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
38672 | #endif | |
38673 | } | |
38674 | return resultobj; | |
38675 | fail: | |
38676 | return NULL; | |
38677 | } | |
38678 | ||
38679 | ||
38680 | SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38681 | PyObject *resultobj = 0; | |
38682 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
38683 | wxString *arg2 = 0 ; | |
38684 | void *argp1 = 0 ; | |
38685 | int res1 = 0 ; | |
38686 | bool temp2 = false ; | |
38687 | PyObject * obj0 = 0 ; | |
38688 | PyObject * obj1 = 0 ; | |
38689 | char * kwnames[] = { | |
38690 | (char *) "self",(char *) "link", NULL | |
38691 | }; | |
38692 | ||
38693 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail; | |
38694 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
38695 | if (!SWIG_IsOK(res1)) { | |
38696 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
38697 | } | |
38698 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
38699 | { | |
38700 | arg2 = wxString_in_helper(obj1); | |
38701 | if (arg2 == NULL) SWIG_fail; | |
38702 | temp2 = true; | |
38703 | } | |
38704 | { | |
38705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38706 | (arg1)->SetLink((wxString const &)*arg2); | |
38707 | wxPyEndAllowThreads(__tstate); | |
38708 | if (PyErr_Occurred()) SWIG_fail; | |
38709 | } | |
38710 | resultobj = SWIG_Py_Void(); | |
38711 | { | |
38712 | if (temp2) | |
38713 | delete arg2; | |
38714 | } | |
38715 | return resultobj; | |
38716 | fail: | |
38717 | { | |
38718 | if (temp2) | |
38719 | delete arg2; | |
38720 | } | |
38721 | return NULL; | |
d14a1e28 RD |
38722 | } |
38723 | ||
38724 | ||
0085ce49 RD |
38725 | SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38726 | PyObject *resultobj = 0; | |
38727 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
38728 | wxString *result = 0 ; | |
38729 | void *argp1 = 0 ; | |
38730 | int res1 = 0 ; | |
38731 | PyObject *swig_obj[1] ; | |
38732 | ||
38733 | if (!args) SWIG_fail; | |
38734 | swig_obj[0] = args; | |
38735 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
38736 | if (!SWIG_IsOK(res1)) { | |
38737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
38738 | } | |
38739 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
38740 | { | |
38741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 38742 | { |
0085ce49 RD |
38743 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); |
38744 | result = (wxString *) &_result_ref; | |
d14a1e28 | 38745 | } |
0085ce49 RD |
38746 | wxPyEndAllowThreads(__tstate); |
38747 | if (PyErr_Occurred()) SWIG_fail; | |
38748 | } | |
38749 | { | |
38750 | #if wxUSE_UNICODE | |
38751 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
38752 | #else | |
38753 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
38754 | #endif | |
38755 | } | |
38756 | return resultobj; | |
38757 | fail: | |
38758 | return NULL; | |
38759 | } | |
38760 | ||
38761 | ||
38762 | SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38763 | PyObject *resultobj = 0; | |
38764 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
38765 | wxString *arg2 = 0 ; | |
38766 | void *argp1 = 0 ; | |
38767 | int res1 = 0 ; | |
38768 | bool temp2 = false ; | |
38769 | PyObject * obj0 = 0 ; | |
38770 | PyObject * obj1 = 0 ; | |
38771 | char * kwnames[] = { | |
38772 | (char *) "self",(char *) "target", NULL | |
38773 | }; | |
38774 | ||
38775 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail; | |
38776 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
38777 | if (!SWIG_IsOK(res1)) { | |
38778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
38779 | } | |
38780 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
38781 | { | |
38782 | arg2 = wxString_in_helper(obj1); | |
38783 | if (arg2 == NULL) SWIG_fail; | |
38784 | temp2 = true; | |
38785 | } | |
38786 | { | |
38787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38788 | (arg1)->SetTarget((wxString const &)*arg2); | |
38789 | wxPyEndAllowThreads(__tstate); | |
38790 | if (PyErr_Occurred()) SWIG_fail; | |
38791 | } | |
38792 | resultobj = SWIG_Py_Void(); | |
38793 | { | |
38794 | if (temp2) | |
38795 | delete arg2; | |
38796 | } | |
38797 | return resultobj; | |
38798 | fail: | |
38799 | { | |
38800 | if (temp2) | |
38801 | delete arg2; | |
38802 | } | |
38803 | return NULL; | |
d14a1e28 RD |
38804 | } |
38805 | ||
38806 | ||
0085ce49 RD |
38807 | SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38808 | PyObject *obj; | |
38809 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38810 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj)); | |
38811 | return SWIG_Py_Void(); | |
d14a1e28 RD |
38812 | } |
38813 | ||
0085ce49 RD |
38814 | SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38815 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
38816 | } |
38817 | ||
0085ce49 RD |
38818 | SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
38819 | PyObject *resultobj = 0; | |
38820 | wxWindow *arg1 = (wxWindow *) NULL ; | |
38821 | bool arg2 = (bool) true ; | |
38822 | wxContextHelp *result = 0 ; | |
38823 | void *argp1 = 0 ; | |
38824 | int res1 = 0 ; | |
38825 | bool val2 ; | |
38826 | int ecode2 = 0 ; | |
38827 | PyObject * obj0 = 0 ; | |
38828 | PyObject * obj1 = 0 ; | |
38829 | char * kwnames[] = { | |
38830 | (char *) "window",(char *) "doNow", NULL | |
38831 | }; | |
38832 | ||
38833 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
38834 | if (obj0) { | |
38835 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
38836 | if (!SWIG_IsOK(res1)) { | |
38837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
d14a1e28 | 38838 | } |
0085ce49 RD |
38839 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
38840 | } | |
38841 | if (obj1) { | |
38842 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
38843 | if (!SWIG_IsOK(ecode2)) { | |
38844 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'"); | |
38845 | } | |
38846 | arg2 = static_cast< bool >(val2); | |
38847 | } | |
38848 | { | |
38849 | if (!wxPyCheckForApp()) SWIG_fail; | |
38850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38851 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
38852 | wxPyEndAllowThreads(__tstate); | |
38853 | if (PyErr_Occurred()) SWIG_fail; | |
38854 | } | |
38855 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 ); | |
38856 | return resultobj; | |
38857 | fail: | |
38858 | return NULL; | |
d14a1e28 RD |
38859 | } |
38860 | ||
38861 | ||
0085ce49 RD |
38862 | SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38863 | PyObject *resultobj = 0; | |
38864 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
38865 | void *argp1 = 0 ; | |
38866 | int res1 = 0 ; | |
38867 | PyObject *swig_obj[1] ; | |
38868 | ||
38869 | if (!args) SWIG_fail; | |
38870 | swig_obj[0] = args; | |
38871 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 ); | |
38872 | if (!SWIG_IsOK(res1)) { | |
38873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
38874 | } | |
38875 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
38876 | { | |
38877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38878 | delete arg1; | |
3a04f143 | 38879 | |
0085ce49 RD |
38880 | wxPyEndAllowThreads(__tstate); |
38881 | if (PyErr_Occurred()) SWIG_fail; | |
38882 | } | |
38883 | resultobj = SWIG_Py_Void(); | |
38884 | return resultobj; | |
38885 | fail: | |
38886 | return NULL; | |
38887 | } | |
38888 | ||
38889 | ||
38890 | SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38891 | PyObject *resultobj = 0; | |
38892 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
38893 | wxWindow *arg2 = (wxWindow *) NULL ; | |
38894 | bool result; | |
38895 | void *argp1 = 0 ; | |
38896 | int res1 = 0 ; | |
38897 | void *argp2 = 0 ; | |
38898 | int res2 = 0 ; | |
38899 | PyObject * obj0 = 0 ; | |
38900 | PyObject * obj1 = 0 ; | |
38901 | char * kwnames[] = { | |
38902 | (char *) "self",(char *) "window", NULL | |
38903 | }; | |
38904 | ||
38905 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
38906 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 ); | |
38907 | if (!SWIG_IsOK(res1)) { | |
38908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
38909 | } | |
38910 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
38911 | if (obj1) { | |
38912 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
38913 | if (!SWIG_IsOK(res2)) { | |
38914 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3a04f143 | 38915 | } |
0085ce49 RD |
38916 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
38917 | } | |
38918 | { | |
38919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38920 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
38921 | wxPyEndAllowThreads(__tstate); | |
38922 | if (PyErr_Occurred()) SWIG_fail; | |
38923 | } | |
38924 | { | |
38925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38926 | } | |
38927 | return resultobj; | |
38928 | fail: | |
38929 | return NULL; | |
3a04f143 RD |
38930 | } |
38931 | ||
38932 | ||
0085ce49 RD |
38933 | SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38934 | PyObject *resultobj = 0; | |
38935 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
38936 | bool result; | |
38937 | void *argp1 = 0 ; | |
38938 | int res1 = 0 ; | |
38939 | PyObject *swig_obj[1] ; | |
38940 | ||
38941 | if (!args) SWIG_fail; | |
38942 | swig_obj[0] = args; | |
38943 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 ); | |
38944 | if (!SWIG_IsOK(res1)) { | |
38945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
38946 | } | |
38947 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
38948 | { | |
38949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38950 | result = (bool)(arg1)->EndContextHelp(); | |
38951 | wxPyEndAllowThreads(__tstate); | |
38952 | if (PyErr_Occurred()) SWIG_fail; | |
38953 | } | |
38954 | { | |
38955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38956 | } | |
38957 | return resultobj; | |
38958 | fail: | |
38959 | return NULL; | |
38960 | } | |
38961 | ||
38962 | ||
38963 | SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38964 | PyObject *obj; | |
38965 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38966 | SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj)); | |
38967 | return SWIG_Py_Void(); | |
38968 | } | |
38969 | ||
38970 | SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38971 | return SWIG_Python_InitShadowInstance(args); | |
38972 | } | |
38973 | ||
38974 | SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38975 | PyObject *resultobj = 0; | |
38976 | wxWindow *arg1 = (wxWindow *) 0 ; | |
38977 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
38978 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
38979 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
38980 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
38981 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
38982 | long arg5 = (long) wxBU_AUTODRAW ; | |
38983 | wxContextHelpButton *result = 0 ; | |
38984 | void *argp1 = 0 ; | |
38985 | int res1 = 0 ; | |
38986 | int val2 ; | |
38987 | int ecode2 = 0 ; | |
38988 | wxPoint temp3 ; | |
38989 | wxSize temp4 ; | |
38990 | long val5 ; | |
38991 | int ecode5 = 0 ; | |
38992 | PyObject * obj0 = 0 ; | |
38993 | PyObject * obj1 = 0 ; | |
38994 | PyObject * obj2 = 0 ; | |
38995 | PyObject * obj3 = 0 ; | |
38996 | PyObject * obj4 = 0 ; | |
38997 | char * kwnames[] = { | |
38998 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
38999 | }; | |
39000 | ||
39001 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
39002 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39003 | if (!SWIG_IsOK(res1)) { | |
39004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
39005 | } | |
39006 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
39007 | if (obj1) { | |
39008 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39009 | if (!SWIG_IsOK(ecode2)) { | |
39010 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'"); | |
39011 | } | |
39012 | arg2 = static_cast< int >(val2); | |
39013 | } | |
39014 | if (obj2) { | |
d14a1e28 | 39015 | { |
0085ce49 RD |
39016 | arg3 = &temp3; |
39017 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 39018 | } |
0085ce49 RD |
39019 | } |
39020 | if (obj3) { | |
4f89f6a3 | 39021 | { |
0085ce49 RD |
39022 | arg4 = &temp4; |
39023 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 39024 | } |
0085ce49 RD |
39025 | } |
39026 | if (obj4) { | |
39027 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
39028 | if (!SWIG_IsOK(ecode5)) { | |
39029 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'"); | |
39030 | } | |
39031 | arg5 = static_cast< long >(val5); | |
39032 | } | |
39033 | { | |
39034 | if (!wxPyCheckForApp()) SWIG_fail; | |
39035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39036 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
39037 | wxPyEndAllowThreads(__tstate); | |
39038 | if (PyErr_Occurred()) SWIG_fail; | |
39039 | } | |
39040 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 ); | |
39041 | return resultobj; | |
39042 | fail: | |
39043 | return NULL; | |
d14a1e28 RD |
39044 | } |
39045 | ||
39046 | ||
0085ce49 RD |
39047 | SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39048 | PyObject *obj; | |
39049 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39050 | SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj)); | |
39051 | return SWIG_Py_Void(); | |
d14a1e28 RD |
39052 | } |
39053 | ||
0085ce49 RD |
39054 | SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39055 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
39056 | } |
39057 | ||
f52cbe90 RD |
39058 | SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39059 | PyObject *resultobj = 0; | |
39060 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
39061 | void *argp1 = 0 ; | |
39062 | int res1 = 0 ; | |
39063 | PyObject *swig_obj[1] ; | |
39064 | ||
39065 | if (!args) SWIG_fail; | |
39066 | swig_obj[0] = args; | |
39067 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 ); | |
39068 | if (!SWIG_IsOK(res1)) { | |
39069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
39070 | } | |
39071 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
39072 | { | |
39073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39074 | delete arg1; | |
39075 | ||
39076 | wxPyEndAllowThreads(__tstate); | |
39077 | if (PyErr_Occurred()) SWIG_fail; | |
39078 | } | |
39079 | resultobj = SWIG_Py_Void(); | |
39080 | return resultobj; | |
39081 | fail: | |
39082 | return NULL; | |
39083 | } | |
39084 | ||
39085 | ||
0085ce49 RD |
39086 | SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
39087 | PyObject *resultobj = 0; | |
39088 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
39089 | wxHelpProvider *result = 0 ; | |
39090 | int res1 = 0 ; | |
39091 | PyObject * obj0 = 0 ; | |
39092 | char * kwnames[] = { | |
39093 | (char *) "helpProvider", NULL | |
39094 | }; | |
39095 | ||
39096 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail; | |
39097 | res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 ); | |
39098 | if (!SWIG_IsOK(res1)) { | |
39099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
39100 | } | |
39101 | { | |
39102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39103 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
39104 | wxPyEndAllowThreads(__tstate); | |
39105 | if (PyErr_Occurred()) SWIG_fail; | |
39106 | } | |
39107 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 ); | |
39108 | return resultobj; | |
39109 | fail: | |
39110 | return NULL; | |
d14a1e28 RD |
39111 | } |
39112 | ||
39113 | ||
0085ce49 RD |
39114 | SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39115 | PyObject *resultobj = 0; | |
39116 | wxHelpProvider *result = 0 ; | |
39117 | ||
39118 | if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail; | |
39119 | { | |
39120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39121 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
39122 | wxPyEndAllowThreads(__tstate); | |
39123 | if (PyErr_Occurred()) SWIG_fail; | |
39124 | } | |
39125 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
39126 | return resultobj; | |
39127 | fail: | |
39128 | return NULL; | |
39129 | } | |
39130 | ||
39131 | ||
39132 | SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39133 | PyObject *resultobj = 0; | |
39134 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
39135 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39136 | wxString result; | |
39137 | void *argp1 = 0 ; | |
39138 | int res1 = 0 ; | |
39139 | void *argp2 = 0 ; | |
39140 | int res2 = 0 ; | |
39141 | PyObject * obj0 = 0 ; | |
39142 | PyObject * obj1 = 0 ; | |
39143 | char * kwnames[] = { | |
39144 | (char *) "self",(char *) "window", NULL | |
39145 | }; | |
39146 | ||
39147 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
39148 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
39149 | if (!SWIG_IsOK(res1)) { | |
39150 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
39151 | } | |
39152 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
39153 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39154 | if (!SWIG_IsOK(res2)) { | |
39155 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
39156 | } | |
39157 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
39158 | { | |
39159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39160 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
39161 | wxPyEndAllowThreads(__tstate); | |
39162 | if (PyErr_Occurred()) SWIG_fail; | |
39163 | } | |
39164 | { | |
39165 | #if wxUSE_UNICODE | |
39166 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
39167 | #else | |
39168 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
39169 | #endif | |
39170 | } | |
39171 | return resultobj; | |
39172 | fail: | |
39173 | return NULL; | |
39174 | } | |
39175 | ||
39176 | ||
39177 | SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39178 | PyObject *resultobj = 0; | |
39179 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
39180 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39181 | bool result; | |
39182 | void *argp1 = 0 ; | |
39183 | int res1 = 0 ; | |
39184 | void *argp2 = 0 ; | |
39185 | int res2 = 0 ; | |
39186 | PyObject * obj0 = 0 ; | |
39187 | PyObject * obj1 = 0 ; | |
39188 | char * kwnames[] = { | |
39189 | (char *) "self",(char *) "window", NULL | |
39190 | }; | |
39191 | ||
39192 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
39193 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
39194 | if (!SWIG_IsOK(res1)) { | |
39195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
39196 | } | |
39197 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
39198 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39199 | if (!SWIG_IsOK(res2)) { | |
39200 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
39201 | } | |
39202 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
39203 | { | |
39204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39205 | result = (bool)(arg1)->ShowHelp(arg2); | |
39206 | wxPyEndAllowThreads(__tstate); | |
39207 | if (PyErr_Occurred()) SWIG_fail; | |
39208 | } | |
39209 | { | |
39210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39211 | } | |
39212 | return resultobj; | |
39213 | fail: | |
39214 | return NULL; | |
39215 | } | |
39216 | ||
39217 | ||
39218 | SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39219 | PyObject *resultobj = 0; | |
39220 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
39221 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39222 | wxString *arg3 = 0 ; | |
39223 | void *argp1 = 0 ; | |
39224 | int res1 = 0 ; | |
39225 | void *argp2 = 0 ; | |
39226 | int res2 = 0 ; | |
39227 | bool temp3 = false ; | |
39228 | PyObject * obj0 = 0 ; | |
39229 | PyObject * obj1 = 0 ; | |
39230 | PyObject * obj2 = 0 ; | |
39231 | char * kwnames[] = { | |
39232 | (char *) "self",(char *) "window",(char *) "text", NULL | |
39233 | }; | |
39234 | ||
39235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
39236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
39237 | if (!SWIG_IsOK(res1)) { | |
39238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
39239 | } | |
39240 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
39241 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39242 | if (!SWIG_IsOK(res2)) { | |
39243 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
39244 | } | |
39245 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
39246 | { | |
39247 | arg3 = wxString_in_helper(obj2); | |
39248 | if (arg3 == NULL) SWIG_fail; | |
39249 | temp3 = true; | |
39250 | } | |
39251 | { | |
39252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39253 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
39254 | wxPyEndAllowThreads(__tstate); | |
39255 | if (PyErr_Occurred()) SWIG_fail; | |
39256 | } | |
39257 | resultobj = SWIG_Py_Void(); | |
39258 | { | |
39259 | if (temp3) | |
39260 | delete arg3; | |
39261 | } | |
39262 | return resultobj; | |
39263 | fail: | |
39264 | { | |
39265 | if (temp3) | |
39266 | delete arg3; | |
39267 | } | |
39268 | return NULL; | |
39269 | } | |
39270 | ||
39271 | ||
39272 | SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39273 | PyObject *resultobj = 0; | |
39274 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
39275 | int arg2 ; | |
39276 | wxString *arg3 = 0 ; | |
39277 | void *argp1 = 0 ; | |
39278 | int res1 = 0 ; | |
39279 | int val2 ; | |
39280 | int ecode2 = 0 ; | |
39281 | bool temp3 = false ; | |
39282 | PyObject * obj0 = 0 ; | |
39283 | PyObject * obj1 = 0 ; | |
39284 | PyObject * obj2 = 0 ; | |
39285 | char * kwnames[] = { | |
39286 | (char *) "self",(char *) "id",(char *) "text", NULL | |
39287 | }; | |
39288 | ||
39289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
39290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
39291 | if (!SWIG_IsOK(res1)) { | |
39292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
39293 | } | |
39294 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
39295 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39296 | if (!SWIG_IsOK(ecode2)) { | |
39297 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'"); | |
39298 | } | |
39299 | arg2 = static_cast< int >(val2); | |
39300 | { | |
39301 | arg3 = wxString_in_helper(obj2); | |
39302 | if (arg3 == NULL) SWIG_fail; | |
39303 | temp3 = true; | |
39304 | } | |
39305 | { | |
39306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39307 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
39308 | wxPyEndAllowThreads(__tstate); | |
39309 | if (PyErr_Occurred()) SWIG_fail; | |
39310 | } | |
39311 | resultobj = SWIG_Py_Void(); | |
39312 | { | |
39313 | if (temp3) | |
39314 | delete arg3; | |
39315 | } | |
39316 | return resultobj; | |
39317 | fail: | |
39318 | { | |
39319 | if (temp3) | |
39320 | delete arg3; | |
39321 | } | |
39322 | return NULL; | |
39323 | } | |
39324 | ||
39325 | ||
39326 | SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39327 | PyObject *resultobj = 0; | |
39328 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
39329 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39330 | void *argp1 = 0 ; | |
39331 | int res1 = 0 ; | |
39332 | void *argp2 = 0 ; | |
39333 | int res2 = 0 ; | |
39334 | PyObject * obj0 = 0 ; | |
39335 | PyObject * obj1 = 0 ; | |
39336 | char * kwnames[] = { | |
39337 | (char *) "self",(char *) "window", NULL | |
39338 | }; | |
39339 | ||
39340 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
39341 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
39342 | if (!SWIG_IsOK(res1)) { | |
39343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
39344 | } | |
39345 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
39346 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39347 | if (!SWIG_IsOK(res2)) { | |
39348 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
39349 | } | |
39350 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
39351 | { | |
39352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39353 | (arg1)->RemoveHelp(arg2); | |
39354 | wxPyEndAllowThreads(__tstate); | |
39355 | if (PyErr_Occurred()) SWIG_fail; | |
39356 | } | |
39357 | resultobj = SWIG_Py_Void(); | |
39358 | return resultobj; | |
39359 | fail: | |
39360 | return NULL; | |
d14a1e28 RD |
39361 | } |
39362 | ||
39363 | ||
0085ce49 RD |
39364 | SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39365 | PyObject *resultobj = 0; | |
39366 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
39367 | void *argp1 = 0 ; | |
39368 | int res1 = 0 ; | |
39369 | PyObject *swig_obj[1] ; | |
39370 | ||
39371 | if (!args) SWIG_fail; | |
39372 | swig_obj[0] = args; | |
39373 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
39374 | if (!SWIG_IsOK(res1)) { | |
39375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
39376 | } | |
39377 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
39378 | { | |
39379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39380 | wxHelpProvider_Destroy(arg1); | |
39381 | wxPyEndAllowThreads(__tstate); | |
39382 | if (PyErr_Occurred()) SWIG_fail; | |
39383 | } | |
39384 | resultobj = SWIG_Py_Void(); | |
39385 | return resultobj; | |
39386 | fail: | |
39387 | return NULL; | |
22bfe96c RD |
39388 | } |
39389 | ||
39390 | ||
0085ce49 RD |
39391 | SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39392 | PyObject *obj; | |
39393 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39394 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj)); | |
39395 | return SWIG_Py_Void(); | |
b2dc1044 RD |
39396 | } |
39397 | ||
0085ce49 RD |
39398 | SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39399 | PyObject *resultobj = 0; | |
39400 | wxSimpleHelpProvider *result = 0 ; | |
39401 | ||
39402 | if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail; | |
39403 | { | |
39404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39405 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
39406 | wxPyEndAllowThreads(__tstate); | |
39407 | if (PyErr_Occurred()) SWIG_fail; | |
39408 | } | |
39409 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 ); | |
39410 | return resultobj; | |
39411 | fail: | |
39412 | return NULL; | |
39413 | } | |
39414 | ||
39415 | ||
39416 | SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39417 | PyObject *obj; | |
39418 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39419 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj)); | |
39420 | return SWIG_Py_Void(); | |
39421 | } | |
39422 | ||
39423 | SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39424 | return SWIG_Python_InitShadowInstance(args); | |
39425 | } | |
39426 | ||
39427 | SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39428 | PyObject *resultobj = 0; | |
39429 | wxBitmap *arg1 = 0 ; | |
39430 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
39431 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
39432 | wxGenericDragImage *result = 0 ; | |
39433 | void *argp1 = 0 ; | |
39434 | int res1 = 0 ; | |
39435 | void *argp2 = 0 ; | |
39436 | int res2 = 0 ; | |
39437 | PyObject * obj0 = 0 ; | |
39438 | PyObject * obj1 = 0 ; | |
39439 | char * kwnames[] = { | |
39440 | (char *) "image",(char *) "cursor", NULL | |
39441 | }; | |
39442 | ||
39443 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
39444 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
39445 | if (!SWIG_IsOK(res1)) { | |
39446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
39447 | } | |
39448 | if (!argp1) { | |
39449 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
39450 | } | |
39451 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
39452 | if (obj1) { | |
39453 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
39454 | if (!SWIG_IsOK(res2)) { | |
39455 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d14a1e28 | 39456 | } |
0085ce49 RD |
39457 | if (!argp2) { |
39458 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d14a1e28 | 39459 | } |
0085ce49 RD |
39460 | arg2 = reinterpret_cast< wxCursor * >(argp2); |
39461 | } | |
39462 | { | |
39463 | if (!wxPyCheckForApp()) SWIG_fail; | |
39464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39465 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
39466 | wxPyEndAllowThreads(__tstate); | |
39467 | if (PyErr_Occurred()) SWIG_fail; | |
39468 | } | |
39469 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 ); | |
39470 | return resultobj; | |
39471 | fail: | |
39472 | return NULL; | |
39473 | } | |
39474 | ||
39475 | ||
39476 | SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39477 | PyObject *resultobj = 0; | |
39478 | wxIcon *arg1 = 0 ; | |
39479 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
39480 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
39481 | wxGenericDragImage *result = 0 ; | |
39482 | void *argp1 = 0 ; | |
39483 | int res1 = 0 ; | |
39484 | void *argp2 = 0 ; | |
39485 | int res2 = 0 ; | |
39486 | PyObject * obj0 = 0 ; | |
39487 | PyObject * obj1 = 0 ; | |
39488 | char * kwnames[] = { | |
39489 | (char *) "image",(char *) "cursor", NULL | |
39490 | }; | |
39491 | ||
39492 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
39493 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
39494 | if (!SWIG_IsOK(res1)) { | |
39495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
39496 | } | |
39497 | if (!argp1) { | |
39498 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
39499 | } | |
39500 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
39501 | if (obj1) { | |
39502 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
39503 | if (!SWIG_IsOK(res2)) { | |
39504 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d14a1e28 | 39505 | } |
0085ce49 RD |
39506 | if (!argp2) { |
39507 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d14a1e28 | 39508 | } |
0085ce49 RD |
39509 | arg2 = reinterpret_cast< wxCursor * >(argp2); |
39510 | } | |
39511 | { | |
39512 | if (!wxPyCheckForApp()) SWIG_fail; | |
39513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39514 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
39515 | wxPyEndAllowThreads(__tstate); | |
39516 | if (PyErr_Occurred()) SWIG_fail; | |
39517 | } | |
39518 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
39519 | return resultobj; | |
39520 | fail: | |
39521 | return NULL; | |
39522 | } | |
39523 | ||
39524 | ||
39525 | SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39526 | PyObject *resultobj = 0; | |
39527 | wxString *arg1 = 0 ; | |
39528 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
39529 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
39530 | wxGenericDragImage *result = 0 ; | |
39531 | bool temp1 = false ; | |
39532 | void *argp2 = 0 ; | |
39533 | int res2 = 0 ; | |
39534 | PyObject * obj0 = 0 ; | |
39535 | PyObject * obj1 = 0 ; | |
39536 | char * kwnames[] = { | |
39537 | (char *) "str",(char *) "cursor", NULL | |
39538 | }; | |
39539 | ||
39540 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail; | |
39541 | { | |
39542 | arg1 = wxString_in_helper(obj0); | |
39543 | if (arg1 == NULL) SWIG_fail; | |
39544 | temp1 = true; | |
39545 | } | |
39546 | if (obj1) { | |
39547 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
39548 | if (!SWIG_IsOK(res2)) { | |
39549 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
7e08d4ef | 39550 | } |
0085ce49 RD |
39551 | if (!argp2) { |
39552 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
39553 | } | |
39554 | arg2 = reinterpret_cast< wxCursor * >(argp2); | |
39555 | } | |
39556 | { | |
39557 | if (!wxPyCheckForApp()) SWIG_fail; | |
39558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39559 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
39560 | wxPyEndAllowThreads(__tstate); | |
39561 | if (PyErr_Occurred()) SWIG_fail; | |
39562 | } | |
39563 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
39564 | { | |
39565 | if (temp1) | |
39566 | delete arg1; | |
39567 | } | |
39568 | return resultobj; | |
39569 | fail: | |
39570 | { | |
39571 | if (temp1) | |
39572 | delete arg1; | |
39573 | } | |
39574 | return NULL; | |
39575 | } | |
39576 | ||
39577 | ||
39578 | SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39579 | PyObject *resultobj = 0; | |
39580 | wxPyTreeCtrl *arg1 = 0 ; | |
39581 | wxTreeItemId *arg2 = 0 ; | |
39582 | wxGenericDragImage *result = 0 ; | |
39583 | void *argp1 = 0 ; | |
39584 | int res1 = 0 ; | |
39585 | void *argp2 = 0 ; | |
39586 | int res2 = 0 ; | |
39587 | PyObject * obj0 = 0 ; | |
39588 | PyObject * obj1 = 0 ; | |
39589 | char * kwnames[] = { | |
39590 | (char *) "treeCtrl",(char *) "id", NULL | |
39591 | }; | |
39592 | ||
39593 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
39594 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0); | |
39595 | if (!SWIG_IsOK(res1)) { | |
39596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'"); | |
39597 | } | |
39598 | if (!argp1) { | |
39599 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'"); | |
39600 | } | |
39601 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
39602 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 ); | |
39603 | if (!SWIG_IsOK(res2)) { | |
39604 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'"); | |
39605 | } | |
39606 | if (!argp2) { | |
39607 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'"); | |
39608 | } | |
39609 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
39610 | { | |
39611 | if (!wxPyCheckForApp()) SWIG_fail; | |
39612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39613 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
39614 | wxPyEndAllowThreads(__tstate); | |
39615 | if (PyErr_Occurred()) SWIG_fail; | |
39616 | } | |
39617 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
39618 | return resultobj; | |
39619 | fail: | |
39620 | return NULL; | |
39621 | } | |
39622 | ||
39623 | ||
39624 | SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39625 | PyObject *resultobj = 0; | |
39626 | wxPyListCtrl *arg1 = 0 ; | |
39627 | long arg2 ; | |
39628 | wxGenericDragImage *result = 0 ; | |
39629 | void *argp1 = 0 ; | |
39630 | int res1 = 0 ; | |
39631 | long val2 ; | |
39632 | int ecode2 = 0 ; | |
39633 | PyObject * obj0 = 0 ; | |
39634 | PyObject * obj1 = 0 ; | |
39635 | char * kwnames[] = { | |
39636 | (char *) "listCtrl",(char *) "id", NULL | |
39637 | }; | |
39638 | ||
39639 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
39640 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0); | |
39641 | if (!SWIG_IsOK(res1)) { | |
39642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'"); | |
39643 | } | |
39644 | if (!argp1) { | |
39645 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'"); | |
39646 | } | |
39647 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
39648 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
39649 | if (!SWIG_IsOK(ecode2)) { | |
39650 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'"); | |
39651 | } | |
39652 | arg2 = static_cast< long >(val2); | |
39653 | { | |
39654 | if (!wxPyCheckForApp()) SWIG_fail; | |
39655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39656 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
39657 | wxPyEndAllowThreads(__tstate); | |
39658 | if (PyErr_Occurred()) SWIG_fail; | |
39659 | } | |
39660 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
39661 | return resultobj; | |
39662 | fail: | |
39663 | return NULL; | |
7e08d4ef RD |
39664 | } |
39665 | ||
39666 | ||
0085ce49 RD |
39667 | SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39668 | PyObject *resultobj = 0; | |
39669 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39670 | void *argp1 = 0 ; | |
39671 | int res1 = 0 ; | |
39672 | PyObject *swig_obj[1] ; | |
39673 | ||
39674 | if (!args) SWIG_fail; | |
39675 | swig_obj[0] = args; | |
39676 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 ); | |
39677 | if (!SWIG_IsOK(res1)) { | |
39678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
39679 | } | |
39680 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39681 | { | |
39682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39683 | delete arg1; | |
d14a1e28 | 39684 | |
0085ce49 RD |
39685 | wxPyEndAllowThreads(__tstate); |
39686 | if (PyErr_Occurred()) SWIG_fail; | |
39687 | } | |
39688 | resultobj = SWIG_Py_Void(); | |
39689 | return resultobj; | |
39690 | fail: | |
39691 | return NULL; | |
39692 | } | |
39693 | ||
39694 | ||
39695 | SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39696 | PyObject *resultobj = 0; | |
39697 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39698 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
39699 | void *argp1 = 0 ; | |
39700 | int res1 = 0 ; | |
39701 | void *argp2 = 0 ; | |
39702 | int res2 = 0 ; | |
39703 | PyObject * obj0 = 0 ; | |
39704 | PyObject * obj1 = 0 ; | |
39705 | char * kwnames[] = { | |
39706 | (char *) "self",(char *) "bitmap", NULL | |
39707 | }; | |
39708 | ||
39709 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
39710 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39711 | if (!SWIG_IsOK(res1)) { | |
39712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
39713 | } | |
39714 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39715 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
39716 | if (!SWIG_IsOK(res2)) { | |
39717 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
39718 | } | |
39719 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
39720 | { | |
39721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39722 | (arg1)->SetBackingBitmap(arg2); | |
39723 | wxPyEndAllowThreads(__tstate); | |
39724 | if (PyErr_Occurred()) SWIG_fail; | |
39725 | } | |
39726 | resultobj = SWIG_Py_Void(); | |
39727 | return resultobj; | |
39728 | fail: | |
39729 | return NULL; | |
39730 | } | |
39731 | ||
39732 | ||
39733 | SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39734 | PyObject *resultobj = 0; | |
39735 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39736 | wxPoint *arg2 = 0 ; | |
39737 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39738 | bool arg4 = (bool) false ; | |
39739 | wxRect *arg5 = (wxRect *) NULL ; | |
39740 | bool result; | |
39741 | void *argp1 = 0 ; | |
39742 | int res1 = 0 ; | |
39743 | wxPoint temp2 ; | |
39744 | void *argp3 = 0 ; | |
39745 | int res3 = 0 ; | |
39746 | bool val4 ; | |
39747 | int ecode4 = 0 ; | |
39748 | void *argp5 = 0 ; | |
39749 | int res5 = 0 ; | |
39750 | PyObject * obj0 = 0 ; | |
39751 | PyObject * obj1 = 0 ; | |
39752 | PyObject * obj2 = 0 ; | |
39753 | PyObject * obj3 = 0 ; | |
39754 | PyObject * obj4 = 0 ; | |
39755 | char * kwnames[] = { | |
39756 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
39757 | }; | |
39758 | ||
39759 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
39760 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39761 | if (!SWIG_IsOK(res1)) { | |
39762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
39763 | } | |
39764 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39765 | { | |
39766 | arg2 = &temp2; | |
39767 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39768 | } | |
39769 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39770 | if (!SWIG_IsOK(res3)) { | |
39771 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
39772 | } | |
39773 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
39774 | if (obj3) { | |
39775 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
39776 | if (!SWIG_IsOK(ecode4)) { | |
39777 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'"); | |
39778 | } | |
39779 | arg4 = static_cast< bool >(val4); | |
39780 | } | |
39781 | if (obj4) { | |
39782 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 ); | |
39783 | if (!SWIG_IsOK(res5)) { | |
39784 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'"); | |
d14a1e28 | 39785 | } |
0085ce49 RD |
39786 | arg5 = reinterpret_cast< wxRect * >(argp5); |
39787 | } | |
39788 | { | |
39789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39790 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
39791 | wxPyEndAllowThreads(__tstate); | |
39792 | if (PyErr_Occurred()) SWIG_fail; | |
39793 | } | |
39794 | { | |
39795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39796 | } | |
39797 | return resultobj; | |
39798 | fail: | |
39799 | return NULL; | |
39800 | } | |
39801 | ||
39802 | ||
39803 | SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39804 | PyObject *resultobj = 0; | |
39805 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39806 | wxPoint *arg2 = 0 ; | |
39807 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39808 | wxWindow *arg4 = (wxWindow *) 0 ; | |
39809 | bool result; | |
39810 | void *argp1 = 0 ; | |
39811 | int res1 = 0 ; | |
39812 | wxPoint temp2 ; | |
39813 | void *argp3 = 0 ; | |
39814 | int res3 = 0 ; | |
39815 | void *argp4 = 0 ; | |
39816 | int res4 = 0 ; | |
39817 | PyObject * obj0 = 0 ; | |
39818 | PyObject * obj1 = 0 ; | |
39819 | PyObject * obj2 = 0 ; | |
39820 | PyObject * obj3 = 0 ; | |
39821 | char * kwnames[] = { | |
39822 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
39823 | }; | |
39824 | ||
39825 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
39826 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39827 | if (!SWIG_IsOK(res1)) { | |
39828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
39829 | } | |
39830 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39831 | { | |
39832 | arg2 = &temp2; | |
39833 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39834 | } | |
39835 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39836 | if (!SWIG_IsOK(res3)) { | |
39837 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
39838 | } | |
39839 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
39840 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39841 | if (!SWIG_IsOK(res4)) { | |
39842 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
39843 | } | |
39844 | arg4 = reinterpret_cast< wxWindow * >(argp4); | |
39845 | { | |
39846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39847 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
39848 | wxPyEndAllowThreads(__tstate); | |
39849 | if (PyErr_Occurred()) SWIG_fail; | |
39850 | } | |
39851 | { | |
39852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39853 | } | |
39854 | return resultobj; | |
39855 | fail: | |
39856 | return NULL; | |
d14a1e28 RD |
39857 | } |
39858 | ||
39859 | ||
0085ce49 RD |
39860 | SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39861 | PyObject *resultobj = 0; | |
39862 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39863 | bool result; | |
39864 | void *argp1 = 0 ; | |
39865 | int res1 = 0 ; | |
39866 | PyObject *swig_obj[1] ; | |
39867 | ||
39868 | if (!args) SWIG_fail; | |
39869 | swig_obj[0] = args; | |
39870 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39871 | if (!SWIG_IsOK(res1)) { | |
39872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
39873 | } | |
39874 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39875 | { | |
39876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39877 | result = (bool)(arg1)->EndDrag(); | |
39878 | wxPyEndAllowThreads(__tstate); | |
39879 | if (PyErr_Occurred()) SWIG_fail; | |
39880 | } | |
39881 | { | |
39882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39883 | } | |
39884 | return resultobj; | |
39885 | fail: | |
39886 | return NULL; | |
39887 | } | |
39888 | ||
39889 | ||
39890 | SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39891 | PyObject *resultobj = 0; | |
39892 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39893 | wxPoint *arg2 = 0 ; | |
39894 | bool result; | |
39895 | void *argp1 = 0 ; | |
39896 | int res1 = 0 ; | |
39897 | wxPoint temp2 ; | |
39898 | PyObject * obj0 = 0 ; | |
39899 | PyObject * obj1 = 0 ; | |
39900 | char * kwnames[] = { | |
39901 | (char *) "self",(char *) "pt", NULL | |
39902 | }; | |
39903 | ||
39904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail; | |
39905 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39906 | if (!SWIG_IsOK(res1)) { | |
39907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
39908 | } | |
39909 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39910 | { | |
39911 | arg2 = &temp2; | |
39912 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39913 | } | |
39914 | { | |
39915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39916 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
39917 | wxPyEndAllowThreads(__tstate); | |
39918 | if (PyErr_Occurred()) SWIG_fail; | |
39919 | } | |
39920 | { | |
39921 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39922 | } | |
39923 | return resultobj; | |
39924 | fail: | |
39925 | return NULL; | |
d14a1e28 RD |
39926 | } |
39927 | ||
39928 | ||
0085ce49 RD |
39929 | SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39930 | PyObject *resultobj = 0; | |
39931 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39932 | bool result; | |
39933 | void *argp1 = 0 ; | |
39934 | int res1 = 0 ; | |
39935 | PyObject *swig_obj[1] ; | |
39936 | ||
39937 | if (!args) SWIG_fail; | |
39938 | swig_obj[0] = args; | |
39939 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39940 | if (!SWIG_IsOK(res1)) { | |
39941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
39942 | } | |
39943 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39944 | { | |
39945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39946 | result = (bool)(arg1)->Show(); | |
39947 | wxPyEndAllowThreads(__tstate); | |
39948 | if (PyErr_Occurred()) SWIG_fail; | |
39949 | } | |
39950 | { | |
39951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39952 | } | |
39953 | return resultobj; | |
39954 | fail: | |
39955 | return NULL; | |
d14a1e28 RD |
39956 | } |
39957 | ||
39958 | ||
0085ce49 RD |
39959 | SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39960 | PyObject *resultobj = 0; | |
39961 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39962 | bool result; | |
39963 | void *argp1 = 0 ; | |
39964 | int res1 = 0 ; | |
39965 | PyObject *swig_obj[1] ; | |
39966 | ||
39967 | if (!args) SWIG_fail; | |
39968 | swig_obj[0] = args; | |
39969 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
39970 | if (!SWIG_IsOK(res1)) { | |
39971 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
39972 | } | |
39973 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
39974 | { | |
39975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39976 | result = (bool)(arg1)->Hide(); | |
39977 | wxPyEndAllowThreads(__tstate); | |
39978 | if (PyErr_Occurred()) SWIG_fail; | |
39979 | } | |
39980 | { | |
39981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39982 | } | |
39983 | return resultobj; | |
39984 | fail: | |
39985 | return NULL; | |
39986 | } | |
39987 | ||
39988 | ||
39989 | SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39990 | PyObject *resultobj = 0; | |
39991 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
39992 | wxPoint *arg2 = 0 ; | |
39993 | wxRect result; | |
39994 | void *argp1 = 0 ; | |
39995 | int res1 = 0 ; | |
39996 | wxPoint temp2 ; | |
39997 | PyObject * obj0 = 0 ; | |
39998 | PyObject * obj1 = 0 ; | |
39999 | char * kwnames[] = { | |
40000 | (char *) "self",(char *) "pos", NULL | |
40001 | }; | |
40002 | ||
40003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
40004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40005 | if (!SWIG_IsOK(res1)) { | |
40006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
40007 | } | |
40008 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40009 | { | |
40010 | arg2 = &temp2; | |
40011 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
40012 | } | |
40013 | { | |
40014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40015 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
40016 | wxPyEndAllowThreads(__tstate); | |
40017 | if (PyErr_Occurred()) SWIG_fail; | |
40018 | } | |
40019 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
40020 | return resultobj; | |
40021 | fail: | |
40022 | return NULL; | |
40023 | } | |
40024 | ||
40025 | ||
40026 | SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40027 | PyObject *resultobj = 0; | |
40028 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40029 | wxDC *arg2 = 0 ; | |
40030 | wxPoint *arg3 = 0 ; | |
40031 | bool result; | |
40032 | void *argp1 = 0 ; | |
40033 | int res1 = 0 ; | |
40034 | void *argp2 = 0 ; | |
40035 | int res2 = 0 ; | |
40036 | wxPoint temp3 ; | |
40037 | PyObject * obj0 = 0 ; | |
40038 | PyObject * obj1 = 0 ; | |
40039 | PyObject * obj2 = 0 ; | |
40040 | char * kwnames[] = { | |
40041 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
40042 | }; | |
40043 | ||
40044 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
40045 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40046 | if (!SWIG_IsOK(res1)) { | |
40047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
40048 | } | |
40049 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40050 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
40051 | if (!SWIG_IsOK(res2)) { | |
40052 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'"); | |
40053 | } | |
40054 | if (!argp2) { | |
40055 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'"); | |
40056 | } | |
40057 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
40058 | { | |
40059 | arg3 = &temp3; | |
40060 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
40061 | } | |
40062 | { | |
40063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40064 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
40065 | wxPyEndAllowThreads(__tstate); | |
40066 | if (PyErr_Occurred()) SWIG_fail; | |
40067 | } | |
40068 | { | |
40069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40070 | } | |
40071 | return resultobj; | |
40072 | fail: | |
40073 | return NULL; | |
40074 | } | |
40075 | ||
40076 | ||
40077 | SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40078 | PyObject *resultobj = 0; | |
40079 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40080 | wxDC *arg2 = 0 ; | |
40081 | wxMemoryDC *arg3 = 0 ; | |
40082 | wxRect *arg4 = 0 ; | |
40083 | wxRect *arg5 = 0 ; | |
40084 | bool result; | |
40085 | void *argp1 = 0 ; | |
40086 | int res1 = 0 ; | |
40087 | void *argp2 = 0 ; | |
40088 | int res2 = 0 ; | |
40089 | void *argp3 = 0 ; | |
40090 | int res3 = 0 ; | |
40091 | wxRect temp4 ; | |
40092 | wxRect temp5 ; | |
40093 | PyObject * obj0 = 0 ; | |
40094 | PyObject * obj1 = 0 ; | |
40095 | PyObject * obj2 = 0 ; | |
40096 | PyObject * obj3 = 0 ; | |
40097 | PyObject * obj4 = 0 ; | |
40098 | char * kwnames[] = { | |
40099 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
40100 | }; | |
40101 | ||
40102 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
40103 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40104 | if (!SWIG_IsOK(res1)) { | |
40105 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
40106 | } | |
40107 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40108 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
40109 | if (!SWIG_IsOK(res2)) { | |
40110 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'"); | |
40111 | } | |
40112 | if (!argp2) { | |
40113 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'"); | |
40114 | } | |
40115 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
40116 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 ); | |
40117 | if (!SWIG_IsOK(res3)) { | |
40118 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'"); | |
40119 | } | |
40120 | if (!argp3) { | |
40121 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'"); | |
40122 | } | |
40123 | arg3 = reinterpret_cast< wxMemoryDC * >(argp3); | |
40124 | { | |
40125 | arg4 = &temp4; | |
40126 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
40127 | } | |
40128 | { | |
40129 | arg5 = &temp5; | |
40130 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
40131 | } | |
40132 | { | |
40133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40134 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
40135 | wxPyEndAllowThreads(__tstate); | |
40136 | if (PyErr_Occurred()) SWIG_fail; | |
40137 | } | |
40138 | { | |
40139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40140 | } | |
40141 | return resultobj; | |
40142 | fail: | |
40143 | return NULL; | |
40144 | } | |
40145 | ||
40146 | ||
40147 | SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40148 | PyObject *resultobj = 0; | |
40149 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40150 | wxPoint *arg2 = 0 ; | |
40151 | wxPoint *arg3 = 0 ; | |
40152 | bool arg4 ; | |
40153 | bool arg5 ; | |
40154 | bool result; | |
40155 | void *argp1 = 0 ; | |
40156 | int res1 = 0 ; | |
40157 | wxPoint temp2 ; | |
40158 | wxPoint temp3 ; | |
40159 | bool val4 ; | |
40160 | int ecode4 = 0 ; | |
40161 | bool val5 ; | |
40162 | int ecode5 = 0 ; | |
40163 | PyObject * obj0 = 0 ; | |
40164 | PyObject * obj1 = 0 ; | |
40165 | PyObject * obj2 = 0 ; | |
40166 | PyObject * obj3 = 0 ; | |
40167 | PyObject * obj4 = 0 ; | |
40168 | char * kwnames[] = { | |
40169 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
40170 | }; | |
40171 | ||
40172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
40173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40174 | if (!SWIG_IsOK(res1)) { | |
40175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40176 | } | |
40177 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40178 | { | |
40179 | arg2 = &temp2; | |
40180 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
40181 | } | |
40182 | { | |
40183 | arg3 = &temp3; | |
40184 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
40185 | } | |
40186 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
40187 | if (!SWIG_IsOK(ecode4)) { | |
40188 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'"); | |
40189 | } | |
40190 | arg4 = static_cast< bool >(val4); | |
40191 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
40192 | if (!SWIG_IsOK(ecode5)) { | |
40193 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'"); | |
40194 | } | |
40195 | arg5 = static_cast< bool >(val5); | |
40196 | { | |
40197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40198 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
40199 | wxPyEndAllowThreads(__tstate); | |
40200 | if (PyErr_Occurred()) SWIG_fail; | |
40201 | } | |
40202 | { | |
40203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40204 | } | |
40205 | return resultobj; | |
40206 | fail: | |
40207 | return NULL; | |
d14a1e28 RD |
40208 | } |
40209 | ||
40210 | ||
0085ce49 RD |
40211 | SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40212 | PyObject *obj; | |
40213 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40214 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj)); | |
40215 | return SWIG_Py_Void(); | |
d14a1e28 RD |
40216 | } |
40217 | ||
0085ce49 RD |
40218 | SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40219 | return SWIG_Python_InitShadowInstance(args); | |
40220 | } | |
d14a1e28 | 40221 | |
0085ce49 RD |
40222 | SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) { |
40223 | SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only."); | |
40224 | return 1; | |
d14a1e28 RD |
40225 | } |
40226 | ||
40227 | ||
0085ce49 RD |
40228 | SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) { |
40229 | PyObject *pyobj = 0; | |
40230 | ||
40231 | { | |
40232 | #if wxUSE_UNICODE | |
40233 | pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
40234 | #else | |
40235 | pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
40236 | #endif | |
40237 | } | |
40238 | return pyobj; | |
40239 | } | |
40240 | ||
40241 | ||
40242 | SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40243 | PyObject *resultobj = 0; | |
40244 | wxWindow *arg1 = (wxWindow *) 0 ; | |
40245 | int arg2 = (int) -1 ; | |
40246 | wxDateTime const &arg3_defvalue = wxDefaultDateTime ; | |
40247 | wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ; | |
40248 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
40249 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
40250 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
40251 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
40252 | long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
40253 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
40254 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
40255 | wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ; | |
40256 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
40257 | wxDatePickerCtrl *result = 0 ; | |
40258 | void *argp1 = 0 ; | |
40259 | int res1 = 0 ; | |
40260 | int val2 ; | |
40261 | int ecode2 = 0 ; | |
40262 | void *argp3 = 0 ; | |
40263 | int res3 = 0 ; | |
40264 | wxPoint temp4 ; | |
40265 | wxSize temp5 ; | |
40266 | long val6 ; | |
40267 | int ecode6 = 0 ; | |
40268 | void *argp7 = 0 ; | |
40269 | int res7 = 0 ; | |
40270 | bool temp8 = false ; | |
40271 | PyObject * obj0 = 0 ; | |
40272 | PyObject * obj1 = 0 ; | |
40273 | PyObject * obj2 = 0 ; | |
40274 | PyObject * obj3 = 0 ; | |
40275 | PyObject * obj4 = 0 ; | |
40276 | PyObject * obj5 = 0 ; | |
40277 | PyObject * obj6 = 0 ; | |
40278 | PyObject * obj7 = 0 ; | |
40279 | char * kwnames[] = { | |
40280 | (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
40281 | }; | |
40282 | ||
40283 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
40284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40285 | if (!SWIG_IsOK(res1)) { | |
40286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
40287 | } | |
40288 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
40289 | if (obj1) { | |
40290 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
40291 | if (!SWIG_IsOK(ecode2)) { | |
40292 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
40293 | } | |
40294 | arg2 = static_cast< int >(val2); | |
40295 | } | |
40296 | if (obj2) { | |
40297 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0); | |
40298 | if (!SWIG_IsOK(res3)) { | |
40299 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
d14a1e28 | 40300 | } |
0085ce49 RD |
40301 | if (!argp3) { |
40302 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
d14a1e28 | 40303 | } |
0085ce49 RD |
40304 | arg3 = reinterpret_cast< wxDateTime * >(argp3); |
40305 | } | |
40306 | if (obj3) { | |
d14a1e28 | 40307 | { |
0085ce49 RD |
40308 | arg4 = &temp4; |
40309 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 40310 | } |
0085ce49 RD |
40311 | } |
40312 | if (obj4) { | |
d14a1e28 | 40313 | { |
0085ce49 RD |
40314 | arg5 = &temp5; |
40315 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 40316 | } |
0085ce49 RD |
40317 | } |
40318 | if (obj5) { | |
40319 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
40320 | if (!SWIG_IsOK(ecode6)) { | |
40321 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'"); | |
40322 | } | |
40323 | arg6 = static_cast< long >(val6); | |
40324 | } | |
40325 | if (obj6) { | |
40326 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
40327 | if (!SWIG_IsOK(res7)) { | |
40328 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
40329 | } | |
40330 | if (!argp7) { | |
40331 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 40332 | } |
0085ce49 RD |
40333 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
40334 | } | |
40335 | if (obj7) { | |
d14a1e28 | 40336 | { |
0085ce49 RD |
40337 | arg8 = wxString_in_helper(obj7); |
40338 | if (arg8 == NULL) SWIG_fail; | |
40339 | temp8 = true; | |
d14a1e28 | 40340 | } |
0085ce49 RD |
40341 | } |
40342 | { | |
40343 | if (!wxPyCheckForApp()) SWIG_fail; | |
40344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40345 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
40346 | wxPyEndAllowThreads(__tstate); | |
40347 | if (PyErr_Occurred()) SWIG_fail; | |
40348 | } | |
40349 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 ); | |
40350 | { | |
40351 | if (temp8) | |
40352 | delete arg8; | |
40353 | } | |
40354 | return resultobj; | |
40355 | fail: | |
40356 | { | |
40357 | if (temp8) | |
40358 | delete arg8; | |
40359 | } | |
40360 | return NULL; | |
d14a1e28 RD |
40361 | } |
40362 | ||
40363 | ||
0085ce49 RD |
40364 | SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40365 | PyObject *resultobj = 0; | |
40366 | wxDatePickerCtrl *result = 0 ; | |
40367 | ||
40368 | if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail; | |
40369 | { | |
40370 | if (!wxPyCheckForApp()) SWIG_fail; | |
40371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40372 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(); | |
40373 | wxPyEndAllowThreads(__tstate); | |
40374 | if (PyErr_Occurred()) SWIG_fail; | |
40375 | } | |
40376 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 ); | |
40377 | return resultobj; | |
40378 | fail: | |
40379 | return NULL; | |
40380 | } | |
40381 | ||
40382 | ||
40383 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40384 | PyObject *resultobj = 0; | |
40385 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
40386 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40387 | int arg3 = (int) -1 ; | |
40388 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
40389 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
40390 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
40391 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
40392 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
40393 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
40394 | long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
40395 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
40396 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
40397 | wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ; | |
40398 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
40399 | bool result; | |
40400 | void *argp1 = 0 ; | |
40401 | int res1 = 0 ; | |
40402 | void *argp2 = 0 ; | |
40403 | int res2 = 0 ; | |
40404 | int val3 ; | |
40405 | int ecode3 = 0 ; | |
40406 | void *argp4 = 0 ; | |
40407 | int res4 = 0 ; | |
40408 | wxPoint temp5 ; | |
40409 | wxSize temp6 ; | |
40410 | long val7 ; | |
40411 | int ecode7 = 0 ; | |
40412 | void *argp8 = 0 ; | |
40413 | int res8 = 0 ; | |
40414 | bool temp9 = false ; | |
40415 | PyObject * obj0 = 0 ; | |
40416 | PyObject * obj1 = 0 ; | |
40417 | PyObject * obj2 = 0 ; | |
40418 | PyObject * obj3 = 0 ; | |
40419 | PyObject * obj4 = 0 ; | |
40420 | PyObject * obj5 = 0 ; | |
40421 | PyObject * obj6 = 0 ; | |
40422 | PyObject * obj7 = 0 ; | |
40423 | PyObject * obj8 = 0 ; | |
40424 | char * kwnames[] = { | |
40425 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
40426 | }; | |
40427 | ||
40428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
40429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
40430 | if (!SWIG_IsOK(res1)) { | |
40431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
40432 | } | |
40433 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
40434 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40435 | if (!SWIG_IsOK(res2)) { | |
40436 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
40437 | } | |
40438 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40439 | if (obj2) { | |
40440 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
40441 | if (!SWIG_IsOK(ecode3)) { | |
40442 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
40443 | } | |
40444 | arg3 = static_cast< int >(val3); | |
40445 | } | |
40446 | if (obj3) { | |
40447 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0); | |
40448 | if (!SWIG_IsOK(res4)) { | |
40449 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'"); | |
7e08d4ef | 40450 | } |
0085ce49 RD |
40451 | if (!argp4) { |
40452 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'"); | |
7e08d4ef | 40453 | } |
0085ce49 RD |
40454 | arg4 = reinterpret_cast< wxDateTime * >(argp4); |
40455 | } | |
40456 | if (obj4) { | |
d14a1e28 | 40457 | { |
0085ce49 RD |
40458 | arg5 = &temp5; |
40459 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 40460 | } |
0085ce49 RD |
40461 | } |
40462 | if (obj5) { | |
d14a1e28 | 40463 | { |
0085ce49 RD |
40464 | arg6 = &temp6; |
40465 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
40466 | } | |
40467 | } | |
40468 | if (obj6) { | |
40469 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
40470 | if (!SWIG_IsOK(ecode7)) { | |
40471 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
40472 | } | |
40473 | arg7 = static_cast< long >(val7); | |
40474 | } | |
40475 | if (obj7) { | |
40476 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
40477 | if (!SWIG_IsOK(res8)) { | |
40478 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
40479 | } | |
40480 | if (!argp8) { | |
40481 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 40482 | } |
0085ce49 RD |
40483 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
40484 | } | |
40485 | if (obj8) { | |
d14a1e28 | 40486 | { |
0085ce49 RD |
40487 | arg9 = wxString_in_helper(obj8); |
40488 | if (arg9 == NULL) SWIG_fail; | |
40489 | temp9 = true; | |
d14a1e28 | 40490 | } |
0085ce49 RD |
40491 | } |
40492 | { | |
40493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40494 | result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
40495 | wxPyEndAllowThreads(__tstate); | |
40496 | if (PyErr_Occurred()) SWIG_fail; | |
40497 | } | |
40498 | { | |
40499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40500 | } | |
40501 | { | |
40502 | if (temp9) | |
40503 | delete arg9; | |
40504 | } | |
40505 | return resultobj; | |
40506 | fail: | |
40507 | { | |
40508 | if (temp9) | |
40509 | delete arg9; | |
40510 | } | |
40511 | return NULL; | |
40512 | } | |
40513 | ||
40514 | ||
40515 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40516 | PyObject *resultobj = 0; | |
40517 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
40518 | wxDateTime *arg2 = 0 ; | |
40519 | void *argp1 = 0 ; | |
40520 | int res1 = 0 ; | |
40521 | void *argp2 = 0 ; | |
40522 | int res2 = 0 ; | |
40523 | PyObject * obj0 = 0 ; | |
40524 | PyObject * obj1 = 0 ; | |
40525 | char * kwnames[] = { | |
40526 | (char *) "self",(char *) "dt", NULL | |
40527 | }; | |
40528 | ||
40529 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
40530 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
40531 | if (!SWIG_IsOK(res1)) { | |
40532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
40533 | } | |
40534 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
40535 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0); | |
40536 | if (!SWIG_IsOK(res2)) { | |
40537 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
40538 | } | |
40539 | if (!argp2) { | |
40540 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
40541 | } | |
40542 | arg2 = reinterpret_cast< wxDateTime * >(argp2); | |
40543 | { | |
40544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40545 | (arg1)->SetValue((wxDateTime const &)*arg2); | |
40546 | wxPyEndAllowThreads(__tstate); | |
40547 | if (PyErr_Occurred()) SWIG_fail; | |
40548 | } | |
40549 | resultobj = SWIG_Py_Void(); | |
40550 | return resultobj; | |
40551 | fail: | |
40552 | return NULL; | |
d14a1e28 RD |
40553 | } |
40554 | ||
40555 | ||
0085ce49 RD |
40556 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40557 | PyObject *resultobj = 0; | |
40558 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
40559 | wxDateTime result; | |
40560 | void *argp1 = 0 ; | |
40561 | int res1 = 0 ; | |
40562 | PyObject *swig_obj[1] ; | |
40563 | ||
40564 | if (!args) SWIG_fail; | |
40565 | swig_obj[0] = args; | |
40566 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
40567 | if (!SWIG_IsOK(res1)) { | |
40568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'"); | |
40569 | } | |
40570 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
40571 | { | |
40572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40573 | result = ((wxDatePickerCtrl const *)arg1)->GetValue(); | |
40574 | wxPyEndAllowThreads(__tstate); | |
40575 | if (PyErr_Occurred()) SWIG_fail; | |
40576 | } | |
40577 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
40578 | return resultobj; | |
40579 | fail: | |
40580 | return NULL; | |
40581 | } | |
40582 | ||
40583 | ||
40584 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40585 | PyObject *resultobj = 0; | |
40586 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
40587 | wxDateTime *arg2 = 0 ; | |
40588 | wxDateTime *arg3 = 0 ; | |
40589 | void *argp1 = 0 ; | |
40590 | int res1 = 0 ; | |
40591 | void *argp2 = 0 ; | |
40592 | int res2 = 0 ; | |
40593 | void *argp3 = 0 ; | |
40594 | int res3 = 0 ; | |
40595 | PyObject * obj0 = 0 ; | |
40596 | PyObject * obj1 = 0 ; | |
40597 | PyObject * obj2 = 0 ; | |
40598 | char * kwnames[] = { | |
40599 | (char *) "self",(char *) "dt1",(char *) "dt2", NULL | |
40600 | }; | |
40601 | ||
40602 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
40603 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
40604 | if (!SWIG_IsOK(res1)) { | |
40605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
40606 | } | |
40607 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
40608 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0); | |
40609 | if (!SWIG_IsOK(res2)) { | |
40610 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
40611 | } | |
40612 | if (!argp2) { | |
40613 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
40614 | } | |
40615 | arg2 = reinterpret_cast< wxDateTime * >(argp2); | |
40616 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0); | |
40617 | if (!SWIG_IsOK(res3)) { | |
40618 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
40619 | } | |
40620 | if (!argp3) { | |
40621 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
40622 | } | |
40623 | arg3 = reinterpret_cast< wxDateTime * >(argp3); | |
40624 | { | |
40625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40626 | (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
40627 | wxPyEndAllowThreads(__tstate); | |
40628 | if (PyErr_Occurred()) SWIG_fail; | |
40629 | } | |
40630 | resultobj = SWIG_Py_Void(); | |
40631 | return resultobj; | |
40632 | fail: | |
40633 | return NULL; | |
d14a1e28 RD |
40634 | } |
40635 | ||
40636 | ||
0085ce49 RD |
40637 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40638 | PyObject *resultobj = 0; | |
40639 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
40640 | wxDateTime result; | |
40641 | void *argp1 = 0 ; | |
40642 | int res1 = 0 ; | |
40643 | PyObject *swig_obj[1] ; | |
40644 | ||
40645 | if (!args) SWIG_fail; | |
40646 | swig_obj[0] = args; | |
40647 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
40648 | if (!SWIG_IsOK(res1)) { | |
40649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
40650 | } | |
40651 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
40652 | { | |
40653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40654 | result = wxDatePickerCtrl_GetLowerLimit(arg1); | |
40655 | wxPyEndAllowThreads(__tstate); | |
40656 | if (PyErr_Occurred()) SWIG_fail; | |
40657 | } | |
40658 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
40659 | return resultobj; | |
40660 | fail: | |
40661 | return NULL; | |
d14a1e28 RD |
40662 | } |
40663 | ||
40664 | ||
0085ce49 RD |
40665 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40666 | PyObject *resultobj = 0; | |
40667 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
40668 | wxDateTime result; | |
40669 | void *argp1 = 0 ; | |
40670 | int res1 = 0 ; | |
40671 | PyObject *swig_obj[1] ; | |
40672 | ||
40673 | if (!args) SWIG_fail; | |
40674 | swig_obj[0] = args; | |
40675 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
40676 | if (!SWIG_IsOK(res1)) { | |
40677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
40678 | } | |
40679 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
40680 | { | |
40681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40682 | result = wxDatePickerCtrl_GetUpperLimit(arg1); | |
40683 | wxPyEndAllowThreads(__tstate); | |
40684 | if (PyErr_Occurred()) SWIG_fail; | |
40685 | } | |
40686 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
40687 | return resultobj; | |
40688 | fail: | |
40689 | return NULL; | |
d14a1e28 RD |
40690 | } |
40691 | ||
40692 | ||
0085ce49 RD |
40693 | SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40694 | PyObject *obj; | |
40695 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40696 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj)); | |
40697 | return SWIG_Py_Void(); | |
d14a1e28 RD |
40698 | } |
40699 | ||
0085ce49 RD |
40700 | SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40701 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
40702 | } |
40703 | ||
0085ce49 RD |
40704 | static PyMethodDef SwigMethods[] = { |
40705 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40706 | { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL}, | |
40707 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40708 | { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL}, | |
40709 | { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL}, | |
40710 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40711 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL}, | |
40712 | { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL}, | |
40713 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40714 | { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL}, | |
40715 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40716 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL}, | |
40717 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL}, | |
40718 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL}, | |
40719 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL}, | |
40720 | { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL}, | |
40721 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40722 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40723 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40724 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40725 | { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40726 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40727 | { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL}, | |
40728 | { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL}, | |
40729 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL}, | |
40730 | { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL}, | |
40731 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40732 | { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL}, | |
40733 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40734 | { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL}, | |
40735 | { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL}, | |
40736 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40737 | { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL}, | |
40738 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40739 | { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL}, | |
40740 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL}, | |
40741 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40742 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL}, | |
40743 | { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL}, | |
40744 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40745 | { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL}, | |
40746 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40747 | { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL}, | |
40748 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40749 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL}, | |
40750 | { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL}, | |
40751 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40752 | { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL}, | |
40753 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40754 | { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL}, | |
40755 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40756 | { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL}, | |
40757 | { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL}, | |
40758 | { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL}, | |
40759 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40760 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL}, | |
40761 | { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL}, | |
40762 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40763 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40764 | { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL}, | |
40765 | { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL}, | |
40766 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
50f151d7 | 40767 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
40768 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, |
40769 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL}, | |
40770 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40771 | { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL}, | |
40772 | { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL}, | |
40773 | { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL}, | |
40774 | { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL}, | |
40775 | { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL}, | |
40776 | { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL}, | |
40777 | { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL}, | |
40778 | { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL}, | |
40779 | { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL}, | |
40780 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40781 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL}, | |
40782 | { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL}, | |
40783 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40784 | { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL}, | |
40785 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40786 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40787 | { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL}, | |
40788 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40789 | { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL}, | |
40790 | { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL}, | |
40791 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40792 | { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL}, | |
40793 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40794 | { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL}, | |
40795 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40796 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL}, | |
40797 | { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL}, | |
40798 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40799 | { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL}, | |
40800 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40801 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40802 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL}, | |
40803 | { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL}, | |
40804 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40805 | { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL}, | |
40806 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40807 | { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL}, | |
40808 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL}, | |
40809 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40810 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL}, | |
40811 | { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL}, | |
40812 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40813 | { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL}, | |
40814 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40815 | { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40816 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40817 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL}, | |
40818 | { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL}, | |
40819 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40820 | { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL}, | |
40821 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40822 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL}, | |
40823 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40824 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40825 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40826 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL}, | |
40827 | { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL}, | |
40828 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40829 | { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL}, | |
40830 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40831 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40832 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40833 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40834 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40835 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40836 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40837 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40838 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40839 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40840 | { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL}, | |
40841 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40842 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40843 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40844 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40845 | { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL}, | |
40846 | { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40847 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40848 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40849 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40850 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40851 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL}, | |
40852 | { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL}, | |
40853 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40854 | { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL}, | |
40855 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40856 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40857 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40858 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL}, | |
40859 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL}, | |
40860 | { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL}, | |
40861 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40862 | { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL}, | |
40863 | { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL}, | |
40864 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40865 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40866 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40867 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40868 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40869 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40870 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40871 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40872 | { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL}, | |
40873 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL}, | |
40874 | { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL}, | |
40875 | { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL}, | |
40876 | { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL}, | |
40877 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL}, | |
40878 | { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL}, | |
40879 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40880 | { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL}, | |
40881 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL}, | |
40882 | { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL}, | |
40883 | { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL}, | |
40884 | { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL}, | |
40885 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL}, | |
40886 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL}, | |
40887 | { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL}, | |
40888 | { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL}, | |
40889 | { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL}, | |
40890 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40891 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL}, | |
40892 | { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL}, | |
40893 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40894 | { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL}, | |
40895 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40896 | { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL}, | |
40897 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40898 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40899 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40900 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40901 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL}, | |
40902 | { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL}, | |
40903 | { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL}, | |
40904 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL}, | |
40905 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL}, | |
40906 | { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL}, | |
40907 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL}, | |
40908 | { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL}, | |
40909 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40910 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40911 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40912 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40913 | { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL}, | |
40914 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL}, | |
40915 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40916 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40917 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40918 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40919 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40920 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40921 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40922 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL}, | |
40923 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40924 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40925 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40926 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40927 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40928 | { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL}, | |
40929 | { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL}, | |
40930 | { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL}, | |
40931 | { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL}, | |
40932 | { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL}, | |
40933 | { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL}, | |
40934 | { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL}, | |
40935 | { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL}, | |
40936 | { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL}, | |
40937 | { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL}, | |
40938 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40939 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL}, | |
40940 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL}, | |
40941 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL}, | |
40942 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40943 | { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL}, | |
40944 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40945 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40946 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40947 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40948 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL}, | |
40949 | { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL}, | |
40950 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40951 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL}, | |
40952 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL}, | |
40953 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL}, | |
40954 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL}, | |
40955 | { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL}, | |
40956 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40957 | { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL}, | |
40958 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40959 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL}, | |
40960 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL}, | |
40961 | { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL}, | |
40962 | { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL}, | |
40963 | { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL}, | |
40964 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40965 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40966 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL}, | |
40967 | { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL}, | |
40968 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40969 | { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL}, | |
40970 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40971 | { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL}, | |
40972 | { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL}, | |
40973 | { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL}, | |
40974 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40975 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40976 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40977 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40978 | { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL}, | |
40979 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40980 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL}, | |
40981 | { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL}, | |
40982 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40983 | { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL}, | |
40984 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40985 | { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL}, | |
40986 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40987 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40988 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40989 | { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL}, | |
40990 | { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL}, | |
40991 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40992 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40993 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL}, | |
40994 | { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL}, | |
40995 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40996 | { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL}, | |
40997 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40998 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL}, | |
40999 | { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL}, | |
41000 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41001 | { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL}, | |
41002 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41003 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41004 | { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL}, | |
41005 | { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL}, | |
41006 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41007 | { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL}, | |
41008 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41009 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41010 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41011 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41012 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
50f151d7 RD |
41013 | { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, |
41014 | { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
41015 | { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL}, |
41016 | { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL}, | |
41017 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41018 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41019 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL}, | |
41020 | { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL}, | |
41021 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41022 | { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL}, | |
41023 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41024 | { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL}, | |
41025 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41026 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41027 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL}, | |
41028 | { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL}, | |
41029 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41030 | { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL}, | |
41031 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41032 | { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL}, | |
41033 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41034 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41035 | { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL}, | |
41036 | { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL}, | |
41037 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41038 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41039 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41040 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41041 | { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL}, | |
41042 | { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL}, | |
41043 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41044 | { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL}, | |
41045 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41046 | { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL}, | |
41047 | { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL}, | |
41048 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41049 | { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL}, | |
41050 | { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL}, | |
41051 | { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL}, | |
41052 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41053 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41054 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL}, | |
41055 | { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL}, | |
41056 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41057 | { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL}, | |
41058 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41059 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41060 | { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL}, | |
41061 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41062 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL}, | |
41063 | { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL}, | |
41064 | { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL}, | |
41065 | { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41066 | { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL}, | |
41067 | { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL}, | |
41068 | { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41069 | { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41070 | { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41071 | { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41072 | { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL}, | |
41073 | { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41074 | { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41075 | { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41076 | { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41077 | { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL}, | |
41078 | { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41079 | { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL}, | |
e9d6f3a4 RD |
41080 | { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL}, |
41081 | { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL}, | |
0085ce49 RD |
41082 | { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
41083 | { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL}, | |
e9d6f3a4 | 41084 | { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL}, |
0085ce49 RD |
41085 | { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL}, |
41086 | { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41087 | { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL}, | |
41088 | { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41089 | { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41090 | { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41091 | { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41092 | { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41093 | { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL}, | |
41094 | { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41095 | { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL}, | |
41096 | { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41097 | { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL}, | |
41098 | { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41099 | { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL}, | |
41100 | { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL}, | |
41101 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41102 | { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL}, | |
41103 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41104 | { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL}, | |
41105 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41106 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41107 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41108 | { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL}, | |
41109 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41110 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL}, | |
41111 | { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL}, | |
41112 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41113 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL}, | |
41114 | { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL}, | |
41115 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41116 | { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL}, | |
41117 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41118 | { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL}, | |
41119 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL}, | |
41120 | { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL}, | |
41121 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41122 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL}, | |
41123 | { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL}, | |
41124 | { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41125 | { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL}, | |
41126 | { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41127 | { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL}, | |
41128 | { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL}, | |
41129 | { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL}, | |
41130 | { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41131 | { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL}, | |
41132 | { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL}, | |
41133 | { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41134 | { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL}, | |
41135 | { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41136 | { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41137 | { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41138 | { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41139 | { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41140 | { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41141 | { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41142 | { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL}, | |
41143 | { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL}, | |
41144 | { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL}, | |
41145 | { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41146 | { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL}, | |
41147 | { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL}, | |
41148 | { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41149 | { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL}, | |
41150 | { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41151 | { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL}, | |
41152 | { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL}, | |
41153 | { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL}, | |
41154 | { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL}, | |
41155 | { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41156 | { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL}, | |
41157 | { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL}, | |
41158 | { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL}, | |
41159 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL}, | |
41160 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL}, | |
41161 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL}, | |
41162 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL}, | |
41163 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL}, | |
41164 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL}, | |
41165 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL}, | |
41166 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL}, | |
41167 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL}, | |
41168 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL}, | |
41169 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL}, | |
41170 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL}, | |
41171 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL}, | |
41172 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL}, | |
41173 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL}, | |
41174 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL}, | |
41175 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41176 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL}, | |
41177 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41178 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41179 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41180 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41181 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41182 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41183 | { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL}, | |
41184 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41185 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL}, | |
41186 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41187 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL}, | |
41188 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41189 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41190 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41191 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41192 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41193 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41194 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41195 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL}, | |
41196 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41197 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41198 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41199 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41200 | { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL}, | |
41201 | { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL}, | |
41202 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41203 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41204 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41205 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41206 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41207 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41208 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41209 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41210 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41211 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41212 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41213 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41214 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41215 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41216 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41217 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41218 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL}, | |
41219 | { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL}, | |
41220 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL}, | |
41221 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL}, | |
41222 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41223 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41224 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL}, | |
41225 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL}, | |
41226 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41227 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL}, | |
41228 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL}, | |
41229 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41230 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41231 | { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL}, | |
41232 | { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL}, | |
41233 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL}, | |
41234 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41235 | { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL}, | |
41236 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
41237 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
41238 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL}, | |
41239 | { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL}, | |
41240 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41241 | { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL}, | |
41242 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41243 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41244 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41245 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL}, | |
41246 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL}, | |
41247 | { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL}, | |
41248 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL}, | |
41249 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL}, | |
41250 | { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL}, | |
41251 | { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41252 | { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL}, | |
41253 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL}, | |
41254 | { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL}, | |
41255 | { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL}, | |
41256 | { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL}, | |
41257 | { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL}, | |
41258 | { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL}, | |
41259 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41260 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41261 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41262 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41263 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41264 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41265 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41266 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41267 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41268 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41269 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41270 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41271 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41272 | { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL}, | |
41273 | { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL}, | |
41274 | { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL}, | |
41275 | { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL}, | |
41276 | { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL}, | |
41277 | { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL}, | |
41278 | { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL}, | |
41279 | { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL}, | |
41280 | { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL}, | |
41281 | { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL}, | |
41282 | { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL}, | |
41283 | { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL}, | |
41284 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL}, | |
41285 | { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL}, | |
41286 | { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL}, | |
41287 | { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL}, | |
41288 | { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL}, | |
41289 | { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL}, | |
41290 | { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL}, | |
41291 | { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL}, | |
41292 | { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL}, | |
41293 | { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL}, | |
41294 | { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL}, | |
41295 | { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL}, | |
41296 | { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL}, | |
41297 | { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL}, | |
41298 | { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL}, | |
41299 | { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL}, | |
41300 | { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL}, | |
41301 | { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL}, | |
41302 | { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL}, | |
41303 | { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL}, | |
41304 | { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL}, | |
41305 | { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL}, | |
41306 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL}, | |
41307 | { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL}, | |
41308 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41309 | { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL}, | |
41310 | { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL}, | |
41311 | { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL}, | |
41312 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL}, | |
41313 | { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL}, | |
41314 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL}, | |
41315 | { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL}, | |
41316 | { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL}, | |
41317 | { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL}, | |
41318 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL}, | |
41319 | { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL}, | |
41320 | { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL}, | |
41321 | { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL}, | |
41322 | { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL}, | |
41323 | { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL}, | |
41324 | { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL}, | |
41325 | { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL}, | |
41326 | { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL}, | |
41327 | { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL}, | |
41328 | { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL}, | |
41329 | { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL}, | |
41330 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL}, | |
41331 | { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL}, | |
41332 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL}, | |
41333 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41334 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL}, | |
41335 | { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL}, | |
41336 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41337 | { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL}, | |
41338 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41339 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41340 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41341 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41342 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41343 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41344 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL}, | |
41345 | { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL}, | |
41346 | { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL}, | |
41347 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41348 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41349 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41350 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41351 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41352 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41353 | { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41354 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41355 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41356 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41357 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41358 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41359 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41360 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41361 | { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL}, | |
41362 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL}, | |
41363 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL}, | |
41364 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41365 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL}, | |
41366 | { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL}, | |
41367 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41368 | { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL}, | |
41369 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41370 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41371 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41372 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41373 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41374 | { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL}, | |
41375 | { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL}, | |
41376 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41377 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41378 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41379 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41380 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL}, | |
41381 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41382 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL}, | |
41383 | { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL}, | |
41384 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41385 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41386 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41387 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41388 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41389 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41390 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41391 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41392 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41393 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41394 | { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41395 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41396 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41397 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41398 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41399 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41400 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41401 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41402 | { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41403 | { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41404 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41405 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL}, | |
41406 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41407 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL}, | |
41408 | { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL}, | |
41409 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41410 | { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL}, | |
41411 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41412 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41413 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41414 | { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL}, | |
41415 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41416 | { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL}, | |
41417 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41418 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41419 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41420 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL}, | |
41421 | { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL}, | |
41422 | { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL}, | |
41423 | { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL}, | |
41424 | { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL}, | |
41425 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41426 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41427 | { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL}, | |
41428 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL}, | |
41429 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL}, | |
41430 | { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL}, | |
41431 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41432 | { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL}, | |
41433 | { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL}, | |
41434 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41435 | { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL}, | |
41436 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41437 | { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL}, | |
41438 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL}, | |
41439 | { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL}, | |
41440 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41441 | { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL}, | |
41442 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41443 | { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL}, | |
41444 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41445 | { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL}, | |
41446 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41447 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL}, | |
41448 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL}, | |
41449 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41450 | { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL}, | |
41451 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41452 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL}, | |
41453 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41454 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41455 | { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL}, | |
41456 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL}, | |
41457 | { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL}, | |
41458 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41459 | { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL}, | |
41460 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41461 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41462 | { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL}, | |
41463 | { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL}, | |
41464 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41465 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL}, | |
41466 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41467 | { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL}, | |
41468 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL}, | |
41469 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41470 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41471 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41472 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41473 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41474 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41475 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41476 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41477 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41478 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41479 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41480 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41481 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41482 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41483 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41484 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41485 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41486 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41487 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41488 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41489 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41490 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41491 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41492 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41493 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41494 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41495 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41496 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL}, | |
41497 | { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL}, | |
41498 | { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL}, | |
41499 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41500 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41501 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41502 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41503 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41504 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41505 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL}, | |
41506 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41507 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41508 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41509 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41510 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41511 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41512 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41513 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41514 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41515 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL}, | |
41516 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41517 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41518 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41519 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41520 | { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL}, | |
41521 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41522 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL}, | |
41523 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41524 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41525 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41526 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41527 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41528 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL}, | |
41529 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41530 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41531 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41532 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41533 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL}, | |
41534 | { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL}, | |
41535 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41536 | { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL}, | |
41537 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41538 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41539 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL}, | |
41540 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41541 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL}, | |
41542 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL}, | |
41543 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41544 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41545 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL}, | |
41546 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL}, | |
41547 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41548 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL}, | |
41549 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41550 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL}, | |
41551 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL}, | |
41552 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL}, | |
41553 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41554 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL}, | |
41555 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL}, | |
41556 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL}, | |
41557 | { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL}, | |
41558 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41559 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL}, | |
41560 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41561 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41562 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL}, | |
41563 | { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL}, | |
41564 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41565 | { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL}, | |
41566 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41567 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41568 | { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41569 | { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41570 | { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41571 | { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41572 | { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41573 | { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL}, | |
41574 | { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL}, | |
41575 | { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL}, | |
41576 | { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL}, | |
41577 | { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL}, | |
41578 | { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL}, | |
41579 | { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL}, | |
41580 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL}, | |
41581 | { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL}, | |
41582 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41583 | { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL}, | |
41584 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41585 | { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL}, | |
41586 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41587 | { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL}, | |
41588 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41589 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL}, | |
41590 | { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL}, | |
41591 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41592 | { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL}, | |
41593 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41594 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL}, | |
41595 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL}, | |
41596 | { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL}, | |
41597 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41598 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL}, | |
41599 | { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL}, | |
f52cbe90 | 41600 | { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL}, |
0085ce49 RD |
41601 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
41602 | { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL}, | |
41603 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41604 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41605 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41606 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41607 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41608 | { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL}, | |
41609 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL}, | |
41610 | { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL}, | |
41611 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL}, | |
41612 | { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL}, | |
41613 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41614 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41615 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41616 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41617 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41618 | { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL}, | |
41619 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41620 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41621 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41622 | { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL}, | |
41623 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41624 | { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL}, | |
41625 | { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL}, | |
41626 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41627 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41628 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41629 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41630 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL}, | |
41631 | { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL}, | |
41632 | { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41633 | { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL}, | |
41634 | { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41635 | { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41636 | { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL}, | |
41637 | { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
41638 | { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL}, | |
41639 | { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL}, | |
41640 | { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL}, | |
41641 | { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL}, | |
41642 | { NULL, NULL, 0, NULL } | |
41643 | }; | |
41644 | ||
41645 | ||
41646 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
41647 | ||
41648 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
41649 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41650 | } | |
41651 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
41652 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
41653 | } | |
41654 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
41655 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
41656 | } | |
41657 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
41658 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
41659 | } | |
41660 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
41661 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
41662 | } | |
41663 | static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) { | |
41664 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
41665 | } | |
41666 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
41667 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
41668 | } | |
41669 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
41670 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
41671 | } | |
41672 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
41673 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
41674 | } | |
41675 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
41676 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
41677 | } | |
41678 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
41679 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
41680 | } | |
41681 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
41682 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
41683 | } | |
41684 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
41685 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41686 | } | |
41687 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
41688 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
41689 | } | |
41690 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
41691 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
41692 | } | |
41693 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
41694 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
41695 | } | |
41696 | static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) { | |
41697 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
41698 | } | |
41699 | static void *_p_wxTreebookEventTo_p_wxEvent(void *x) { | |
41700 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
41701 | } | |
41702 | static void *_p_wxToolbookEventTo_p_wxEvent(void *x) { | |
41703 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
41704 | } | |
41705 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
41706 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
41707 | } | |
41708 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
41709 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
41710 | } | |
41711 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
41712 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41713 | } | |
41714 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
41715 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41716 | } | |
41717 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
41718 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
41719 | } | |
41720 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
41721 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
41722 | } | |
41723 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
41724 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
41725 | } | |
41726 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
41727 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
41728 | } | |
41729 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
41730 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
41731 | } | |
41732 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { | |
41733 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
41734 | } | |
41735 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
41736 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
41737 | } | |
41738 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
41739 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
41740 | } | |
41741 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
41742 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41743 | } | |
41744 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
41745 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41746 | } | |
41747 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
41748 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41749 | } | |
41750 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
41751 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41752 | } | |
41753 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
41754 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41755 | } | |
41756 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
41757 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
41758 | } | |
41759 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
41760 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
41761 | } | |
41762 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
41763 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41764 | } | |
41765 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
41766 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
41767 | } | |
41768 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
41769 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
41770 | } | |
41771 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
41772 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41773 | } | |
41774 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
41775 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41776 | } | |
41777 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
41778 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41779 | } | |
41780 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
41781 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
41782 | } | |
41783 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
41784 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
41785 | } | |
41786 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
41787 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
41788 | } | |
41789 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { | |
41790 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
41791 | } | |
41792 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
41793 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
41794 | } | |
41795 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
41796 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
41797 | } | |
41798 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
41799 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
41800 | } | |
41801 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
41802 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
41803 | } | |
41804 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
41805 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
41806 | } | |
41807 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
41808 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
41809 | } | |
41810 | static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) { | |
41811 | return (void *)((wxControl *) ((wxBookCtrlBase *) x)); | |
41812 | } | |
41813 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
41814 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
41815 | } | |
41816 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
41817 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
41818 | } | |
41819 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
41820 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
41821 | } | |
41822 | static void *_p_wxToolbookTo_p_wxControl(void *x) { | |
41823 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x)); | |
41824 | } | |
41825 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
41826 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
41827 | } | |
41828 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
41829 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
41830 | } | |
41831 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
41832 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
41833 | } | |
41834 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
41835 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
41836 | } | |
41837 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
41838 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
41839 | } | |
41840 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
41841 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
41842 | } | |
41843 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
41844 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
41845 | } | |
41846 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
41847 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
41848 | } | |
41849 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
41850 | return (void *)((wxControl *) ((wxGauge *) x)); | |
41851 | } | |
41852 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
41853 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
41854 | } | |
41855 | static void *_p_wxChoicebookTo_p_wxControl(void *x) { | |
41856 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x)); | |
41857 | } | |
41858 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
41859 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x)); | |
41860 | } | |
41861 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
41862 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
41863 | } | |
41864 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
41865 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
41866 | } | |
41867 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
41868 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
41869 | } | |
41870 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
41871 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
41872 | } | |
41873 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
41874 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
41875 | } | |
41876 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
41877 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
41878 | } | |
41879 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
41880 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
41881 | } | |
41882 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
41883 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x)); | |
41884 | } | |
41885 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
41886 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
41887 | } | |
41888 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
41889 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
41890 | } | |
41891 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
41892 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
41893 | } | |
41894 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
41895 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
41896 | } | |
41897 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
41898 | return (void *)((wxControl *) ((wxSlider *) x)); | |
41899 | } | |
41900 | static void *_p_wxTreebookTo_p_wxControl(void *x) { | |
41901 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x)); | |
41902 | } | |
41903 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
41904 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
41905 | } | |
41906 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
41907 | return (void *)((wxControl *) ((wxButton *) x)); | |
41908 | } | |
41909 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
41910 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
41911 | } | |
41912 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
41913 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
41914 | } | |
41915 | static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) { | |
41916 | return (void *)((wxControl *) ((wxDatePickerCtrl *) x)); | |
41917 | } | |
41918 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
41919 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
41920 | } | |
41921 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
41922 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
41923 | } | |
41924 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
41925 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
41926 | } | |
41927 | static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) { | |
41928 | return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
41929 | } | |
41930 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
41931 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
41932 | } | |
41933 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
41934 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
41935 | } | |
41936 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
41937 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
41938 | } | |
41939 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
41940 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
41941 | } | |
41942 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
41943 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
41944 | } | |
41945 | static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) { | |
41946 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
41947 | } | |
41948 | static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) { | |
41949 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
41950 | } | |
41951 | static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) { | |
41952 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
41953 | } | |
41954 | static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) { | |
41955 | return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x)); | |
41956 | } | |
41957 | static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) { | |
41958 | return (void *)((wxBookCtrlBase *) ((wxListbook *) x)); | |
41959 | } | |
41960 | static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) { | |
41961 | return (void *)((wxBookCtrlBase *) ((wxToolbook *) x)); | |
41962 | } | |
41963 | static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) { | |
41964 | return (void *)((wxBookCtrlBase *) ((wxTreebook *) x)); | |
41965 | } | |
41966 | static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) { | |
41967 | return (void *)((wxBookCtrlBase *) ((wxNotebook *) x)); | |
41968 | } | |
41969 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
41970 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
41971 | } | |
41972 | static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) { | |
41973 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
41974 | } | |
41975 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
41976 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
41977 | } | |
41978 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
41979 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
41980 | } | |
41981 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
41982 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
41983 | } | |
41984 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
41985 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
41986 | } | |
41987 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
41988 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
41989 | } | |
41990 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
41991 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
41992 | } | |
41993 | static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) { | |
41994 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
41995 | } | |
41996 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
41997 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
41998 | } | |
41999 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
42000 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
42001 | } | |
42002 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
42003 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
42004 | } | |
42005 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
42006 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
42007 | } | |
42008 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
42009 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
42010 | } | |
42011 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
42012 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
42013 | } | |
42014 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
42015 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
42016 | } | |
42017 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
42018 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
42019 | } | |
42020 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
42021 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
42022 | } | |
42023 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
42024 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
42025 | } | |
42026 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
42027 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42028 | } | |
42029 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
42030 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
42031 | } | |
42032 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
42033 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
42034 | } | |
42035 | static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) { | |
42036 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
42037 | } | |
42038 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
42039 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
42040 | } | |
42041 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
42042 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
42043 | } | |
42044 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
42045 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
42046 | } | |
42047 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
42048 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
42049 | } | |
42050 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
42051 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
42052 | } | |
42053 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
42054 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
42055 | } | |
42056 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
42057 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
42058 | } | |
42059 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
42060 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
42061 | } | |
42062 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
42063 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
42064 | } | |
42065 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
42066 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
42067 | } | |
42068 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
42069 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
42070 | } | |
42071 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
42072 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
42073 | } | |
42074 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
42075 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
42076 | } | |
42077 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
42078 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
42079 | } | |
42080 | static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) { | |
42081 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
42082 | } | |
42083 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
42084 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
42085 | } | |
42086 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
42087 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
42088 | } | |
42089 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
42090 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
42091 | } | |
42092 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
42093 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
42094 | } | |
42095 | static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) { | |
42096 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
42097 | } | |
42098 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
42099 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
42100 | } | |
42101 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
42102 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
42103 | } | |
42104 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
42105 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
42106 | } | |
42107 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
42108 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
42109 | } | |
42110 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
42111 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
42112 | } | |
42113 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
42114 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
42115 | } | |
42116 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
42117 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
42118 | } | |
42119 | static void *_p_wxToolbookTo_p_wxObject(void *x) { | |
42120 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
42121 | } | |
42122 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
42123 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
42124 | } | |
42125 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
42126 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
42127 | } | |
42128 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
42129 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
42130 | } | |
42131 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
42132 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
42133 | } | |
42134 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
42135 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
42136 | } | |
42137 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
42138 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42139 | } | |
42140 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
42141 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
42142 | } | |
42143 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
42144 | return (void *)((wxObject *) ((wxSizer *) x)); | |
42145 | } | |
42146 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
42147 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42148 | } | |
42149 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
42150 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
42151 | } | |
42152 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
42153 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
42154 | } | |
42155 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
42156 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42157 | } | |
42158 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
42159 | return (void *)((wxObject *) ((wxEvent *) x)); | |
42160 | } | |
42161 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
42162 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42163 | } | |
42164 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
42165 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
42166 | } | |
42167 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
42168 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
42169 | } | |
42170 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
42171 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
42172 | } | |
42173 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
42174 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
42175 | } | |
42176 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
42177 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
42178 | } | |
42179 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
42180 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
42181 | } | |
42182 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
42183 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
42184 | } | |
42185 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
42186 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42187 | } | |
42188 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
42189 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42190 | } | |
42191 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
42192 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42193 | } | |
42194 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
42195 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42196 | } | |
42197 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
42198 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
42199 | } | |
42200 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
42201 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
42202 | } | |
42203 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
42204 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
42205 | } | |
42206 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
42207 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
42208 | } | |
42209 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
42210 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
42211 | } | |
42212 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
42213 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
42214 | } | |
42215 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
42216 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
42217 | } | |
42218 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
42219 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
42220 | } | |
42221 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
42222 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
42223 | } | |
42224 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
42225 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
42226 | } | |
42227 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
42228 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
42229 | } | |
42230 | static void *_p_wxTreebookTo_p_wxObject(void *x) { | |
42231 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
42232 | } | |
42233 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
42234 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
42235 | } | |
42236 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
42237 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
42238 | } | |
42239 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
42240 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
42241 | } | |
42242 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
42243 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
42244 | } | |
42245 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
42246 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42247 | } | |
42248 | static void *_p_wxChoicebookTo_p_wxObject(void *x) { | |
42249 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
42250 | } | |
42251 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
42252 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
42253 | } | |
42254 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
42255 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
42256 | } | |
42257 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
42258 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
42259 | } | |
42260 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
42261 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
42262 | } | |
42263 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
42264 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
42265 | } | |
42266 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
42267 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
42268 | } | |
42269 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
42270 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
42271 | } | |
42272 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
42273 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42274 | } | |
42275 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
42276 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42277 | } | |
42278 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
42279 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
42280 | } | |
42281 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
42282 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
42283 | } | |
42284 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
42285 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
42286 | } | |
42287 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
42288 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
42289 | } | |
42290 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
42291 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
42292 | } | |
42293 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
42294 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
42295 | } | |
42296 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
42297 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
42298 | } | |
42299 | static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) { | |
42300 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
42301 | } | |
42302 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
42303 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
42304 | } | |
42305 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
42306 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
42307 | } | |
42308 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
42309 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
42310 | } | |
42311 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
42312 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
42313 | } | |
42314 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
42315 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
42316 | } | |
42317 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
42318 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42319 | } | |
42320 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
42321 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42322 | } | |
42323 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
42324 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
42325 | } | |
42326 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
42327 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
42328 | } | |
42329 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
42330 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
42331 | } | |
42332 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
42333 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
42334 | } | |
42335 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
42336 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
42337 | } | |
42338 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
42339 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
42340 | } | |
42341 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
42342 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
42343 | } | |
42344 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
42345 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
42346 | } | |
42347 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
42348 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
42349 | } | |
42350 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
42351 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
42352 | } | |
42353 | static void *_p_wxButtonTo_p_wxObject(void *x) { | |
42354 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
42355 | } | |
42356 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
42357 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
42358 | } | |
42359 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
42360 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
42361 | } | |
42362 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
42363 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
42364 | } | |
42365 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { | |
42366 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
42367 | } | |
42368 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
42369 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
42370 | } | |
42371 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { | |
42372 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
42373 | } | |
42374 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
42375 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
42376 | } | |
42377 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
42378 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
42379 | } | |
42380 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
42381 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
42382 | } | |
42383 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
42384 | return (void *)((wxObject *) ((wxListItem *) x)); | |
42385 | } | |
42386 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
42387 | return (void *)((wxObject *) ((wxImage *) x)); | |
42388 | } | |
42389 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
42390 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
42391 | } | |
42392 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
42393 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
42394 | } | |
42395 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
42396 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
42397 | } | |
42398 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
42399 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
42400 | } | |
42401 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
42402 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
42403 | } | |
42404 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
42405 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
42406 | } | |
42407 | static void *_p_wxChoicebookEventTo_p_wxObject(void *x) { | |
42408 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
42409 | } | |
42410 | static void *_p_wxTreebookEventTo_p_wxObject(void *x) { | |
42411 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
42412 | } | |
42413 | static void *_p_wxToolbookEventTo_p_wxObject(void *x) { | |
42414 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
42415 | } | |
42416 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
42417 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42418 | } | |
42419 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
42420 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42421 | } | |
42422 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
42423 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
42424 | } | |
42425 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
42426 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
42427 | } | |
42428 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
42429 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
42430 | } | |
42431 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
42432 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
42433 | } | |
42434 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
42435 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
42436 | } | |
42437 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
42438 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42439 | } | |
42440 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
42441 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
42442 | } | |
42443 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
42444 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
42445 | } | |
42446 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
42447 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
42448 | } | |
42449 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
42450 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
42451 | } | |
42452 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
42453 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
42454 | } | |
42455 | static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) { | |
42456 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
42457 | } | |
42458 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
42459 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
42460 | } | |
42461 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
42462 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42463 | } | |
42464 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
42465 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
42466 | } | |
42467 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
42468 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
42469 | } | |
42470 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
42471 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
42472 | } | |
42473 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
42474 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
42475 | } | |
42476 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
42477 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42478 | } | |
42479 | static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) { | |
42480 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
42481 | } | |
42482 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
42483 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42484 | } | |
42485 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
42486 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
42487 | } | |
42488 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
42489 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
42490 | } | |
42491 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
42492 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
42493 | } | |
42494 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
42495 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
42496 | } | |
42497 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
42498 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
42499 | } | |
42500 | static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) { | |
42501 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x)); | |
42502 | } | |
42503 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
42504 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
42505 | } | |
42506 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
42507 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
42508 | } | |
42509 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
42510 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
42511 | } | |
42512 | static void *_p_wxToolbookTo_p_wxWindow(void *x) { | |
42513 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
42514 | } | |
42515 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
42516 | return (void *)((wxWindow *) ((wxControl *) x)); | |
42517 | } | |
42518 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
42519 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
42520 | } | |
42521 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
42522 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
42523 | } | |
42524 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
42525 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
42526 | } | |
42527 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
42528 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
42529 | } | |
42530 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
42531 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
42532 | } | |
42533 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
42534 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
42535 | } | |
42536 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
42537 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
42538 | } | |
42539 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
42540 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
42541 | } | |
42542 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
42543 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
42544 | } | |
42545 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
42546 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
42547 | } | |
42548 | static void *_p_wxChoicebookTo_p_wxWindow(void *x) { | |
42549 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
42550 | } | |
42551 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
42552 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
42553 | } | |
42554 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
42555 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
42556 | } | |
42557 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
42558 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
42559 | } | |
42560 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
42561 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
42562 | } | |
42563 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
42564 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
42565 | } | |
42566 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
42567 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
42568 | } | |
42569 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
42570 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
42571 | } | |
42572 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
42573 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
42574 | } | |
42575 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
42576 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
42577 | } | |
42578 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
42579 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
42580 | } | |
42581 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
42582 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
42583 | } | |
42584 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
42585 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
42586 | } | |
42587 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
42588 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
42589 | } | |
42590 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
42591 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
42592 | } | |
42593 | static void *_p_wxTreebookTo_p_wxWindow(void *x) { | |
42594 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
42595 | } | |
42596 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
42597 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
42598 | } | |
42599 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
42600 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
42601 | } | |
42602 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
42603 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
42604 | } | |
42605 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
42606 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
42607 | } | |
42608 | static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) { | |
42609 | return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x)); | |
42610 | } | |
42611 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
42612 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
42613 | } | |
42614 | static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
42615 | return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
42616 | } | |
42617 | static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
42618 | return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
42619 | } | |
42620 | static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
42621 | return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
42622 | } | |
42623 | static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
42624 | return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
42625 | } | |
42626 | static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
42627 | return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
42628 | } | |
42629 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
42630 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42631 | } | |
42632 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
42633 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
42634 | } | |
42635 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
42636 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
42637 | } | |
42638 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
42639 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42640 | } | |
42641 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
42642 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42643 | } | |
42644 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
42645 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42646 | } | |
42647 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
42648 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
42649 | } | |
42650 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
42651 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
42652 | } | |
42653 | static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) { | |
42654 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
42655 | } | |
42656 | static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) { | |
42657 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
42658 | } | |
42659 | static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) { | |
42660 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
42661 | } | |
42662 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
42663 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
42664 | } | |
42665 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
42666 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42667 | } | |
42668 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
42669 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
42670 | } | |
42671 | static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) { | |
42672 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
42673 | } | |
42674 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
42675 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
42676 | } | |
42677 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
42678 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
42679 | } | |
42680 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
42681 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
42682 | } | |
42683 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
42684 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42685 | } | |
42686 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
42687 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42688 | } | |
42689 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
42690 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
42691 | } | |
42692 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
42693 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
42694 | } | |
42695 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
42696 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
42697 | } | |
42698 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
42699 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
42700 | } | |
42701 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
42702 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
42703 | } | |
42704 | static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0}; | |
42705 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; | |
42706 | 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}; | |
42707 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
42708 | static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0}; | |
42709 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
42710 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
42711 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
42712 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; | |
42713 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
42714 | static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0}; | |
42715 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
42716 | static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0}; | |
42717 | static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0}; | |
42718 | static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0}; | |
42719 | static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0}; | |
42720 | static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0}; | |
42721 | static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0}; | |
42722 | static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0}; | |
42723 | static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0}; | |
42724 | static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0}; | |
42725 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
42726 | static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0}; | |
42727 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
42728 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
42729 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; | |
42730 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
42731 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
42732 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
42733 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
42734 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
42735 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
42736 | static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0}; | |
42737 | static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0}; | |
42738 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0}; | |
42739 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0}; | |
42740 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
42741 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
42742 | static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0}; | |
42743 | static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0}; | |
42744 | static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0}; | |
42745 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
42746 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
42747 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
42748 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
42749 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
42750 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
42751 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
42752 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
42753 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
42754 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
42755 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
42756 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
42757 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
42758 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
42759 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
42760 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; | |
42761 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
42762 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
42763 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
42764 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
42765 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
42766 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
42767 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
42768 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
42769 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
42770 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
42771 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
42772 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
42773 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
42774 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
42775 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
42776 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
42777 | static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0}; | |
42778 | static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0}; | |
42779 | static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0}; | |
42780 | static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0}; | |
42781 | static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0}; | |
42782 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; | |
42783 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
42784 | static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0}; | |
42785 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0}; | |
42786 | static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0}; | |
42787 | static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0}; | |
42788 | static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0}; | |
42789 | static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0}; | |
42790 | static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0}; | |
42791 | static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0}; | |
42792 | static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0}; | |
42793 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
42794 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0}; | |
42795 | static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0}; | |
42796 | static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0}; | |
42797 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
42798 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
42799 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
42800 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; | |
42801 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; | |
42802 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
42803 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
42804 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
42805 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
42806 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
42807 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
42808 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
42809 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
42810 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
42811 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
42812 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
42813 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
42814 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
42815 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
42816 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
42817 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
42818 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
42819 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
42820 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
42821 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
42822 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
42823 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
42824 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
42825 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; | |
42826 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
42827 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0}; | |
42828 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
42829 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
42830 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; | |
42831 | static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0}; | |
42832 | static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0}; | |
42833 | static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0}; | |
42834 | static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0}; | |
42835 | static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0}; | |
42836 | static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0}; | |
42837 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; | |
42838 | static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0}; | |
42839 | static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0}; | |
42840 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
42841 | static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0}; | |
42842 | static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0}; | |
42843 | static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0}; | |
42844 | static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0}; | |
42845 | static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0}; | |
42846 | static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0}; | |
42847 | static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0}; | |
42848 | static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0}; | |
42849 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; | |
42850 | static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0}; | |
42851 | static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0}; | |
42852 | static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0}; | |
42853 | static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0}; | |
42854 | static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0}; | |
42855 | static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0}; | |
42856 | static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0}; | |
42857 | static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0}; | |
42858 | static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0}; | |
42859 | static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0}; | |
42860 | static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0}; | |
42861 | static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0}; | |
42862 | static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0}; | |
42863 | static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0}; | |
42864 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0}; | |
42865 | static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0}; | |
42866 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
42867 | ||
42868 | static swig_type_info *swig_type_initial[] = { | |
42869 | &_swigt__p_bool, | |
42870 | &_swigt__p_char, | |
42871 | &_swigt__p_form_ops_t, | |
42872 | &_swigt__p_int, | |
42873 | &_swigt__p_long, | |
42874 | &_swigt__p_unsigned_char, | |
42875 | &_swigt__p_unsigned_int, | |
42876 | &_swigt__p_unsigned_long, | |
42877 | &_swigt__p_void, | |
42878 | &_swigt__p_wxANIHandler, | |
42879 | &_swigt__p_wxAcceleratorTable, | |
42880 | &_swigt__p_wxActivateEvent, | |
42881 | &_swigt__p_wxArrayInt, | |
42882 | &_swigt__p_wxArrayString, | |
42883 | &_swigt__p_wxBMPHandler, | |
42884 | &_swigt__p_wxBitmap, | |
42885 | &_swigt__p_wxBitmapButton, | |
42886 | &_swigt__p_wxBookCtrlBase, | |
42887 | &_swigt__p_wxBookCtrlBaseEvent, | |
42888 | &_swigt__p_wxBoxSizer, | |
42889 | &_swigt__p_wxButton, | |
42890 | &_swigt__p_wxCURHandler, | |
42891 | &_swigt__p_wxCheckBox, | |
42892 | &_swigt__p_wxCheckListBox, | |
42893 | &_swigt__p_wxChildFocusEvent, | |
42894 | &_swigt__p_wxChoice, | |
42895 | &_swigt__p_wxChoicebook, | |
42896 | &_swigt__p_wxChoicebookEvent, | |
42897 | &_swigt__p_wxCloseEvent, | |
42898 | &_swigt__p_wxColour, | |
42899 | &_swigt__p_wxComboBox, | |
42900 | &_swigt__p_wxCommandEvent, | |
42901 | &_swigt__p_wxContextHelp, | |
42902 | &_swigt__p_wxContextHelpButton, | |
42903 | &_swigt__p_wxContextMenuEvent, | |
42904 | &_swigt__p_wxControl, | |
42905 | &_swigt__p_wxControlWithItems, | |
42906 | &_swigt__p_wxCursor, | |
42907 | &_swigt__p_wxDC, | |
42908 | &_swigt__p_wxDateEvent, | |
42909 | &_swigt__p_wxDatePickerCtrl, | |
42910 | &_swigt__p_wxDateTime, | |
42911 | &_swigt__p_wxDirFilterListCtrl, | |
42912 | &_swigt__p_wxDisplayChangedEvent, | |
42913 | &_swigt__p_wxDropFilesEvent, | |
42914 | &_swigt__p_wxDuplexMode, | |
42915 | &_swigt__p_wxEraseEvent, | |
42916 | &_swigt__p_wxEvent, | |
42917 | &_swigt__p_wxEvtHandler, | |
42918 | &_swigt__p_wxFSFile, | |
42919 | &_swigt__p_wxFileSystem, | |
42920 | &_swigt__p_wxFlexGridSizer, | |
42921 | &_swigt__p_wxFocusEvent, | |
42922 | &_swigt__p_wxFont, | |
42923 | &_swigt__p_wxGBSizerItem, | |
42924 | &_swigt__p_wxGIFHandler, | |
42925 | &_swigt__p_wxGauge, | |
42926 | &_swigt__p_wxGenericDirCtrl, | |
42927 | &_swigt__p_wxGenericDragImage, | |
42928 | &_swigt__p_wxGridBagSizer, | |
42929 | &_swigt__p_wxGridSizer, | |
42930 | &_swigt__p_wxHelpEvent, | |
42931 | &_swigt__p_wxHelpProvider, | |
42932 | &_swigt__p_wxICOHandler, | |
42933 | &_swigt__p_wxIcon, | |
42934 | &_swigt__p_wxIconizeEvent, | |
42935 | &_swigt__p_wxIdleEvent, | |
42936 | &_swigt__p_wxImage, | |
42937 | &_swigt__p_wxImageHandler, | |
42938 | &_swigt__p_wxImageList, | |
42939 | &_swigt__p_wxIndividualLayoutConstraint, | |
42940 | &_swigt__p_wxInitDialogEvent, | |
42941 | &_swigt__p_wxItemContainer, | |
42942 | &_swigt__p_wxJPEGHandler, | |
42943 | &_swigt__p_wxKeyEvent, | |
42944 | &_swigt__p_wxLayoutConstraints, | |
42945 | &_swigt__p_wxListBox, | |
42946 | &_swigt__p_wxListEvent, | |
42947 | &_swigt__p_wxListItem, | |
42948 | &_swigt__p_wxListItemAttr, | |
42949 | &_swigt__p_wxListView, | |
42950 | &_swigt__p_wxListbook, | |
42951 | &_swigt__p_wxListbookEvent, | |
42952 | &_swigt__p_wxMaximizeEvent, | |
42953 | &_swigt__p_wxMemoryDC, | |
42954 | &_swigt__p_wxMenu, | |
42955 | &_swigt__p_wxMenuBar, | |
42956 | &_swigt__p_wxMenuEvent, | |
42957 | &_swigt__p_wxMenuItem, | |
42958 | &_swigt__p_wxMouseCaptureChangedEvent, | |
42959 | &_swigt__p_wxMouseEvent, | |
42960 | &_swigt__p_wxMoveEvent, | |
42961 | &_swigt__p_wxNavigationKeyEvent, | |
42962 | &_swigt__p_wxNcPaintEvent, | |
42963 | &_swigt__p_wxNotebook, | |
42964 | &_swigt__p_wxNotebookEvent, | |
42965 | &_swigt__p_wxNotifyEvent, | |
42966 | &_swigt__p_wxObject, | |
42967 | &_swigt__p_wxPCXHandler, | |
42968 | &_swigt__p_wxPNGHandler, | |
42969 | &_swigt__p_wxPNMHandler, | |
42970 | &_swigt__p_wxPaintEvent, | |
42971 | &_swigt__p_wxPaletteChangedEvent, | |
42972 | &_swigt__p_wxPaperSize, | |
42973 | &_swigt__p_wxPoint, | |
42974 | &_swigt__p_wxPyApp, | |
42975 | &_swigt__p_wxPyCommandEvent, | |
42976 | &_swigt__p_wxPyControl, | |
42977 | &_swigt__p_wxPyEvent, | |
42978 | &_swigt__p_wxPyImageHandler, | |
42979 | &_swigt__p_wxPyListCtrl, | |
42980 | &_swigt__p_wxPySizer, | |
42981 | &_swigt__p_wxPyTreeCtrl, | |
42982 | &_swigt__p_wxPyTreeItemData, | |
42983 | &_swigt__p_wxPyValidator, | |
42984 | &_swigt__p_wxQueryNewPaletteEvent, | |
42985 | &_swigt__p_wxRadioBox, | |
42986 | &_swigt__p_wxRadioButton, | |
42987 | &_swigt__p_wxRect, | |
42988 | &_swigt__p_wxScrollBar, | |
42989 | &_swigt__p_wxScrollEvent, | |
42990 | &_swigt__p_wxScrollWinEvent, | |
42991 | &_swigt__p_wxSetCursorEvent, | |
42992 | &_swigt__p_wxShowEvent, | |
42993 | &_swigt__p_wxSimpleHelpProvider, | |
42994 | &_swigt__p_wxSize, | |
42995 | &_swigt__p_wxSizeEvent, | |
42996 | &_swigt__p_wxSizer, | |
42997 | &_swigt__p_wxSizerItem, | |
42998 | &_swigt__p_wxSlider, | |
42999 | &_swigt__p_wxSpinButton, | |
43000 | &_swigt__p_wxSpinCtrl, | |
43001 | &_swigt__p_wxSpinEvent, | |
43002 | &_swigt__p_wxStaticBitmap, | |
43003 | &_swigt__p_wxStaticBox, | |
43004 | &_swigt__p_wxStaticBoxSizer, | |
43005 | &_swigt__p_wxStaticLine, | |
43006 | &_swigt__p_wxStaticText, | |
43007 | &_swigt__p_wxStdDialogButtonSizer, | |
43008 | &_swigt__p_wxString, | |
43009 | &_swigt__p_wxSysColourChangedEvent, | |
43010 | &_swigt__p_wxTIFFHandler, | |
43011 | &_swigt__p_wxTextAttr, | |
43012 | &_swigt__p_wxTextCtrl, | |
43013 | &_swigt__p_wxTextUrlEvent, | |
43014 | &_swigt__p_wxToggleButton, | |
43015 | &_swigt__p_wxToolBar, | |
43016 | &_swigt__p_wxToolBarBase, | |
43017 | &_swigt__p_wxToolBarToolBase, | |
43018 | &_swigt__p_wxToolbook, | |
43019 | &_swigt__p_wxToolbookEvent, | |
43020 | &_swigt__p_wxTreeCtrl, | |
43021 | &_swigt__p_wxTreeEvent, | |
43022 | &_swigt__p_wxTreeItemId, | |
43023 | &_swigt__p_wxTreebook, | |
43024 | &_swigt__p_wxTreebookEvent, | |
43025 | &_swigt__p_wxUpdateUIEvent, | |
43026 | &_swigt__p_wxValidator, | |
43027 | &_swigt__p_wxVisualAttributes, | |
43028 | &_swigt__p_wxWindow, | |
43029 | &_swigt__p_wxWindowCreateEvent, | |
43030 | &_swigt__p_wxWindowDestroyEvent, | |
43031 | &_swigt__p_wxXPMHandler, | |
43032 | }; | |
43033 | ||
43034 | static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}}; | |
43035 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
43036 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
43037 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
43038 | static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; | |
43039 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
43040 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
43041 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
43042 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; | |
43043 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
43044 | static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}}; | |
43045 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
43046 | 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}}; | |
43047 | 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}}; | |
43048 | 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}}; | |
43049 | 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}}; | |
43050 | static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}}; | |
43051 | static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
43052 | 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}}; | |
43053 | static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}}; | |
43054 | static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43055 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
43056 | static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}}; | |
43057 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43058 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43059 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43060 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43061 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43062 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43063 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43064 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43065 | 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}}; | |
43066 | static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}}; | |
43067 | static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}}; | |
43068 | 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}}; | |
43069 | 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}}; | |
43070 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
43071 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; | |
43072 | static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
43073 | static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}}; | |
43074 | static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
43075 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
43076 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43077 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43078 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43079 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43080 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43081 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43082 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43083 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43084 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43085 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43086 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43087 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43088 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43089 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43090 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43091 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43092 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43093 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43094 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43095 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43096 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43097 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43098 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43099 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43100 | 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}}; | |
43101 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
43102 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
43103 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
43104 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
43105 | 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}}; | |
43106 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
43107 | static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}}; | |
43108 | static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
43109 | static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}}; | |
43110 | static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43111 | 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}}; | |
43112 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
43113 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
43114 | 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}}; | |
43115 | static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43116 | 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}}; | |
43117 | static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43118 | static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}}; | |
43119 | static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
43120 | static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}}; | |
43121 | static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}}; | |
43122 | static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43123 | static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}}; | |
43124 | static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43125 | static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}}; | |
43126 | static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43127 | 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}}; | |
43128 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
43129 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
43130 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
43131 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
43132 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
43133 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
43134 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
43135 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
43136 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
43137 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
43138 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
43139 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
43140 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
43141 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43142 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43143 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43144 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43145 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43146 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43147 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43148 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43149 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43150 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43151 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43152 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43153 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
43154 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
43155 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
43156 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
43157 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
43158 | 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}}; | |
43159 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
43160 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
43161 | static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}}; | |
43162 | 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}}; | |
43163 | static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
43164 | static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}}; | |
43165 | static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}}; | |
43166 | static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}}; | |
43167 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
43168 | static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}}; | |
43169 | static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}}; | |
43170 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
43171 | static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}}; | |
43172 | static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}}; | |
43173 | static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
43174 | static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43175 | static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
43176 | static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}}; | |
43177 | static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}}; | |
43178 | static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}}; | |
43179 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
43180 | static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
43181 | static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
43182 | static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43183 | static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}}; | |
43184 | static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}}; | |
43185 | 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}}; | |
43186 | static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}}; | |
43187 | static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}}; | |
43188 | static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43189 | static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
43190 | static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43191 | static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}}; | |
43192 | static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}}; | |
43193 | static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
43194 | 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}}; | |
43195 | static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}}; | |
43196 | 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}}; | |
43197 | ||
43198 | static swig_cast_info *swig_cast_initial[] = { | |
43199 | _swigc__p_bool, | |
43200 | _swigc__p_char, | |
43201 | _swigc__p_form_ops_t, | |
43202 | _swigc__p_int, | |
43203 | _swigc__p_long, | |
43204 | _swigc__p_unsigned_char, | |
43205 | _swigc__p_unsigned_int, | |
43206 | _swigc__p_unsigned_long, | |
43207 | _swigc__p_void, | |
43208 | _swigc__p_wxANIHandler, | |
43209 | _swigc__p_wxAcceleratorTable, | |
43210 | _swigc__p_wxActivateEvent, | |
43211 | _swigc__p_wxArrayInt, | |
43212 | _swigc__p_wxArrayString, | |
43213 | _swigc__p_wxBMPHandler, | |
43214 | _swigc__p_wxBitmap, | |
43215 | _swigc__p_wxBitmapButton, | |
43216 | _swigc__p_wxBookCtrlBase, | |
43217 | _swigc__p_wxBookCtrlBaseEvent, | |
43218 | _swigc__p_wxBoxSizer, | |
43219 | _swigc__p_wxButton, | |
43220 | _swigc__p_wxCURHandler, | |
43221 | _swigc__p_wxCheckBox, | |
43222 | _swigc__p_wxCheckListBox, | |
43223 | _swigc__p_wxChildFocusEvent, | |
43224 | _swigc__p_wxChoice, | |
43225 | _swigc__p_wxChoicebook, | |
43226 | _swigc__p_wxChoicebookEvent, | |
43227 | _swigc__p_wxCloseEvent, | |
43228 | _swigc__p_wxColour, | |
43229 | _swigc__p_wxComboBox, | |
43230 | _swigc__p_wxCommandEvent, | |
43231 | _swigc__p_wxContextHelp, | |
43232 | _swigc__p_wxContextHelpButton, | |
43233 | _swigc__p_wxContextMenuEvent, | |
43234 | _swigc__p_wxControl, | |
43235 | _swigc__p_wxControlWithItems, | |
43236 | _swigc__p_wxCursor, | |
43237 | _swigc__p_wxDC, | |
43238 | _swigc__p_wxDateEvent, | |
43239 | _swigc__p_wxDatePickerCtrl, | |
43240 | _swigc__p_wxDateTime, | |
43241 | _swigc__p_wxDirFilterListCtrl, | |
43242 | _swigc__p_wxDisplayChangedEvent, | |
43243 | _swigc__p_wxDropFilesEvent, | |
43244 | _swigc__p_wxDuplexMode, | |
43245 | _swigc__p_wxEraseEvent, | |
43246 | _swigc__p_wxEvent, | |
43247 | _swigc__p_wxEvtHandler, | |
43248 | _swigc__p_wxFSFile, | |
43249 | _swigc__p_wxFileSystem, | |
43250 | _swigc__p_wxFlexGridSizer, | |
43251 | _swigc__p_wxFocusEvent, | |
43252 | _swigc__p_wxFont, | |
43253 | _swigc__p_wxGBSizerItem, | |
43254 | _swigc__p_wxGIFHandler, | |
43255 | _swigc__p_wxGauge, | |
43256 | _swigc__p_wxGenericDirCtrl, | |
43257 | _swigc__p_wxGenericDragImage, | |
43258 | _swigc__p_wxGridBagSizer, | |
43259 | _swigc__p_wxGridSizer, | |
43260 | _swigc__p_wxHelpEvent, | |
43261 | _swigc__p_wxHelpProvider, | |
43262 | _swigc__p_wxICOHandler, | |
43263 | _swigc__p_wxIcon, | |
43264 | _swigc__p_wxIconizeEvent, | |
43265 | _swigc__p_wxIdleEvent, | |
43266 | _swigc__p_wxImage, | |
43267 | _swigc__p_wxImageHandler, | |
43268 | _swigc__p_wxImageList, | |
43269 | _swigc__p_wxIndividualLayoutConstraint, | |
43270 | _swigc__p_wxInitDialogEvent, | |
43271 | _swigc__p_wxItemContainer, | |
43272 | _swigc__p_wxJPEGHandler, | |
43273 | _swigc__p_wxKeyEvent, | |
43274 | _swigc__p_wxLayoutConstraints, | |
43275 | _swigc__p_wxListBox, | |
43276 | _swigc__p_wxListEvent, | |
43277 | _swigc__p_wxListItem, | |
43278 | _swigc__p_wxListItemAttr, | |
43279 | _swigc__p_wxListView, | |
43280 | _swigc__p_wxListbook, | |
43281 | _swigc__p_wxListbookEvent, | |
43282 | _swigc__p_wxMaximizeEvent, | |
43283 | _swigc__p_wxMemoryDC, | |
43284 | _swigc__p_wxMenu, | |
43285 | _swigc__p_wxMenuBar, | |
43286 | _swigc__p_wxMenuEvent, | |
43287 | _swigc__p_wxMenuItem, | |
43288 | _swigc__p_wxMouseCaptureChangedEvent, | |
43289 | _swigc__p_wxMouseEvent, | |
43290 | _swigc__p_wxMoveEvent, | |
43291 | _swigc__p_wxNavigationKeyEvent, | |
43292 | _swigc__p_wxNcPaintEvent, | |
43293 | _swigc__p_wxNotebook, | |
43294 | _swigc__p_wxNotebookEvent, | |
43295 | _swigc__p_wxNotifyEvent, | |
43296 | _swigc__p_wxObject, | |
43297 | _swigc__p_wxPCXHandler, | |
43298 | _swigc__p_wxPNGHandler, | |
43299 | _swigc__p_wxPNMHandler, | |
43300 | _swigc__p_wxPaintEvent, | |
43301 | _swigc__p_wxPaletteChangedEvent, | |
43302 | _swigc__p_wxPaperSize, | |
43303 | _swigc__p_wxPoint, | |
43304 | _swigc__p_wxPyApp, | |
43305 | _swigc__p_wxPyCommandEvent, | |
43306 | _swigc__p_wxPyControl, | |
43307 | _swigc__p_wxPyEvent, | |
43308 | _swigc__p_wxPyImageHandler, | |
43309 | _swigc__p_wxPyListCtrl, | |
43310 | _swigc__p_wxPySizer, | |
43311 | _swigc__p_wxPyTreeCtrl, | |
43312 | _swigc__p_wxPyTreeItemData, | |
43313 | _swigc__p_wxPyValidator, | |
43314 | _swigc__p_wxQueryNewPaletteEvent, | |
43315 | _swigc__p_wxRadioBox, | |
43316 | _swigc__p_wxRadioButton, | |
43317 | _swigc__p_wxRect, | |
43318 | _swigc__p_wxScrollBar, | |
43319 | _swigc__p_wxScrollEvent, | |
43320 | _swigc__p_wxScrollWinEvent, | |
43321 | _swigc__p_wxSetCursorEvent, | |
43322 | _swigc__p_wxShowEvent, | |
43323 | _swigc__p_wxSimpleHelpProvider, | |
43324 | _swigc__p_wxSize, | |
43325 | _swigc__p_wxSizeEvent, | |
43326 | _swigc__p_wxSizer, | |
43327 | _swigc__p_wxSizerItem, | |
43328 | _swigc__p_wxSlider, | |
43329 | _swigc__p_wxSpinButton, | |
43330 | _swigc__p_wxSpinCtrl, | |
43331 | _swigc__p_wxSpinEvent, | |
43332 | _swigc__p_wxStaticBitmap, | |
43333 | _swigc__p_wxStaticBox, | |
43334 | _swigc__p_wxStaticBoxSizer, | |
43335 | _swigc__p_wxStaticLine, | |
43336 | _swigc__p_wxStaticText, | |
43337 | _swigc__p_wxStdDialogButtonSizer, | |
43338 | _swigc__p_wxString, | |
43339 | _swigc__p_wxSysColourChangedEvent, | |
43340 | _swigc__p_wxTIFFHandler, | |
43341 | _swigc__p_wxTextAttr, | |
43342 | _swigc__p_wxTextCtrl, | |
43343 | _swigc__p_wxTextUrlEvent, | |
43344 | _swigc__p_wxToggleButton, | |
43345 | _swigc__p_wxToolBar, | |
43346 | _swigc__p_wxToolBarBase, | |
43347 | _swigc__p_wxToolBarToolBase, | |
43348 | _swigc__p_wxToolbook, | |
43349 | _swigc__p_wxToolbookEvent, | |
43350 | _swigc__p_wxTreeCtrl, | |
43351 | _swigc__p_wxTreeEvent, | |
43352 | _swigc__p_wxTreeItemId, | |
43353 | _swigc__p_wxTreebook, | |
43354 | _swigc__p_wxTreebookEvent, | |
43355 | _swigc__p_wxUpdateUIEvent, | |
43356 | _swigc__p_wxValidator, | |
43357 | _swigc__p_wxVisualAttributes, | |
43358 | _swigc__p_wxWindow, | |
43359 | _swigc__p_wxWindowCreateEvent, | |
43360 | _swigc__p_wxWindowDestroyEvent, | |
43361 | _swigc__p_wxXPMHandler, | |
43362 | }; | |
43363 | ||
43364 | ||
43365 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
43366 | ||
43367 | static swig_const_info swig_const_table[] = { | |
43368 | {0, 0, 0, 0.0, 0, 0}}; | |
43369 | ||
43370 | #ifdef __cplusplus | |
43371 | } | |
43372 | #endif | |
43373 | /* ----------------------------------------------------------------------------- | |
43374 | * Type initialization: | |
43375 | * This problem is tough by the requirement that no dynamic | |
43376 | * memory is used. Also, since swig_type_info structures store pointers to | |
43377 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
43378 | * to swig_type_info structures, we need some lookup code at initialization. | |
43379 | * The idea is that swig generates all the structures that are needed. | |
43380 | * The runtime then collects these partially filled structures. | |
43381 | * The SWIG_InitializeModule function takes these initial arrays out of | |
43382 | * swig_module, and does all the lookup, filling in the swig_module.types | |
43383 | * array with the correct data and linking the correct swig_cast_info | |
43384 | * structures together. | |
43385 | * | |
43386 | * The generated swig_type_info structures are assigned staticly to an initial | |
43387 | * array. We just loop though that array, and handle each type individually. | |
43388 | * First we lookup if this type has been already loaded, and if so, use the | |
43389 | * loaded structure instead of the generated one. Then we have to fill in the | |
43390 | * cast linked list. The cast data is initially stored in something like a | |
43391 | * two-dimensional array. Each row corresponds to a type (there are the same | |
43392 | * number of rows as there are in the swig_type_initial array). Each entry in | |
43393 | * a column is one of the swig_cast_info structures for that type. | |
43394 | * The cast_initial array is actually an array of arrays, because each row has | |
43395 | * a variable number of columns. So to actually build the cast linked list, | |
43396 | * we find the array of casts associated with the type, and loop through it | |
43397 | * adding the casts to the list. The one last trick we need to do is making | |
43398 | * sure the type pointer in the swig_cast_info struct is correct. | |
43399 | * | |
43400 | * First off, we lookup the cast->type name to see if it is already loaded. | |
43401 | * There are three cases to handle: | |
43402 | * 1) If the cast->type has already been loaded AND the type we are adding | |
43403 | * casting info to has not been loaded (it is in this module), THEN we | |
43404 | * replace the cast->type pointer with the type pointer that has already | |
43405 | * been loaded. | |
43406 | * 2) If BOTH types (the one we are adding casting info to, and the | |
43407 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
43408 | * the previous module so we just ignore it. | |
43409 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
43410 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
43411 | * be correct. | |
43412 | * ----------------------------------------------------------------------------- */ | |
43413 | ||
43414 | #ifdef __cplusplus | |
43415 | extern "C" { | |
43416 | #if 0 | |
43417 | } /* c-mode */ | |
43418 | #endif | |
43419 | #endif | |
43420 | ||
43421 | #if 0 | |
43422 | #define SWIGRUNTIME_DEBUG | |
43423 | #endif | |
43424 | ||
43425 | SWIGRUNTIME void | |
43426 | SWIG_InitializeModule(void *clientdata) { | |
43427 | size_t i; | |
43428 | swig_module_info *module_head; | |
43429 | static int init_run = 0; | |
43430 | ||
43431 | clientdata = clientdata; | |
43432 | ||
43433 | if (init_run) return; | |
43434 | init_run = 1; | |
43435 | ||
43436 | /* Initialize the swig_module */ | |
43437 | swig_module.type_initial = swig_type_initial; | |
43438 | swig_module.cast_initial = swig_cast_initial; | |
43439 | ||
43440 | /* Try and load any already created modules */ | |
43441 | module_head = SWIG_GetModule(clientdata); | |
43442 | if (module_head) { | |
43443 | swig_module.next = module_head->next; | |
43444 | module_head->next = &swig_module; | |
43445 | } else { | |
43446 | /* This is the first module loaded */ | |
43447 | swig_module.next = &swig_module; | |
43448 | SWIG_SetModule(clientdata, &swig_module); | |
43449 | } | |
43450 | ||
43451 | /* Now work on filling in swig_module.types */ | |
43452 | #ifdef SWIGRUNTIME_DEBUG | |
43453 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
43454 | #endif | |
43455 | for (i = 0; i < swig_module.size; ++i) { | |
43456 | swig_type_info *type = 0; | |
43457 | swig_type_info *ret; | |
43458 | swig_cast_info *cast; | |
d14a1e28 | 43459 | |
0085ce49 RD |
43460 | #ifdef SWIGRUNTIME_DEBUG |
43461 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
43462 | #endif | |
d14a1e28 | 43463 | |
0085ce49 RD |
43464 | /* if there is another module already loaded */ |
43465 | if (swig_module.next != &swig_module) { | |
43466 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
093d3ff1 | 43467 | } |
0085ce49 RD |
43468 | if (type) { |
43469 | /* Overwrite clientdata field */ | |
43470 | #ifdef SWIGRUNTIME_DEBUG | |
43471 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
43472 | #endif | |
43473 | if (swig_module.type_initial[i]->clientdata) { | |
43474 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
43475 | #ifdef SWIGRUNTIME_DEBUG | |
43476 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
43477 | #endif | |
43478 | } | |
43479 | } else { | |
43480 | type = swig_module.type_initial[i]; | |
093d3ff1 | 43481 | } |
d14a1e28 | 43482 | |
0085ce49 RD |
43483 | /* Insert casting types */ |
43484 | cast = swig_module.cast_initial[i]; | |
43485 | while (cast->type) { | |
43486 | /* Don't need to add information already in the list */ | |
43487 | ret = 0; | |
43488 | #ifdef SWIGRUNTIME_DEBUG | |
43489 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
43490 | #endif | |
43491 | if (swig_module.next != &swig_module) { | |
43492 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
43493 | #ifdef SWIGRUNTIME_DEBUG | |
43494 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
43495 | #endif | |
43496 | } | |
43497 | if (ret) { | |
43498 | if (type == swig_module.type_initial[i]) { | |
43499 | #ifdef SWIGRUNTIME_DEBUG | |
43500 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
43501 | #endif | |
43502 | cast->type = ret; | |
43503 | ret = 0; | |
43504 | } else { | |
43505 | /* Check for casting already in the list */ | |
43506 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
43507 | #ifdef SWIGRUNTIME_DEBUG | |
43508 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
43509 | #endif | |
43510 | if (!ocast) ret = 0; | |
43511 | } | |
43512 | } | |
43513 | ||
43514 | if (!ret) { | |
43515 | #ifdef SWIGRUNTIME_DEBUG | |
43516 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
43517 | #endif | |
43518 | if (type->cast) { | |
43519 | type->cast->prev = cast; | |
43520 | cast->next = type->cast; | |
43521 | } | |
43522 | type->cast = cast; | |
43523 | } | |
43524 | cast++; | |
093d3ff1 | 43525 | } |
0085ce49 RD |
43526 | /* Set entry in modules->types array equal to the type */ |
43527 | swig_module.types[i] = type; | |
43528 | } | |
43529 | swig_module.types[i] = 0; | |
43530 | ||
43531 | #ifdef SWIGRUNTIME_DEBUG | |
43532 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
43533 | for (i = 0; i < swig_module.size; ++i) { | |
43534 | int j = 0; | |
43535 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
43536 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
43537 | while (cast->type) { | |
43538 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
43539 | cast++; | |
43540 | ++j; | |
43541 | } | |
43542 | printf("---- Total casts: %d\n",j); | |
43543 | } | |
43544 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
43545 | #endif | |
43546 | } | |
43547 | ||
43548 | /* This function will propagate the clientdata field of type to | |
43549 | * any new swig_type_info structures that have been added into the list | |
43550 | * of equivalent types. It is like calling | |
43551 | * SWIG_TypeClientData(type, clientdata) a second time. | |
43552 | */ | |
43553 | SWIGRUNTIME void | |
43554 | SWIG_PropagateClientData(void) { | |
43555 | size_t i; | |
43556 | swig_cast_info *equiv; | |
43557 | static int init_run = 0; | |
43558 | ||
43559 | if (init_run) return; | |
43560 | init_run = 1; | |
43561 | ||
43562 | for (i = 0; i < swig_module.size; i++) { | |
43563 | if (swig_module.types[i]->clientdata) { | |
43564 | equiv = swig_module.types[i]->cast; | |
43565 | while (equiv) { | |
43566 | if (!equiv->converter) { | |
43567 | if (equiv->type && !equiv->type->clientdata) | |
43568 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
43569 | } | |
43570 | equiv = equiv->next; | |
43571 | } | |
093d3ff1 | 43572 | } |
0085ce49 RD |
43573 | } |
43574 | } | |
43575 | ||
43576 | #ifdef __cplusplus | |
43577 | #if 0 | |
43578 | { | |
43579 | /* c-mode */ | |
43580 | #endif | |
43581 | } | |
43582 | #endif | |
43583 | ||
43584 | ||
43585 | ||
43586 | #ifdef __cplusplus | |
43587 | extern "C" { | |
43588 | #endif | |
43589 | ||
43590 | /* Python-specific SWIG API */ | |
43591 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
43592 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
43593 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
43594 | ||
43595 | /* ----------------------------------------------------------------------------- | |
43596 | * global variable support code. | |
43597 | * ----------------------------------------------------------------------------- */ | |
43598 | ||
43599 | typedef struct swig_globalvar { | |
43600 | char *name; /* Name of global variable */ | |
43601 | PyObject *(*get_attr)(void); /* Return the current value */ | |
43602 | int (*set_attr)(PyObject *); /* Set the value */ | |
43603 | struct swig_globalvar *next; | |
43604 | } swig_globalvar; | |
43605 | ||
43606 | typedef struct swig_varlinkobject { | |
43607 | PyObject_HEAD | |
43608 | swig_globalvar *vars; | |
43609 | } swig_varlinkobject; | |
43610 | ||
43611 | SWIGINTERN PyObject * | |
43612 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
43613 | return PyString_FromString("<Swig global variables>"); | |
43614 | } | |
43615 | ||
43616 | SWIGINTERN PyObject * | |
43617 | swig_varlink_str(swig_varlinkobject *v) { | |
43618 | PyObject *str = PyString_FromString("("); | |
43619 | swig_globalvar *var; | |
43620 | for (var = v->vars; var; var=var->next) { | |
43621 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
43622 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
43623 | } | |
43624 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
43625 | return str; | |
43626 | } | |
43627 | ||
43628 | SWIGINTERN int | |
43629 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
43630 | PyObject *str = swig_varlink_str(v); | |
43631 | fprintf(fp,"Swig global variables "); | |
43632 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
43633 | Py_DECREF(str); | |
43634 | return 0; | |
43635 | } | |
43636 | ||
43637 | SWIGINTERN void | |
43638 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
43639 | swig_globalvar *var = v->vars; | |
43640 | while (var) { | |
43641 | swig_globalvar *n = var->next; | |
43642 | free(var->name); | |
43643 | free(var); | |
43644 | var = n; | |
093d3ff1 | 43645 | } |
0085ce49 RD |
43646 | } |
43647 | ||
43648 | SWIGINTERN PyObject * | |
43649 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
43650 | PyObject *res = NULL; | |
43651 | swig_globalvar *var = v->vars; | |
43652 | while (var) { | |
43653 | if (strcmp(var->name,n) == 0) { | |
43654 | res = (*var->get_attr)(); | |
43655 | break; | |
43656 | } | |
43657 | var = var->next; | |
093d3ff1 | 43658 | } |
0085ce49 RD |
43659 | if (res == NULL && !PyErr_Occurred()) { |
43660 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
093d3ff1 | 43661 | } |
0085ce49 RD |
43662 | return res; |
43663 | } | |
43664 | ||
43665 | SWIGINTERN int | |
43666 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
43667 | int res = 1; | |
43668 | swig_globalvar *var = v->vars; | |
43669 | while (var) { | |
43670 | if (strcmp(var->name,n) == 0) { | |
43671 | res = (*var->set_attr)(p); | |
43672 | break; | |
43673 | } | |
43674 | var = var->next; | |
093d3ff1 | 43675 | } |
0085ce49 RD |
43676 | if (res == 1 && !PyErr_Occurred()) { |
43677 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
53aa7709 | 43678 | } |
0085ce49 RD |
43679 | return res; |
43680 | } | |
43681 | ||
43682 | SWIGINTERN PyTypeObject* | |
43683 | swig_varlink_type(void) { | |
43684 | static char varlink__doc__[] = "Swig var link object"; | |
43685 | static PyTypeObject varlink_type; | |
43686 | static int type_init = 0; | |
43687 | if (!type_init) { | |
43688 | const PyTypeObject tmp | |
43689 | = { | |
43690 | PyObject_HEAD_INIT(NULL) | |
43691 | 0, /* Number of items in variable part (ob_size) */ | |
43692 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
43693 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
43694 | 0, /* Itemsize (tp_itemsize) */ | |
43695 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
43696 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
43697 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
43698 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
43699 | 0, /* tp_compare */ | |
43700 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
43701 | 0, /* tp_as_number */ | |
43702 | 0, /* tp_as_sequence */ | |
43703 | 0, /* tp_as_mapping */ | |
43704 | 0, /* tp_hash */ | |
43705 | 0, /* tp_call */ | |
43706 | (reprfunc)swig_varlink_str, /* tp_str */ | |
43707 | 0, /* tp_getattro */ | |
43708 | 0, /* tp_setattro */ | |
43709 | 0, /* tp_as_buffer */ | |
43710 | 0, /* tp_flags */ | |
43711 | varlink__doc__, /* tp_doc */ | |
43712 | 0, /* tp_traverse */ | |
43713 | 0, /* tp_clear */ | |
43714 | 0, /* tp_richcompare */ | |
43715 | 0, /* tp_weaklistoffset */ | |
43716 | #if PY_VERSION_HEX >= 0x02020000 | |
43717 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
43718 | #endif | |
43719 | #if PY_VERSION_HEX >= 0x02030000 | |
43720 | 0, /* tp_del */ | |
43721 | #endif | |
43722 | #ifdef COUNT_ALLOCS | |
43723 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
43724 | #endif | |
43725 | }; | |
43726 | varlink_type = tmp; | |
43727 | varlink_type.ob_type = &PyType_Type; | |
43728 | type_init = 1; | |
53aa7709 | 43729 | } |
0085ce49 RD |
43730 | return &varlink_type; |
43731 | } | |
43732 | ||
43733 | /* Create a variable linking object for use later */ | |
43734 | SWIGINTERN PyObject * | |
43735 | SWIG_Python_newvarlink(void) { | |
43736 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
43737 | if (result) { | |
43738 | result->vars = 0; | |
43739 | } | |
43740 | return ((PyObject*) result); | |
43741 | } | |
43742 | ||
43743 | SWIGINTERN void | |
43744 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
43745 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
43746 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
43747 | if (gv) { | |
43748 | size_t size = strlen(name)+1; | |
43749 | gv->name = (char *)malloc(size); | |
43750 | if (gv->name) { | |
43751 | strncpy(gv->name,name,size); | |
43752 | gv->get_attr = get_attr; | |
43753 | gv->set_attr = set_attr; | |
43754 | gv->next = v->vars; | |
43755 | } | |
53aa7709 | 43756 | } |
0085ce49 RD |
43757 | v->vars = gv; |
43758 | } | |
43759 | ||
43760 | SWIGINTERN PyObject * | |
43761 | SWIG_globals() { | |
43762 | static PyObject *_SWIG_globals = 0; | |
43763 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
43764 | return _SWIG_globals; | |
43765 | } | |
43766 | ||
43767 | /* ----------------------------------------------------------------------------- | |
43768 | * constants/methods manipulation | |
43769 | * ----------------------------------------------------------------------------- */ | |
43770 | ||
43771 | /* Install Constants */ | |
43772 | SWIGINTERN void | |
43773 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
43774 | PyObject *obj = 0; | |
43775 | size_t i; | |
43776 | for (i = 0; constants[i].type; ++i) { | |
43777 | switch(constants[i].type) { | |
43778 | case SWIG_PY_POINTER: | |
43779 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
43780 | break; | |
43781 | case SWIG_PY_BINARY: | |
43782 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
43783 | break; | |
43784 | default: | |
43785 | obj = 0; | |
43786 | break; | |
43787 | } | |
43788 | if (obj) { | |
43789 | PyDict_SetItemString(d, constants[i].name, obj); | |
43790 | Py_DECREF(obj); | |
43791 | } | |
53aa7709 | 43792 | } |
0085ce49 RD |
43793 | } |
43794 | ||
43795 | /* -----------------------------------------------------------------------------*/ | |
43796 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
43797 | /* -----------------------------------------------------------------------------*/ | |
43798 | ||
43799 | SWIGINTERN void | |
43800 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
43801 | swig_const_info *const_table, | |
43802 | swig_type_info **types, | |
43803 | swig_type_info **types_initial) { | |
43804 | size_t i; | |
43805 | for (i = 0; methods[i].ml_name; ++i) { | |
43806 | char *c = methods[i].ml_doc; | |
43807 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
43808 | int j; | |
43809 | swig_const_info *ci = 0; | |
43810 | char *name = c + 10; | |
43811 | for (j = 0; const_table[j].type; ++j) { | |
43812 | if (strncmp(const_table[j].name, name, | |
43813 | strlen(const_table[j].name)) == 0) { | |
43814 | ci = &(const_table[j]); | |
43815 | break; | |
43816 | } | |
43817 | } | |
43818 | if (ci) { | |
43819 | size_t shift = (ci->ptype) - types; | |
43820 | swig_type_info *ty = types_initial[shift]; | |
43821 | size_t ldoc = (c - methods[i].ml_doc); | |
43822 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
43823 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
43824 | if (ndoc) { | |
43825 | char *buff = ndoc; | |
43826 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
43827 | if (ptr) { | |
43828 | strncpy(buff, methods[i].ml_doc, ldoc); | |
43829 | buff += ldoc; | |
43830 | strncpy(buff, "swig_ptr: ", 10); | |
43831 | buff += 10; | |
43832 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
43833 | methods[i].ml_doc = ndoc; | |
43834 | } | |
43835 | } | |
43836 | } | |
43837 | } | |
53aa7709 | 43838 | } |
0085ce49 RD |
43839 | } |
43840 | ||
43841 | #ifdef __cplusplus | |
43842 | } | |
43843 | #endif | |
43844 | ||
43845 | /* -----------------------------------------------------------------------------* | |
43846 | * Partial Init method | |
43847 | * -----------------------------------------------------------------------------*/ | |
43848 | ||
43849 | #ifdef __cplusplus | |
43850 | extern "C" | |
43851 | #endif | |
43852 | SWIGEXPORT void SWIG_init(void) { | |
43853 | PyObject *m, *d; | |
43854 | ||
43855 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
43856 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
43857 | ||
43858 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
43859 | d = PyModule_GetDict(m); | |
43860 | ||
43861 | SWIG_InitializeModule(0); | |
43862 | SWIG_InstallConstants(d,swig_const_table); | |
43863 | ||
43864 | ||
43865 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
43866 | SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set); | |
43867 | SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT))); | |
43868 | SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP))); | |
43869 | SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT))); | |
43870 | SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM))); | |
43871 | SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK))); | |
43872 | SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT))); | |
43873 | SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW))); | |
43874 | SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set); | |
43875 | SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE))); | |
43876 | SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE))); | |
43877 | SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER))); | |
43878 | SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED))); | |
43879 | SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED))); | |
43880 | SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED))); | |
43881 | SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set); | |
43882 | SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set); | |
43883 | SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set); | |
43884 | SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL))); | |
43885 | SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL))); | |
43886 | SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH))); | |
0085ce49 RD |
43887 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set); |
43888 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set); | |
43889 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set); | |
43890 | SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set); | |
43891 | SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set); | |
43892 | SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL))); | |
43893 | SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL))); | |
43894 | SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY))); | |
43895 | SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE))); | |
43896 | SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB))); | |
43897 | SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT))); | |
43898 | SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER))); | |
43899 | SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT))); | |
43900 | SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE))); | |
43901 | SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH))); | |
43902 | SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER))); | |
43903 | SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD))); | |
43904 | SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL))); | |
43905 | SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL))); | |
43906 | SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP))); | |
43907 | SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP))); | |
43908 | SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP))); | |
43909 | SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP))); | |
0085ce49 RD |
43910 | SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2))); |
43911 | SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE))); | |
43912 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT))); | |
43913 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT))); | |
43914 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE))); | |
43915 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER))); | |
43916 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT))); | |
43917 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED))); | |
43918 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR))); | |
43919 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR))); | |
43920 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE))); | |
43921 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE))); | |
43922 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT))); | |
43923 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC))); | |
43924 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE))); | |
43925 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT))); | |
43926 | SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT))); | |
43927 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT))); | |
43928 | SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT))); | |
43929 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS))); | |
43930 | SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN))); | |
43931 | SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE))); | |
43932 | SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT))); | |
43933 | SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW))); | |
43934 | SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND))); | |
43935 | SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord))); | |
43936 | SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord))); | |
43937 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); | |
43938 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
43939 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
43940 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
43941 | SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set); | |
43942 | SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set); | |
43943 | SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set); | |
43944 | SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL))); | |
43945 | SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL))); | |
43946 | SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS))); | |
43947 | SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP))); | |
43948 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); | |
43949 | SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set); | |
43950 | SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set); | |
43951 | SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set); | |
43952 | SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL))); | |
43953 | SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL))); | |
43954 | SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS))); | |
43955 | SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS))); | |
43956 | SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS))); | |
43957 | SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT))); | |
43958 | SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP))); | |
43959 | SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT))); | |
43960 | SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM))); | |
43961 | SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH))); | |
43962 | SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE))); | |
43963 | SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE))); | |
43964 | SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set); | |
43965 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
43966 | SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set); | |
43967 | SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT))); | |
43968 | SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP))); | |
43969 | SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM))); | |
43970 | SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT))); | |
43971 | SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT))); | |
43972 | SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK))); | |
e9d6f3a4 | 43973 | SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR))); |
0085ce49 RD |
43974 | SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH))); |
43975 | SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP))); | |
43976 | SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT))); | |
43977 | SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT))); | |
43978 | SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM))); | |
43979 | SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE))); | |
43980 | SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME))); | |
43981 | SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE))); | |
43982 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON))); | |
43983 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL))); | |
43984 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM))); | |
43985 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); | |
43986 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
43987 | SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT))); | |
43988 | SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP))); | |
43989 | SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM))); | |
43990 | SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT))); | |
43991 | SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT))); | |
43992 | SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK))); | |
43993 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
43994 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
43995 | SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT))); | |
43996 | SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP))); | |
43997 | SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM))); | |
43998 | SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT))); | |
43999 | SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT))); | |
44000 | SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK))); | |
44001 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED)); | |
44002 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING)); | |
44003 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED)); | |
44004 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING)); | |
44005 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED)); | |
44006 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED)); | |
44007 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED)); | |
44008 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING)); | |
44009 | SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON))); | |
44010 | SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR))); | |
44011 | SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL))); | |
44012 | SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL))); | |
44013 | SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL))); | |
44014 | SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS))); | |
44015 | SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT))); | |
44016 | SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE))); | |
44017 | SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS))); | |
44018 | SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT))); | |
44019 | SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER))); | |
44020 | SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN))); | |
44021 | SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT))); | |
44022 | SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT))); | |
44023 | SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set); | |
44024 | SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES))); | |
44025 | SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES))); | |
44026 | SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON))); | |
44027 | SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON))); | |
44028 | SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST))); | |
44029 | SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT))); | |
44030 | SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP))); | |
44031 | SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT))); | |
44032 | SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE))); | |
44033 | SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL))); | |
44034 | SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS))); | |
44035 | SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER))); | |
44036 | SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER))); | |
44037 | SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL))); | |
44038 | SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING))); | |
44039 | SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING))); | |
44040 | SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE))); | |
44041 | SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN))); | |
44042 | SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT))); | |
44043 | SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE))); | |
44044 | SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT))); | |
44045 | SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE))); | |
44046 | SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA))); | |
44047 | SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM))); | |
44048 | SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH))); | |
44049 | SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT))); | |
44050 | SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE))); | |
44051 | SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED))); | |
44052 | SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED))); | |
44053 | SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED))); | |
44054 | SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT))); | |
44055 | SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED))); | |
44056 | SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED))); | |
44057 | SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE))); | |
44058 | SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED))); | |
44059 | SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE))); | |
44060 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE))); | |
44061 | SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW))); | |
44062 | SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE))); | |
44063 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON))); | |
44064 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL))); | |
44065 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT))); | |
44066 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON))); | |
44067 | SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT))); | |
44068 | SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT))); | |
44069 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM))); | |
44070 | SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE))); | |
44071 | SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL))); | |
44072 | SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW))); | |
44073 | SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT))); | |
44074 | SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT))); | |
44075 | SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT))); | |
44076 | SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT))); | |
44077 | SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP))); | |
44078 | SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID))); | |
44079 | SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT))); | |
44080 | SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT))); | |
44081 | SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE))); | |
44082 | SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER))); | |
44083 | SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE))); | |
44084 | SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER))); | |
44085 | SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS))); | |
44086 | SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON))); | |
44087 | SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL))); | |
44088 | SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP))); | |
44089 | SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN))); | |
44090 | SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT))); | |
44091 | SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT))); | |
44092 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
44093 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
44094 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
44095 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
44096 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
44097 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
44098 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
44099 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
44100 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
44101 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
44102 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
44103 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
44104 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
44105 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
44106 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
44107 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
44108 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
44109 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
44110 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
44111 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
44112 | ||
44113 | // Map renamed classes back to their common name for OOR | |
44114 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
44115 | ||
44116 | SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set); | |
44117 | SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS))); | |
44118 | SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS))); | |
44119 | SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES))); | |
44120 | SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT))); | |
44121 | SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE))); | |
44122 | SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE))); | |
44123 | SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED))); | |
44124 | SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT))); | |
44125 | SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS))); | |
44126 | SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT))); | |
44127 | SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES))); | |
44128 | SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT))); | |
44129 | SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE))); | |
44130 | SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS))); | |
0085ce49 RD |
44131 | SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal))); |
44132 | SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected))); | |
44133 | SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded))); | |
44134 | SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded))); | |
44135 | SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max))); | |
44136 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE))); | |
44137 | SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW))); | |
44138 | SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE))); | |
44139 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON))); | |
44140 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON))); | |
44141 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT))); | |
44142 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL))); | |
44143 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT))); | |
44144 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON))); | |
44145 | SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT))); | |
44146 | SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT))); | |
44147 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART))); | |
44148 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART))); | |
44149 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM))); | |
44150 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
44151 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
44152 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
44153 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
44154 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
44155 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
44156 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
44157 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
44158 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
44159 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
44160 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
44161 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
44162 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
44163 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
44164 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
44165 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
44166 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
44167 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
44168 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
44169 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
44170 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU)); | |
44171 | ||
44172 | // Map renamed classes back to their common name for OOR | |
44173 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
44174 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
44175 | ||
44176 | SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set); | |
44177 | SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY))); | |
44178 | SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST))); | |
44179 | SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS))); | |
44180 | SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL))); | |
44181 | SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS))); | |
44182 | SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP))); | |
44183 | SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP))); | |
44184 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); | |
44185 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
44186 | ||
44187 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
44188 | ||
44189 | SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set); | |
44190 | SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT))); | |
44191 | SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN))); | |
44192 | SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN))); | |
44193 | SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY))); | |
44194 | SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE))); | |
d14a1e28 RD |
44195 | } |
44196 |