]>
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 | |
d1a49b78 RD |
988 | #if PY_VERSION_HEX < 0x02050000 |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
0085ce49 RD |
992 | /* for raw pointers */ |
993 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
994 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
995 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
996 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
997 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
998 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
999 | #define swig_owntype int | |
994141e6 | 1000 | |
0085ce49 RD |
1001 | /* for raw packed data */ |
1002 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1003 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
994141e6 | 1004 | |
0085ce49 RD |
1005 | /* for class or struct pointers */ |
1006 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1007 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
d14a1e28 | 1008 | |
0085ce49 RD |
1009 | /* for C or C++ function pointers */ |
1010 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1011 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
4d5c3d91 | 1012 | |
0085ce49 RD |
1013 | /* for C++ member pointers, ie, member methods */ |
1014 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1015 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
32fe5131 | 1016 | |
4d5c3d91 | 1017 | |
0085ce49 | 1018 | /* Runtime API */ |
15afbcd0 | 1019 | |
0085ce49 RD |
1020 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() |
1021 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1022 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
32fe5131 | 1023 | |
0085ce49 RD |
1024 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj |
1025 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1026 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1027 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1028 | #define SWIG_fail goto fail | |
32fe5131 | 1029 | |
15afbcd0 | 1030 | |
0085ce49 | 1031 | /* Runtime API implementation */ |
093d3ff1 | 1032 | |
0085ce49 | 1033 | /* Error manipulation */ |
093d3ff1 | 1034 | |
0085ce49 RD |
1035 | SWIGINTERN void |
1036 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1037 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1038 | PyErr_SetObject(errtype, obj); | |
1039 | Py_DECREF(obj); | |
1040 | SWIG_PYTHON_THREAD_END_BLOCK; | |
15afbcd0 RD |
1041 | } |
1042 | ||
0085ce49 RD |
1043 | SWIGINTERN void |
1044 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1045 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1046 | PyErr_SetString(errtype, (char *) msg); | |
1047 | SWIG_PYTHON_THREAD_END_BLOCK; | |
093d3ff1 | 1048 | } |
15afbcd0 | 1049 | |
0085ce49 | 1050 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
32fe5131 | 1051 | |
0085ce49 | 1052 | /* Set a constant value */ |
093d3ff1 | 1053 | |
0085ce49 RD |
1054 | SWIGINTERN void |
1055 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1056 | PyDict_SetItemString(d, (char*) name, obj); | |
1057 | Py_DECREF(obj); | |
15afbcd0 RD |
1058 | } |
1059 | ||
0085ce49 | 1060 | /* Append a value to the result obj */ |
15afbcd0 | 1061 | |
0085ce49 RD |
1062 | SWIGINTERN PyObject* |
1063 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1064 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1065 | if (!result) { | |
1066 | result = obj; | |
1067 | } else if (result == Py_None) { | |
1068 | Py_DECREF(result); | |
1069 | result = obj; | |
1070 | } else { | |
1071 | if (!PyList_Check(result)) { | |
1072 | PyObject *o2 = result; | |
1073 | result = PyList_New(1); | |
1074 | PyList_SetItem(result, 0, o2); | |
1075 | } | |
1076 | PyList_Append(result,obj); | |
1077 | Py_DECREF(obj); | |
1078 | } | |
1079 | return result; | |
1080 | #else | |
1081 | PyObject* o2; | |
1082 | PyObject* o3; | |
1083 | if (!result) { | |
1084 | result = obj; | |
1085 | } else if (result == Py_None) { | |
1086 | Py_DECREF(result); | |
1087 | result = obj; | |
c32bde28 | 1088 | } else { |
0085ce49 RD |
1089 | if (!PyTuple_Check(result)) { |
1090 | o2 = result; | |
1091 | result = PyTuple_New(1); | |
1092 | PyTuple_SET_ITEM(result, 0, o2); | |
1093 | } | |
1094 | o3 = PyTuple_New(1); | |
1095 | PyTuple_SET_ITEM(o3, 0, obj); | |
1096 | o2 = result; | |
1097 | result = PySequence_Concat(o2, o3); | |
1098 | Py_DECREF(o2); | |
1099 | Py_DECREF(o3); | |
c32bde28 | 1100 | } |
0085ce49 RD |
1101 | return result; |
1102 | #endif | |
994141e6 | 1103 | } |
093d3ff1 | 1104 | |
0085ce49 | 1105 | /* Unpack the argument tuple */ |
093d3ff1 | 1106 | |
0085ce49 RD |
1107 | SWIGINTERN int |
1108 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1109 | { | |
1110 | if (!args) { | |
1111 | if (!min && !max) { | |
1112 | return 1; | |
1113 | } else { | |
1114 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1115 | name, (min == max ? "" : "at least "), min); | |
1116 | return 0; | |
1117 | } | |
1118 | } | |
1119 | if (!PyTuple_Check(args)) { | |
1120 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1121 | return 0; | |
1122 | } else { | |
1123 | register int l = PyTuple_GET_SIZE(args); | |
1124 | if (l < min) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at least "), min, l); | |
1127 | return 0; | |
1128 | } else if (l > max) { | |
1129 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1130 | name, (min == max ? "" : "at most "), max, l); | |
1131 | return 0; | |
1132 | } else { | |
1133 | register int i; | |
1134 | for (i = 0; i < l; ++i) { | |
1135 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1136 | } | |
1137 | for (; l < max; ++l) { | |
1138 | objs[l] = 0; | |
1139 | } | |
1140 | return i + 1; | |
1141 | } | |
1142 | } | |
1143 | } | |
1144 | ||
1145 | /* A functor is a function object with one single object argument */ | |
1146 | #if PY_VERSION_HEX >= 0x02020000 | |
1147 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1148 | #else | |
1149 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1150 | #endif | |
1151 | ||
1152 | /* | |
1153 | Helper for static pointer initialization for both C and C++ code, for example | |
1154 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1155 | */ | |
1156 | #ifdef __cplusplus | |
1157 | #define SWIG_STATIC_POINTER(var) var | |
1158 | #else | |
1159 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1160 | #endif | |
1161 | ||
1162 | /* ----------------------------------------------------------------------------- | |
1163 | * Pointer declarations | |
1164 | * ----------------------------------------------------------------------------- */ | |
1165 | ||
1166 | /* Flags for new pointer objects */ | |
1167 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1168 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1169 | ||
1170 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1171 | ||
1172 | #ifdef __cplusplus | |
1173 | extern "C" { | |
1174 | #if 0 | |
1175 | } /* cc-mode */ | |
1176 | #endif | |
1177 | #endif | |
1178 | ||
1179 | /* How to access Py_None */ | |
1180 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1181 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1182 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1183 | # define SWIG_PYTHON_BUILD_NONE | |
1184 | # endif | |
1185 | # endif | |
1186 | #endif | |
1187 | ||
1188 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1189 | # ifdef Py_None | |
1190 | # undef Py_None | |
1191 | # define Py_None SWIG_Py_None() | |
1192 | # endif | |
1193 | SWIGRUNTIMEINLINE PyObject * | |
1194 | _SWIG_Py_None(void) | |
1195 | { | |
1196 | PyObject *none = Py_BuildValue(""); | |
1197 | Py_DECREF(none); | |
1198 | return none; | |
1199 | } | |
1200 | SWIGRUNTIME PyObject * | |
1201 | SWIG_Py_None(void) | |
1202 | { | |
1203 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1204 | return none; | |
1205 | } | |
1206 | #endif | |
1207 | ||
1208 | /* The python void return value */ | |
1209 | ||
1210 | SWIGRUNTIMEINLINE PyObject * | |
1211 | SWIG_Py_Void(void) | |
1212 | { | |
1213 | PyObject *none = Py_None; | |
1214 | Py_INCREF(none); | |
1215 | return none; | |
1216 | } | |
1217 | ||
1218 | /* PySwigClientData */ | |
1219 | ||
1220 | typedef struct { | |
1221 | PyObject *klass; | |
1222 | PyObject *newraw; | |
1223 | PyObject *newargs; | |
1224 | PyObject *destroy; | |
1225 | int delargs; | |
1226 | int implicitconv; | |
1227 | } PySwigClientData; | |
1228 | ||
1229 | SWIGRUNTIMEINLINE int | |
1230 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1231 | { | |
1232 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1233 | return data ? data->implicitconv : 0; | |
1234 | } | |
1235 | ||
1236 | SWIGRUNTIMEINLINE PyObject * | |
1237 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1238 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1239 | PyObject *klass = data ? data->klass : 0; | |
1240 | return (klass ? klass : PyExc_RuntimeError); | |
1241 | } | |
1242 | ||
1243 | ||
1244 | SWIGRUNTIME PySwigClientData * | |
1245 | PySwigClientData_New(PyObject* obj) | |
1246 | { | |
1247 | if (!obj) { | |
1248 | return 0; | |
1249 | } else { | |
1250 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1251 | /* the klass element */ | |
1252 | data->klass = obj; | |
1253 | Py_INCREF(data->klass); | |
1254 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1255 | if (PyClass_Check(obj)) { | |
1256 | data->newraw = 0; | |
1257 | data->newargs = obj; | |
1258 | Py_INCREF(obj); | |
1259 | } else { | |
1260 | #if (PY_VERSION_HEX < 0x02020000) | |
1261 | data->newraw = 0; | |
1262 | #else | |
1263 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1264 | #endif | |
1265 | if (data->newraw) { | |
1266 | Py_INCREF(data->newraw); | |
1267 | data->newargs = PyTuple_New(1); | |
1268 | PyTuple_SetItem(data->newargs, 0, obj); | |
1269 | } else { | |
1270 | data->newargs = obj; | |
1271 | } | |
1272 | Py_INCREF(data->newargs); | |
1273 | } | |
1274 | /* the destroy method, aka as the C++ delete method */ | |
1275 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1276 | if (PyErr_Occurred()) { | |
1277 | PyErr_Clear(); | |
1278 | data->destroy = 0; | |
1279 | } | |
1280 | if (data->destroy) { | |
1281 | int flags; | |
1282 | Py_INCREF(data->destroy); | |
1283 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1284 | #ifdef METH_O | |
1285 | data->delargs = !(flags & (METH_O)); | |
1286 | #else | |
1287 | data->delargs = 0; | |
1288 | #endif | |
1289 | } else { | |
1290 | data->delargs = 0; | |
1291 | } | |
1292 | data->implicitconv = 0; | |
1293 | return data; | |
1294 | } | |
1295 | } | |
1296 | ||
1297 | SWIGRUNTIME void | |
1298 | PySwigClientData_Del(PySwigClientData* data) | |
1299 | { | |
1300 | Py_XDECREF(data->newraw); | |
1301 | Py_XDECREF(data->newargs); | |
1302 | Py_XDECREF(data->destroy); | |
1303 | } | |
1304 | ||
1305 | /* =============== PySwigObject =====================*/ | |
1306 | ||
1307 | typedef struct { | |
1308 | PyObject_HEAD | |
1309 | void *ptr; | |
1310 | swig_type_info *ty; | |
1311 | int own; | |
1312 | PyObject *next; | |
1313 | } PySwigObject; | |
1314 | ||
1315 | SWIGRUNTIME PyObject * | |
1316 | PySwigObject_long(PySwigObject *v) | |
1317 | { | |
1318 | return PyLong_FromVoidPtr(v->ptr); | |
1319 | } | |
1320 | ||
1321 | SWIGRUNTIME PyObject * | |
1322 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1323 | { | |
1324 | PyObject *res = NULL; | |
1325 | PyObject *args = PyTuple_New(1); | |
1326 | if (args) { | |
1327 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1328 | PyObject *ofmt = PyString_FromString(fmt); | |
1329 | if (ofmt) { | |
1330 | res = PyString_Format(ofmt,args); | |
1331 | Py_DECREF(ofmt); | |
1332 | } | |
1333 | Py_DECREF(args); | |
1334 | } | |
1335 | } | |
1336 | return res; | |
1337 | } | |
1338 | ||
1339 | SWIGRUNTIME PyObject * | |
1340 | PySwigObject_oct(PySwigObject *v) | |
1341 | { | |
1342 | return PySwigObject_format("%o",v); | |
1343 | } | |
1344 | ||
1345 | SWIGRUNTIME PyObject * | |
1346 | PySwigObject_hex(PySwigObject *v) | |
1347 | { | |
1348 | return PySwigObject_format("%x",v); | |
1349 | } | |
1350 | ||
1351 | SWIGRUNTIME PyObject * | |
1352 | #ifdef METH_NOARGS | |
1353 | PySwigObject_repr(PySwigObject *v) | |
1354 | #else | |
1355 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1356 | #endif | |
1357 | { | |
1358 | const char *name = SWIG_TypePrettyName(v->ty); | |
1359 | PyObject *hex = PySwigObject_hex(v); | |
1360 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1361 | Py_DECREF(hex); | |
1362 | if (v->next) { | |
1363 | #ifdef METH_NOARGS | |
1364 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1365 | #else | |
1366 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1367 | #endif | |
1368 | PyString_ConcatAndDel(&repr,nrep); | |
1369 | } | |
1370 | return repr; | |
1371 | } | |
1372 | ||
1373 | SWIGRUNTIME int | |
1374 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1375 | { | |
1376 | #ifdef METH_NOARGS | |
1377 | PyObject *repr = PySwigObject_repr(v); | |
1378 | #else | |
1379 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1380 | #endif | |
1381 | if (repr) { | |
1382 | fputs(PyString_AsString(repr), fp); | |
1383 | Py_DECREF(repr); | |
1384 | return 0; | |
1385 | } else { | |
1386 | return 1; | |
1387 | } | |
1388 | } | |
1389 | ||
1390 | SWIGRUNTIME PyObject * | |
1391 | PySwigObject_str(PySwigObject *v) | |
1392 | { | |
1393 | char result[SWIG_BUFFER_SIZE]; | |
1394 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1395 | PyString_FromString(result) : 0; | |
1396 | } | |
1397 | ||
1398 | SWIGRUNTIME int | |
1399 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1400 | { | |
1401 | void *i = v->ptr; | |
1402 | void *j = w->ptr; | |
1403 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1404 | } | |
1405 | ||
1406 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1407 | ||
1408 | SWIGRUNTIME PyTypeObject* | |
1409 | PySwigObject_type(void) { | |
1410 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1411 | return type; | |
1412 | } | |
1413 | ||
1414 | SWIGRUNTIMEINLINE int | |
1415 | PySwigObject_Check(PyObject *op) { | |
1416 | return ((op)->ob_type == PySwigObject_type()) | |
1417 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1418 | } | |
1419 | ||
1420 | SWIGRUNTIME PyObject * | |
1421 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1422 | ||
1423 | SWIGRUNTIME void | |
1424 | PySwigObject_dealloc(PyObject *v) | |
1425 | { | |
1426 | PySwigObject *sobj = (PySwigObject *) v; | |
1427 | PyObject *next = sobj->next; | |
1428 | if (sobj->own) { | |
1429 | swig_type_info *ty = sobj->ty; | |
1430 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1431 | PyObject *destroy = data ? data->destroy : 0; | |
1432 | if (destroy) { | |
1433 | /* destroy is always a VARARGS method */ | |
1434 | PyObject *res; | |
1435 | if (data->delargs) { | |
1436 | /* we need to create a temporal object to carry the destroy operation */ | |
1437 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1438 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1439 | Py_DECREF(tmp); | |
1440 | } else { | |
1441 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1442 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1443 | res = ((*meth)(mself, v)); | |
1444 | } | |
1445 | Py_XDECREF(res); | |
1446 | } else { | |
1447 | const char *name = SWIG_TypePrettyName(ty); | |
1448 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1449 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1450 | #endif | |
1451 | } | |
1452 | } | |
1453 | Py_XDECREF(next); | |
1454 | PyObject_DEL(v); | |
1455 | } | |
1456 | ||
1457 | SWIGRUNTIME PyObject* | |
1458 | PySwigObject_append(PyObject* v, PyObject* next) | |
1459 | { | |
1460 | PySwigObject *sobj = (PySwigObject *) v; | |
1461 | #ifndef METH_O | |
1462 | PyObject *tmp = 0; | |
1463 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1464 | next = tmp; | |
1465 | #endif | |
1466 | if (!PySwigObject_Check(next)) { | |
1467 | return NULL; | |
1468 | } | |
1469 | sobj->next = next; | |
1470 | Py_INCREF(next); | |
1471 | return SWIG_Py_Void(); | |
1472 | } | |
1473 | ||
1474 | SWIGRUNTIME PyObject* | |
1475 | #ifdef METH_NOARGS | |
1476 | PySwigObject_next(PyObject* v) | |
1477 | #else | |
1478 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1479 | #endif | |
1480 | { | |
1481 | PySwigObject *sobj = (PySwigObject *) v; | |
1482 | if (sobj->next) { | |
1483 | Py_INCREF(sobj->next); | |
1484 | return sobj->next; | |
1485 | } else { | |
1486 | return SWIG_Py_Void(); | |
1487 | } | |
1488 | } | |
1489 | ||
1490 | SWIGINTERN PyObject* | |
1491 | #ifdef METH_NOARGS | |
1492 | PySwigObject_disown(PyObject *v) | |
1493 | #else | |
1494 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1495 | #endif | |
1496 | { | |
1497 | PySwigObject *sobj = (PySwigObject *)v; | |
1498 | sobj->own = 0; | |
1499 | return SWIG_Py_Void(); | |
1500 | } | |
1501 | ||
1502 | SWIGINTERN PyObject* | |
1503 | #ifdef METH_NOARGS | |
1504 | PySwigObject_acquire(PyObject *v) | |
1505 | #else | |
1506 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1507 | #endif | |
1508 | { | |
1509 | PySwigObject *sobj = (PySwigObject *)v; | |
1510 | sobj->own = SWIG_POINTER_OWN; | |
1511 | return SWIG_Py_Void(); | |
1512 | } | |
1513 | ||
1514 | SWIGINTERN PyObject* | |
1515 | PySwigObject_own(PyObject *v, PyObject *args) | |
1516 | { | |
1517 | PyObject *val = 0; | |
1518 | #if (PY_VERSION_HEX < 0x02020000) | |
1519 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1520 | #else | |
1521 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1522 | #endif | |
1523 | { | |
1524 | return NULL; | |
1525 | } | |
1526 | else | |
1527 | { | |
1528 | PySwigObject *sobj = (PySwigObject *)v; | |
1529 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1530 | if (val) { | |
1531 | #ifdef METH_NOARGS | |
1532 | if (PyObject_IsTrue(val)) { | |
1533 | PySwigObject_acquire(v); | |
1534 | } else { | |
1535 | PySwigObject_disown(v); | |
1536 | } | |
1537 | #else | |
1538 | if (PyObject_IsTrue(val)) { | |
1539 | PySwigObject_acquire(v,args); | |
1540 | } else { | |
1541 | PySwigObject_disown(v,args); | |
1542 | } | |
1543 | #endif | |
1544 | } | |
1545 | return obj; | |
1546 | } | |
1547 | } | |
1548 | ||
1549 | #ifdef METH_O | |
1550 | static PyMethodDef | |
1551 | swigobject_methods[] = { | |
1552 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1553 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1554 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1555 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1556 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1557 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1558 | {0, 0, 0, 0} | |
1559 | }; | |
1560 | #else | |
1561 | static PyMethodDef | |
1562 | swigobject_methods[] = { | |
1563 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1564 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1565 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1566 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1567 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1568 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1569 | {0, 0, 0, 0} | |
1570 | }; | |
1571 | #endif | |
1572 | ||
1573 | #if PY_VERSION_HEX < 0x02020000 | |
1574 | SWIGINTERN PyObject * | |
1575 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1576 | { | |
1577 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1578 | } | |
1579 | #endif | |
1580 | ||
1581 | SWIGRUNTIME PyTypeObject* | |
1582 | _PySwigObject_type(void) { | |
1583 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1584 | ||
1585 | static PyNumberMethods PySwigObject_as_number = { | |
1586 | (binaryfunc)0, /*nb_add*/ | |
1587 | (binaryfunc)0, /*nb_subtract*/ | |
1588 | (binaryfunc)0, /*nb_multiply*/ | |
1589 | (binaryfunc)0, /*nb_divide*/ | |
1590 | (binaryfunc)0, /*nb_remainder*/ | |
093d3ff1 RD |
1591 | (binaryfunc)0, /*nb_divmod*/ |
1592 | (ternaryfunc)0,/*nb_power*/ | |
1593 | (unaryfunc)0, /*nb_negative*/ | |
1594 | (unaryfunc)0, /*nb_positive*/ | |
1595 | (unaryfunc)0, /*nb_absolute*/ | |
1596 | (inquiry)0, /*nb_nonzero*/ | |
1597 | 0, /*nb_invert*/ | |
1598 | 0, /*nb_lshift*/ | |
1599 | 0, /*nb_rshift*/ | |
1600 | 0, /*nb_and*/ | |
1601 | 0, /*nb_xor*/ | |
1602 | 0, /*nb_or*/ | |
1603 | (coercion)0, /*nb_coerce*/ | |
1604 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1605 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1606 | (unaryfunc)0, /*nb_float*/ | |
1607 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1608 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 1609 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 1610 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
1611 | #elif PY_VERSION_HEX >= 0x02000000 |
1612 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
093d3ff1 RD |
1613 | #endif |
1614 | }; | |
1615 | ||
0085ce49 | 1616 | static PyTypeObject pyswigobject_type; |
32fe5131 | 1617 | static int type_init = 0; |
093d3ff1 | 1618 | if (!type_init) { |
0085ce49 RD |
1619 | const PyTypeObject tmp |
1620 | = { | |
1621 | PyObject_HEAD_INIT(NULL) | |
1622 | 0, /* ob_size */ | |
1623 | (char *)"PySwigObject", /* tp_name */ | |
1624 | sizeof(PySwigObject), /* tp_basicsize */ | |
1625 | 0, /* tp_itemsize */ | |
1626 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1627 | (printfunc)PySwigObject_print, /* tp_print */ | |
1628 | #if PY_VERSION_HEX < 0x02020000 | |
1629 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1630 | #else | |
1631 | (getattrfunc)0, /* tp_getattr */ | |
093d3ff1 | 1632 | #endif |
0085ce49 RD |
1633 | (setattrfunc)0, /* tp_setattr */ |
1634 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1635 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1636 | &PySwigObject_as_number, /* tp_as_number */ | |
1637 | 0, /* tp_as_sequence */ | |
1638 | 0, /* tp_as_mapping */ | |
1639 | (hashfunc)0, /* tp_hash */ | |
1640 | (ternaryfunc)0, /* tp_call */ | |
1641 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1642 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1643 | 0, /* tp_setattro */ | |
1644 | 0, /* tp_as_buffer */ | |
1645 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1646 | swigobject_doc, /* tp_doc */ | |
1647 | 0, /* tp_traverse */ | |
1648 | 0, /* tp_clear */ | |
1649 | 0, /* tp_richcompare */ | |
1650 | 0, /* tp_weaklistoffset */ | |
093d3ff1 | 1651 | #if PY_VERSION_HEX >= 0x02020000 |
0085ce49 RD |
1652 | 0, /* tp_iter */ |
1653 | 0, /* tp_iternext */ | |
1654 | swigobject_methods, /* tp_methods */ | |
1655 | 0, /* tp_members */ | |
1656 | 0, /* tp_getset */ | |
1657 | 0, /* tp_base */ | |
1658 | 0, /* tp_dict */ | |
1659 | 0, /* tp_descr_get */ | |
1660 | 0, /* tp_descr_set */ | |
1661 | 0, /* tp_dictoffset */ | |
1662 | 0, /* tp_init */ | |
1663 | 0, /* tp_alloc */ | |
1664 | 0, /* tp_new */ | |
1665 | 0, /* tp_free */ | |
1666 | 0, /* tp_is_gc */ | |
1667 | 0, /* tp_bases */ | |
1668 | 0, /* tp_mro */ | |
1669 | 0, /* tp_cache */ | |
1670 | 0, /* tp_subclasses */ | |
1671 | 0, /* tp_weaklist */ | |
15afbcd0 | 1672 | #endif |
093d3ff1 | 1673 | #if PY_VERSION_HEX >= 0x02030000 |
0085ce49 | 1674 | 0, /* tp_del */ |
093d3ff1 RD |
1675 | #endif |
1676 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1677 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1678 | #endif |
0085ce49 | 1679 | }; |
32fe5131 | 1680 | pyswigobject_type = tmp; |
0085ce49 | 1681 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1682 | type_init = 1; |
1683 | } | |
32fe5131 | 1684 | return &pyswigobject_type; |
093d3ff1 RD |
1685 | } |
1686 | ||
1687 | SWIGRUNTIME PyObject * | |
0085ce49 | 1688 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
093d3ff1 | 1689 | { |
0085ce49 RD |
1690 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); |
1691 | if (sobj) { | |
1692 | sobj->ptr = ptr; | |
1693 | sobj->ty = ty; | |
1694 | sobj->own = own; | |
1695 | sobj->next = 0; | |
32fe5131 | 1696 | } |
0085ce49 | 1697 | return (PyObject *)sobj; |
093d3ff1 RD |
1698 | } |
1699 | ||
1700 | /* ----------------------------------------------------------------------------- | |
1701 | * Implements a simple Swig Packed type, and use it instead of string | |
1702 | * ----------------------------------------------------------------------------- */ | |
1703 | ||
1704 | typedef struct { | |
1705 | PyObject_HEAD | |
1706 | void *pack; | |
0085ce49 | 1707 | swig_type_info *ty; |
093d3ff1 RD |
1708 | size_t size; |
1709 | } PySwigPacked; | |
1710 | ||
1711 | SWIGRUNTIME int | |
0085ce49 | 1712 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
093d3ff1 RD |
1713 | { |
1714 | char result[SWIG_BUFFER_SIZE]; | |
1715 | fputs("<Swig Packed ", fp); | |
1716 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1717 | fputs("at ", fp); | |
1718 | fputs(result, fp); | |
1719 | } | |
0085ce49 | 1720 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1721 | fputs(">", fp); |
1722 | return 0; | |
1723 | } | |
1724 | ||
1725 | SWIGRUNTIME PyObject * | |
1726 | PySwigPacked_repr(PySwigPacked *v) | |
1727 | { | |
1728 | char result[SWIG_BUFFER_SIZE]; | |
1729 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
0085ce49 | 1730 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1731 | } else { |
0085ce49 | 1732 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
093d3ff1 RD |
1733 | } |
1734 | } | |
1735 | ||
1736 | SWIGRUNTIME PyObject * | |
1737 | PySwigPacked_str(PySwigPacked *v) | |
1738 | { | |
1739 | char result[SWIG_BUFFER_SIZE]; | |
1740 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
0085ce49 | 1741 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1742 | } else { |
0085ce49 | 1743 | return PyString_FromString(v->ty->name); |
093d3ff1 RD |
1744 | } |
1745 | } | |
1746 | ||
1747 | SWIGRUNTIME int | |
1748 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
1749 | { | |
0085ce49 RD |
1750 | size_t i = v->size; |
1751 | size_t j = w->size; | |
1752 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1753 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
093d3ff1 RD |
1754 | } |
1755 | ||
0085ce49 | 1756 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
093d3ff1 RD |
1757 | |
1758 | SWIGRUNTIME PyTypeObject* | |
32fe5131 | 1759 | PySwigPacked_type(void) { |
0085ce49 RD |
1760 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); |
1761 | return type; | |
1762 | } | |
1763 | ||
1764 | SWIGRUNTIMEINLINE int | |
1765 | PySwigPacked_Check(PyObject *op) { | |
1766 | return ((op)->ob_type == _PySwigPacked_type()) | |
1767 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1768 | } | |
1769 | ||
1770 | SWIGRUNTIME void | |
1771 | PySwigPacked_dealloc(PyObject *v) | |
1772 | { | |
1773 | if (PySwigPacked_Check(v)) { | |
1774 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1775 | free(sobj->pack); | |
1776 | } | |
1777 | PyObject_DEL(v); | |
1778 | } | |
1779 | ||
1780 | SWIGRUNTIME PyTypeObject* | |
1781 | _PySwigPacked_type(void) { | |
1782 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1783 | static PyTypeObject pyswigpacked_type; | |
1784 | static int type_init = 0; | |
1785 | if (!type_init) { | |
1786 | const PyTypeObject tmp | |
1787 | = { | |
1788 | PyObject_HEAD_INIT(NULL) | |
1789 | 0, /* ob_size */ | |
1790 | (char *)"PySwigPacked", /* tp_name */ | |
1791 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1792 | 0, /* tp_itemsize */ | |
1793 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1794 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1795 | (getattrfunc)0, /* tp_getattr */ | |
1796 | (setattrfunc)0, /* tp_setattr */ | |
1797 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1798 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1799 | 0, /* tp_as_number */ | |
1800 | 0, /* tp_as_sequence */ | |
1801 | 0, /* tp_as_mapping */ | |
1802 | (hashfunc)0, /* tp_hash */ | |
1803 | (ternaryfunc)0, /* tp_call */ | |
1804 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1805 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1806 | 0, /* tp_setattro */ | |
1807 | 0, /* tp_as_buffer */ | |
1808 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1809 | swigpacked_doc, /* tp_doc */ | |
1810 | 0, /* tp_traverse */ | |
1811 | 0, /* tp_clear */ | |
1812 | 0, /* tp_richcompare */ | |
1813 | 0, /* tp_weaklistoffset */ | |
1814 | #if PY_VERSION_HEX >= 0x02020000 | |
1815 | 0, /* tp_iter */ | |
1816 | 0, /* tp_iternext */ | |
1817 | 0, /* tp_methods */ | |
1818 | 0, /* tp_members */ | |
1819 | 0, /* tp_getset */ | |
1820 | 0, /* tp_base */ | |
1821 | 0, /* tp_dict */ | |
1822 | 0, /* tp_descr_get */ | |
1823 | 0, /* tp_descr_set */ | |
1824 | 0, /* tp_dictoffset */ | |
1825 | 0, /* tp_init */ | |
1826 | 0, /* tp_alloc */ | |
1827 | 0, /* tp_new */ | |
1828 | 0, /* tp_free */ | |
1829 | 0, /* tp_is_gc */ | |
1830 | 0, /* tp_bases */ | |
1831 | 0, /* tp_mro */ | |
1832 | 0, /* tp_cache */ | |
1833 | 0, /* tp_subclasses */ | |
1834 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1835 | #endif |
1836 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1837 | 0, /* tp_del */ |
093d3ff1 RD |
1838 | #endif |
1839 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1840 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1841 | #endif |
0085ce49 | 1842 | }; |
32fe5131 | 1843 | pyswigpacked_type = tmp; |
0085ce49 | 1844 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1845 | type_init = 1; |
1846 | } | |
32fe5131 | 1847 | return &pyswigpacked_type; |
093d3ff1 RD |
1848 | } |
1849 | ||
1850 | SWIGRUNTIME PyObject * | |
0085ce49 | 1851 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
093d3ff1 | 1852 | { |
0085ce49 RD |
1853 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1854 | if (sobj) { | |
093d3ff1 | 1855 | void *pack = malloc(size); |
32fe5131 RD |
1856 | if (pack) { |
1857 | memcpy(pack, ptr, size); | |
0085ce49 RD |
1858 | sobj->pack = pack; |
1859 | sobj->ty = ty; | |
1860 | sobj->size = size; | |
1861 | } else { | |
1862 | PyObject_DEL((PyObject *) sobj); | |
1863 | sobj = 0; | |
32fe5131 | 1864 | } |
093d3ff1 | 1865 | } |
0085ce49 | 1866 | return (PyObject *) sobj; |
093d3ff1 RD |
1867 | } |
1868 | ||
0085ce49 | 1869 | SWIGRUNTIME swig_type_info * |
093d3ff1 RD |
1870 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
1871 | { | |
0085ce49 RD |
1872 | if (PySwigPacked_Check(obj)) { |
1873 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1874 | if (sobj->size != size) return 0; | |
1875 | memcpy(ptr, sobj->pack, size); | |
1876 | return sobj->ty; | |
1877 | } else { | |
1878 | return 0; | |
1879 | } | |
093d3ff1 RD |
1880 | } |
1881 | ||
093d3ff1 | 1882 | /* ----------------------------------------------------------------------------- |
0085ce49 | 1883 | * pointers/data manipulation |
093d3ff1 RD |
1884 | * ----------------------------------------------------------------------------- */ |
1885 | ||
0085ce49 RD |
1886 | SWIGRUNTIMEINLINE PyObject * |
1887 | _SWIG_This(void) | |
1888 | { | |
1889 | return PyString_FromString("this"); | |
1890 | } | |
093d3ff1 | 1891 | |
0085ce49 RD |
1892 | SWIGRUNTIME PyObject * |
1893 | SWIG_This(void) | |
1894 | { | |
1895 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1896 | return swig_this; | |
1897 | } | |
093d3ff1 | 1898 | |
0085ce49 | 1899 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
093d3ff1 | 1900 | |
0085ce49 RD |
1901 | SWIGRUNTIME PySwigObject * |
1902 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
093d3ff1 | 1903 | { |
0085ce49 RD |
1904 | if (PySwigObject_Check(pyobj)) { |
1905 | return (PySwigObject *) pyobj; | |
1906 | } else { | |
1907 | PyObject *obj = 0; | |
1908 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1909 | if (PyInstance_Check(pyobj)) { | |
1910 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1911 | } else { | |
1912 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1913 | if (dictptr != NULL) { | |
1914 | PyObject *dict = *dictptr; | |
1915 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1916 | } else { | |
1917 | #ifdef PyWeakref_CheckProxy | |
1918 | if (PyWeakref_CheckProxy(pyobj)) { | |
1919 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1920 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1921 | } | |
1922 | #endif | |
1923 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1924 | if (obj) { | |
1925 | Py_DECREF(obj); | |
093d3ff1 | 1926 | } else { |
0085ce49 RD |
1927 | if (PyErr_Occurred()) PyErr_Clear(); |
1928 | return 0; | |
093d3ff1 | 1929 | } |
093d3ff1 | 1930 | } |
0085ce49 RD |
1931 | } |
1932 | #else | |
1933 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1934 | if (obj) { | |
1935 | Py_DECREF(obj); | |
1936 | } else { | |
1937 | if (PyErr_Occurred()) PyErr_Clear(); | |
1938 | return 0; | |
1939 | } | |
1940 | #endif | |
1941 | if (obj && !PySwigObject_Check(obj)) { | |
1942 | /* a PyObject is called 'this', try to get the 'real this' | |
1943 | PySwigObject from it */ | |
1944 | return SWIG_Python_GetSwigThis(obj); | |
1945 | } | |
1946 | return (PySwigObject *)obj; | |
093d3ff1 RD |
1947 | } |
1948 | } | |
1949 | ||
0085ce49 RD |
1950 | /* Acquire a pointer value */ |
1951 | ||
1952 | SWIGRUNTIME int | |
1953 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1954 | if (own) { | |
1955 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1956 | if (sobj) { | |
1957 | int oldown = sobj->own; | |
1958 | sobj->own = own; | |
1959 | return oldown; | |
1960 | } | |
093d3ff1 | 1961 | } |
0085ce49 | 1962 | return 0; |
093d3ff1 RD |
1963 | } |
1964 | ||
0085ce49 RD |
1965 | /* Convert a pointer value */ |
1966 | ||
093d3ff1 | 1967 | SWIGRUNTIME int |
0085ce49 RD |
1968 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
1969 | if (!obj) return SWIG_ERROR; | |
1970 | if (obj == Py_None) { | |
1971 | if (ptr) *ptr = 0; | |
1972 | return SWIG_OK; | |
1973 | } else { | |
1974 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1975 | while (sobj) { | |
1976 | void *vptr = sobj->ptr; | |
1977 | if (ty) { | |
1978 | swig_type_info *to = sobj->ty; | |
1979 | if (to == ty) { | |
1980 | /* no type cast needed */ | |
1981 | if (ptr) *ptr = vptr; | |
1982 | break; | |
1983 | } else { | |
1984 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1985 | if (!tc) { | |
1986 | sobj = (PySwigObject *)sobj->next; | |
1987 | } else { | |
1988 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1989 | break; | |
1990 | } | |
1991 | } | |
093d3ff1 | 1992 | } else { |
0085ce49 RD |
1993 | if (ptr) *ptr = vptr; |
1994 | break; | |
093d3ff1 | 1995 | } |
093d3ff1 | 1996 | } |
0085ce49 RD |
1997 | if (sobj) { |
1998 | if (own) *own = sobj->own; | |
1999 | if (flags & SWIG_POINTER_DISOWN) { | |
2000 | sobj->own = 0; | |
2001 | } | |
2002 | return SWIG_OK; | |
2003 | } else { | |
2004 | int res = SWIG_ERROR; | |
2005 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2006 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2007 | if (data && !data->implicitconv) { | |
2008 | PyObject *klass = data->klass; | |
2009 | if (klass) { | |
2010 | PyObject *impconv; | |
2011 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2012 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2013 | data->implicitconv = 0; | |
2014 | if (PyErr_Occurred()) { | |
2015 | PyErr_Clear(); | |
2016 | impconv = 0; | |
2017 | } | |
2018 | if (impconv) { | |
2019 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2020 | if (iobj) { | |
2021 | void *vptr; | |
2022 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2023 | if (SWIG_IsOK(res)) { | |
2024 | if (ptr) { | |
2025 | *ptr = vptr; | |
2026 | /* transfer the ownership to 'ptr' */ | |
2027 | iobj->own = 0; | |
2028 | res = SWIG_AddCast(res); | |
2029 | res = SWIG_AddNewMask(res); | |
2030 | } else { | |
2031 | res = SWIG_AddCast(res); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | Py_DECREF(impconv); | |
2036 | } | |
2037 | } | |
2038 | } | |
2039 | } | |
2040 | return res; | |
2041 | } | |
093d3ff1 RD |
2042 | } |
2043 | } | |
2044 | ||
0085ce49 RD |
2045 | /* Convert a function ptr value */ |
2046 | ||
093d3ff1 | 2047 | SWIGRUNTIME int |
0085ce49 RD |
2048 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2049 | if (!PyCFunction_Check(obj)) { | |
2050 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
093d3ff1 | 2051 | } else { |
0085ce49 RD |
2052 | void *vptr = 0; |
2053 | ||
2054 | /* here we get the method pointer for callbacks */ | |
d1a49b78 | 2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
0085ce49 RD |
2056 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; |
2057 | if (desc) { | |
2058 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2059 | if (!desc) return SWIG_ERROR; | |
2060 | } | |
2061 | if (ty) { | |
2062 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2063 | if (!tc) return SWIG_ERROR; | |
2064 | *ptr = SWIG_TypeCast(tc,vptr); | |
2065 | } else { | |
2066 | *ptr = vptr; | |
2067 | } | |
2068 | return SWIG_OK; | |
093d3ff1 RD |
2069 | } |
2070 | } | |
2071 | ||
0085ce49 | 2072 | /* Convert a packed value value */ |
093d3ff1 | 2073 | |
093d3ff1 | 2074 | SWIGRUNTIME int |
0085ce49 RD |
2075 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2076 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2077 | if (!to) return SWIG_ERROR; | |
2078 | if (ty) { | |
2079 | if (to != ty) { | |
2080 | /* check type cast? */ | |
2081 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2082 | if (!tc) return SWIG_ERROR; | |
2083 | } | |
093d3ff1 | 2084 | } |
0085ce49 RD |
2085 | return SWIG_OK; |
2086 | } | |
093d3ff1 | 2087 | |
0085ce49 RD |
2088 | /* ----------------------------------------------------------------------------- |
2089 | * Create a new pointer object | |
2090 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 2091 | |
0085ce49 RD |
2092 | /* |
2093 | Create a new instance object, whitout calling __init__, and set the | |
2094 | 'this' attribute. | |
2095 | */ | |
093d3ff1 | 2096 | |
0085ce49 RD |
2097 | SWIGRUNTIME PyObject* |
2098 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2099 | { | |
2100 | #if (PY_VERSION_HEX >= 0x02020000) | |
2101 | PyObject *inst = 0; | |
2102 | PyObject *newraw = data->newraw; | |
2103 | if (newraw) { | |
2104 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2105 | if (inst) { | |
2106 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2107 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2108 | if (dictptr != NULL) { | |
2109 | PyObject *dict = *dictptr; | |
2110 | if (dict == NULL) { | |
2111 | dict = PyDict_New(); | |
2112 | *dictptr = dict; | |
2113 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2114 | } | |
093d3ff1 | 2115 | } |
0085ce49 RD |
2116 | #else |
2117 | PyObject *key = SWIG_This(); | |
2118 | PyObject_SetAttr(inst, key, swig_this); | |
2119 | #endif | |
093d3ff1 | 2120 | } |
0085ce49 RD |
2121 | } else { |
2122 | PyObject *dict = PyDict_New(); | |
2123 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2124 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2125 | Py_DECREF(dict); | |
093d3ff1 | 2126 | } |
0085ce49 RD |
2127 | return inst; |
2128 | #else | |
2129 | #if (PY_VERSION_HEX >= 0x02010000) | |
2130 | PyObject *inst; | |
2131 | PyObject *dict = PyDict_New(); | |
2132 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2133 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2134 | Py_DECREF(dict); | |
2135 | return (PyObject *) inst; | |
2136 | #else | |
2137 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2138 | if (inst == NULL) { | |
2139 | return NULL; | |
093d3ff1 | 2140 | } |
0085ce49 RD |
2141 | inst->in_class = (PyClassObject *)data->newargs; |
2142 | Py_INCREF(inst->in_class); | |
2143 | inst->in_dict = PyDict_New(); | |
2144 | if (inst->in_dict == NULL) { | |
2145 | Py_DECREF(inst); | |
2146 | return NULL; | |
093d3ff1 | 2147 | } |
0085ce49 RD |
2148 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS |
2149 | inst->in_weakreflist = NULL; | |
2150 | #endif | |
2151 | #ifdef Py_TPFLAGS_GC | |
2152 | PyObject_GC_Init(inst); | |
2153 | #endif | |
2154 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2155 | return (PyObject *) inst; | |
2156 | #endif | |
2157 | #endif | |
093d3ff1 RD |
2158 | } |
2159 | ||
0085ce49 RD |
2160 | SWIGRUNTIME void |
2161 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2162 | { | |
2163 | PyObject *dict; | |
2164 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2165 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2166 | if (dictptr != NULL) { | |
2167 | dict = *dictptr; | |
2168 | if (dict == NULL) { | |
2169 | dict = PyDict_New(); | |
2170 | *dictptr = dict; | |
2171 | } | |
2172 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2173 | return; | |
2174 | } | |
093d3ff1 | 2175 | #endif |
0085ce49 RD |
2176 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2177 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2178 | Py_DECREF(dict); | |
2179 | } | |
093d3ff1 | 2180 | |
0085ce49 RD |
2181 | |
2182 | SWIGINTERN PyObject * | |
2183 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2184 | PyObject *obj[2]; | |
2185 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2186 | return NULL; | |
2187 | } else { | |
2188 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2189 | if (sthis) { | |
2190 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
093d3ff1 | 2191 | } else { |
0085ce49 | 2192 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2193 | } |
0085ce49 | 2194 | return SWIG_Py_Void(); |
093d3ff1 | 2195 | } |
0085ce49 RD |
2196 | } |
2197 | ||
2198 | /* Create a new pointer object */ | |
093d3ff1 | 2199 | |
093d3ff1 | 2200 | SWIGRUNTIME PyObject * |
0085ce49 | 2201 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2202 | if (!ptr) { |
0085ce49 RD |
2203 | return SWIG_Py_Void(); |
2204 | } else { | |
2205 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2206 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2207 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2208 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2209 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2210 | if (inst) { | |
2211 | Py_DECREF(robj); | |
2212 | robj = inst; | |
093d3ff1 | 2213 | } |
093d3ff1 | 2214 | } |
0085ce49 | 2215 | return robj; |
093d3ff1 | 2216 | } |
093d3ff1 RD |
2217 | } |
2218 | ||
0085ce49 RD |
2219 | /* Create a new packed object */ |
2220 | ||
2221 | SWIGRUNTIMEINLINE PyObject * | |
093d3ff1 | 2222 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
0085ce49 | 2223 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
093d3ff1 RD |
2224 | } |
2225 | ||
2226 | /* -----------------------------------------------------------------------------* | |
2227 | * Get type list | |
2228 | * -----------------------------------------------------------------------------*/ | |
2229 | ||
2230 | #ifdef SWIG_LINK_RUNTIME | |
2231 | void *SWIG_ReturnGlobalTypeList(void *); | |
2232 | #endif | |
2233 | ||
32fe5131 RD |
2234 | SWIGRUNTIME swig_module_info * |
2235 | SWIG_Python_GetModule(void) { | |
093d3ff1 RD |
2236 | static void *type_pointer = (void *)0; |
2237 | /* first check if module already created */ | |
2238 | if (!type_pointer) { | |
2239 | #ifdef SWIG_LINK_RUNTIME | |
2240 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
2241 | #else | |
2242 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2243 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2244 | if (PyErr_Occurred()) { | |
2245 | PyErr_Clear(); | |
2246 | type_pointer = (void *)0; | |
2247 | } | |
093d3ff1 | 2248 | #endif |
32fe5131 RD |
2249 | } |
2250 | return (swig_module_info *) type_pointer; | |
093d3ff1 RD |
2251 | } |
2252 | ||
32fe5131 RD |
2253 | #if PY_MAJOR_VERSION < 2 |
2254 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
0085ce49 | 2255 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
32fe5131 RD |
2256 | SWIGINTERN int |
2257 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2258 | { | |
2259 | PyObject *dict; | |
2260 | if (!PyModule_Check(m)) { | |
2261 | PyErr_SetString(PyExc_TypeError, | |
2262 | "PyModule_AddObject() needs module as first arg"); | |
0085ce49 | 2263 | return SWIG_ERROR; |
32fe5131 RD |
2264 | } |
2265 | if (!o) { | |
2266 | PyErr_SetString(PyExc_TypeError, | |
2267 | "PyModule_AddObject() needs non-NULL value"); | |
0085ce49 | 2268 | return SWIG_ERROR; |
32fe5131 RD |
2269 | } |
2270 | ||
2271 | dict = PyModule_GetDict(m); | |
2272 | if (dict == NULL) { | |
2273 | /* Internal error -- modules must have a dict! */ | |
2274 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2275 | PyModule_GetName(m)); | |
0085ce49 | 2276 | return SWIG_ERROR; |
32fe5131 RD |
2277 | } |
2278 | if (PyDict_SetItemString(dict, name, o)) | |
0085ce49 | 2279 | return SWIG_ERROR; |
32fe5131 | 2280 | Py_DECREF(o); |
0085ce49 | 2281 | return SWIG_OK; |
093d3ff1 | 2282 | } |
32fe5131 | 2283 | #endif |
093d3ff1 | 2284 | |
0085ce49 RD |
2285 | SWIGRUNTIME void |
2286 | SWIG_Python_DestroyModule(void *vptr) | |
2287 | { | |
2288 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2289 | swig_type_info **types = swig_module->types; | |
2290 | size_t i; | |
2291 | for (i =0; i < swig_module->size; ++i) { | |
2292 | swig_type_info *ty = types[i]; | |
2293 | if (ty->owndata) { | |
2294 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2295 | if (data) PySwigClientData_Del(data); | |
2296 | } | |
2297 | } | |
2298 | Py_DECREF(SWIG_This()); | |
2299 | } | |
2300 | ||
32fe5131 RD |
2301 | SWIGRUNTIME void |
2302 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2303 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2304 | ||
2305 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2306 | swig_empty_runtime_method_table); | |
0085ce49 | 2307 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
32fe5131 RD |
2308 | if (pointer && module) { |
2309 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
0085ce49 RD |
2310 | } else { |
2311 | Py_XDECREF(pointer); | |
32fe5131 RD |
2312 | } |
2313 | } | |
093d3ff1 | 2314 | |
0085ce49 RD |
2315 | /* The python cached type query */ |
2316 | SWIGRUNTIME PyObject * | |
2317 | SWIG_Python_TypeCache() { | |
2318 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2319 | return cache; | |
093d3ff1 | 2320 | } |
093d3ff1 | 2321 | |
0085ce49 RD |
2322 | SWIGRUNTIME swig_type_info * |
2323 | SWIG_Python_TypeQuery(const char *type) | |
2324 | { | |
2325 | PyObject *cache = SWIG_Python_TypeCache(); | |
2326 | PyObject *key = PyString_FromString(type); | |
2327 | PyObject *obj = PyDict_GetItem(cache, key); | |
2328 | swig_type_info *descriptor; | |
2329 | if (obj) { | |
2330 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2331 | } else { | |
2332 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2333 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2334 | if (descriptor) { | |
2335 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2336 | PyDict_SetItem(cache, key, obj); | |
2337 | Py_DECREF(obj); | |
2338 | } | |
2339 | } | |
2340 | Py_DECREF(key); | |
2341 | return descriptor; | |
2342 | } | |
2343 | ||
2344 | /* | |
2345 | For backward compatibility only | |
2346 | */ | |
2347 | #define SWIG_POINTER_EXCEPTION 0 | |
2348 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2349 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2350 | ||
2351 | SWIGRUNTIME int | |
2352 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2353 | { | |
2354 | if (PyErr_Occurred()) { | |
2355 | PyObject *type = 0; | |
2356 | PyObject *value = 0; | |
2357 | PyObject *traceback = 0; | |
2358 | PyErr_Fetch(&type, &value, &traceback); | |
2359 | if (value) { | |
2360 | PyObject *old_str = PyObject_Str(value); | |
2361 | Py_XINCREF(type); | |
2362 | PyErr_Clear(); | |
2363 | if (infront) { | |
2364 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2365 | } else { | |
2366 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2367 | } | |
2368 | Py_DECREF(old_str); | |
2369 | } | |
2370 | return 1; | |
2371 | } else { | |
2372 | return 0; | |
2373 | } | |
2374 | } | |
2375 | ||
2376 | SWIGRUNTIME int | |
2377 | SWIG_Python_ArgFail(int argnum) | |
2378 | { | |
2379 | if (PyErr_Occurred()) { | |
2380 | /* add information about failing argument */ | |
2381 | char mesg[256]; | |
2382 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2383 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2384 | } else { | |
2385 | return 0; | |
2386 | } | |
2387 | } | |
2388 | ||
2389 | SWIGRUNTIMEINLINE const char * | |
2390 | PySwigObject_GetDesc(PyObject *self) | |
2391 | { | |
2392 | PySwigObject *v = (PySwigObject *)self; | |
2393 | swig_type_info *ty = v ? v->ty : 0; | |
2394 | return ty ? ty->str : (char*)""; | |
2395 | } | |
2396 | ||
2397 | SWIGRUNTIME void | |
2398 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2399 | { | |
2400 | if (type) { | |
2401 | #if defined(SWIG_COBJECT_TYPES) | |
2402 | if (obj && PySwigObject_Check(obj)) { | |
2403 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2404 | if (otype) { | |
2405 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2406 | type, otype); | |
2407 | return; | |
2408 | } | |
2409 | } else | |
2410 | #endif | |
2411 | { | |
2412 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2413 | if (otype) { | |
2414 | PyObject *str = PyObject_Str(obj); | |
2415 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2416 | if (cstr) { | |
2417 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2418 | type, otype, cstr); | |
2419 | } else { | |
2420 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2421 | type, otype); | |
2422 | } | |
2423 | Py_XDECREF(str); | |
2424 | return; | |
2425 | } | |
2426 | } | |
2427 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2428 | } else { | |
2429 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2430 | } | |
2431 | } | |
2432 | ||
2433 | ||
2434 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2435 | SWIGRUNTIME void * | |
2436 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2437 | void *result; | |
2438 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2439 | PyErr_Clear(); | |
2440 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2441 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2442 | SWIG_Python_ArgFail(argnum); | |
2443 | } | |
2444 | } | |
2445 | return result; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | #ifdef __cplusplus | |
2450 | #if 0 | |
2451 | { /* cc-mode */ | |
2452 | #endif | |
2453 | } | |
2454 | #endif | |
2455 | ||
2456 | ||
2457 | ||
2458 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2459 | ||
2460 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2461 | ||
2462 | ||
2463 | ||
2464 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2465 | ||
2466 | #define SWIGTYPE_p_bool swig_types[0] | |
2467 | #define SWIGTYPE_p_char swig_types[1] | |
32fe5131 RD |
2468 | #define SWIGTYPE_p_form_ops_t swig_types[2] |
2469 | #define SWIGTYPE_p_int swig_types[3] | |
2470 | #define SWIGTYPE_p_long swig_types[4] | |
2471 | #define SWIGTYPE_p_unsigned_char swig_types[5] | |
2472 | #define SWIGTYPE_p_unsigned_int swig_types[6] | |
2473 | #define SWIGTYPE_p_unsigned_long swig_types[7] | |
2474 | #define SWIGTYPE_p_void swig_types[8] | |
2475 | #define SWIGTYPE_p_wxANIHandler swig_types[9] | |
2476 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[10] | |
2477 | #define SWIGTYPE_p_wxActivateEvent swig_types[11] | |
2478 | #define SWIGTYPE_p_wxArrayInt swig_types[12] | |
2479 | #define SWIGTYPE_p_wxArrayString swig_types[13] | |
2480 | #define SWIGTYPE_p_wxBMPHandler swig_types[14] | |
2481 | #define SWIGTYPE_p_wxBitmap swig_types[15] | |
2482 | #define SWIGTYPE_p_wxBitmapButton swig_types[16] | |
2483 | #define SWIGTYPE_p_wxBookCtrlBase swig_types[17] | |
2484 | #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18] | |
2485 | #define SWIGTYPE_p_wxBoxSizer swig_types[19] | |
2486 | #define SWIGTYPE_p_wxButton swig_types[20] | |
2487 | #define SWIGTYPE_p_wxCURHandler swig_types[21] | |
2488 | #define SWIGTYPE_p_wxCheckBox swig_types[22] | |
2489 | #define SWIGTYPE_p_wxCheckListBox swig_types[23] | |
2490 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[24] | |
2491 | #define SWIGTYPE_p_wxChoice swig_types[25] | |
2492 | #define SWIGTYPE_p_wxChoicebook swig_types[26] | |
2493 | #define SWIGTYPE_p_wxChoicebookEvent swig_types[27] | |
2131d850 RD |
2494 | #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28] |
2495 | #define SWIGTYPE_p_wxCloseEvent swig_types[29] | |
5172800e RD |
2496 | #define SWIGTYPE_p_wxCollapsiblePane swig_types[30] |
2497 | #define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31] | |
2498 | #define SWIGTYPE_p_wxColour swig_types[32] | |
2499 | #define SWIGTYPE_p_wxColourPickerCtrl swig_types[33] | |
2500 | #define SWIGTYPE_p_wxColourPickerEvent swig_types[34] | |
2501 | #define SWIGTYPE_p_wxComboBox swig_types[35] | |
2502 | #define SWIGTYPE_p_wxCommandEvent swig_types[36] | |
2503 | #define SWIGTYPE_p_wxContextHelp swig_types[37] | |
2504 | #define SWIGTYPE_p_wxContextHelpButton swig_types[38] | |
2505 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[39] | |
2506 | #define SWIGTYPE_p_wxControl swig_types[40] | |
2507 | #define SWIGTYPE_p_wxControlWithItems swig_types[41] | |
2508 | #define SWIGTYPE_p_wxCursor swig_types[42] | |
2509 | #define SWIGTYPE_p_wxDC swig_types[43] | |
2510 | #define SWIGTYPE_p_wxDateEvent swig_types[44] | |
2511 | #define SWIGTYPE_p_wxDatePickerCtrl swig_types[45] | |
2512 | #define SWIGTYPE_p_wxDateTime swig_types[46] | |
2513 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47] | |
2514 | #define SWIGTYPE_p_wxDirPickerCtrl swig_types[48] | |
2515 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49] | |
2516 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[50] | |
2517 | #define SWIGTYPE_p_wxDuplexMode swig_types[51] | |
2518 | #define SWIGTYPE_p_wxEraseEvent swig_types[52] | |
2519 | #define SWIGTYPE_p_wxEvent swig_types[53] | |
4976f996 RD |
2520 | #define SWIGTYPE_p_wxEventBlocker swig_types[54] |
2521 | #define SWIGTYPE_p_wxEvtHandler swig_types[55] | |
2522 | #define SWIGTYPE_p_wxFSFile swig_types[56] | |
2523 | #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[57] | |
2524 | #define SWIGTYPE_p_wxFilePickerCtrl swig_types[58] | |
2525 | #define SWIGTYPE_p_wxFileSystem swig_types[59] | |
2526 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[60] | |
2527 | #define SWIGTYPE_p_wxFocusEvent swig_types[61] | |
2528 | #define SWIGTYPE_p_wxFont swig_types[62] | |
2529 | #define SWIGTYPE_p_wxFontPickerCtrl swig_types[63] | |
2530 | #define SWIGTYPE_p_wxFontPickerEvent swig_types[64] | |
2531 | #define SWIGTYPE_p_wxGBSizerItem swig_types[65] | |
2532 | #define SWIGTYPE_p_wxGIFHandler swig_types[66] | |
2533 | #define SWIGTYPE_p_wxGauge swig_types[67] | |
2534 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[68] | |
2535 | #define SWIGTYPE_p_wxGenericDragImage swig_types[69] | |
2536 | #define SWIGTYPE_p_wxGridBagSizer swig_types[70] | |
2537 | #define SWIGTYPE_p_wxGridSizer swig_types[71] | |
2538 | #define SWIGTYPE_p_wxHelpEvent swig_types[72] | |
2539 | #define SWIGTYPE_p_wxHelpProvider swig_types[73] | |
2540 | #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[74] | |
2541 | #define SWIGTYPE_p_wxHyperlinkEvent swig_types[75] | |
2542 | #define SWIGTYPE_p_wxICOHandler swig_types[76] | |
2543 | #define SWIGTYPE_p_wxIcon swig_types[77] | |
2544 | #define SWIGTYPE_p_wxIconizeEvent swig_types[78] | |
2545 | #define SWIGTYPE_p_wxIdleEvent swig_types[79] | |
2546 | #define SWIGTYPE_p_wxImage swig_types[80] | |
2547 | #define SWIGTYPE_p_wxImageHandler swig_types[81] | |
2548 | #define SWIGTYPE_p_wxImageList swig_types[82] | |
2549 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83] | |
2550 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[84] | |
2551 | #define SWIGTYPE_p_wxItemContainer swig_types[85] | |
2552 | #define SWIGTYPE_p_wxJPEGHandler swig_types[86] | |
2553 | #define SWIGTYPE_p_wxKeyEvent swig_types[87] | |
2554 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[88] | |
2555 | #define SWIGTYPE_p_wxListBox swig_types[89] | |
2556 | #define SWIGTYPE_p_wxListEvent swig_types[90] | |
2557 | #define SWIGTYPE_p_wxListItem swig_types[91] | |
2558 | #define SWIGTYPE_p_wxListItemAttr swig_types[92] | |
2559 | #define SWIGTYPE_p_wxListView swig_types[93] | |
2560 | #define SWIGTYPE_p_wxListbook swig_types[94] | |
2561 | #define SWIGTYPE_p_wxListbookEvent swig_types[95] | |
2562 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[96] | |
2563 | #define SWIGTYPE_p_wxMemoryDC swig_types[97] | |
2564 | #define SWIGTYPE_p_wxMenu swig_types[98] | |
2565 | #define SWIGTYPE_p_wxMenuBar swig_types[99] | |
2566 | #define SWIGTYPE_p_wxMenuEvent swig_types[100] | |
2567 | #define SWIGTYPE_p_wxMenuItem swig_types[101] | |
2568 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[102] | |
2569 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[103] | |
2570 | #define SWIGTYPE_p_wxMouseEvent swig_types[104] | |
2571 | #define SWIGTYPE_p_wxMoveEvent swig_types[105] | |
2572 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[106] | |
2573 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[107] | |
2574 | #define SWIGTYPE_p_wxNotebook swig_types[108] | |
2575 | #define SWIGTYPE_p_wxNotebookEvent swig_types[109] | |
2576 | #define SWIGTYPE_p_wxNotifyEvent swig_types[110] | |
2577 | #define SWIGTYPE_p_wxObject swig_types[111] | |
2578 | #define SWIGTYPE_p_wxPCXHandler swig_types[112] | |
2579 | #define SWIGTYPE_p_wxPNGHandler swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPNMHandler swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPaintEvent swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPaperSize swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPickerBase swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPoint swig_types[119] | |
2586 | #define SWIGTYPE_p_wxPyApp swig_types[120] | |
2587 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[121] | |
2588 | #define SWIGTYPE_p_wxPyControl swig_types[122] | |
2589 | #define SWIGTYPE_p_wxPyEvent swig_types[123] | |
2590 | #define SWIGTYPE_p_wxPyImageHandler swig_types[124] | |
2591 | #define SWIGTYPE_p_wxPyListCtrl swig_types[125] | |
2592 | #define SWIGTYPE_p_wxPySizer swig_types[126] | |
2593 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[127] | |
2594 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[128] | |
2595 | #define SWIGTYPE_p_wxPyValidator swig_types[129] | |
2596 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[130] | |
2597 | #define SWIGTYPE_p_wxRadioBox swig_types[131] | |
2598 | #define SWIGTYPE_p_wxRadioButton swig_types[132] | |
2599 | #define SWIGTYPE_p_wxRect swig_types[133] | |
2600 | #define SWIGTYPE_p_wxScrollBar swig_types[134] | |
2601 | #define SWIGTYPE_p_wxScrollEvent swig_types[135] | |
2602 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[136] | |
2603 | #define SWIGTYPE_p_wxSearchCtrl swig_types[137] | |
2604 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[138] | |
2605 | #define SWIGTYPE_p_wxShowEvent swig_types[139] | |
2606 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[140] | |
2607 | #define SWIGTYPE_p_wxSize swig_types[141] | |
2608 | #define SWIGTYPE_p_wxSizeEvent swig_types[142] | |
2609 | #define SWIGTYPE_p_wxSizer swig_types[143] | |
2610 | #define SWIGTYPE_p_wxSizerItem swig_types[144] | |
2611 | #define SWIGTYPE_p_wxSlider swig_types[145] | |
2612 | #define SWIGTYPE_p_wxSpinButton swig_types[146] | |
2613 | #define SWIGTYPE_p_wxSpinCtrl swig_types[147] | |
2614 | #define SWIGTYPE_p_wxSpinEvent swig_types[148] | |
2615 | #define SWIGTYPE_p_wxStaticBitmap swig_types[149] | |
2616 | #define SWIGTYPE_p_wxStaticBox swig_types[150] | |
2617 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[151] | |
2618 | #define SWIGTYPE_p_wxStaticLine swig_types[152] | |
2619 | #define SWIGTYPE_p_wxStaticText swig_types[153] | |
2620 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[154] | |
2621 | #define SWIGTYPE_p_wxString swig_types[155] | |
2622 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[156] | |
2623 | #define SWIGTYPE_p_wxTGAHandler swig_types[157] | |
2624 | #define SWIGTYPE_p_wxTIFFHandler swig_types[158] | |
2625 | #define SWIGTYPE_p_wxTextAttr swig_types[159] | |
2626 | #define SWIGTYPE_p_wxTextCtrl swig_types[160] | |
2627 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[161] | |
2628 | #define SWIGTYPE_p_wxToggleButton swig_types[162] | |
2629 | #define SWIGTYPE_p_wxToolBar swig_types[163] | |
2630 | #define SWIGTYPE_p_wxToolBarBase swig_types[164] | |
2631 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[165] | |
2632 | #define SWIGTYPE_p_wxToolbook swig_types[166] | |
2633 | #define SWIGTYPE_p_wxToolbookEvent swig_types[167] | |
2634 | #define SWIGTYPE_p_wxTreeEvent swig_types[168] | |
2635 | #define SWIGTYPE_p_wxTreeItemId swig_types[169] | |
2636 | #define SWIGTYPE_p_wxTreebook swig_types[170] | |
2637 | #define SWIGTYPE_p_wxTreebookEvent swig_types[171] | |
2638 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[172] | |
2639 | #define SWIGTYPE_p_wxValidator swig_types[173] | |
2640 | #define SWIGTYPE_p_wxVisualAttributes swig_types[174] | |
2641 | #define SWIGTYPE_p_wxWindow swig_types[175] | |
2642 | #define SWIGTYPE_p_wxWindowBase swig_types[176] | |
2643 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[177] | |
2644 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[178] | |
2645 | #define SWIGTYPE_p_wxXPMHandler swig_types[179] | |
2646 | static swig_type_info *swig_types[181]; | |
2647 | static swig_module_info swig_module = {swig_types, 180, 0, 0, 0, 0}; | |
32fe5131 RD |
2648 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2649 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
093d3ff1 RD |
2650 | |
2651 | /* -------- TYPES TABLE (END) -------- */ | |
2652 | ||
0085ce49 RD |
2653 | #if (PY_VERSION_HEX <= 0x02000000) |
2654 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2655 | # error "This python version requires to use swig with the '-classic' option" | |
2656 | # endif | |
2657 | #endif | |
2658 | #if (PY_VERSION_HEX <= 0x02020000) | |
2659 | # error "This python version requires to use swig with the '-nomodern' option" | |
2660 | #endif | |
2661 | #if (PY_VERSION_HEX <= 0x02020000) | |
2662 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2663 | #endif | |
2664 | #ifndef METH_O | |
2665 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2666 | #endif | |
093d3ff1 RD |
2667 | |
2668 | /*----------------------------------------------- | |
2669 | @(target):= _controls_.so | |
2670 | ------------------------------------------------*/ | |
2671 | #define SWIG_init init_controls_ | |
2672 | ||
2673 | #define SWIG_name "_controls_" | |
2674 | ||
0085ce49 RD |
2675 | #define SWIGVERSION 0x010329 |
2676 | ||
2677 | ||
2678 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) | |
2679 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
2680 | ||
2681 | ||
2682 | #include <stdexcept> | |
2683 | ||
2684 | ||
2685 | namespace swig { | |
2686 | class PyObject_ptr { | |
2687 | protected: | |
2688 | PyObject *_obj; | |
2689 | ||
2690 | public: | |
2691 | PyObject_ptr() :_obj(0) | |
2692 | { | |
2693 | } | |
2694 | ||
2695 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2696 | { | |
2697 | Py_XINCREF(_obj); | |
2698 | } | |
2699 | ||
2700 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2701 | { | |
2702 | if (initial_ref) Py_XINCREF(_obj); | |
2703 | } | |
2704 | ||
2705 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2706 | { | |
2707 | Py_XINCREF(item._obj); | |
2708 | Py_XDECREF(_obj); | |
2709 | _obj = item._obj; | |
2710 | return *this; | |
2711 | } | |
2712 | ||
2713 | ~PyObject_ptr() | |
2714 | { | |
2715 | Py_XDECREF(_obj); | |
2716 | } | |
2717 | ||
2718 | operator PyObject *() const | |
2719 | { | |
2720 | return _obj; | |
2721 | } | |
2722 | ||
2723 | PyObject *operator->() const | |
2724 | { | |
2725 | return _obj; | |
2726 | } | |
2727 | }; | |
2728 | } | |
2729 | ||
2730 | ||
2731 | namespace swig { | |
2732 | struct PyObject_var : PyObject_ptr { | |
2733 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2734 | ||
2735 | PyObject_var & operator = (PyObject* obj) | |
2736 | { | |
2737 | Py_XDECREF(_obj); | |
2738 | _obj = obj; | |
2739 | return *this; | |
2740 | } | |
2741 | }; | |
2742 | } | |
2743 | ||
2744 | ||
093d3ff1 RD |
2745 | #include "wx/wxPython/wxPython.h" |
2746 | #include "wx/wxPython/pyclasses.h" | |
2747 | ||
2748 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
2749 | static const wxString wxPyEmptyString(wxEmptyString); | |
2750 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
2751 | ||
2752 | const wxArrayString wxPyEmptyStringArray; | |
2753 | ||
2754 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
2755 | ||
0085ce49 | 2756 | #define SWIG_From_long PyInt_FromLong |
093d3ff1 RD |
2757 | |
2758 | ||
0085ce49 RD |
2759 | SWIGINTERNINLINE PyObject * |
2760 | SWIG_From_int (int value) | |
2761 | { | |
2762 | return SWIG_From_long (value); | |
2763 | } | |
093d3ff1 RD |
2764 | |
2765 | ||
0085ce49 RD |
2766 | #include <limits.h> |
2767 | #ifndef LLONG_MIN | |
2768 | # define LLONG_MIN LONG_LONG_MIN | |
2769 | #endif | |
2770 | #ifndef LLONG_MAX | |
2771 | # define LLONG_MAX LONG_LONG_MAX | |
2772 | #endif | |
2773 | #ifndef ULLONG_MAX | |
2774 | # define ULLONG_MAX ULONG_LONG_MAX | |
2775 | #endif | |
093d3ff1 RD |
2776 | |
2777 | ||
2778 | SWIGINTERN int | |
0085ce49 | 2779 | SWIG_AsVal_long (PyObject* obj, long* val) |
093d3ff1 RD |
2780 | { |
2781 | if (PyNumber_Check(obj)) { | |
2782 | if (val) *val = PyInt_AsLong(obj); | |
0085ce49 | 2783 | return SWIG_OK; |
093d3ff1 | 2784 | } |
0085ce49 | 2785 | return SWIG_TypeError; |
093d3ff1 RD |
2786 | } |
2787 | ||
2788 | ||
093d3ff1 | 2789 | SWIGINTERN int |
0085ce49 RD |
2790 | SWIG_AsVal_int (PyObject * obj, int *val) |
2791 | { | |
093d3ff1 | 2792 | long v; |
0085ce49 RD |
2793 | int res = SWIG_AsVal_long (obj, &v); |
2794 | if (SWIG_IsOK(res)) { | |
2795 | if ((v < INT_MIN || v > INT_MAX)) { | |
2796 | return SWIG_OverflowError; | |
093d3ff1 | 2797 | } else { |
0085ce49 | 2798 | if (val) *val = static_cast< int >(v); |
093d3ff1 | 2799 | } |
0085ce49 RD |
2800 | } |
2801 | return res; | |
994141e6 RD |
2802 | } |
2803 | ||
c32bde28 | 2804 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
15afbcd0 | 2805 | |
093d3ff1 | 2806 | SWIGINTERN int |
0085ce49 | 2807 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
15afbcd0 | 2808 | { |
c32bde28 RD |
2809 | if (obj == Py_True) { |
2810 | if (val) *val = true; | |
0085ce49 RD |
2811 | return SWIG_OK; |
2812 | } else if (obj == Py_False) { | |
c32bde28 | 2813 | if (val) *val = false; |
0085ce49 | 2814 | return SWIG_OK; |
093d3ff1 | 2815 | } else { |
0085ce49 RD |
2816 | long v = 0; |
2817 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2818 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2819 | return res; | |
c32bde28 | 2820 | } |
15afbcd0 RD |
2821 | } |
2822 | ||
b2dc1044 RD |
2823 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); |
2824 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
2825 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
2826 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
2827 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
2828 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
3f7f284d | 2829 | static const wxString wxPyStaticLineNameStr(wxStaticLineNameStr); |
d14a1e28 RD |
2830 | |
2831 | #include <wx/checklst.h> | |
d14a1e28 | 2832 | |
b2dc1044 | 2833 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
0085ce49 | 2834 | SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){ |
e9d6f3a4 RD |
2835 | if (clientData) |
2836 | { | |
d14a1e28 RD |
2837 | wxPyClientData* data = new wxPyClientData(clientData); |
2838 | self->Insert(item, pos, data); | |
e9d6f3a4 RD |
2839 | } |
2840 | else | |
d14a1e28 RD |
2841 | self->Insert(item, pos); |
2842 | } | |
50f151d7 RD |
2843 | |
2844 | SWIGINTERN int | |
2845 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) | |
2846 | { | |
2847 | long v = 0; | |
2848 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
2849 | return SWIG_TypeError; | |
2850 | } | |
2851 | else if (val) | |
2852 | *val = (unsigned long)v; | |
2853 | return SWIG_OK; | |
2854 | } | |
2855 | ||
2856 | ||
2857 | SWIGINTERN int | |
2858 | SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) | |
2859 | { | |
2860 | unsigned long v; | |
2861 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); | |
2862 | if (SWIG_IsOK(res)) { | |
2863 | if ((v > UINT_MAX)) { | |
2864 | return SWIG_OverflowError; | |
2865 | } else { | |
2866 | if (val) *val = static_cast< unsigned int >(v); | |
2867 | } | |
2868 | } | |
2869 | return res; | |
2870 | } | |
2871 | ||
0085ce49 | 2872 | SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){ |
e9d6f3a4 | 2873 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
7e08d4ef RD |
2874 | wxArrayInt lst; |
2875 | self->GetSelections(lst); | |
2876 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
e9d6f3a4 RD |
2877 | for (size_t i=0; i<lst.GetCount(); i++) |
2878 | { | |
7e08d4ef RD |
2879 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); |
2880 | } | |
e9d6f3a4 | 2881 | wxPyEndBlockThreads(blocked); |
7e08d4ef RD |
2882 | return tup; |
2883 | } | |
0085ce49 | 2884 | SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
c3eb6258 RD |
2885 | #ifdef __WXMSW__ |
2886 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2887 | self->GetItem(item)->SetTextColour(c); | |
2888 | #endif | |
2889 | } | |
0085ce49 | 2890 | SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ |
c3eb6258 RD |
2891 | #ifdef __WXMSW__ |
2892 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2893 | self->GetItem(item)->SetBackgroundColour(c); | |
2894 | #endif | |
2895 | } | |
0085ce49 | 2896 | SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ |
c3eb6258 RD |
2897 | #ifdef __WXMSW__ |
2898 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2899 | self->GetItem(item)->SetFont(f); | |
2900 | #endif | |
2901 | } | |
b2dc1044 | 2902 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d7645bfd | 2903 | SWIGINTERN void wxTextCtrl_MacCheckSpelling(wxTextCtrl *self,bool check){} |
0085ce49 | 2904 | SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
d14a1e28 RD |
2905 | self->AppendText(text); |
2906 | } | |
0085ce49 | 2907 | SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ |
d14a1e28 RD |
2908 | return self->GetValue().Mid(from, to - from); |
2909 | } | |
b2dc1044 RD |
2910 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
2911 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
33b885b9 | 2912 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
b2dc1044 RD |
2913 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
2914 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
75219dcb RD |
2915 | |
2916 | SWIGINTERNINLINE PyObject* | |
2917 | SWIG_From_unsigned_SS_long (unsigned long value) | |
2918 | { | |
2919 | return (value > LONG_MAX) ? | |
2920 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
2921 | } | |
2922 | ||
2923 | ||
2924 | SWIGINTERNINLINE PyObject * | |
2925 | SWIG_From_size_t (size_t value) | |
2926 | { | |
2927 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
2928 | } | |
2929 | ||
50f151d7 RD |
2930 | |
2931 | SWIGINTERNINLINE PyObject * | |
2932 | SWIG_From_unsigned_SS_int (unsigned int value) | |
2933 | { | |
2934 | return SWIG_From_unsigned_SS_long (value); | |
2935 | } | |
2936 | ||
d14a1e28 RD |
2937 | |
2938 | #include <wx/slider.h> | |
2939 | ||
d14a1e28 | 2940 | |
b2dc1044 | 2941 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
33b885b9 | 2942 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 2943 | |
15afbcd0 RD |
2944 | #if !wxUSE_TOGGLEBTN |
2945 | // implement dummy items for platforms that don't have this class | |
d14a1e28 RD |
2946 | |
2947 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
2948 | ||
2949 | class wxToggleButton : public wxControl | |
2950 | { | |
2951 | public: | |
2952 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
2953 | const wxPoint&, const wxSize&, long, | |
2954 | const wxValidator&, const wxString&) | |
39f61e25 | 2955 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
2956 | |
2957 | wxToggleButton() | |
39f61e25 | 2958 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
2959 | }; |
2960 | #endif | |
2961 | ||
51b83b37 | 2962 | static const wxString wxPyNotebookNameStr(wxNotebookNameStr); |
994141e6 | 2963 | |
7e08d4ef | 2964 | SWIGINTERNINLINE int |
0085ce49 | 2965 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
7e08d4ef | 2966 | { |
7e08d4ef | 2967 | unsigned long v; |
0085ce49 RD |
2968 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); |
2969 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
2970 | return res; | |
7e08d4ef | 2971 | } |
7e08d4ef | 2972 | |
b2dc1044 | 2973 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
0085ce49 | 2974 | SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
d14a1e28 RD |
2975 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); |
2976 | if (udata) { | |
2977 | Py_INCREF(udata->m_obj); | |
2978 | return udata->m_obj; | |
2979 | } else { | |
2980 | Py_INCREF(Py_None); | |
2981 | return Py_None; | |
2982 | } | |
2983 | } | |
0085ce49 | 2984 | SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ |
d14a1e28 RD |
2985 | self->SetClientData(new wxPyUserData(clientData)); |
2986 | } | |
0085ce49 | 2987 | 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 |
2988 | wxPyUserData* udata = NULL; |
2989 | if (clientData && clientData != Py_None) | |
2990 | udata = new wxPyUserData(clientData); | |
2991 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
2992 | shortHelp, longHelp, udata); | |
2993 | } | |
0085ce49 | 2994 | 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 |
2995 | wxPyUserData* udata = NULL; |
2996 | if (clientData && clientData != Py_None) | |
2997 | udata = new wxPyUserData(clientData); | |
2998 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
2999 | shortHelp, longHelp, udata); | |
3000 | } | |
0085ce49 | 3001 | SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ |
d14a1e28 RD |
3002 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); |
3003 | if (udata) { | |
3004 | Py_INCREF(udata->m_obj); | |
3005 | return udata->m_obj; | |
3006 | } else { | |
3007 | Py_INCREF(Py_None); | |
3008 | return Py_None; | |
3009 | } | |
3010 | } | |
0085ce49 | 3011 | SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ |
d14a1e28 RD |
3012 | self->SetToolClientData(id, new wxPyUserData(clientData)); |
3013 | } | |
3014 | ||
3015 | #include <wx/listctrl.h> | |
3016 | ||
7557b9b5 | 3017 | static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr); |
0085ce49 | 3018 | SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
d14a1e28 RD |
3019 | // Python aware sorting function for wxPyListCtrl |
3020 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
3021 | int retval = 0; | |
3022 | PyObject* func = (PyObject*)funcPtr; | |
5a446332 | 3023 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
3024 | |
3025 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
3026 | PyObject* result = PyEval_CallObject(func, args); | |
3027 | Py_DECREF(args); | |
3028 | if (result) { | |
3029 | retval = PyInt_AsLong(result); | |
3030 | Py_DECREF(result); | |
3031 | } | |
3032 | ||
4f89f6a3 | 3033 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3034 | return retval; |
3035 | } | |
3036 | ||
3037 | // C++ Version of a Python aware class | |
3038 | class wxPyListCtrl : public wxListCtrl { | |
32fe5131 | 3039 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl) |
d14a1e28 RD |
3040 | public: |
3041 | wxPyListCtrl() : wxListCtrl() {} | |
3042 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
3043 | const wxPoint& pos, | |
3044 | const wxSize& size, | |
3045 | long style, | |
3046 | const wxValidator& validator, | |
3047 | const wxString& name) : | |
3048 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
3049 | ||
3050 | bool Create(wxWindow* parent, wxWindowID id, | |
3051 | const wxPoint& pos, | |
3052 | const wxSize& size, | |
3053 | long style, | |
3054 | const wxValidator& validator, | |
3055 | const wxString& name) { | |
3056 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
3057 | } | |
3058 | ||
3059 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
d14a1e28 RD |
3060 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); |
3061 | ||
84f85550 RD |
3062 | // use the virtual version to avoid a confusing assert in the base class |
3063 | DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage); | |
7e08d4ef | 3064 | DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage); |
84f85550 | 3065 | |
d14a1e28 RD |
3066 | PYPRIVATE; |
3067 | }; | |
3068 | ||
3069 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
3070 | ||
3071 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
d14a1e28 | 3072 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); |
84f85550 | 3073 | IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage); |
c25f90f6 | 3074 | IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage); |
7e08d4ef | 3075 | |
d14a1e28 | 3076 | |
0085ce49 | 3077 | SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ |
d14a1e28 RD |
3078 | wxListItem item; |
3079 | item.SetMask( wxLIST_MASK_STATE | | |
3080 | wxLIST_MASK_TEXT | | |
3081 | wxLIST_MASK_IMAGE | | |
3082 | wxLIST_MASK_DATA | | |
3083 | wxLIST_SET_ITEM | | |
3084 | wxLIST_MASK_WIDTH | | |
3085 | wxLIST_MASK_FORMAT | |
3086 | ); | |
3087 | if (self->GetColumn(col, item)) | |
3088 | return new wxListItem(item); | |
3089 | else | |
3090 | return NULL; | |
3091 | } | |
0085ce49 | 3092 | SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){ |
d14a1e28 RD |
3093 | wxListItem* info = new wxListItem; |
3094 | info->m_itemId = itemId; | |
3095 | info->m_col = col; | |
3096 | info->m_mask = 0xFFFF; | |
3097 | self->GetItem(*info); | |
3098 | return info; | |
3099 | } | |
0085ce49 | 3100 | SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ |
d14a1e28 RD |
3101 | wxPoint pos; |
3102 | self->GetItemPosition(item, pos); | |
3103 | return pos; | |
3104 | } | |
0085ce49 | 3105 | SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){ |
d14a1e28 RD |
3106 | wxRect rect; |
3107 | self->GetItemRect(item, rect, code); | |
3108 | return rect; | |
3109 | } | |
0085ce49 | 3110 | SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
d14a1e28 | 3111 | if (!PyCallable_Check(func)) |
ae8162c8 | 3112 | return false; |
d14a1e28 RD |
3113 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
3114 | } | |
0085ce49 | 3115 | SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ |
d14a1e28 RD |
3116 | |
3117 | ||
3118 | ||
3119 | return (wxWindow*)self->m_mainWin; | |
3120 | ||
3121 | } | |
3122 | ||
3123 | #include <wx/treectrl.h> | |
3124 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 3125 | |
33b885b9 | 3126 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
0085ce49 RD |
3127 | SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; } |
3128 | SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; } | |
3129 | SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
b02396e8 RD |
3130 | |
3131 | static wxTreeItemId wxNullTreeItemId; | |
3132 | ||
d14a1e28 RD |
3133 | // C++ version of Python aware wxTreeCtrl |
3134 | class wxPyTreeCtrl : public wxTreeCtrl { | |
32fe5131 | 3135 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl) |
d14a1e28 RD |
3136 | public: |
3137 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
3138 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
3139 | const wxPoint& pos, | |
3140 | const wxSize& size, | |
3141 | long style, | |
3142 | const wxValidator& validator, | |
3143 | const wxString& name) : | |
3144 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
3145 | ||
3146 | bool Create(wxWindow *parent, wxWindowID id, | |
3147 | const wxPoint& pos, | |
3148 | const wxSize& size, | |
3149 | long style, | |
3150 | const wxValidator& validator, | |
3151 | const wxString& name) { | |
3152 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
3153 | } | |
3154 | ||
3155 | ||
3156 | int OnCompareItems(const wxTreeItemId& item1, | |
3157 | const wxTreeItemId& item2) { | |
3158 | int rval = 0; | |
3159 | bool found; | |
5a446332 | 3160 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 3161 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
ae8162c8 RD |
3162 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false); |
3163 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false); | |
d14a1e28 RD |
3164 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
3165 | Py_DECREF(o1); | |
3166 | Py_DECREF(o2); | |
3167 | } | |
4f89f6a3 | 3168 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3169 | if (! found) |
3170 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
3171 | return rval; | |
3172 | } | |
3173 | PYPRIVATE; | |
3174 | }; | |
3175 | ||
3176 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
3177 | ||
3178 | ||
0085ce49 | 3179 | SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d14a1e28 RD |
3180 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3181 | if (data == NULL) { | |
3182 | data = new wxPyTreeItemData(); | |
3183 | data->SetId(item); // set the id | |
3184 | self->SetItemData(item, data); | |
3185 | } | |
3186 | return data; | |
3187 | } | |
0085ce49 | 3188 | SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d14a1e28 RD |
3189 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3190 | if (data == NULL) { | |
3191 | data = new wxPyTreeItemData(); | |
3192 | data->SetId(item); // set the id | |
3193 | self->SetItemData(item, data); | |
3194 | } | |
3195 | return data->GetData(); | |
3196 | } | |
0085ce49 | 3197 | SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ |
d14a1e28 RD |
3198 | data->SetId(item); // set the id |
3199 | self->SetItemData(item, data); | |
3200 | } | |
0085ce49 | 3201 | SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ |
d14a1e28 RD |
3202 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3203 | if (data == NULL) { | |
3204 | data = new wxPyTreeItemData(obj); | |
3205 | data->SetId(item); // set the id | |
3206 | self->SetItemData(item, data); | |
3207 | } else | |
3208 | data->SetData(obj); | |
3209 | } | |
0085ce49 | 3210 | SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ |
5a446332 | 3211 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
3212 | PyObject* rval = PyList_New(0); |
3213 | wxArrayTreeItemIds array; | |
3214 | size_t num, x; | |
3215 | num = self->GetSelections(array); | |
3216 | for (x=0; x < num; x++) { | |
3217 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
ae8162c8 | 3218 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true); |
d14a1e28 | 3219 | PyList_Append(rval, item); |
1a10c483 | 3220 | Py_DECREF(item); |
d14a1e28 | 3221 | } |
4f89f6a3 | 3222 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3223 | return rval; |
3224 | } | |
0085ce49 | 3225 | SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
58203fa6 RD |
3226 | void* cookie = 0; |
3227 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
5a446332 | 3228 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 3229 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 3230 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 3231 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 3232 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3233 | return tup; |
3234 | } | |
0085ce49 | 3235 | SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
58203fa6 | 3236 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); |
5a446332 | 3237 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 3238 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 3239 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 3240 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 3241 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3242 | return tup; |
3243 | } | |
0085ce49 | 3244 | SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){ |
d14a1e28 RD |
3245 | wxRect rect; |
3246 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
5a446332 | 3247 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 3248 | wxRect* r = new wxRect(rect); |
ae8162c8 | 3249 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true); |
4f89f6a3 | 3250 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3251 | return val; |
3252 | } | |
3253 | else | |
3254 | RETURN_NONE(); | |
3255 | } | |
b2dc1044 | 3256 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
c32bde28 | 3257 | |
32fe5131 | 3258 | SWIGINTERNINLINE PyObject* |
0085ce49 | 3259 | SWIG_From_bool (bool value) |
c32bde28 | 3260 | { |
0085ce49 | 3261 | return PyBool_FromLong(value ? 1 : 0); |
c32bde28 RD |
3262 | } |
3263 | ||
d14a1e28 RD |
3264 | // C++ version of Python aware wxControl |
3265 | class wxPyControl : public wxControl | |
3266 | { | |
3267 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
3268 | public: | |
3269 | wxPyControl() : wxControl() {} | |
3270 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
3271 | const wxPoint& pos = wxDefaultPosition, | |
3272 | const wxSize& size = wxDefaultSize, | |
3273 | long style = 0, | |
3274 | const wxValidator& validator=wxDefaultValidator, | |
3275 | const wxString& name = wxPyControlNameStr) | |
3276 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
3277 | ||
3278 | ||
976dbff5 RD |
3279 | bool DoEraseBackground(wxDC* dc) { |
3280 | #ifdef __WXMSW__ | |
3281 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3282 | #else | |
3283 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3284 | dc->Clear(); | |
3285 | return true; | |
3286 | #endif | |
3287 | } | |
3288 | ||
d14a1e28 RD |
3289 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); |
3290 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3291 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3292 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3293 | ||
3294 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3295 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3296 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3297 | ||
3298 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3299 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3300 | ||
3301 | DEC_PYCALLBACK__(InitDialog); | |
3302 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3303 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3304 | DEC_PYCALLBACK_BOOL_(Validate); | |
3305 | ||
3306 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3307 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3308 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3309 | ||
3310 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3311 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3312 | ||
db3e571a | 3313 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
db3e571a | 3314 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 3315 | |
51b83b37 RD |
3316 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3317 | ||
8d38bd1d RD |
3318 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3319 | ||
d14a1e28 RD |
3320 | PYPRIVATE; |
3321 | }; | |
3322 | ||
3323 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
3324 | ||
3325 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
3326 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
3327 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
3328 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
3329 | ||
3330 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
3331 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
3332 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
3333 | ||
3334 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
3335 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
3336 | ||
3337 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
3338 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
3339 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
3340 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
3341 | ||
3342 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
3343 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
3344 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
3345 | ||
3346 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
3347 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
3348 | ||
db3e571a | 3349 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
db3e571a | 3350 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d14a1e28 | 3351 | |
51b83b37 | 3352 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground); |
8d38bd1d RD |
3353 | |
3354 | IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle); | |
3355 | ||
d14a1e28 RD |
3356 | |
3357 | ||
0085ce49 | 3358 | SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } |
e811c8ce RD |
3359 | |
3360 | #include <wx/generic/dragimgg.h> | |
3361 | ||
53aa7709 | 3362 | static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr); |
0085ce49 | 3363 | SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){ |
53aa7709 RD |
3364 | wxDateTime rv; |
3365 | self->GetRange(&rv, NULL); | |
3366 | return rv; | |
3367 | } | |
0085ce49 | 3368 | SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){ |
53aa7709 RD |
3369 | wxDateTime rv; |
3370 | self->GetRange(NULL, &rv); | |
3371 | return rv; | |
3372 | } | |
704eda0c | 3373 | static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr); |
b850e7f3 RD |
3374 | static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr); |
3375 | static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr); | |
3376 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
3377 | static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr); | |
3378 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
3379 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
3380 | static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr); | |
5172800e | 3381 | static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr); |
3f7f284d | 3382 | static const wxString wxPySearchCtrlNameStr(wxSearchCtrlNameStr); |
62358578 RD |
3383 | |
3384 | #if !defined(wxUSE_SEARCHCTRL) || !wxUSE_SEARCHCTRL | |
3385 | // define a dummy class for builds that don't have wxSearchCtrl | |
3386 | ||
3387 | enum { | |
4ed51f4d RD |
3388 | wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN, |
3389 | wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN | |
62358578 RD |
3390 | }; |
3391 | ||
3392 | class wxSearchCtrl : public wxTextCtrl | |
3393 | { | |
3394 | public: | |
3395 | wxSearchCtrl() { wxPyRaiseNotImplemented(); } | |
3396 | wxSearchCtrl(wxWindow*, wxWindowID, | |
3397 | const wxString&, | |
3398 | const wxPoint&, | |
3399 | const wxSize&, | |
3400 | long style, | |
3401 | const wxValidator&, | |
3402 | const wxString& name) | |
3403 | { wxPyRaiseNotImplemented(); } | |
3404 | ||
3405 | bool Create( wxWindow*, wxWindowID, | |
3406 | const wxString&, | |
3407 | const wxPoint&, | |
3408 | const wxSize&, | |
3409 | long style, | |
3410 | const wxValidator&, | |
3411 | const wxString& name) {} | |
3412 | ||
3413 | virtual void SetMenu( wxMenu* ) {} | |
3414 | virtual wxMenu* GetMenu() { return NULL; } | |
3415 | ||
3416 | // get/set search options | |
3417 | // ---------------------- | |
3418 | virtual void ShowSearchButton( bool ) {} | |
3419 | virtual bool IsSearchButtonVisible() const { return false; } | |
3420 | ||
3421 | virtual void ShowCancelButton( bool ) {} | |
3422 | virtual bool IsCancelButtonVisible() const { return false; } | |
6646ca90 RD |
3423 | |
3424 | virtual void SetDescriptiveText(const wxString& text); | |
3425 | virtual wxString GetDescriptiveText() const; | |
62358578 RD |
3426 | }; |
3427 | #endif | |
3428 | ||
d14a1e28 RD |
3429 | #ifdef __cplusplus |
3430 | extern "C" { | |
3431 | #endif | |
0085ce49 RD |
3432 | SWIGINTERN int ButtonNameStr_set(PyObject *) { |
3433 | SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only."); | |
3434 | return 1; | |
b2dc1044 RD |
3435 | } |
3436 | ||
3437 | ||
0085ce49 RD |
3438 | SWIGINTERN PyObject *ButtonNameStr_get(void) { |
3439 | PyObject *pyobj = 0; | |
3440 | ||
3441 | { | |
b2dc1044 | 3442 | #if wxUSE_UNICODE |
0085ce49 | 3443 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); |
b2dc1044 | 3444 | #else |
0085ce49 | 3445 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); |
b2dc1044 | 3446 | #endif |
0085ce49 RD |
3447 | } |
3448 | return pyobj; | |
3449 | } | |
3450 | ||
3451 | ||
3452 | SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3453 | PyObject *resultobj = 0; | |
3454 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3455 | int arg2 = (int) -1 ; | |
3456 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3457 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3458 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3459 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3460 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3461 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3462 | long arg6 = (long) 0 ; | |
3463 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3464 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3465 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
3466 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3467 | wxButton *result = 0 ; | |
3468 | void *argp1 = 0 ; | |
3469 | int res1 = 0 ; | |
3470 | int val2 ; | |
3471 | int ecode2 = 0 ; | |
3472 | bool temp3 = false ; | |
3473 | wxPoint temp4 ; | |
3474 | wxSize temp5 ; | |
3475 | long val6 ; | |
3476 | int ecode6 = 0 ; | |
3477 | void *argp7 = 0 ; | |
3478 | int res7 = 0 ; | |
3479 | bool temp8 = false ; | |
3480 | PyObject * obj0 = 0 ; | |
3481 | PyObject * obj1 = 0 ; | |
3482 | PyObject * obj2 = 0 ; | |
3483 | PyObject * obj3 = 0 ; | |
3484 | PyObject * obj4 = 0 ; | |
3485 | PyObject * obj5 = 0 ; | |
3486 | PyObject * obj6 = 0 ; | |
3487 | PyObject * obj7 = 0 ; | |
3488 | char * kwnames[] = { | |
3489 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3490 | }; | |
3491 | ||
3492 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
3493 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3494 | if (!SWIG_IsOK(res1)) { | |
3495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3496 | } | |
3497 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3498 | if (obj1) { | |
3499 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3500 | if (!SWIG_IsOK(ecode2)) { | |
3501 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'"); | |
3502 | } | |
3503 | arg2 = static_cast< int >(val2); | |
3504 | } | |
3505 | if (obj2) { | |
d14a1e28 | 3506 | { |
0085ce49 RD |
3507 | arg3 = wxString_in_helper(obj2); |
3508 | if (arg3 == NULL) SWIG_fail; | |
3509 | temp3 = true; | |
d14a1e28 | 3510 | } |
0085ce49 RD |
3511 | } |
3512 | if (obj3) { | |
d14a1e28 | 3513 | { |
0085ce49 RD |
3514 | arg4 = &temp4; |
3515 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 3516 | } |
0085ce49 RD |
3517 | } |
3518 | if (obj4) { | |
d14a1e28 | 3519 | { |
0085ce49 RD |
3520 | arg5 = &temp5; |
3521 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 3522 | } |
0085ce49 RD |
3523 | } |
3524 | if (obj5) { | |
3525 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3526 | if (!SWIG_IsOK(ecode6)) { | |
3527 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'"); | |
3528 | } | |
3529 | arg6 = static_cast< long >(val6); | |
3530 | } | |
3531 | if (obj6) { | |
3532 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
3533 | if (!SWIG_IsOK(res7)) { | |
3534 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 3535 | } |
0085ce49 RD |
3536 | if (!argp7) { |
3537 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 3538 | } |
0085ce49 RD |
3539 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
3540 | } | |
3541 | if (obj7) { | |
d14a1e28 | 3542 | { |
0085ce49 RD |
3543 | arg8 = wxString_in_helper(obj7); |
3544 | if (arg8 == NULL) SWIG_fail; | |
3545 | temp8 = true; | |
d14a1e28 | 3546 | } |
0085ce49 RD |
3547 | } |
3548 | { | |
3549 | if (!wxPyCheckForApp()) SWIG_fail; | |
3550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3551 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3552 | wxPyEndAllowThreads(__tstate); | |
3553 | if (PyErr_Occurred()) SWIG_fail; | |
3554 | } | |
3555 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 ); | |
3556 | { | |
3557 | if (temp3) | |
3558 | delete arg3; | |
3559 | } | |
3560 | { | |
3561 | if (temp8) | |
3562 | delete arg8; | |
3563 | } | |
3564 | return resultobj; | |
3565 | fail: | |
3566 | { | |
3567 | if (temp3) | |
3568 | delete arg3; | |
3569 | } | |
3570 | { | |
3571 | if (temp8) | |
3572 | delete arg8; | |
3573 | } | |
3574 | return NULL; | |
d14a1e28 RD |
3575 | } |
3576 | ||
3577 | ||
0085ce49 RD |
3578 | SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3579 | PyObject *resultobj = 0; | |
3580 | wxButton *result = 0 ; | |
3581 | ||
3582 | if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail; | |
3583 | { | |
3584 | if (!wxPyCheckForApp()) SWIG_fail; | |
3585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3586 | result = (wxButton *)new wxButton(); | |
3587 | wxPyEndAllowThreads(__tstate); | |
3588 | if (PyErr_Occurred()) SWIG_fail; | |
3589 | } | |
3590 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 ); | |
3591 | return resultobj; | |
3592 | fail: | |
3593 | return NULL; | |
3594 | } | |
3595 | ||
3596 | ||
3597 | SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3598 | PyObject *resultobj = 0; | |
3599 | wxButton *arg1 = (wxButton *) 0 ; | |
3600 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3601 | int arg3 = (int) -1 ; | |
3602 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3603 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3604 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3605 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3606 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3607 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3608 | long arg7 = (long) 0 ; | |
3609 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3610 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3611 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
3612 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3613 | bool result; | |
3614 | void *argp1 = 0 ; | |
3615 | int res1 = 0 ; | |
3616 | void *argp2 = 0 ; | |
3617 | int res2 = 0 ; | |
3618 | int val3 ; | |
3619 | int ecode3 = 0 ; | |
3620 | bool temp4 = false ; | |
3621 | wxPoint temp5 ; | |
3622 | wxSize temp6 ; | |
3623 | long val7 ; | |
3624 | int ecode7 = 0 ; | |
3625 | void *argp8 = 0 ; | |
3626 | int res8 = 0 ; | |
3627 | bool temp9 = false ; | |
3628 | PyObject * obj0 = 0 ; | |
3629 | PyObject * obj1 = 0 ; | |
3630 | PyObject * obj2 = 0 ; | |
3631 | PyObject * obj3 = 0 ; | |
3632 | PyObject * obj4 = 0 ; | |
3633 | PyObject * obj5 = 0 ; | |
3634 | PyObject * obj6 = 0 ; | |
3635 | PyObject * obj7 = 0 ; | |
3636 | PyObject * obj8 = 0 ; | |
3637 | char * kwnames[] = { | |
3638 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3639 | }; | |
3640 | ||
3641 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
3642 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 ); | |
3643 | if (!SWIG_IsOK(res1)) { | |
3644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'"); | |
3645 | } | |
3646 | arg1 = reinterpret_cast< wxButton * >(argp1); | |
3647 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3648 | if (!SWIG_IsOK(res2)) { | |
3649 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3650 | } | |
3651 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3652 | if (obj2) { | |
3653 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3654 | if (!SWIG_IsOK(ecode3)) { | |
3655 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'"); | |
3656 | } | |
3657 | arg3 = static_cast< int >(val3); | |
3658 | } | |
3659 | if (obj3) { | |
d14a1e28 | 3660 | { |
0085ce49 RD |
3661 | arg4 = wxString_in_helper(obj3); |
3662 | if (arg4 == NULL) SWIG_fail; | |
3663 | temp4 = true; | |
d14a1e28 | 3664 | } |
0085ce49 RD |
3665 | } |
3666 | if (obj4) { | |
4f89f6a3 | 3667 | { |
0085ce49 RD |
3668 | arg5 = &temp5; |
3669 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 3670 | } |
0085ce49 RD |
3671 | } |
3672 | if (obj5) { | |
d14a1e28 | 3673 | { |
0085ce49 RD |
3674 | arg6 = &temp6; |
3675 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 3676 | } |
0085ce49 RD |
3677 | } |
3678 | if (obj6) { | |
3679 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
3680 | if (!SWIG_IsOK(ecode7)) { | |
3681 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'"); | |
3682 | } | |
3683 | arg7 = static_cast< long >(val7); | |
3684 | } | |
3685 | if (obj7) { | |
3686 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
3687 | if (!SWIG_IsOK(res8)) { | |
3688 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 3689 | } |
0085ce49 RD |
3690 | if (!argp8) { |
3691 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 3692 | } |
0085ce49 RD |
3693 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
3694 | } | |
3695 | if (obj8) { | |
d14a1e28 | 3696 | { |
0085ce49 RD |
3697 | arg9 = wxString_in_helper(obj8); |
3698 | if (arg9 == NULL) SWIG_fail; | |
3699 | temp9 = true; | |
d14a1e28 | 3700 | } |
0085ce49 RD |
3701 | } |
3702 | { | |
3703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3704 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3705 | wxPyEndAllowThreads(__tstate); | |
3706 | if (PyErr_Occurred()) SWIG_fail; | |
3707 | } | |
3708 | { | |
3709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3710 | } | |
3711 | { | |
3712 | if (temp4) | |
3713 | delete arg4; | |
3714 | } | |
3715 | { | |
3716 | if (temp9) | |
3717 | delete arg9; | |
3718 | } | |
3719 | return resultobj; | |
3720 | fail: | |
3721 | { | |
3722 | if (temp4) | |
3723 | delete arg4; | |
3724 | } | |
3725 | { | |
3726 | if (temp9) | |
3727 | delete arg9; | |
3728 | } | |
3729 | return NULL; | |
d14a1e28 RD |
3730 | } |
3731 | ||
3732 | ||
0085ce49 RD |
3733 | SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3734 | PyObject *resultobj = 0; | |
3735 | wxButton *arg1 = (wxButton *) 0 ; | |
3736 | void *argp1 = 0 ; | |
3737 | int res1 = 0 ; | |
3738 | PyObject *swig_obj[1] ; | |
3739 | ||
3740 | if (!args) SWIG_fail; | |
3741 | swig_obj[0] = args; | |
3742 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 ); | |
3743 | if (!SWIG_IsOK(res1)) { | |
3744 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'"); | |
3745 | } | |
3746 | arg1 = reinterpret_cast< wxButton * >(argp1); | |
3747 | { | |
3748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3749 | (arg1)->SetDefault(); | |
3750 | wxPyEndAllowThreads(__tstate); | |
3751 | if (PyErr_Occurred()) SWIG_fail; | |
3752 | } | |
3753 | resultobj = SWIG_Py_Void(); | |
3754 | return resultobj; | |
3755 | fail: | |
3756 | return NULL; | |
d14a1e28 RD |
3757 | } |
3758 | ||
3759 | ||
0085ce49 RD |
3760 | SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3761 | PyObject *resultobj = 0; | |
3762 | wxSize result; | |
3763 | ||
3764 | if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail; | |
3765 | { | |
3766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3767 | result = wxButton::GetDefaultSize(); | |
3768 | wxPyEndAllowThreads(__tstate); | |
3769 | if (PyErr_Occurred()) SWIG_fail; | |
3770 | } | |
3771 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
3772 | return resultobj; | |
3773 | fail: | |
3774 | return NULL; | |
3775 | } | |
3776 | ||
3777 | ||
3778 | SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3779 | PyObject *resultobj = 0; | |
3780 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
3781 | SwigValueWrapper<wxVisualAttributes > result; | |
3782 | int val1 ; | |
3783 | int ecode1 = 0 ; | |
3784 | PyObject * obj0 = 0 ; | |
3785 | char * kwnames[] = { | |
3786 | (char *) "variant", NULL | |
3787 | }; | |
3788 | ||
3789 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
3790 | if (obj0) { | |
3791 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
3792 | if (!SWIG_IsOK(ecode1)) { | |
3793 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
3794 | } | |
3795 | arg1 = static_cast< wxWindowVariant >(val1); | |
3796 | } | |
3797 | { | |
3798 | if (!wxPyCheckForApp()) SWIG_fail; | |
3799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3800 | result = wxButton::GetClassDefaultAttributes(arg1); | |
3801 | wxPyEndAllowThreads(__tstate); | |
3802 | if (PyErr_Occurred()) SWIG_fail; | |
3803 | } | |
3804 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
3805 | return resultobj; | |
3806 | fail: | |
3807 | return NULL; | |
3808 | } | |
3809 | ||
3810 | ||
3811 | SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3812 | PyObject *obj; | |
3813 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3814 | SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj)); | |
3815 | return SWIG_Py_Void(); | |
3816 | } | |
3817 | ||
3818 | SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3819 | return SWIG_Python_InitShadowInstance(args); | |
3820 | } | |
3821 | ||
3822 | SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3823 | PyObject *resultobj = 0; | |
3824 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3825 | int arg2 = (int) -1 ; | |
3826 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
3827 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
3828 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3829 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3830 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3831 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3832 | long arg6 = (long) wxBU_AUTODRAW ; | |
3833 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3834 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3835 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
3836 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3837 | wxBitmapButton *result = 0 ; | |
3838 | void *argp1 = 0 ; | |
3839 | int res1 = 0 ; | |
3840 | int val2 ; | |
3841 | int ecode2 = 0 ; | |
3842 | void *argp3 = 0 ; | |
3843 | int res3 = 0 ; | |
3844 | wxPoint temp4 ; | |
3845 | wxSize temp5 ; | |
3846 | long val6 ; | |
3847 | int ecode6 = 0 ; | |
3848 | void *argp7 = 0 ; | |
3849 | int res7 = 0 ; | |
3850 | bool temp8 = false ; | |
3851 | PyObject * obj0 = 0 ; | |
3852 | PyObject * obj1 = 0 ; | |
3853 | PyObject * obj2 = 0 ; | |
3854 | PyObject * obj3 = 0 ; | |
3855 | PyObject * obj4 = 0 ; | |
3856 | PyObject * obj5 = 0 ; | |
3857 | PyObject * obj6 = 0 ; | |
3858 | PyObject * obj7 = 0 ; | |
3859 | char * kwnames[] = { | |
3860 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3861 | }; | |
3862 | ||
3863 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
3864 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3865 | if (!SWIG_IsOK(res1)) { | |
3866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3867 | } | |
3868 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3869 | if (obj1) { | |
3870 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3871 | if (!SWIG_IsOK(ecode2)) { | |
3872 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'"); | |
3873 | } | |
3874 | arg2 = static_cast< int >(val2); | |
3875 | } | |
3876 | if (obj2) { | |
3877 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
3878 | if (!SWIG_IsOK(res3)) { | |
3879 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
3880 | } | |
3881 | if (!argp3) { | |
3882 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
3883 | } | |
3884 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
3885 | } | |
3886 | if (obj3) { | |
d14a1e28 | 3887 | { |
0085ce49 RD |
3888 | arg4 = &temp4; |
3889 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 3890 | } |
0085ce49 RD |
3891 | } |
3892 | if (obj4) { | |
d14a1e28 | 3893 | { |
0085ce49 RD |
3894 | arg5 = &temp5; |
3895 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 3896 | } |
0085ce49 RD |
3897 | } |
3898 | if (obj5) { | |
3899 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3900 | if (!SWIG_IsOK(ecode6)) { | |
3901 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'"); | |
3902 | } | |
3903 | arg6 = static_cast< long >(val6); | |
3904 | } | |
3905 | if (obj6) { | |
3906 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
3907 | if (!SWIG_IsOK(res7)) { | |
3908 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
22bfe96c | 3909 | } |
0085ce49 RD |
3910 | if (!argp7) { |
3911 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
22bfe96c | 3912 | } |
0085ce49 RD |
3913 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
3914 | } | |
3915 | if (obj7) { | |
22bfe96c | 3916 | { |
0085ce49 RD |
3917 | arg8 = wxString_in_helper(obj7); |
3918 | if (arg8 == NULL) SWIG_fail; | |
3919 | temp8 = true; | |
22bfe96c | 3920 | } |
0085ce49 RD |
3921 | } |
3922 | { | |
3923 | if (!wxPyCheckForApp()) SWIG_fail; | |
3924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3925 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3926 | wxPyEndAllowThreads(__tstate); | |
3927 | if (PyErr_Occurred()) SWIG_fail; | |
3928 | } | |
3929 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 ); | |
3930 | { | |
3931 | if (temp8) | |
3932 | delete arg8; | |
3933 | } | |
3934 | return resultobj; | |
3935 | fail: | |
3936 | { | |
3937 | if (temp8) | |
3938 | delete arg8; | |
3939 | } | |
3940 | return NULL; | |
22bfe96c RD |
3941 | } |
3942 | ||
3943 | ||
0085ce49 RD |
3944 | SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3945 | PyObject *resultobj = 0; | |
3946 | wxBitmapButton *result = 0 ; | |
3947 | ||
3948 | if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail; | |
3949 | { | |
3950 | if (!wxPyCheckForApp()) SWIG_fail; | |
3951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3952 | result = (wxBitmapButton *)new wxBitmapButton(); | |
3953 | wxPyEndAllowThreads(__tstate); | |
3954 | if (PyErr_Occurred()) SWIG_fail; | |
3955 | } | |
3956 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 ); | |
3957 | return resultobj; | |
3958 | fail: | |
3959 | return NULL; | |
3960 | } | |
3961 | ||
3962 | ||
3963 | SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3964 | PyObject *resultobj = 0; | |
3965 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3966 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3967 | int arg3 = (int) -1 ; | |
3968 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
3969 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
3970 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3971 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3972 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3973 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3974 | long arg7 = (long) wxBU_AUTODRAW ; | |
3975 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3976 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3977 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
3978 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3979 | bool result; | |
3980 | void *argp1 = 0 ; | |
3981 | int res1 = 0 ; | |
3982 | void *argp2 = 0 ; | |
3983 | int res2 = 0 ; | |
3984 | int val3 ; | |
3985 | int ecode3 = 0 ; | |
3986 | void *argp4 = 0 ; | |
3987 | int res4 = 0 ; | |
3988 | wxPoint temp5 ; | |
3989 | wxSize temp6 ; | |
3990 | long val7 ; | |
3991 | int ecode7 = 0 ; | |
3992 | void *argp8 = 0 ; | |
3993 | int res8 = 0 ; | |
3994 | bool temp9 = false ; | |
3995 | PyObject * obj0 = 0 ; | |
3996 | PyObject * obj1 = 0 ; | |
3997 | PyObject * obj2 = 0 ; | |
3998 | PyObject * obj3 = 0 ; | |
3999 | PyObject * obj4 = 0 ; | |
4000 | PyObject * obj5 = 0 ; | |
4001 | PyObject * obj6 = 0 ; | |
4002 | PyObject * obj7 = 0 ; | |
4003 | PyObject * obj8 = 0 ; | |
4004 | char * kwnames[] = { | |
4005 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4006 | }; | |
4007 | ||
4008 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
4009 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4010 | if (!SWIG_IsOK(res1)) { | |
4011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4012 | } | |
4013 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4014 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4015 | if (!SWIG_IsOK(res2)) { | |
4016 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4017 | } | |
4018 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4019 | if (obj2) { | |
4020 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4021 | if (!SWIG_IsOK(ecode3)) { | |
4022 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
4023 | } | |
4024 | arg3 = static_cast< int >(val3); | |
4025 | } | |
4026 | if (obj3) { | |
4027 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4028 | if (!SWIG_IsOK(res4)) { | |
4029 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d14a1e28 | 4030 | } |
0085ce49 RD |
4031 | if (!argp4) { |
4032 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d14a1e28 | 4033 | } |
0085ce49 RD |
4034 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
4035 | } | |
4036 | if (obj4) { | |
d14a1e28 | 4037 | { |
0085ce49 RD |
4038 | arg5 = &temp5; |
4039 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 4040 | } |
0085ce49 RD |
4041 | } |
4042 | if (obj5) { | |
d14a1e28 | 4043 | { |
0085ce49 RD |
4044 | arg6 = &temp6; |
4045 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4046 | } | |
4047 | } | |
4048 | if (obj6) { | |
4049 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
4050 | if (!SWIG_IsOK(ecode7)) { | |
4051 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
4052 | } | |
4053 | arg7 = static_cast< long >(val7); | |
4054 | } | |
4055 | if (obj7) { | |
4056 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
4057 | if (!SWIG_IsOK(res8)) { | |
4058 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
4059 | } | |
4060 | if (!argp8) { | |
4061 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 4062 | } |
0085ce49 RD |
4063 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
4064 | } | |
4065 | if (obj8) { | |
d14a1e28 | 4066 | { |
0085ce49 RD |
4067 | arg9 = wxString_in_helper(obj8); |
4068 | if (arg9 == NULL) SWIG_fail; | |
4069 | temp9 = true; | |
d14a1e28 | 4070 | } |
0085ce49 RD |
4071 | } |
4072 | { | |
4073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4074 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4075 | wxPyEndAllowThreads(__tstate); | |
4076 | if (PyErr_Occurred()) SWIG_fail; | |
4077 | } | |
4078 | { | |
4079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4080 | } | |
4081 | { | |
4082 | if (temp9) | |
4083 | delete arg9; | |
4084 | } | |
4085 | return resultobj; | |
4086 | fail: | |
4087 | { | |
4088 | if (temp9) | |
4089 | delete arg9; | |
4090 | } | |
4091 | return NULL; | |
d14a1e28 RD |
4092 | } |
4093 | ||
4094 | ||
0085ce49 RD |
4095 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4096 | PyObject *resultobj = 0; | |
4097 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4098 | wxBitmap result; | |
4099 | void *argp1 = 0 ; | |
4100 | int res1 = 0 ; | |
4101 | PyObject *swig_obj[1] ; | |
4102 | ||
4103 | if (!args) SWIG_fail; | |
4104 | swig_obj[0] = args; | |
4105 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4106 | if (!SWIG_IsOK(res1)) { | |
4107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4108 | } | |
4109 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4110 | { | |
4111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4112 | result = (arg1)->GetBitmapLabel(); | |
4113 | wxPyEndAllowThreads(__tstate); | |
4114 | if (PyErr_Occurred()) SWIG_fail; | |
4115 | } | |
4116 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4117 | return resultobj; | |
4118 | fail: | |
4119 | return NULL; | |
d14a1e28 RD |
4120 | } |
4121 | ||
4122 | ||
0085ce49 RD |
4123 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4124 | PyObject *resultobj = 0; | |
4125 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4126 | wxBitmap result; | |
4127 | void *argp1 = 0 ; | |
4128 | int res1 = 0 ; | |
4129 | PyObject *swig_obj[1] ; | |
4130 | ||
4131 | if (!args) SWIG_fail; | |
4132 | swig_obj[0] = args; | |
4133 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4134 | if (!SWIG_IsOK(res1)) { | |
4135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4136 | } | |
4137 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4138 | { | |
4139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4140 | result = (arg1)->GetBitmapDisabled(); | |
4141 | wxPyEndAllowThreads(__tstate); | |
4142 | if (PyErr_Occurred()) SWIG_fail; | |
4143 | } | |
4144 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4145 | return resultobj; | |
4146 | fail: | |
4147 | return NULL; | |
d14a1e28 RD |
4148 | } |
4149 | ||
4150 | ||
0085ce49 RD |
4151 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4152 | PyObject *resultobj = 0; | |
4153 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4154 | wxBitmap result; | |
4155 | void *argp1 = 0 ; | |
4156 | int res1 = 0 ; | |
4157 | PyObject *swig_obj[1] ; | |
4158 | ||
4159 | if (!args) SWIG_fail; | |
4160 | swig_obj[0] = args; | |
4161 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4162 | if (!SWIG_IsOK(res1)) { | |
4163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4164 | } | |
4165 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4166 | { | |
4167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4168 | result = (arg1)->GetBitmapFocus(); | |
4169 | wxPyEndAllowThreads(__tstate); | |
4170 | if (PyErr_Occurred()) SWIG_fail; | |
4171 | } | |
4172 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4173 | return resultobj; | |
4174 | fail: | |
4175 | return NULL; | |
d14a1e28 RD |
4176 | } |
4177 | ||
4178 | ||
0085ce49 RD |
4179 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4180 | PyObject *resultobj = 0; | |
4181 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4182 | wxBitmap result; | |
4183 | void *argp1 = 0 ; | |
4184 | int res1 = 0 ; | |
4185 | PyObject *swig_obj[1] ; | |
4186 | ||
4187 | if (!args) SWIG_fail; | |
4188 | swig_obj[0] = args; | |
4189 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4190 | if (!SWIG_IsOK(res1)) { | |
4191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4192 | } | |
4193 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4194 | { | |
4195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4196 | result = (arg1)->GetBitmapSelected(); | |
4197 | wxPyEndAllowThreads(__tstate); | |
4198 | if (PyErr_Occurred()) SWIG_fail; | |
4199 | } | |
4200 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4201 | return resultobj; | |
4202 | fail: | |
4203 | return NULL; | |
d14a1e28 RD |
4204 | } |
4205 | ||
4206 | ||
0085ce49 RD |
4207 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4208 | PyObject *resultobj = 0; | |
4209 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4210 | wxBitmap result; | |
4211 | void *argp1 = 0 ; | |
4212 | int res1 = 0 ; | |
4213 | PyObject *swig_obj[1] ; | |
4214 | ||
4215 | if (!args) SWIG_fail; | |
4216 | swig_obj[0] = args; | |
4217 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4218 | if (!SWIG_IsOK(res1)) { | |
4219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4220 | } | |
4221 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4222 | { | |
4223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4224 | result = (arg1)->GetBitmapHover(); | |
4225 | wxPyEndAllowThreads(__tstate); | |
4226 | if (PyErr_Occurred()) SWIG_fail; | |
4227 | } | |
4228 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4229 | return resultobj; | |
4230 | fail: | |
4231 | return NULL; | |
4232 | } | |
4233 | ||
4234 | ||
4235 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4236 | PyObject *resultobj = 0; | |
4237 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4238 | wxBitmap *arg2 = 0 ; | |
4239 | void *argp1 = 0 ; | |
4240 | int res1 = 0 ; | |
4241 | void *argp2 = 0 ; | |
4242 | int res2 = 0 ; | |
4243 | PyObject * obj0 = 0 ; | |
4244 | PyObject * obj1 = 0 ; | |
4245 | char * kwnames[] = { | |
4246 | (char *) "self",(char *) "bitmap", NULL | |
4247 | }; | |
4248 | ||
4249 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
4250 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4251 | if (!SWIG_IsOK(res1)) { | |
4252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4253 | } | |
4254 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4255 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4256 | if (!SWIG_IsOK(res2)) { | |
4257 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4258 | } | |
4259 | if (!argp2) { | |
4260 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4261 | } | |
4262 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4263 | { | |
4264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4265 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
4266 | wxPyEndAllowThreads(__tstate); | |
4267 | if (PyErr_Occurred()) SWIG_fail; | |
4268 | } | |
4269 | resultobj = SWIG_Py_Void(); | |
4270 | return resultobj; | |
4271 | fail: | |
4272 | return NULL; | |
4273 | } | |
4274 | ||
4275 | ||
4276 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4277 | PyObject *resultobj = 0; | |
4278 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4279 | wxBitmap *arg2 = 0 ; | |
4280 | void *argp1 = 0 ; | |
4281 | int res1 = 0 ; | |
4282 | void *argp2 = 0 ; | |
4283 | int res2 = 0 ; | |
4284 | PyObject * obj0 = 0 ; | |
4285 | PyObject * obj1 = 0 ; | |
4286 | char * kwnames[] = { | |
4287 | (char *) "self",(char *) "bitmap", NULL | |
4288 | }; | |
4289 | ||
4290 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail; | |
4291 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4292 | if (!SWIG_IsOK(res1)) { | |
4293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4294 | } | |
4295 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4296 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4297 | if (!SWIG_IsOK(res2)) { | |
4298 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4299 | } | |
4300 | if (!argp2) { | |
4301 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4302 | } | |
4303 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4304 | { | |
4305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4306 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
4307 | wxPyEndAllowThreads(__tstate); | |
4308 | if (PyErr_Occurred()) SWIG_fail; | |
4309 | } | |
4310 | resultobj = SWIG_Py_Void(); | |
4311 | return resultobj; | |
4312 | fail: | |
4313 | return NULL; | |
4314 | } | |
4315 | ||
4316 | ||
4317 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4318 | PyObject *resultobj = 0; | |
4319 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4320 | wxBitmap *arg2 = 0 ; | |
4321 | void *argp1 = 0 ; | |
4322 | int res1 = 0 ; | |
4323 | void *argp2 = 0 ; | |
4324 | int res2 = 0 ; | |
4325 | PyObject * obj0 = 0 ; | |
4326 | PyObject * obj1 = 0 ; | |
4327 | char * kwnames[] = { | |
4328 | (char *) "self",(char *) "bitmap", NULL | |
4329 | }; | |
4330 | ||
4331 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
4332 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4333 | if (!SWIG_IsOK(res1)) { | |
4334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4335 | } | |
4336 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4337 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4338 | if (!SWIG_IsOK(res2)) { | |
4339 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4340 | } | |
4341 | if (!argp2) { | |
4342 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4343 | } | |
4344 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4345 | { | |
4346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4347 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
4348 | wxPyEndAllowThreads(__tstate); | |
4349 | if (PyErr_Occurred()) SWIG_fail; | |
4350 | } | |
4351 | resultobj = SWIG_Py_Void(); | |
4352 | return resultobj; | |
4353 | fail: | |
4354 | return NULL; | |
4355 | } | |
4356 | ||
4357 | ||
4358 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4359 | PyObject *resultobj = 0; | |
4360 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4361 | wxBitmap *arg2 = 0 ; | |
4362 | void *argp1 = 0 ; | |
4363 | int res1 = 0 ; | |
4364 | void *argp2 = 0 ; | |
4365 | int res2 = 0 ; | |
4366 | PyObject * obj0 = 0 ; | |
4367 | PyObject * obj1 = 0 ; | |
4368 | char * kwnames[] = { | |
4369 | (char *) "self",(char *) "bitmap", NULL | |
4370 | }; | |
4371 | ||
4372 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
4373 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4374 | if (!SWIG_IsOK(res1)) { | |
4375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4376 | } | |
4377 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4378 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4379 | if (!SWIG_IsOK(res2)) { | |
4380 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4381 | } | |
4382 | if (!argp2) { | |
4383 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4384 | } | |
4385 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4386 | { | |
4387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4388 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
4389 | wxPyEndAllowThreads(__tstate); | |
4390 | if (PyErr_Occurred()) SWIG_fail; | |
4391 | } | |
4392 | resultobj = SWIG_Py_Void(); | |
4393 | return resultobj; | |
4394 | fail: | |
4395 | return NULL; | |
4396 | } | |
4397 | ||
4398 | ||
4399 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4400 | PyObject *resultobj = 0; | |
4401 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4402 | wxBitmap *arg2 = 0 ; | |
4403 | void *argp1 = 0 ; | |
4404 | int res1 = 0 ; | |
4405 | void *argp2 = 0 ; | |
4406 | int res2 = 0 ; | |
4407 | PyObject * obj0 = 0 ; | |
4408 | PyObject * obj1 = 0 ; | |
4409 | char * kwnames[] = { | |
4410 | (char *) "self",(char *) "hover", NULL | |
4411 | }; | |
4412 | ||
4413 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail; | |
4414 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4415 | if (!SWIG_IsOK(res1)) { | |
4416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4417 | } | |
4418 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4419 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4420 | if (!SWIG_IsOK(res2)) { | |
4421 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4422 | } | |
4423 | if (!argp2) { | |
4424 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4425 | } | |
4426 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4427 | { | |
4428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4429 | (arg1)->SetBitmapHover((wxBitmap const &)*arg2); | |
4430 | wxPyEndAllowThreads(__tstate); | |
4431 | if (PyErr_Occurred()) SWIG_fail; | |
4432 | } | |
4433 | resultobj = SWIG_Py_Void(); | |
4434 | return resultobj; | |
4435 | fail: | |
4436 | return NULL; | |
4437 | } | |
4438 | ||
4439 | ||
4440 | SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4441 | PyObject *resultobj = 0; | |
4442 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4443 | int arg2 ; | |
4444 | int arg3 ; | |
4445 | void *argp1 = 0 ; | |
4446 | int res1 = 0 ; | |
4447 | int val2 ; | |
4448 | int ecode2 = 0 ; | |
4449 | int val3 ; | |
4450 | int ecode3 = 0 ; | |
4451 | PyObject * obj0 = 0 ; | |
4452 | PyObject * obj1 = 0 ; | |
4453 | PyObject * obj2 = 0 ; | |
4454 | char * kwnames[] = { | |
4455 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4456 | }; | |
4457 | ||
4458 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4459 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4460 | if (!SWIG_IsOK(res1)) { | |
4461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4462 | } | |
4463 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4464 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4465 | if (!SWIG_IsOK(ecode2)) { | |
4466 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'"); | |
4467 | } | |
4468 | arg2 = static_cast< int >(val2); | |
4469 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4470 | if (!SWIG_IsOK(ecode3)) { | |
4471 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'"); | |
4472 | } | |
4473 | arg3 = static_cast< int >(val3); | |
4474 | { | |
4475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4476 | (arg1)->SetMargins(arg2,arg3); | |
4477 | wxPyEndAllowThreads(__tstate); | |
4478 | if (PyErr_Occurred()) SWIG_fail; | |
4479 | } | |
4480 | resultobj = SWIG_Py_Void(); | |
4481 | return resultobj; | |
4482 | fail: | |
4483 | return NULL; | |
d14a1e28 RD |
4484 | } |
4485 | ||
4486 | ||
0085ce49 RD |
4487 | SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4488 | PyObject *resultobj = 0; | |
4489 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4490 | int result; | |
4491 | void *argp1 = 0 ; | |
4492 | int res1 = 0 ; | |
4493 | PyObject *swig_obj[1] ; | |
4494 | ||
4495 | if (!args) SWIG_fail; | |
4496 | swig_obj[0] = args; | |
4497 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4498 | if (!SWIG_IsOK(res1)) { | |
4499 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'"); | |
4500 | } | |
4501 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4502 | { | |
4503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4504 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
4505 | wxPyEndAllowThreads(__tstate); | |
4506 | if (PyErr_Occurred()) SWIG_fail; | |
4507 | } | |
4508 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4509 | return resultobj; | |
4510 | fail: | |
4511 | return NULL; | |
d14a1e28 RD |
4512 | } |
4513 | ||
4514 | ||
0085ce49 RD |
4515 | SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4516 | PyObject *resultobj = 0; | |
4517 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4518 | int result; | |
4519 | void *argp1 = 0 ; | |
4520 | int res1 = 0 ; | |
4521 | PyObject *swig_obj[1] ; | |
4522 | ||
4523 | if (!args) SWIG_fail; | |
4524 | swig_obj[0] = args; | |
4525 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4526 | if (!SWIG_IsOK(res1)) { | |
4527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'"); | |
4528 | } | |
4529 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4530 | { | |
4531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4532 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
4533 | wxPyEndAllowThreads(__tstate); | |
4534 | if (PyErr_Occurred()) SWIG_fail; | |
4535 | } | |
4536 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4537 | return resultobj; | |
4538 | fail: | |
4539 | return NULL; | |
b1fcee84 RD |
4540 | } |
4541 | ||
4542 | ||
0085ce49 RD |
4543 | SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4544 | PyObject *obj; | |
4545 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4546 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj)); | |
4547 | return SWIG_Py_Void(); | |
d14a1e28 RD |
4548 | } |
4549 | ||
0085ce49 RD |
4550 | SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4551 | return SWIG_Python_InitShadowInstance(args); | |
4552 | } | |
d14a1e28 | 4553 | |
0085ce49 RD |
4554 | SWIGINTERN int CheckBoxNameStr_set(PyObject *) { |
4555 | SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only."); | |
4556 | return 1; | |
d14a1e28 RD |
4557 | } |
4558 | ||
4559 | ||
0085ce49 RD |
4560 | SWIGINTERN PyObject *CheckBoxNameStr_get(void) { |
4561 | PyObject *pyobj = 0; | |
4562 | ||
4563 | { | |
4564 | #if wxUSE_UNICODE | |
4565 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
4566 | #else | |
4567 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
4568 | #endif | |
4569 | } | |
4570 | return pyobj; | |
4571 | } | |
4572 | ||
4573 | ||
4574 | SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4575 | PyObject *resultobj = 0; | |
4576 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4577 | int arg2 = (int) -1 ; | |
4578 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4579 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4580 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4581 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4582 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4583 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4584 | long arg6 = (long) 0 ; | |
4585 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
4586 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
4587 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
4588 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4589 | wxCheckBox *result = 0 ; | |
4590 | void *argp1 = 0 ; | |
4591 | int res1 = 0 ; | |
4592 | int val2 ; | |
4593 | int ecode2 = 0 ; | |
4594 | bool temp3 = false ; | |
4595 | wxPoint temp4 ; | |
4596 | wxSize temp5 ; | |
4597 | long val6 ; | |
4598 | int ecode6 = 0 ; | |
4599 | void *argp7 = 0 ; | |
4600 | int res7 = 0 ; | |
4601 | bool temp8 = false ; | |
4602 | PyObject * obj0 = 0 ; | |
4603 | PyObject * obj1 = 0 ; | |
4604 | PyObject * obj2 = 0 ; | |
4605 | PyObject * obj3 = 0 ; | |
4606 | PyObject * obj4 = 0 ; | |
4607 | PyObject * obj5 = 0 ; | |
4608 | PyObject * obj6 = 0 ; | |
4609 | PyObject * obj7 = 0 ; | |
4610 | char * kwnames[] = { | |
4611 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4612 | }; | |
4613 | ||
4614 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
4615 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4616 | if (!SWIG_IsOK(res1)) { | |
4617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
4618 | } | |
4619 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
4620 | if (obj1) { | |
4621 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4622 | if (!SWIG_IsOK(ecode2)) { | |
4623 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'"); | |
4624 | } | |
4625 | arg2 = static_cast< int >(val2); | |
4626 | } | |
4627 | if (obj2) { | |
d14a1e28 | 4628 | { |
0085ce49 RD |
4629 | arg3 = wxString_in_helper(obj2); |
4630 | if (arg3 == NULL) SWIG_fail; | |
4631 | temp3 = true; | |
d14a1e28 | 4632 | } |
0085ce49 RD |
4633 | } |
4634 | if (obj3) { | |
4635 | { | |
4636 | arg4 = &temp4; | |
4637 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 4638 | } |
0085ce49 RD |
4639 | } |
4640 | if (obj4) { | |
d14a1e28 | 4641 | { |
0085ce49 RD |
4642 | arg5 = &temp5; |
4643 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 4644 | } |
0085ce49 RD |
4645 | } |
4646 | if (obj5) { | |
4647 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
4648 | if (!SWIG_IsOK(ecode6)) { | |
4649 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'"); | |
4650 | } | |
4651 | arg6 = static_cast< long >(val6); | |
4652 | } | |
4653 | if (obj6) { | |
4654 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
4655 | if (!SWIG_IsOK(res7)) { | |
4656 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
b1fcee84 | 4657 | } |
0085ce49 RD |
4658 | if (!argp7) { |
4659 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
4660 | } | |
4661 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
4662 | } | |
4663 | if (obj7) { | |
b1fcee84 | 4664 | { |
0085ce49 RD |
4665 | arg8 = wxString_in_helper(obj7); |
4666 | if (arg8 == NULL) SWIG_fail; | |
4667 | temp8 = true; | |
b1fcee84 | 4668 | } |
0085ce49 RD |
4669 | } |
4670 | { | |
4671 | if (!wxPyCheckForApp()) SWIG_fail; | |
4672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4673 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
4674 | wxPyEndAllowThreads(__tstate); | |
4675 | if (PyErr_Occurred()) SWIG_fail; | |
4676 | } | |
4677 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 ); | |
4678 | { | |
4679 | if (temp3) | |
4680 | delete arg3; | |
4681 | } | |
4682 | { | |
4683 | if (temp8) | |
4684 | delete arg8; | |
4685 | } | |
4686 | return resultobj; | |
4687 | fail: | |
4688 | { | |
4689 | if (temp3) | |
4690 | delete arg3; | |
4691 | } | |
4692 | { | |
4693 | if (temp8) | |
4694 | delete arg8; | |
4695 | } | |
4696 | return NULL; | |
b1fcee84 RD |
4697 | } |
4698 | ||
4699 | ||
0085ce49 RD |
4700 | SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4701 | PyObject *resultobj = 0; | |
4702 | wxCheckBox *result = 0 ; | |
4703 | ||
4704 | if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail; | |
4705 | { | |
4706 | if (!wxPyCheckForApp()) SWIG_fail; | |
4707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4708 | result = (wxCheckBox *)new wxCheckBox(); | |
4709 | wxPyEndAllowThreads(__tstate); | |
4710 | if (PyErr_Occurred()) SWIG_fail; | |
4711 | } | |
4712 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 ); | |
4713 | return resultobj; | |
4714 | fail: | |
4715 | return NULL; | |
4716 | } | |
4717 | ||
4718 | ||
4719 | SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4720 | PyObject *resultobj = 0; | |
4721 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4722 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4723 | int arg3 = (int) -1 ; | |
4724 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4725 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4726 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4727 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4728 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4729 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4730 | long arg7 = (long) 0 ; | |
4731 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4732 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4733 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
4734 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4735 | bool result; | |
4736 | void *argp1 = 0 ; | |
4737 | int res1 = 0 ; | |
4738 | void *argp2 = 0 ; | |
4739 | int res2 = 0 ; | |
4740 | int val3 ; | |
4741 | int ecode3 = 0 ; | |
4742 | bool temp4 = false ; | |
4743 | wxPoint temp5 ; | |
4744 | wxSize temp6 ; | |
4745 | long val7 ; | |
4746 | int ecode7 = 0 ; | |
4747 | void *argp8 = 0 ; | |
4748 | int res8 = 0 ; | |
4749 | bool temp9 = false ; | |
4750 | PyObject * obj0 = 0 ; | |
4751 | PyObject * obj1 = 0 ; | |
4752 | PyObject * obj2 = 0 ; | |
4753 | PyObject * obj3 = 0 ; | |
4754 | PyObject * obj4 = 0 ; | |
4755 | PyObject * obj5 = 0 ; | |
4756 | PyObject * obj6 = 0 ; | |
4757 | PyObject * obj7 = 0 ; | |
4758 | PyObject * obj8 = 0 ; | |
4759 | char * kwnames[] = { | |
4760 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4761 | }; | |
4762 | ||
4763 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
4764 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4765 | if (!SWIG_IsOK(res1)) { | |
4766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4767 | } | |
4768 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4769 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4770 | if (!SWIG_IsOK(res2)) { | |
4771 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4772 | } | |
4773 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4774 | if (obj2) { | |
4775 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4776 | if (!SWIG_IsOK(ecode3)) { | |
4777 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
4778 | } | |
4779 | arg3 = static_cast< int >(val3); | |
4780 | } | |
4781 | if (obj3) { | |
093d3ff1 | 4782 | { |
0085ce49 RD |
4783 | arg4 = wxString_in_helper(obj3); |
4784 | if (arg4 == NULL) SWIG_fail; | |
4785 | temp4 = true; | |
093d3ff1 | 4786 | } |
0085ce49 RD |
4787 | } |
4788 | if (obj4) { | |
093d3ff1 | 4789 | { |
0085ce49 RD |
4790 | arg5 = &temp5; |
4791 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 4792 | } |
0085ce49 RD |
4793 | } |
4794 | if (obj5) { | |
d14a1e28 | 4795 | { |
0085ce49 RD |
4796 | arg6 = &temp6; |
4797 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 4798 | } |
0085ce49 RD |
4799 | } |
4800 | if (obj6) { | |
4801 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
4802 | if (!SWIG_IsOK(ecode7)) { | |
4803 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
4804 | } | |
4805 | arg7 = static_cast< long >(val7); | |
4806 | } | |
4807 | if (obj7) { | |
4808 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
4809 | if (!SWIG_IsOK(res8)) { | |
4810 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 4811 | } |
0085ce49 RD |
4812 | if (!argp8) { |
4813 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
4814 | } | |
4815 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
4816 | } | |
4817 | if (obj8) { | |
093d3ff1 | 4818 | { |
0085ce49 RD |
4819 | arg9 = wxString_in_helper(obj8); |
4820 | if (arg9 == NULL) SWIG_fail; | |
4821 | temp9 = true; | |
093d3ff1 | 4822 | } |
0085ce49 RD |
4823 | } |
4824 | { | |
4825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4826 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4827 | wxPyEndAllowThreads(__tstate); | |
4828 | if (PyErr_Occurred()) SWIG_fail; | |
4829 | } | |
4830 | { | |
4831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4832 | } | |
4833 | { | |
4834 | if (temp4) | |
4835 | delete arg4; | |
4836 | } | |
4837 | { | |
4838 | if (temp9) | |
4839 | delete arg9; | |
4840 | } | |
4841 | return resultobj; | |
4842 | fail: | |
4843 | { | |
4844 | if (temp4) | |
4845 | delete arg4; | |
4846 | } | |
4847 | { | |
4848 | if (temp9) | |
4849 | delete arg9; | |
4850 | } | |
4851 | return NULL; | |
d14a1e28 RD |
4852 | } |
4853 | ||
4854 | ||
0085ce49 RD |
4855 | SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4856 | PyObject *resultobj = 0; | |
4857 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4858 | bool result; | |
4859 | void *argp1 = 0 ; | |
4860 | int res1 = 0 ; | |
4861 | PyObject *swig_obj[1] ; | |
4862 | ||
4863 | if (!args) SWIG_fail; | |
4864 | swig_obj[0] = args; | |
4865 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4866 | if (!SWIG_IsOK(res1)) { | |
4867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4868 | } | |
4869 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4870 | { | |
4871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4872 | result = (bool)(arg1)->GetValue(); | |
4873 | wxPyEndAllowThreads(__tstate); | |
4874 | if (PyErr_Occurred()) SWIG_fail; | |
4875 | } | |
4876 | { | |
4877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4878 | } | |
4879 | return resultobj; | |
4880 | fail: | |
4881 | return NULL; | |
d14a1e28 RD |
4882 | } |
4883 | ||
4884 | ||
0085ce49 RD |
4885 | SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4886 | PyObject *resultobj = 0; | |
4887 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4888 | bool result; | |
4889 | void *argp1 = 0 ; | |
4890 | int res1 = 0 ; | |
4891 | PyObject *swig_obj[1] ; | |
4892 | ||
4893 | if (!args) SWIG_fail; | |
4894 | swig_obj[0] = args; | |
4895 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4896 | if (!SWIG_IsOK(res1)) { | |
4897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4898 | } | |
4899 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4900 | { | |
4901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4902 | result = (bool)(arg1)->IsChecked(); | |
4903 | wxPyEndAllowThreads(__tstate); | |
4904 | if (PyErr_Occurred()) SWIG_fail; | |
4905 | } | |
4906 | { | |
4907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4908 | } | |
4909 | return resultobj; | |
4910 | fail: | |
4911 | return NULL; | |
4912 | } | |
4913 | ||
4914 | ||
4915 | SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4916 | PyObject *resultobj = 0; | |
4917 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4918 | bool arg2 ; | |
4919 | void *argp1 = 0 ; | |
4920 | int res1 = 0 ; | |
4921 | bool val2 ; | |
4922 | int ecode2 = 0 ; | |
4923 | PyObject * obj0 = 0 ; | |
4924 | PyObject * obj1 = 0 ; | |
4925 | char * kwnames[] = { | |
4926 | (char *) "self",(char *) "state", NULL | |
4927 | }; | |
4928 | ||
4929 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
4930 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4931 | if (!SWIG_IsOK(res1)) { | |
4932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4933 | } | |
4934 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4935 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4936 | if (!SWIG_IsOK(ecode2)) { | |
4937 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
4938 | } | |
4939 | arg2 = static_cast< bool >(val2); | |
4940 | { | |
4941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4942 | (arg1)->SetValue(arg2); | |
4943 | wxPyEndAllowThreads(__tstate); | |
4944 | if (PyErr_Occurred()) SWIG_fail; | |
4945 | } | |
4946 | resultobj = SWIG_Py_Void(); | |
4947 | return resultobj; | |
4948 | fail: | |
4949 | return NULL; | |
d14a1e28 | 4950 | } |
0085ce49 RD |
4951 | |
4952 | ||
4953 | SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4954 | PyObject *resultobj = 0; | |
4955 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4956 | wxCheckBoxState result; | |
4957 | void *argp1 = 0 ; | |
4958 | int res1 = 0 ; | |
4959 | PyObject *swig_obj[1] ; | |
4960 | ||
4961 | if (!args) SWIG_fail; | |
4962 | swig_obj[0] = args; | |
4963 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4964 | if (!SWIG_IsOK(res1)) { | |
4965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
4966 | } | |
4967 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4968 | { | |
4969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4970 | result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue(); | |
4971 | wxPyEndAllowThreads(__tstate); | |
4972 | if (PyErr_Occurred()) SWIG_fail; | |
4973 | } | |
4974 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4975 | return resultobj; | |
4976 | fail: | |
4977 | return NULL; | |
4978 | } | |
4979 | ||
4980 | ||
4981 | SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4982 | PyObject *resultobj = 0; | |
4983 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4984 | wxCheckBoxState arg2 ; | |
4985 | void *argp1 = 0 ; | |
4986 | int res1 = 0 ; | |
4987 | int val2 ; | |
4988 | int ecode2 = 0 ; | |
4989 | PyObject * obj0 = 0 ; | |
4990 | PyObject * obj1 = 0 ; | |
4991 | char * kwnames[] = { | |
4992 | (char *) "self",(char *) "state", NULL | |
4993 | }; | |
4994 | ||
4995 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
4996 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4997 | if (!SWIG_IsOK(res1)) { | |
4998 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4999 | } | |
5000 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
5001 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5002 | if (!SWIG_IsOK(ecode2)) { | |
5003 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'"); | |
5004 | } | |
5005 | arg2 = static_cast< wxCheckBoxState >(val2); | |
5006 | { | |
5007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5008 | (arg1)->Set3StateValue(arg2); | |
5009 | wxPyEndAllowThreads(__tstate); | |
5010 | if (PyErr_Occurred()) SWIG_fail; | |
5011 | } | |
5012 | resultobj = SWIG_Py_Void(); | |
5013 | return resultobj; | |
5014 | fail: | |
5015 | return NULL; | |
b2dc1044 RD |
5016 | } |
5017 | ||
5018 | ||
0085ce49 RD |
5019 | SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5020 | PyObject *resultobj = 0; | |
5021 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
5022 | bool result; | |
5023 | void *argp1 = 0 ; | |
5024 | int res1 = 0 ; | |
5025 | PyObject *swig_obj[1] ; | |
5026 | ||
5027 | if (!args) SWIG_fail; | |
5028 | swig_obj[0] = args; | |
5029 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
5030 | if (!SWIG_IsOK(res1)) { | |
5031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
5032 | } | |
5033 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
5034 | { | |
5035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5036 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
5037 | wxPyEndAllowThreads(__tstate); | |
5038 | if (PyErr_Occurred()) SWIG_fail; | |
5039 | } | |
5040 | { | |
5041 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5042 | } | |
5043 | return resultobj; | |
5044 | fail: | |
5045 | return NULL; | |
d14a1e28 RD |
5046 | } |
5047 | ||
5048 | ||
0085ce49 RD |
5049 | SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5050 | PyObject *resultobj = 0; | |
5051 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
5052 | bool result; | |
5053 | void *argp1 = 0 ; | |
5054 | int res1 = 0 ; | |
5055 | PyObject *swig_obj[1] ; | |
5056 | ||
5057 | if (!args) SWIG_fail; | |
5058 | swig_obj[0] = args; | |
5059 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
5060 | if (!SWIG_IsOK(res1)) { | |
5061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
5062 | } | |
5063 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
5064 | { | |
5065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5066 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
5067 | wxPyEndAllowThreads(__tstate); | |
5068 | if (PyErr_Occurred()) SWIG_fail; | |
5069 | } | |
5070 | { | |
5071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5072 | } | |
5073 | return resultobj; | |
5074 | fail: | |
5075 | return NULL; | |
d14a1e28 RD |
5076 | } |
5077 | ||
5078 | ||
0085ce49 RD |
5079 | SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5080 | PyObject *resultobj = 0; | |
5081 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5082 | SwigValueWrapper<wxVisualAttributes > result; | |
5083 | int val1 ; | |
5084 | int ecode1 = 0 ; | |
5085 | PyObject * obj0 = 0 ; | |
5086 | char * kwnames[] = { | |
5087 | (char *) "variant", NULL | |
5088 | }; | |
5089 | ||
5090 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5091 | if (obj0) { | |
5092 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5093 | if (!SWIG_IsOK(ecode1)) { | |
5094 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5095 | } | |
5096 | arg1 = static_cast< wxWindowVariant >(val1); | |
5097 | } | |
5098 | { | |
5099 | if (!wxPyCheckForApp()) SWIG_fail; | |
5100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5101 | result = wxCheckBox::GetClassDefaultAttributes(arg1); | |
5102 | wxPyEndAllowThreads(__tstate); | |
5103 | if (PyErr_Occurred()) SWIG_fail; | |
5104 | } | |
5105 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5106 | return resultobj; | |
5107 | fail: | |
5108 | return NULL; | |
d14a1e28 RD |
5109 | } |
5110 | ||
5111 | ||
0085ce49 RD |
5112 | SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5113 | PyObject *obj; | |
5114 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5115 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj)); | |
5116 | return SWIG_Py_Void(); | |
d14a1e28 RD |
5117 | } |
5118 | ||
0085ce49 RD |
5119 | SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5120 | return SWIG_Python_InitShadowInstance(args); | |
5121 | } | |
d14a1e28 | 5122 | |
0085ce49 RD |
5123 | SWIGINTERN int ChoiceNameStr_set(PyObject *) { |
5124 | SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only."); | |
5125 | return 1; | |
d14a1e28 RD |
5126 | } |
5127 | ||
5128 | ||
0085ce49 RD |
5129 | SWIGINTERN PyObject *ChoiceNameStr_get(void) { |
5130 | PyObject *pyobj = 0; | |
5131 | ||
5132 | { | |
5133 | #if wxUSE_UNICODE | |
5134 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
5135 | #else | |
5136 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
5137 | #endif | |
5138 | } | |
5139 | return pyobj; | |
5140 | } | |
5141 | ||
5142 | ||
5143 | SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5144 | PyObject *resultobj = 0; | |
5145 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5146 | int arg2 = (int) -1 ; | |
5147 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5148 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5149 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5150 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5151 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
5152 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5153 | long arg6 = (long) 0 ; | |
5154 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5155 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5156 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
5157 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5158 | wxChoice *result = 0 ; | |
5159 | void *argp1 = 0 ; | |
5160 | int res1 = 0 ; | |
5161 | int val2 ; | |
5162 | int ecode2 = 0 ; | |
5163 | wxPoint temp3 ; | |
5164 | wxSize temp4 ; | |
5165 | bool temp5 = false ; | |
5166 | long val6 ; | |
5167 | int ecode6 = 0 ; | |
5168 | void *argp7 = 0 ; | |
5169 | int res7 = 0 ; | |
5170 | bool temp8 = false ; | |
5171 | PyObject * obj0 = 0 ; | |
5172 | PyObject * obj1 = 0 ; | |
5173 | PyObject * obj2 = 0 ; | |
5174 | PyObject * obj3 = 0 ; | |
5175 | PyObject * obj4 = 0 ; | |
5176 | PyObject * obj5 = 0 ; | |
5177 | PyObject * obj6 = 0 ; | |
5178 | PyObject * obj7 = 0 ; | |
5179 | char * kwnames[] = { | |
5180 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5181 | }; | |
5182 | ||
5183 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
5184 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5185 | if (!SWIG_IsOK(res1)) { | |
5186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5187 | } | |
5188 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5189 | if (obj1) { | |
5190 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5191 | if (!SWIG_IsOK(ecode2)) { | |
5192 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'"); | |
5193 | } | |
5194 | arg2 = static_cast< int >(val2); | |
5195 | } | |
5196 | if (obj2) { | |
093d3ff1 | 5197 | { |
0085ce49 RD |
5198 | arg3 = &temp3; |
5199 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 5200 | } |
0085ce49 RD |
5201 | } |
5202 | if (obj3) { | |
d14a1e28 | 5203 | { |
0085ce49 RD |
5204 | arg4 = &temp4; |
5205 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 5206 | } |
0085ce49 RD |
5207 | } |
5208 | if (obj4) { | |
d14a1e28 | 5209 | { |
0085ce49 RD |
5210 | if (! PySequence_Check(obj4)) { |
5211 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5212 | SWIG_fail; | |
5213 | } | |
5214 | arg5 = new wxArrayString; | |
5215 | temp5 = true; | |
5216 | int i, len=PySequence_Length(obj4); | |
5217 | for (i=0; i<len; i++) { | |
5218 | PyObject* item = PySequence_GetItem(obj4, i); | |
5219 | wxString* s = wxString_in_helper(item); | |
5220 | if (PyErr_Occurred()) SWIG_fail; | |
5221 | arg5->Add(*s); | |
5222 | delete s; | |
5223 | Py_DECREF(item); | |
5224 | } | |
d14a1e28 | 5225 | } |
0085ce49 RD |
5226 | } |
5227 | if (obj5) { | |
5228 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
5229 | if (!SWIG_IsOK(ecode6)) { | |
5230 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'"); | |
5231 | } | |
5232 | arg6 = static_cast< long >(val6); | |
5233 | } | |
5234 | if (obj6) { | |
5235 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
5236 | if (!SWIG_IsOK(res7)) { | |
5237 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
093d3ff1 | 5238 | } |
0085ce49 RD |
5239 | if (!argp7) { |
5240 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
5241 | } | |
5242 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
5243 | } | |
5244 | if (obj7) { | |
d14a1e28 | 5245 | { |
0085ce49 RD |
5246 | arg8 = wxString_in_helper(obj7); |
5247 | if (arg8 == NULL) SWIG_fail; | |
5248 | temp8 = true; | |
d14a1e28 | 5249 | } |
0085ce49 RD |
5250 | } |
5251 | { | |
5252 | if (!wxPyCheckForApp()) SWIG_fail; | |
5253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5254 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5255 | wxPyEndAllowThreads(__tstate); | |
5256 | if (PyErr_Occurred()) SWIG_fail; | |
5257 | } | |
5258 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 ); | |
5259 | { | |
5260 | if (temp5) delete arg5; | |
5261 | } | |
5262 | { | |
5263 | if (temp8) | |
5264 | delete arg8; | |
5265 | } | |
5266 | return resultobj; | |
5267 | fail: | |
5268 | { | |
5269 | if (temp5) delete arg5; | |
5270 | } | |
5271 | { | |
5272 | if (temp8) | |
5273 | delete arg8; | |
5274 | } | |
5275 | return NULL; | |
d14a1e28 RD |
5276 | } |
5277 | ||
5278 | ||
0085ce49 RD |
5279 | SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5280 | PyObject *resultobj = 0; | |
5281 | wxChoice *result = 0 ; | |
5282 | ||
5283 | if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail; | |
5284 | { | |
5285 | if (!wxPyCheckForApp()) SWIG_fail; | |
5286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5287 | result = (wxChoice *)new wxChoice(); | |
5288 | wxPyEndAllowThreads(__tstate); | |
5289 | if (PyErr_Occurred()) SWIG_fail; | |
5290 | } | |
5291 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 ); | |
5292 | return resultobj; | |
5293 | fail: | |
5294 | return NULL; | |
5295 | } | |
5296 | ||
5297 | ||
5298 | SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5299 | PyObject *resultobj = 0; | |
5300 | wxChoice *arg1 = (wxChoice *) 0 ; | |
5301 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5302 | int arg3 = (int) -1 ; | |
5303 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5304 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5305 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5306 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5307 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5308 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5309 | long arg7 = (long) 0 ; | |
5310 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5311 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5312 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
5313 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5314 | bool result; | |
5315 | void *argp1 = 0 ; | |
5316 | int res1 = 0 ; | |
5317 | void *argp2 = 0 ; | |
5318 | int res2 = 0 ; | |
5319 | int val3 ; | |
5320 | int ecode3 = 0 ; | |
5321 | wxPoint temp4 ; | |
5322 | wxSize temp5 ; | |
5323 | bool temp6 = false ; | |
5324 | long val7 ; | |
5325 | int ecode7 = 0 ; | |
5326 | void *argp8 = 0 ; | |
5327 | int res8 = 0 ; | |
5328 | bool temp9 = false ; | |
5329 | PyObject * obj0 = 0 ; | |
5330 | PyObject * obj1 = 0 ; | |
5331 | PyObject * obj2 = 0 ; | |
5332 | PyObject * obj3 = 0 ; | |
5333 | PyObject * obj4 = 0 ; | |
5334 | PyObject * obj5 = 0 ; | |
5335 | PyObject * obj6 = 0 ; | |
5336 | PyObject * obj7 = 0 ; | |
5337 | PyObject * obj8 = 0 ; | |
5338 | char * kwnames[] = { | |
5339 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5340 | }; | |
5341 | ||
5342 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
5343 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 ); | |
5344 | if (!SWIG_IsOK(res1)) { | |
5345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'"); | |
5346 | } | |
5347 | arg1 = reinterpret_cast< wxChoice * >(argp1); | |
5348 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5349 | if (!SWIG_IsOK(res2)) { | |
5350 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5351 | } | |
5352 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5353 | if (obj2) { | |
5354 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5355 | if (!SWIG_IsOK(ecode3)) { | |
5356 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'"); | |
5357 | } | |
5358 | arg3 = static_cast< int >(val3); | |
5359 | } | |
5360 | if (obj3) { | |
d14a1e28 | 5361 | { |
0085ce49 RD |
5362 | arg4 = &temp4; |
5363 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 5364 | } |
0085ce49 RD |
5365 | } |
5366 | if (obj4) { | |
4f89f6a3 | 5367 | { |
0085ce49 RD |
5368 | arg5 = &temp5; |
5369 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 5370 | } |
0085ce49 RD |
5371 | } |
5372 | if (obj5) { | |
d14a1e28 | 5373 | { |
0085ce49 RD |
5374 | if (! PySequence_Check(obj5)) { |
5375 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5376 | SWIG_fail; | |
5377 | } | |
5378 | arg6 = new wxArrayString; | |
5379 | temp6 = true; | |
5380 | int i, len=PySequence_Length(obj5); | |
5381 | for (i=0; i<len; i++) { | |
5382 | PyObject* item = PySequence_GetItem(obj5, i); | |
5383 | wxString* s = wxString_in_helper(item); | |
5384 | if (PyErr_Occurred()) SWIG_fail; | |
5385 | arg6->Add(*s); | |
5386 | delete s; | |
5387 | Py_DECREF(item); | |
5388 | } | |
5389 | } | |
5390 | } | |
5391 | if (obj6) { | |
5392 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
5393 | if (!SWIG_IsOK(ecode7)) { | |
5394 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'"); | |
5395 | } | |
5396 | arg7 = static_cast< long >(val7); | |
5397 | } | |
5398 | if (obj7) { | |
5399 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
5400 | if (!SWIG_IsOK(res8)) { | |
5401 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 5402 | } |
0085ce49 RD |
5403 | if (!argp8) { |
5404 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5405 | } | |
5406 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
5407 | } | |
5408 | if (obj8) { | |
4f89f6a3 | 5409 | { |
0085ce49 RD |
5410 | arg9 = wxString_in_helper(obj8); |
5411 | if (arg9 == NULL) SWIG_fail; | |
5412 | temp9 = true; | |
4f89f6a3 | 5413 | } |
0085ce49 RD |
5414 | } |
5415 | { | |
5416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5417 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5418 | wxPyEndAllowThreads(__tstate); | |
5419 | if (PyErr_Occurred()) SWIG_fail; | |
5420 | } | |
5421 | { | |
5422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5423 | } | |
5424 | { | |
5425 | if (temp6) delete arg6; | |
5426 | } | |
5427 | { | |
5428 | if (temp9) | |
5429 | delete arg9; | |
5430 | } | |
5431 | return resultobj; | |
5432 | fail: | |
5433 | { | |
5434 | if (temp6) delete arg6; | |
5435 | } | |
5436 | { | |
5437 | if (temp9) | |
5438 | delete arg9; | |
5439 | } | |
5440 | return NULL; | |
d14a1e28 RD |
5441 | } |
5442 | ||
5443 | ||
0085ce49 RD |
5444 | SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5445 | PyObject *resultobj = 0; | |
5446 | wxChoice *arg1 = (wxChoice *) 0 ; | |
5447 | int result; | |
5448 | void *argp1 = 0 ; | |
5449 | int res1 = 0 ; | |
5450 | PyObject *swig_obj[1] ; | |
5451 | ||
5452 | if (!args) SWIG_fail; | |
5453 | swig_obj[0] = args; | |
5454 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 ); | |
5455 | if (!SWIG_IsOK(res1)) { | |
5456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'"); | |
5457 | } | |
5458 | arg1 = reinterpret_cast< wxChoice * >(argp1); | |
5459 | { | |
5460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5461 | result = (int)((wxChoice const *)arg1)->GetCurrentSelection(); | |
5462 | wxPyEndAllowThreads(__tstate); | |
5463 | if (PyErr_Occurred()) SWIG_fail; | |
5464 | } | |
5465 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5466 | return resultobj; | |
5467 | fail: | |
5468 | return NULL; | |
5469 | } | |
5470 | ||
5471 | ||
5472 | SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5473 | PyObject *resultobj = 0; | |
5474 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5475 | SwigValueWrapper<wxVisualAttributes > result; | |
5476 | int val1 ; | |
5477 | int ecode1 = 0 ; | |
5478 | PyObject * obj0 = 0 ; | |
5479 | char * kwnames[] = { | |
5480 | (char *) "variant", NULL | |
5481 | }; | |
5482 | ||
5483 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5484 | if (obj0) { | |
5485 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5486 | if (!SWIG_IsOK(ecode1)) { | |
5487 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5488 | } | |
5489 | arg1 = static_cast< wxWindowVariant >(val1); | |
5490 | } | |
5491 | { | |
5492 | if (!wxPyCheckForApp()) SWIG_fail; | |
5493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5494 | result = wxChoice::GetClassDefaultAttributes(arg1); | |
5495 | wxPyEndAllowThreads(__tstate); | |
5496 | if (PyErr_Occurred()) SWIG_fail; | |
5497 | } | |
5498 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5499 | return resultobj; | |
5500 | fail: | |
5501 | return NULL; | |
22bfe96c RD |
5502 | } |
5503 | ||
5504 | ||
0085ce49 RD |
5505 | SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5506 | PyObject *obj; | |
5507 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5508 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj)); | |
5509 | return SWIG_Py_Void(); | |
d14a1e28 | 5510 | } |
0085ce49 RD |
5511 | |
5512 | SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5513 | return SWIG_Python_InitShadowInstance(args); | |
5514 | } | |
5515 | ||
5516 | SWIGINTERN int ComboBoxNameStr_set(PyObject *) { | |
5517 | SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only."); | |
5518 | return 1; | |
b2dc1044 RD |
5519 | } |
5520 | ||
5521 | ||
0085ce49 RD |
5522 | SWIGINTERN PyObject *ComboBoxNameStr_get(void) { |
5523 | PyObject *pyobj = 0; | |
5524 | ||
5525 | { | |
b2dc1044 | 5526 | #if wxUSE_UNICODE |
0085ce49 | 5527 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); |
b2dc1044 | 5528 | #else |
0085ce49 | 5529 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); |
b2dc1044 | 5530 | #endif |
0085ce49 RD |
5531 | } |
5532 | return pyobj; | |
5533 | } | |
5534 | ||
5535 | ||
5536 | SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5537 | PyObject *resultobj = 0; | |
5538 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5539 | int arg2 = (int) -1 ; | |
5540 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5541 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5542 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5543 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5544 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5545 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5546 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5547 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5548 | long arg7 = (long) 0 ; | |
5549 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5550 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5551 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
5552 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5553 | wxComboBox *result = 0 ; | |
5554 | void *argp1 = 0 ; | |
5555 | int res1 = 0 ; | |
5556 | int val2 ; | |
5557 | int ecode2 = 0 ; | |
5558 | bool temp3 = false ; | |
5559 | wxPoint temp4 ; | |
5560 | wxSize temp5 ; | |
5561 | bool temp6 = false ; | |
5562 | long val7 ; | |
5563 | int ecode7 = 0 ; | |
5564 | void *argp8 = 0 ; | |
5565 | int res8 = 0 ; | |
5566 | bool temp9 = false ; | |
5567 | PyObject * obj0 = 0 ; | |
5568 | PyObject * obj1 = 0 ; | |
5569 | PyObject * obj2 = 0 ; | |
5570 | PyObject * obj3 = 0 ; | |
5571 | PyObject * obj4 = 0 ; | |
5572 | PyObject * obj5 = 0 ; | |
5573 | PyObject * obj6 = 0 ; | |
5574 | PyObject * obj7 = 0 ; | |
5575 | PyObject * obj8 = 0 ; | |
5576 | char * kwnames[] = { | |
5577 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5578 | }; | |
5579 | ||
5580 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
5581 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5582 | if (!SWIG_IsOK(res1)) { | |
5583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5584 | } | |
5585 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5586 | if (obj1) { | |
5587 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5588 | if (!SWIG_IsOK(ecode2)) { | |
5589 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'"); | |
5590 | } | |
5591 | arg2 = static_cast< int >(val2); | |
5592 | } | |
5593 | if (obj2) { | |
d14a1e28 | 5594 | { |
0085ce49 RD |
5595 | arg3 = wxString_in_helper(obj2); |
5596 | if (arg3 == NULL) SWIG_fail; | |
5597 | temp3 = true; | |
d14a1e28 | 5598 | } |
0085ce49 RD |
5599 | } |
5600 | if (obj3) { | |
d14a1e28 | 5601 | { |
0085ce49 RD |
5602 | arg4 = &temp4; |
5603 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 5604 | } |
0085ce49 RD |
5605 | } |
5606 | if (obj4) { | |
d14a1e28 | 5607 | { |
0085ce49 RD |
5608 | arg5 = &temp5; |
5609 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 5610 | } |
0085ce49 RD |
5611 | } |
5612 | if (obj5) { | |
d14a1e28 | 5613 | { |
0085ce49 RD |
5614 | if (! PySequence_Check(obj5)) { |
5615 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5616 | SWIG_fail; | |
5617 | } | |
5618 | arg6 = new wxArrayString; | |
5619 | temp6 = true; | |
5620 | int i, len=PySequence_Length(obj5); | |
5621 | for (i=0; i<len; i++) { | |
5622 | PyObject* item = PySequence_GetItem(obj5, i); | |
5623 | wxString* s = wxString_in_helper(item); | |
5624 | if (PyErr_Occurred()) SWIG_fail; | |
5625 | arg6->Add(*s); | |
5626 | delete s; | |
5627 | Py_DECREF(item); | |
5628 | } | |
d14a1e28 | 5629 | } |
0085ce49 RD |
5630 | } |
5631 | if (obj6) { | |
5632 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
5633 | if (!SWIG_IsOK(ecode7)) { | |
5634 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'"); | |
5635 | } | |
5636 | arg7 = static_cast< long >(val7); | |
5637 | } | |
5638 | if (obj7) { | |
5639 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
5640 | if (!SWIG_IsOK(res8)) { | |
5641 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5642 | } | |
5643 | if (!argp8) { | |
5644 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5645 | } | |
5646 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
5647 | } | |
5648 | if (obj8) { | |
d14a1e28 | 5649 | { |
0085ce49 RD |
5650 | arg9 = wxString_in_helper(obj8); |
5651 | if (arg9 == NULL) SWIG_fail; | |
5652 | temp9 = true; | |
d14a1e28 | 5653 | } |
0085ce49 RD |
5654 | } |
5655 | { | |
5656 | if (!wxPyCheckForApp()) SWIG_fail; | |
5657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5658 | 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); | |
5659 | wxPyEndAllowThreads(__tstate); | |
5660 | if (PyErr_Occurred()) SWIG_fail; | |
5661 | } | |
5662 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 ); | |
5663 | { | |
5664 | if (temp3) | |
5665 | delete arg3; | |
5666 | } | |
5667 | { | |
5668 | if (temp6) delete arg6; | |
5669 | } | |
5670 | { | |
5671 | if (temp9) | |
5672 | delete arg9; | |
5673 | } | |
5674 | return resultobj; | |
5675 | fail: | |
5676 | { | |
5677 | if (temp3) | |
5678 | delete arg3; | |
5679 | } | |
5680 | { | |
5681 | if (temp6) delete arg6; | |
5682 | } | |
5683 | { | |
5684 | if (temp9) | |
5685 | delete arg9; | |
5686 | } | |
5687 | return NULL; | |
d14a1e28 RD |
5688 | } |
5689 | ||
5690 | ||
0085ce49 RD |
5691 | SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5692 | PyObject *resultobj = 0; | |
5693 | wxComboBox *result = 0 ; | |
5694 | ||
5695 | if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail; | |
5696 | { | |
5697 | if (!wxPyCheckForApp()) SWIG_fail; | |
5698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5699 | result = (wxComboBox *)new wxComboBox(); | |
5700 | wxPyEndAllowThreads(__tstate); | |
5701 | if (PyErr_Occurred()) SWIG_fail; | |
5702 | } | |
5703 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 ); | |
5704 | return resultobj; | |
5705 | fail: | |
5706 | return NULL; | |
5707 | } | |
5708 | ||
5709 | ||
5710 | SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5711 | PyObject *resultobj = 0; | |
5712 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5713 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5714 | int arg3 = (int) -1 ; | |
5715 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5716 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
5717 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
5718 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5719 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5720 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5721 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
5722 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
5723 | long arg8 = (long) 0 ; | |
5724 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
5725 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
5726 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
5727 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
5728 | bool result; | |
5729 | void *argp1 = 0 ; | |
5730 | int res1 = 0 ; | |
5731 | void *argp2 = 0 ; | |
5732 | int res2 = 0 ; | |
5733 | int val3 ; | |
5734 | int ecode3 = 0 ; | |
5735 | bool temp4 = false ; | |
5736 | wxPoint temp5 ; | |
5737 | wxSize temp6 ; | |
5738 | bool temp7 = false ; | |
5739 | long val8 ; | |
5740 | int ecode8 = 0 ; | |
5741 | void *argp9 = 0 ; | |
5742 | int res9 = 0 ; | |
5743 | bool temp10 = false ; | |
5744 | PyObject * obj0 = 0 ; | |
5745 | PyObject * obj1 = 0 ; | |
5746 | PyObject * obj2 = 0 ; | |
5747 | PyObject * obj3 = 0 ; | |
5748 | PyObject * obj4 = 0 ; | |
5749 | PyObject * obj5 = 0 ; | |
5750 | PyObject * obj6 = 0 ; | |
5751 | PyObject * obj7 = 0 ; | |
5752 | PyObject * obj8 = 0 ; | |
5753 | PyObject * obj9 = 0 ; | |
5754 | char * kwnames[] = { | |
5755 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5756 | }; | |
5757 | ||
5758 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
5759 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5760 | if (!SWIG_IsOK(res1)) { | |
5761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5762 | } | |
5763 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5764 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5765 | if (!SWIG_IsOK(res2)) { | |
5766 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5767 | } | |
5768 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5769 | if (obj2) { | |
5770 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5771 | if (!SWIG_IsOK(ecode3)) { | |
5772 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
5773 | } | |
5774 | arg3 = static_cast< int >(val3); | |
5775 | } | |
5776 | if (obj3) { | |
4f89f6a3 | 5777 | { |
0085ce49 RD |
5778 | arg4 = wxString_in_helper(obj3); |
5779 | if (arg4 == NULL) SWIG_fail; | |
5780 | temp4 = true; | |
4f89f6a3 | 5781 | } |
0085ce49 RD |
5782 | } |
5783 | if (obj4) { | |
d14a1e28 | 5784 | { |
0085ce49 RD |
5785 | arg5 = &temp5; |
5786 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 5787 | } |
0085ce49 RD |
5788 | } |
5789 | if (obj5) { | |
d14a1e28 | 5790 | { |
0085ce49 RD |
5791 | arg6 = &temp6; |
5792 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 5793 | } |
0085ce49 RD |
5794 | } |
5795 | if (obj6) { | |
d14a1e28 | 5796 | { |
0085ce49 RD |
5797 | if (! PySequence_Check(obj6)) { |
5798 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5799 | SWIG_fail; | |
5800 | } | |
5801 | arg7 = new wxArrayString; | |
5802 | temp7 = true; | |
5803 | int i, len=PySequence_Length(obj6); | |
5804 | for (i=0; i<len; i++) { | |
5805 | PyObject* item = PySequence_GetItem(obj6, i); | |
5806 | wxString* s = wxString_in_helper(item); | |
5807 | if (PyErr_Occurred()) SWIG_fail; | |
5808 | arg7->Add(*s); | |
5809 | delete s; | |
5810 | Py_DECREF(item); | |
5811 | } | |
d14a1e28 | 5812 | } |
0085ce49 RD |
5813 | } |
5814 | if (obj7) { | |
5815 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
5816 | if (!SWIG_IsOK(ecode8)) { | |
5817 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'"); | |
5818 | } | |
5819 | arg8 = static_cast< long >(val8); | |
5820 | } | |
5821 | if (obj8) { | |
5822 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
5823 | if (!SWIG_IsOK(res9)) { | |
5824 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 5825 | } |
0085ce49 RD |
5826 | if (!argp9) { |
5827 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 5828 | } |
0085ce49 RD |
5829 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
5830 | } | |
5831 | if (obj9) { | |
d14a1e28 | 5832 | { |
0085ce49 RD |
5833 | arg10 = wxString_in_helper(obj9); |
5834 | if (arg10 == NULL) SWIG_fail; | |
5835 | temp10 = true; | |
d14a1e28 | 5836 | } |
0085ce49 RD |
5837 | } |
5838 | { | |
5839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5840 | 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); | |
5841 | wxPyEndAllowThreads(__tstate); | |
5842 | if (PyErr_Occurred()) SWIG_fail; | |
5843 | } | |
5844 | { | |
5845 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5846 | } | |
5847 | { | |
5848 | if (temp4) | |
5849 | delete arg4; | |
5850 | } | |
5851 | { | |
5852 | if (temp7) delete arg7; | |
5853 | } | |
5854 | { | |
5855 | if (temp10) | |
5856 | delete arg10; | |
5857 | } | |
5858 | return resultobj; | |
5859 | fail: | |
5860 | { | |
5861 | if (temp4) | |
5862 | delete arg4; | |
5863 | } | |
5864 | { | |
5865 | if (temp7) delete arg7; | |
5866 | } | |
5867 | { | |
5868 | if (temp10) | |
5869 | delete arg10; | |
5870 | } | |
5871 | return NULL; | |
d14a1e28 RD |
5872 | } |
5873 | ||
5874 | ||
0085ce49 RD |
5875 | SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5876 | PyObject *resultobj = 0; | |
5877 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5878 | wxString result; | |
5879 | void *argp1 = 0 ; | |
5880 | int res1 = 0 ; | |
5881 | PyObject *swig_obj[1] ; | |
5882 | ||
5883 | if (!args) SWIG_fail; | |
5884 | swig_obj[0] = args; | |
5885 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5886 | if (!SWIG_IsOK(res1)) { | |
5887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
5888 | } | |
5889 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5890 | { | |
5891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5892 | result = ((wxComboBox const *)arg1)->GetValue(); | |
5893 | wxPyEndAllowThreads(__tstate); | |
5894 | if (PyErr_Occurred()) SWIG_fail; | |
5895 | } | |
5896 | { | |
d14a1e28 | 5897 | #if wxUSE_UNICODE |
0085ce49 | 5898 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 5899 | #else |
0085ce49 | 5900 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 5901 | #endif |
0085ce49 RD |
5902 | } |
5903 | return resultobj; | |
5904 | fail: | |
5905 | return NULL; | |
5906 | } | |
5907 | ||
5908 | ||
5909 | SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5910 | PyObject *resultobj = 0; | |
5911 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5912 | wxString *arg2 = 0 ; | |
5913 | void *argp1 = 0 ; | |
5914 | int res1 = 0 ; | |
5915 | bool temp2 = false ; | |
5916 | PyObject * obj0 = 0 ; | |
5917 | PyObject * obj1 = 0 ; | |
5918 | char * kwnames[] = { | |
5919 | (char *) "self",(char *) "value", NULL | |
5920 | }; | |
5921 | ||
5922 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
5923 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5924 | if (!SWIG_IsOK(res1)) { | |
5925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5926 | } | |
5927 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5928 | { | |
5929 | arg2 = wxString_in_helper(obj1); | |
5930 | if (arg2 == NULL) SWIG_fail; | |
5931 | temp2 = true; | |
5932 | } | |
5933 | { | |
5934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5935 | (arg1)->SetValue((wxString const &)*arg2); | |
5936 | wxPyEndAllowThreads(__tstate); | |
5937 | if (PyErr_Occurred()) SWIG_fail; | |
5938 | } | |
5939 | resultobj = SWIG_Py_Void(); | |
5940 | { | |
5941 | if (temp2) | |
5942 | delete arg2; | |
5943 | } | |
5944 | return resultobj; | |
5945 | fail: | |
5946 | { | |
5947 | if (temp2) | |
5948 | delete arg2; | |
5949 | } | |
5950 | return NULL; | |
d14a1e28 RD |
5951 | } |
5952 | ||
5953 | ||
0085ce49 RD |
5954 | SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5955 | PyObject *resultobj = 0; | |
5956 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5957 | void *argp1 = 0 ; | |
5958 | int res1 = 0 ; | |
5959 | PyObject *swig_obj[1] ; | |
5960 | ||
5961 | if (!args) SWIG_fail; | |
5962 | swig_obj[0] = args; | |
5963 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5964 | if (!SWIG_IsOK(res1)) { | |
5965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5966 | } | |
5967 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5968 | { | |
5969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5970 | (arg1)->Copy(); | |
5971 | wxPyEndAllowThreads(__tstate); | |
5972 | if (PyErr_Occurred()) SWIG_fail; | |
5973 | } | |
5974 | resultobj = SWIG_Py_Void(); | |
5975 | return resultobj; | |
5976 | fail: | |
5977 | return NULL; | |
d14a1e28 RD |
5978 | } |
5979 | ||
5980 | ||
0085ce49 RD |
5981 | SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5982 | PyObject *resultobj = 0; | |
5983 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5984 | void *argp1 = 0 ; | |
5985 | int res1 = 0 ; | |
5986 | PyObject *swig_obj[1] ; | |
5987 | ||
5988 | if (!args) SWIG_fail; | |
5989 | swig_obj[0] = args; | |
5990 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5991 | if (!SWIG_IsOK(res1)) { | |
5992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5993 | } | |
5994 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5995 | { | |
5996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5997 | (arg1)->Cut(); | |
5998 | wxPyEndAllowThreads(__tstate); | |
5999 | if (PyErr_Occurred()) SWIG_fail; | |
6000 | } | |
6001 | resultobj = SWIG_Py_Void(); | |
6002 | return resultobj; | |
6003 | fail: | |
6004 | return NULL; | |
d14a1e28 RD |
6005 | } |
6006 | ||
6007 | ||
0085ce49 RD |
6008 | SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6009 | PyObject *resultobj = 0; | |
6010 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6011 | void *argp1 = 0 ; | |
6012 | int res1 = 0 ; | |
6013 | PyObject *swig_obj[1] ; | |
6014 | ||
6015 | if (!args) SWIG_fail; | |
6016 | swig_obj[0] = args; | |
6017 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6018 | if (!SWIG_IsOK(res1)) { | |
6019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6020 | } | |
6021 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6022 | { | |
6023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6024 | (arg1)->Paste(); | |
6025 | wxPyEndAllowThreads(__tstate); | |
6026 | if (PyErr_Occurred()) SWIG_fail; | |
6027 | } | |
6028 | resultobj = SWIG_Py_Void(); | |
6029 | return resultobj; | |
6030 | fail: | |
6031 | return NULL; | |
6032 | } | |
6033 | ||
6034 | ||
6035 | SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6036 | PyObject *resultobj = 0; | |
6037 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6038 | long arg2 ; | |
6039 | void *argp1 = 0 ; | |
6040 | int res1 = 0 ; | |
6041 | long val2 ; | |
6042 | int ecode2 = 0 ; | |
6043 | PyObject * obj0 = 0 ; | |
6044 | PyObject * obj1 = 0 ; | |
6045 | char * kwnames[] = { | |
6046 | (char *) "self",(char *) "pos", NULL | |
6047 | }; | |
6048 | ||
6049 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
6050 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6051 | if (!SWIG_IsOK(res1)) { | |
6052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6053 | } | |
6054 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6055 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6056 | if (!SWIG_IsOK(ecode2)) { | |
6057 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'"); | |
6058 | } | |
6059 | arg2 = static_cast< long >(val2); | |
6060 | { | |
6061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6062 | (arg1)->SetInsertionPoint(arg2); | |
6063 | wxPyEndAllowThreads(__tstate); | |
6064 | if (PyErr_Occurred()) SWIG_fail; | |
6065 | } | |
6066 | resultobj = SWIG_Py_Void(); | |
6067 | return resultobj; | |
6068 | fail: | |
6069 | return NULL; | |
d14a1e28 RD |
6070 | } |
6071 | ||
6072 | ||
0085ce49 RD |
6073 | SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6074 | PyObject *resultobj = 0; | |
6075 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6076 | long result; | |
6077 | void *argp1 = 0 ; | |
6078 | int res1 = 0 ; | |
6079 | PyObject *swig_obj[1] ; | |
6080 | ||
6081 | if (!args) SWIG_fail; | |
6082 | swig_obj[0] = args; | |
6083 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6084 | if (!SWIG_IsOK(res1)) { | |
6085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6086 | } | |
6087 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6088 | { | |
6089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6090 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
6091 | wxPyEndAllowThreads(__tstate); | |
6092 | if (PyErr_Occurred()) SWIG_fail; | |
6093 | } | |
6094 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6095 | return resultobj; | |
6096 | fail: | |
6097 | return NULL; | |
d14a1e28 RD |
6098 | } |
6099 | ||
6100 | ||
0085ce49 RD |
6101 | SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6102 | PyObject *resultobj = 0; | |
6103 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6104 | long result; | |
6105 | void *argp1 = 0 ; | |
6106 | int res1 = 0 ; | |
6107 | PyObject *swig_obj[1] ; | |
6108 | ||
6109 | if (!args) SWIG_fail; | |
6110 | swig_obj[0] = args; | |
6111 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6112 | if (!SWIG_IsOK(res1)) { | |
6113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6114 | } | |
6115 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6116 | { | |
6117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6118 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
6119 | wxPyEndAllowThreads(__tstate); | |
6120 | if (PyErr_Occurred()) SWIG_fail; | |
6121 | } | |
6122 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6123 | return resultobj; | |
6124 | fail: | |
6125 | return NULL; | |
6126 | } | |
6127 | ||
6128 | ||
6129 | SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6130 | PyObject *resultobj = 0; | |
6131 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6132 | long arg2 ; | |
6133 | long arg3 ; | |
6134 | wxString *arg4 = 0 ; | |
6135 | void *argp1 = 0 ; | |
6136 | int res1 = 0 ; | |
6137 | long val2 ; | |
6138 | int ecode2 = 0 ; | |
6139 | long val3 ; | |
6140 | int ecode3 = 0 ; | |
6141 | bool temp4 = false ; | |
6142 | PyObject * obj0 = 0 ; | |
6143 | PyObject * obj1 = 0 ; | |
6144 | PyObject * obj2 = 0 ; | |
6145 | PyObject * obj3 = 0 ; | |
6146 | char * kwnames[] = { | |
2131d850 | 6147 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL |
0085ce49 RD |
6148 | }; |
6149 | ||
6150 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6151 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6152 | if (!SWIG_IsOK(res1)) { | |
6153 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6154 | } | |
6155 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6156 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6157 | if (!SWIG_IsOK(ecode2)) { | |
6158 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'"); | |
6159 | } | |
6160 | arg2 = static_cast< long >(val2); | |
6161 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6162 | if (!SWIG_IsOK(ecode3)) { | |
6163 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'"); | |
6164 | } | |
6165 | arg3 = static_cast< long >(val3); | |
6166 | { | |
6167 | arg4 = wxString_in_helper(obj3); | |
6168 | if (arg4 == NULL) SWIG_fail; | |
6169 | temp4 = true; | |
6170 | } | |
6171 | { | |
6172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6173 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
6174 | wxPyEndAllowThreads(__tstate); | |
6175 | if (PyErr_Occurred()) SWIG_fail; | |
6176 | } | |
6177 | resultobj = SWIG_Py_Void(); | |
6178 | { | |
6179 | if (temp4) | |
6180 | delete arg4; | |
6181 | } | |
6182 | return resultobj; | |
6183 | fail: | |
6184 | { | |
6185 | if (temp4) | |
6186 | delete arg4; | |
6187 | } | |
6188 | return NULL; | |
6189 | } | |
6190 | ||
6191 | ||
6192 | SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6193 | PyObject *resultobj = 0; | |
6194 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6195 | long arg2 ; | |
6196 | long arg3 ; | |
6197 | void *argp1 = 0 ; | |
6198 | int res1 = 0 ; | |
6199 | long val2 ; | |
6200 | int ecode2 = 0 ; | |
6201 | long val3 ; | |
6202 | int ecode3 = 0 ; | |
6203 | PyObject * obj0 = 0 ; | |
6204 | PyObject * obj1 = 0 ; | |
6205 | PyObject * obj2 = 0 ; | |
6206 | char * kwnames[] = { | |
2131d850 | 6207 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
6208 | }; |
6209 | ||
6210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6211 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6212 | if (!SWIG_IsOK(res1)) { | |
6213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6214 | } | |
6215 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6216 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6217 | if (!SWIG_IsOK(ecode2)) { | |
6218 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'"); | |
6219 | } | |
6220 | arg2 = static_cast< long >(val2); | |
6221 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6222 | if (!SWIG_IsOK(ecode3)) { | |
6223 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'"); | |
6224 | } | |
6225 | arg3 = static_cast< long >(val3); | |
6226 | { | |
6227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6228 | (arg1)->SetSelection(arg2,arg3); | |
6229 | wxPyEndAllowThreads(__tstate); | |
6230 | if (PyErr_Occurred()) SWIG_fail; | |
6231 | } | |
6232 | resultobj = SWIG_Py_Void(); | |
6233 | return resultobj; | |
6234 | fail: | |
6235 | return NULL; | |
6236 | } | |
6237 | ||
6238 | ||
6239 | SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6240 | PyObject *resultobj = 0; | |
6241 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6242 | long *arg2 = (long *) 0 ; | |
6243 | long *arg3 = (long *) 0 ; | |
6244 | void *argp1 = 0 ; | |
6245 | int res1 = 0 ; | |
6246 | long temp2 ; | |
6247 | int res2 = SWIG_TMPOBJ ; | |
6248 | long temp3 ; | |
6249 | int res3 = SWIG_TMPOBJ ; | |
6250 | PyObject *swig_obj[1] ; | |
6251 | ||
6252 | arg2 = &temp2; | |
6253 | arg3 = &temp3; | |
6254 | if (!args) SWIG_fail; | |
6255 | swig_obj[0] = args; | |
6256 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6257 | if (!SWIG_IsOK(res1)) { | |
6258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6259 | } | |
6260 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6261 | { | |
6262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6263 | (arg1)->GetSelection(arg2,arg3); | |
6264 | wxPyEndAllowThreads(__tstate); | |
6265 | if (PyErr_Occurred()) SWIG_fail; | |
6266 | } | |
6267 | resultobj = SWIG_Py_Void(); | |
6268 | if (SWIG_IsTmpObj(res2)) { | |
6269 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2))); | |
6270 | } else { | |
6271 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
6272 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags)); | |
6273 | } | |
6274 | if (SWIG_IsTmpObj(res3)) { | |
6275 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
6276 | } else { | |
6277 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
6278 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
6279 | } | |
6280 | return resultobj; | |
6281 | fail: | |
6282 | return NULL; | |
d14a1e28 RD |
6283 | } |
6284 | ||
6285 | ||
0085ce49 RD |
6286 | SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6287 | PyObject *resultobj = 0; | |
6288 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6289 | int result; | |
6290 | void *argp1 = 0 ; | |
6291 | int res1 = 0 ; | |
6292 | PyObject *swig_obj[1] ; | |
6293 | ||
6294 | if (!args) SWIG_fail; | |
6295 | swig_obj[0] = args; | |
6296 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6297 | if (!SWIG_IsOK(res1)) { | |
6298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6299 | } | |
6300 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6301 | { | |
6302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6303 | result = (int)((wxComboBox const *)arg1)->GetCurrentSelection(); | |
6304 | wxPyEndAllowThreads(__tstate); | |
6305 | if (PyErr_Occurred()) SWIG_fail; | |
6306 | } | |
6307 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6308 | return resultobj; | |
6309 | fail: | |
6310 | return NULL; | |
6311 | } | |
6312 | ||
6313 | ||
6314 | SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6315 | PyObject *resultobj = 0; | |
6316 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6317 | wxString *arg2 = 0 ; | |
6318 | bool result; | |
6319 | void *argp1 = 0 ; | |
6320 | int res1 = 0 ; | |
6321 | bool temp2 = false ; | |
6322 | PyObject * obj0 = 0 ; | |
6323 | PyObject * obj1 = 0 ; | |
6324 | char * kwnames[] = { | |
6325 | (char *) "self",(char *) "string", NULL | |
6326 | }; | |
6327 | ||
6328 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
6329 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6330 | if (!SWIG_IsOK(res1)) { | |
6331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6332 | } | |
6333 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6334 | { | |
6335 | arg2 = wxString_in_helper(obj1); | |
6336 | if (arg2 == NULL) SWIG_fail; | |
6337 | temp2 = true; | |
6338 | } | |
6339 | { | |
6340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6341 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
6342 | wxPyEndAllowThreads(__tstate); | |
6343 | if (PyErr_Occurred()) SWIG_fail; | |
6344 | } | |
6345 | { | |
6346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6347 | } | |
6348 | { | |
6349 | if (temp2) | |
6350 | delete arg2; | |
6351 | } | |
6352 | return resultobj; | |
6353 | fail: | |
6354 | { | |
6355 | if (temp2) | |
6356 | delete arg2; | |
6357 | } | |
6358 | return NULL; | |
6359 | } | |
6360 | ||
6361 | ||
6362 | SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6363 | PyObject *resultobj = 0; | |
6364 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6365 | bool arg2 ; | |
6366 | void *argp1 = 0 ; | |
6367 | int res1 = 0 ; | |
6368 | bool val2 ; | |
6369 | int ecode2 = 0 ; | |
6370 | PyObject * obj0 = 0 ; | |
6371 | PyObject * obj1 = 0 ; | |
6372 | char * kwnames[] = { | |
6373 | (char *) "self",(char *) "editable", NULL | |
6374 | }; | |
6375 | ||
6376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail; | |
6377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6378 | if (!SWIG_IsOK(res1)) { | |
6379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6380 | } | |
6381 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6382 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
6383 | if (!SWIG_IsOK(ecode2)) { | |
6384 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'"); | |
6385 | } | |
6386 | arg2 = static_cast< bool >(val2); | |
6387 | { | |
6388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6389 | (arg1)->SetEditable(arg2); | |
6390 | wxPyEndAllowThreads(__tstate); | |
6391 | if (PyErr_Occurred()) SWIG_fail; | |
6392 | } | |
6393 | resultobj = SWIG_Py_Void(); | |
6394 | return resultobj; | |
6395 | fail: | |
6396 | return NULL; | |
d14a1e28 RD |
6397 | } |
6398 | ||
6399 | ||
0085ce49 RD |
6400 | SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6401 | PyObject *resultobj = 0; | |
6402 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6403 | void *argp1 = 0 ; | |
6404 | int res1 = 0 ; | |
6405 | PyObject *swig_obj[1] ; | |
6406 | ||
6407 | if (!args) SWIG_fail; | |
6408 | swig_obj[0] = args; | |
6409 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6410 | if (!SWIG_IsOK(res1)) { | |
6411 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6412 | } | |
6413 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6414 | { | |
6415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6416 | (arg1)->SetInsertionPointEnd(); | |
6417 | wxPyEndAllowThreads(__tstate); | |
6418 | if (PyErr_Occurred()) SWIG_fail; | |
6419 | } | |
6420 | resultobj = SWIG_Py_Void(); | |
6421 | return resultobj; | |
6422 | fail: | |
6423 | return NULL; | |
6424 | } | |
6425 | ||
6426 | ||
6427 | SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6428 | PyObject *resultobj = 0; | |
6429 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6430 | long arg2 ; | |
6431 | long arg3 ; | |
6432 | void *argp1 = 0 ; | |
6433 | int res1 = 0 ; | |
6434 | long val2 ; | |
6435 | int ecode2 = 0 ; | |
6436 | long val3 ; | |
6437 | int ecode3 = 0 ; | |
6438 | PyObject * obj0 = 0 ; | |
6439 | PyObject * obj1 = 0 ; | |
6440 | PyObject * obj2 = 0 ; | |
6441 | char * kwnames[] = { | |
2131d850 | 6442 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
6443 | }; |
6444 | ||
6445 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6446 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6447 | if (!SWIG_IsOK(res1)) { | |
6448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6449 | } | |
6450 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6451 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6452 | if (!SWIG_IsOK(ecode2)) { | |
6453 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'"); | |
6454 | } | |
6455 | arg2 = static_cast< long >(val2); | |
6456 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6457 | if (!SWIG_IsOK(ecode3)) { | |
6458 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'"); | |
6459 | } | |
6460 | arg3 = static_cast< long >(val3); | |
6461 | { | |
6462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6463 | (arg1)->Remove(arg2,arg3); | |
6464 | wxPyEndAllowThreads(__tstate); | |
6465 | if (PyErr_Occurred()) SWIG_fail; | |
6466 | } | |
6467 | resultobj = SWIG_Py_Void(); | |
6468 | return resultobj; | |
6469 | fail: | |
6470 | return NULL; | |
d14a1e28 RD |
6471 | } |
6472 | ||
6473 | ||
0085ce49 RD |
6474 | SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6475 | PyObject *resultobj = 0; | |
6476 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6477 | bool result; | |
6478 | void *argp1 = 0 ; | |
6479 | int res1 = 0 ; | |
6480 | PyObject *swig_obj[1] ; | |
6481 | ||
6482 | if (!args) SWIG_fail; | |
6483 | swig_obj[0] = args; | |
6484 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6485 | if (!SWIG_IsOK(res1)) { | |
6486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6487 | } | |
6488 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6489 | { | |
6490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6491 | result = (bool)((wxComboBox const *)arg1)->IsEditable(); | |
6492 | wxPyEndAllowThreads(__tstate); | |
6493 | if (PyErr_Occurred()) SWIG_fail; | |
6494 | } | |
6495 | { | |
6496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6497 | } | |
6498 | return resultobj; | |
6499 | fail: | |
6500 | return NULL; | |
d14a1e28 RD |
6501 | } |
6502 | ||
6503 | ||
0085ce49 RD |
6504 | SWIGINTERN PyObject *_wrap_ComboBox_Undo(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_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6516 | } | |
6517 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6518 | { | |
6519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6520 | (arg1)->Undo(); | |
6521 | wxPyEndAllowThreads(__tstate); | |
6522 | if (PyErr_Occurred()) SWIG_fail; | |
6523 | } | |
6524 | resultobj = SWIG_Py_Void(); | |
6525 | return resultobj; | |
6526 | fail: | |
6527 | return NULL; | |
fd3f2efe RD |
6528 | } |
6529 | ||
6530 | ||
0085ce49 RD |
6531 | SWIGINTERN PyObject *_wrap_ComboBox_Redo(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_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6543 | } | |
6544 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6545 | { | |
6546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6547 | (arg1)->Redo(); | |
6548 | wxPyEndAllowThreads(__tstate); | |
6549 | if (PyErr_Occurred()) SWIG_fail; | |
6550 | } | |
6551 | resultobj = SWIG_Py_Void(); | |
6552 | return resultobj; | |
6553 | fail: | |
6554 | return NULL; | |
d14a1e28 RD |
6555 | } |
6556 | ||
6557 | ||
0085ce49 RD |
6558 | SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6559 | PyObject *resultobj = 0; | |
6560 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6561 | void *argp1 = 0 ; | |
6562 | int res1 = 0 ; | |
6563 | PyObject *swig_obj[1] ; | |
6564 | ||
6565 | if (!args) SWIG_fail; | |
6566 | swig_obj[0] = args; | |
6567 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6568 | if (!SWIG_IsOK(res1)) { | |
6569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6570 | } | |
6571 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6572 | { | |
6573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6574 | (arg1)->SelectAll(); | |
6575 | wxPyEndAllowThreads(__tstate); | |
6576 | if (PyErr_Occurred()) SWIG_fail; | |
6577 | } | |
6578 | resultobj = SWIG_Py_Void(); | |
6579 | return resultobj; | |
6580 | fail: | |
6581 | return NULL; | |
b9d6a5f3 RD |
6582 | } |
6583 | ||
6584 | ||
0085ce49 RD |
6585 | SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6586 | PyObject *resultobj = 0; | |
6587 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6588 | bool result; | |
6589 | void *argp1 = 0 ; | |
6590 | int res1 = 0 ; | |
6591 | PyObject *swig_obj[1] ; | |
6592 | ||
6593 | if (!args) SWIG_fail; | |
6594 | swig_obj[0] = args; | |
6595 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6596 | if (!SWIG_IsOK(res1)) { | |
6597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6598 | } | |
6599 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6600 | { | |
6601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6602 | result = (bool)((wxComboBox const *)arg1)->CanCopy(); | |
6603 | wxPyEndAllowThreads(__tstate); | |
6604 | if (PyErr_Occurred()) SWIG_fail; | |
6605 | } | |
6606 | { | |
6607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6608 | } | |
6609 | return resultobj; | |
6610 | fail: | |
6611 | return NULL; | |
943e8dfd RD |
6612 | } |
6613 | ||
6614 | ||
0085ce49 RD |
6615 | SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6616 | PyObject *resultobj = 0; | |
6617 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6618 | bool result; | |
6619 | void *argp1 = 0 ; | |
6620 | int res1 = 0 ; | |
6621 | PyObject *swig_obj[1] ; | |
6622 | ||
6623 | if (!args) SWIG_fail; | |
6624 | swig_obj[0] = args; | |
6625 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6626 | if (!SWIG_IsOK(res1)) { | |
6627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6628 | } | |
6629 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6630 | { | |
6631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6632 | result = (bool)((wxComboBox const *)arg1)->CanCut(); | |
6633 | wxPyEndAllowThreads(__tstate); | |
6634 | if (PyErr_Occurred()) SWIG_fail; | |
6635 | } | |
6636 | { | |
6637 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6638 | } | |
6639 | return resultobj; | |
6640 | fail: | |
6641 | return NULL; | |
121b9a67 RD |
6642 | } |
6643 | ||
6644 | ||
0085ce49 RD |
6645 | SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6646 | PyObject *resultobj = 0; | |
6647 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6648 | bool result; | |
6649 | void *argp1 = 0 ; | |
6650 | int res1 = 0 ; | |
6651 | PyObject *swig_obj[1] ; | |
6652 | ||
6653 | if (!args) SWIG_fail; | |
6654 | swig_obj[0] = args; | |
6655 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6656 | if (!SWIG_IsOK(res1)) { | |
6657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6658 | } | |
6659 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6660 | { | |
6661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6662 | result = (bool)((wxComboBox const *)arg1)->CanPaste(); | |
6663 | wxPyEndAllowThreads(__tstate); | |
6664 | if (PyErr_Occurred()) SWIG_fail; | |
6665 | } | |
6666 | { | |
6667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6668 | } | |
6669 | return resultobj; | |
6670 | fail: | |
6671 | return NULL; | |
121b9a67 RD |
6672 | } |
6673 | ||
6674 | ||
0085ce49 RD |
6675 | SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6676 | PyObject *resultobj = 0; | |
6677 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6678 | bool result; | |
6679 | void *argp1 = 0 ; | |
6680 | int res1 = 0 ; | |
6681 | PyObject *swig_obj[1] ; | |
6682 | ||
6683 | if (!args) SWIG_fail; | |
6684 | swig_obj[0] = args; | |
6685 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6686 | if (!SWIG_IsOK(res1)) { | |
6687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6688 | } | |
6689 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6690 | { | |
6691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6692 | result = (bool)((wxComboBox const *)arg1)->CanUndo(); | |
6693 | wxPyEndAllowThreads(__tstate); | |
6694 | if (PyErr_Occurred()) SWIG_fail; | |
6695 | } | |
6696 | { | |
6697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6698 | } | |
6699 | return resultobj; | |
6700 | fail: | |
6701 | return NULL; | |
d14a1e28 RD |
6702 | } |
6703 | ||
6704 | ||
0085ce49 RD |
6705 | SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6706 | PyObject *resultobj = 0; | |
6707 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6708 | bool result; | |
6709 | void *argp1 = 0 ; | |
6710 | int res1 = 0 ; | |
6711 | PyObject *swig_obj[1] ; | |
6712 | ||
6713 | if (!args) SWIG_fail; | |
6714 | swig_obj[0] = args; | |
6715 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6716 | if (!SWIG_IsOK(res1)) { | |
6717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6718 | } | |
6719 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6720 | { | |
6721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6722 | result = (bool)((wxComboBox const *)arg1)->CanRedo(); | |
6723 | wxPyEndAllowThreads(__tstate); | |
6724 | if (PyErr_Occurred()) SWIG_fail; | |
6725 | } | |
6726 | { | |
6727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6728 | } | |
6729 | return resultobj; | |
6730 | fail: | |
6731 | return NULL; | |
d14a1e28 RD |
6732 | } |
6733 | ||
6734 | ||
0085ce49 RD |
6735 | SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6736 | PyObject *resultobj = 0; | |
6737 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
6738 | SwigValueWrapper<wxVisualAttributes > result; | |
6739 | int val1 ; | |
6740 | int ecode1 = 0 ; | |
6741 | PyObject * obj0 = 0 ; | |
6742 | char * kwnames[] = { | |
6743 | (char *) "variant", NULL | |
6744 | }; | |
6745 | ||
6746 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
6747 | if (obj0) { | |
6748 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6749 | if (!SWIG_IsOK(ecode1)) { | |
6750 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
6751 | } | |
6752 | arg1 = static_cast< wxWindowVariant >(val1); | |
6753 | } | |
6754 | { | |
6755 | if (!wxPyCheckForApp()) SWIG_fail; | |
6756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6757 | result = wxComboBox::GetClassDefaultAttributes(arg1); | |
6758 | wxPyEndAllowThreads(__tstate); | |
6759 | if (PyErr_Occurred()) SWIG_fail; | |
6760 | } | |
6761 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
6762 | return resultobj; | |
6763 | fail: | |
6764 | return NULL; | |
d14a1e28 RD |
6765 | } |
6766 | ||
6767 | ||
0085ce49 RD |
6768 | SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6769 | PyObject *obj; | |
6770 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6771 | SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj)); | |
6772 | return SWIG_Py_Void(); | |
5cbf236d RD |
6773 | } |
6774 | ||
0085ce49 RD |
6775 | SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6776 | return SWIG_Python_InitShadowInstance(args); | |
6777 | } | |
5cbf236d | 6778 | |
0085ce49 RD |
6779 | SWIGINTERN int GaugeNameStr_set(PyObject *) { |
6780 | SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only."); | |
6781 | return 1; | |
5cbf236d RD |
6782 | } |
6783 | ||
6784 | ||
0085ce49 RD |
6785 | SWIGINTERN PyObject *GaugeNameStr_get(void) { |
6786 | PyObject *pyobj = 0; | |
6787 | ||
6788 | { | |
6789 | #if wxUSE_UNICODE | |
6790 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
6791 | #else | |
6792 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
6793 | #endif | |
6794 | } | |
6795 | return pyobj; | |
6796 | } | |
6797 | ||
6798 | ||
6799 | SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6800 | PyObject *resultobj = 0; | |
6801 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6802 | int arg2 = (int) -1 ; | |
6803 | int arg3 = (int) 100 ; | |
6804 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6805 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6806 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6807 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6808 | long arg6 = (long) wxGA_HORIZONTAL ; | |
6809 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6810 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6811 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
6812 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6813 | wxGauge *result = 0 ; | |
6814 | void *argp1 = 0 ; | |
6815 | int res1 = 0 ; | |
6816 | int val2 ; | |
6817 | int ecode2 = 0 ; | |
6818 | int val3 ; | |
6819 | int ecode3 = 0 ; | |
6820 | wxPoint temp4 ; | |
6821 | wxSize temp5 ; | |
6822 | long val6 ; | |
6823 | int ecode6 = 0 ; | |
6824 | void *argp7 = 0 ; | |
6825 | int res7 = 0 ; | |
6826 | bool temp8 = false ; | |
6827 | PyObject * obj0 = 0 ; | |
6828 | PyObject * obj1 = 0 ; | |
6829 | PyObject * obj2 = 0 ; | |
6830 | PyObject * obj3 = 0 ; | |
6831 | PyObject * obj4 = 0 ; | |
6832 | PyObject * obj5 = 0 ; | |
6833 | PyObject * obj6 = 0 ; | |
6834 | PyObject * obj7 = 0 ; | |
6835 | char * kwnames[] = { | |
6836 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6837 | }; | |
6838 | ||
6839 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
6840 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6841 | if (!SWIG_IsOK(res1)) { | |
6842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
6843 | } | |
6844 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
6845 | if (obj1) { | |
6846 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6847 | if (!SWIG_IsOK(ecode2)) { | |
6848 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'"); | |
6849 | } | |
6850 | arg2 = static_cast< int >(val2); | |
6851 | } | |
6852 | if (obj2) { | |
6853 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6854 | if (!SWIG_IsOK(ecode3)) { | |
6855 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'"); | |
6856 | } | |
6857 | arg3 = static_cast< int >(val3); | |
6858 | } | |
6859 | if (obj3) { | |
5cbf236d | 6860 | { |
0085ce49 RD |
6861 | arg4 = &temp4; |
6862 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5cbf236d | 6863 | } |
0085ce49 RD |
6864 | } |
6865 | if (obj4) { | |
5cbf236d | 6866 | { |
0085ce49 RD |
6867 | arg5 = &temp5; |
6868 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5cbf236d | 6869 | } |
0085ce49 RD |
6870 | } |
6871 | if (obj5) { | |
6872 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
6873 | if (!SWIG_IsOK(ecode6)) { | |
6874 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'"); | |
6875 | } | |
6876 | arg6 = static_cast< long >(val6); | |
6877 | } | |
6878 | if (obj6) { | |
6879 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
6880 | if (!SWIG_IsOK(res7)) { | |
6881 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
6882 | } | |
6883 | if (!argp7) { | |
6884 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
5cbf236d | 6885 | } |
0085ce49 RD |
6886 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
6887 | } | |
6888 | if (obj7) { | |
5cbf236d | 6889 | { |
0085ce49 RD |
6890 | arg8 = wxString_in_helper(obj7); |
6891 | if (arg8 == NULL) SWIG_fail; | |
6892 | temp8 = true; | |
5cbf236d | 6893 | } |
0085ce49 RD |
6894 | } |
6895 | { | |
6896 | if (!wxPyCheckForApp()) SWIG_fail; | |
6897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6898 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6899 | wxPyEndAllowThreads(__tstate); | |
6900 | if (PyErr_Occurred()) SWIG_fail; | |
6901 | } | |
6902 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 ); | |
6903 | { | |
6904 | if (temp8) | |
6905 | delete arg8; | |
6906 | } | |
6907 | return resultobj; | |
6908 | fail: | |
6909 | { | |
6910 | if (temp8) | |
6911 | delete arg8; | |
6912 | } | |
6913 | return NULL; | |
5cbf236d RD |
6914 | } |
6915 | ||
6916 | ||
0085ce49 RD |
6917 | SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6918 | PyObject *resultobj = 0; | |
6919 | wxGauge *result = 0 ; | |
6920 | ||
6921 | if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail; | |
6922 | { | |
6923 | if (!wxPyCheckForApp()) SWIG_fail; | |
6924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6925 | result = (wxGauge *)new wxGauge(); | |
6926 | wxPyEndAllowThreads(__tstate); | |
6927 | if (PyErr_Occurred()) SWIG_fail; | |
6928 | } | |
6929 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 ); | |
6930 | return resultobj; | |
6931 | fail: | |
6932 | return NULL; | |
6933 | } | |
6934 | ||
6935 | ||
6936 | SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6937 | PyObject *resultobj = 0; | |
6938 | wxGauge *arg1 = (wxGauge *) 0 ; | |
6939 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6940 | int arg3 = (int) -1 ; | |
6941 | int arg4 = (int) 100 ; | |
6942 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6943 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6944 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6945 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6946 | long arg7 = (long) wxGA_HORIZONTAL ; | |
6947 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6948 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6949 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
6950 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6951 | bool result; | |
6952 | void *argp1 = 0 ; | |
6953 | int res1 = 0 ; | |
6954 | void *argp2 = 0 ; | |
6955 | int res2 = 0 ; | |
6956 | int val3 ; | |
6957 | int ecode3 = 0 ; | |
6958 | int val4 ; | |
6959 | int ecode4 = 0 ; | |
6960 | wxPoint temp5 ; | |
6961 | wxSize temp6 ; | |
6962 | long val7 ; | |
6963 | int ecode7 = 0 ; | |
6964 | void *argp8 = 0 ; | |
6965 | int res8 = 0 ; | |
6966 | bool temp9 = false ; | |
6967 | PyObject * obj0 = 0 ; | |
6968 | PyObject * obj1 = 0 ; | |
6969 | PyObject * obj2 = 0 ; | |
6970 | PyObject * obj3 = 0 ; | |
6971 | PyObject * obj4 = 0 ; | |
6972 | PyObject * obj5 = 0 ; | |
6973 | PyObject * obj6 = 0 ; | |
6974 | PyObject * obj7 = 0 ; | |
6975 | PyObject * obj8 = 0 ; | |
6976 | char * kwnames[] = { | |
6977 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6978 | }; | |
6979 | ||
6980 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
6981 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
6982 | if (!SWIG_IsOK(res1)) { | |
6983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
6984 | } | |
6985 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
6986 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6987 | if (!SWIG_IsOK(res2)) { | |
6988 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6989 | } | |
6990 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6991 | if (obj2) { | |
6992 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6993 | if (!SWIG_IsOK(ecode3)) { | |
6994 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'"); | |
6995 | } | |
6996 | arg3 = static_cast< int >(val3); | |
6997 | } | |
6998 | if (obj3) { | |
6999 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7000 | if (!SWIG_IsOK(ecode4)) { | |
7001 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'"); | |
7002 | } | |
7003 | arg4 = static_cast< int >(val4); | |
7004 | } | |
7005 | if (obj4) { | |
5cbf236d | 7006 | { |
0085ce49 RD |
7007 | arg5 = &temp5; |
7008 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5cbf236d | 7009 | } |
0085ce49 RD |
7010 | } |
7011 | if (obj5) { | |
5cbf236d | 7012 | { |
0085ce49 RD |
7013 | arg6 = &temp6; |
7014 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5cbf236d | 7015 | } |
0085ce49 RD |
7016 | } |
7017 | if (obj6) { | |
7018 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
7019 | if (!SWIG_IsOK(ecode7)) { | |
7020 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'"); | |
7021 | } | |
7022 | arg7 = static_cast< long >(val7); | |
7023 | } | |
7024 | if (obj7) { | |
7025 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
7026 | if (!SWIG_IsOK(res8)) { | |
7027 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5cbf236d | 7028 | } |
0085ce49 RD |
7029 | if (!argp8) { |
7030 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
7031 | } | |
7032 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
7033 | } | |
7034 | if (obj8) { | |
5cbf236d | 7035 | { |
0085ce49 RD |
7036 | arg9 = wxString_in_helper(obj8); |
7037 | if (arg9 == NULL) SWIG_fail; | |
7038 | temp9 = true; | |
5cbf236d | 7039 | } |
0085ce49 RD |
7040 | } |
7041 | { | |
7042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7043 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7044 | wxPyEndAllowThreads(__tstate); | |
7045 | if (PyErr_Occurred()) SWIG_fail; | |
7046 | } | |
7047 | { | |
7048 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7049 | } | |
7050 | { | |
7051 | if (temp9) | |
7052 | delete arg9; | |
7053 | } | |
7054 | return resultobj; | |
7055 | fail: | |
7056 | { | |
7057 | if (temp9) | |
7058 | delete arg9; | |
7059 | } | |
7060 | return NULL; | |
7061 | } | |
7062 | ||
7063 | ||
7064 | SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7065 | PyObject *resultobj = 0; | |
7066 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7067 | int arg2 ; | |
7068 | void *argp1 = 0 ; | |
7069 | int res1 = 0 ; | |
7070 | int val2 ; | |
7071 | int ecode2 = 0 ; | |
7072 | PyObject * obj0 = 0 ; | |
7073 | PyObject * obj1 = 0 ; | |
7074 | char * kwnames[] = { | |
7075 | (char *) "self",(char *) "range", NULL | |
7076 | }; | |
7077 | ||
7078 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail; | |
7079 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7080 | if (!SWIG_IsOK(res1)) { | |
7081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7082 | } | |
7083 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7084 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7085 | if (!SWIG_IsOK(ecode2)) { | |
7086 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
7087 | } | |
7088 | arg2 = static_cast< int >(val2); | |
7089 | { | |
7090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7091 | (arg1)->SetRange(arg2); | |
7092 | wxPyEndAllowThreads(__tstate); | |
7093 | if (PyErr_Occurred()) SWIG_fail; | |
7094 | } | |
7095 | resultobj = SWIG_Py_Void(); | |
7096 | return resultobj; | |
7097 | fail: | |
7098 | return NULL; | |
5cbf236d RD |
7099 | } |
7100 | ||
7101 | ||
0085ce49 RD |
7102 | SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7103 | PyObject *resultobj = 0; | |
7104 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7105 | int result; | |
7106 | void *argp1 = 0 ; | |
7107 | int res1 = 0 ; | |
7108 | PyObject *swig_obj[1] ; | |
7109 | ||
7110 | if (!args) SWIG_fail; | |
7111 | swig_obj[0] = args; | |
7112 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7113 | if (!SWIG_IsOK(res1)) { | |
7114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7115 | } | |
7116 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7117 | { | |
7118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7119 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
7120 | wxPyEndAllowThreads(__tstate); | |
7121 | if (PyErr_Occurred()) SWIG_fail; | |
7122 | } | |
7123 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7124 | return resultobj; | |
7125 | fail: | |
7126 | return NULL; | |
7127 | } | |
7128 | ||
7129 | ||
7130 | SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7131 | PyObject *resultobj = 0; | |
7132 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7133 | int arg2 ; | |
7134 | void *argp1 = 0 ; | |
7135 | int res1 = 0 ; | |
7136 | int val2 ; | |
7137 | int ecode2 = 0 ; | |
7138 | PyObject * obj0 = 0 ; | |
7139 | PyObject * obj1 = 0 ; | |
7140 | char * kwnames[] = { | |
7141 | (char *) "self",(char *) "pos", NULL | |
7142 | }; | |
7143 | ||
7144 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
7145 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7146 | if (!SWIG_IsOK(res1)) { | |
7147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7148 | } | |
7149 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7150 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7151 | if (!SWIG_IsOK(ecode2)) { | |
7152 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
7153 | } | |
7154 | arg2 = static_cast< int >(val2); | |
7155 | { | |
7156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7157 | (arg1)->SetValue(arg2); | |
7158 | wxPyEndAllowThreads(__tstate); | |
7159 | if (PyErr_Occurred()) SWIG_fail; | |
7160 | } | |
7161 | resultobj = SWIG_Py_Void(); | |
7162 | return resultobj; | |
7163 | fail: | |
7164 | return NULL; | |
5cbf236d RD |
7165 | } |
7166 | ||
7167 | ||
0085ce49 RD |
7168 | SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7169 | PyObject *resultobj = 0; | |
7170 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7171 | int result; | |
7172 | void *argp1 = 0 ; | |
7173 | int res1 = 0 ; | |
7174 | PyObject *swig_obj[1] ; | |
7175 | ||
7176 | if (!args) SWIG_fail; | |
7177 | swig_obj[0] = args; | |
7178 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7179 | if (!SWIG_IsOK(res1)) { | |
7180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7181 | } | |
7182 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7183 | { | |
7184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7185 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
7186 | wxPyEndAllowThreads(__tstate); | |
7187 | if (PyErr_Occurred()) SWIG_fail; | |
7188 | } | |
7189 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7190 | return resultobj; | |
7191 | fail: | |
7192 | return NULL; | |
5cbf236d RD |
7193 | } |
7194 | ||
7195 | ||
ae5bc7f3 RD |
7196 | SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7197 | PyObject *resultobj = 0; | |
7198 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7199 | void *argp1 = 0 ; | |
7200 | int res1 = 0 ; | |
7201 | PyObject *swig_obj[1] ; | |
7202 | ||
7203 | if (!args) SWIG_fail; | |
7204 | swig_obj[0] = args; | |
7205 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7206 | if (!SWIG_IsOK(res1)) { | |
7207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7208 | } | |
7209 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7210 | { | |
7211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7212 | (arg1)->Pulse(); | |
7213 | wxPyEndAllowThreads(__tstate); | |
7214 | if (PyErr_Occurred()) SWIG_fail; | |
7215 | } | |
7216 | resultobj = SWIG_Py_Void(); | |
7217 | return resultobj; | |
7218 | fail: | |
7219 | return NULL; | |
7220 | } | |
7221 | ||
7222 | ||
0085ce49 RD |
7223 | SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7224 | PyObject *resultobj = 0; | |
7225 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7226 | bool result; | |
7227 | void *argp1 = 0 ; | |
7228 | int res1 = 0 ; | |
7229 | PyObject *swig_obj[1] ; | |
7230 | ||
7231 | if (!args) SWIG_fail; | |
7232 | swig_obj[0] = args; | |
7233 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7234 | if (!SWIG_IsOK(res1)) { | |
7235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7236 | } | |
7237 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7238 | { | |
7239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7240 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
7241 | wxPyEndAllowThreads(__tstate); | |
7242 | if (PyErr_Occurred()) SWIG_fail; | |
7243 | } | |
7244 | { | |
7245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7246 | } | |
7247 | return resultobj; | |
7248 | fail: | |
7249 | return NULL; | |
7250 | } | |
7251 | ||
7252 | ||
7253 | SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7254 | PyObject *resultobj = 0; | |
7255 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7256 | int arg2 ; | |
7257 | void *argp1 = 0 ; | |
7258 | int res1 = 0 ; | |
7259 | int val2 ; | |
7260 | int ecode2 = 0 ; | |
7261 | PyObject * obj0 = 0 ; | |
7262 | PyObject * obj1 = 0 ; | |
7263 | char * kwnames[] = { | |
7264 | (char *) "self",(char *) "w", NULL | |
7265 | }; | |
7266 | ||
7267 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
7268 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7269 | if (!SWIG_IsOK(res1)) { | |
7270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7271 | } | |
7272 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7273 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7274 | if (!SWIG_IsOK(ecode2)) { | |
7275 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'"); | |
7276 | } | |
7277 | arg2 = static_cast< int >(val2); | |
7278 | { | |
7279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7280 | (arg1)->SetShadowWidth(arg2); | |
7281 | wxPyEndAllowThreads(__tstate); | |
7282 | if (PyErr_Occurred()) SWIG_fail; | |
7283 | } | |
7284 | resultobj = SWIG_Py_Void(); | |
7285 | return resultobj; | |
7286 | fail: | |
7287 | return NULL; | |
22bfe96c RD |
7288 | } |
7289 | ||
7290 | ||
0085ce49 RD |
7291 | SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7292 | PyObject *resultobj = 0; | |
7293 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7294 | int result; | |
7295 | void *argp1 = 0 ; | |
7296 | int res1 = 0 ; | |
7297 | PyObject *swig_obj[1] ; | |
7298 | ||
7299 | if (!args) SWIG_fail; | |
7300 | swig_obj[0] = args; | |
7301 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7302 | if (!SWIG_IsOK(res1)) { | |
7303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7304 | } | |
7305 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7306 | { | |
7307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7308 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
7309 | wxPyEndAllowThreads(__tstate); | |
7310 | if (PyErr_Occurred()) SWIG_fail; | |
7311 | } | |
7312 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7313 | return resultobj; | |
7314 | fail: | |
7315 | return NULL; | |
7316 | } | |
7317 | ||
7318 | ||
7319 | SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7320 | PyObject *resultobj = 0; | |
7321 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7322 | int arg2 ; | |
7323 | void *argp1 = 0 ; | |
7324 | int res1 = 0 ; | |
7325 | int val2 ; | |
7326 | int ecode2 = 0 ; | |
7327 | PyObject * obj0 = 0 ; | |
7328 | PyObject * obj1 = 0 ; | |
7329 | char * kwnames[] = { | |
7330 | (char *) "self",(char *) "w", NULL | |
7331 | }; | |
7332 | ||
7333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail; | |
7334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7335 | if (!SWIG_IsOK(res1)) { | |
7336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'"); | |
7337 | } | |
7338 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7339 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7340 | if (!SWIG_IsOK(ecode2)) { | |
7341 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'"); | |
7342 | } | |
7343 | arg2 = static_cast< int >(val2); | |
7344 | { | |
7345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7346 | (arg1)->SetBezelFace(arg2); | |
7347 | wxPyEndAllowThreads(__tstate); | |
7348 | if (PyErr_Occurred()) SWIG_fail; | |
7349 | } | |
7350 | resultobj = SWIG_Py_Void(); | |
7351 | return resultobj; | |
7352 | fail: | |
7353 | return NULL; | |
d14a1e28 | 7354 | } |
0085ce49 RD |
7355 | |
7356 | ||
7357 | SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7358 | PyObject *resultobj = 0; | |
7359 | wxGauge *arg1 = (wxGauge *) 0 ; | |
7360 | int result; | |
7361 | void *argp1 = 0 ; | |
7362 | int res1 = 0 ; | |
7363 | PyObject *swig_obj[1] ; | |
7364 | ||
7365 | if (!args) SWIG_fail; | |
7366 | swig_obj[0] = args; | |
7367 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 ); | |
7368 | if (!SWIG_IsOK(res1)) { | |
7369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'"); | |
7370 | } | |
7371 | arg1 = reinterpret_cast< wxGauge * >(argp1); | |
7372 | { | |
7373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7374 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
7375 | wxPyEndAllowThreads(__tstate); | |
7376 | if (PyErr_Occurred()) SWIG_fail; | |
7377 | } | |
7378 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7379 | return resultobj; | |
7380 | fail: | |
7381 | return NULL; | |
7382 | } | |
7383 | ||
7384 | ||
7385 | SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7386 | PyObject *resultobj = 0; | |
7387 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7388 | SwigValueWrapper<wxVisualAttributes > result; | |
7389 | int val1 ; | |
7390 | int ecode1 = 0 ; | |
7391 | PyObject * obj0 = 0 ; | |
7392 | char * kwnames[] = { | |
7393 | (char *) "variant", NULL | |
7394 | }; | |
7395 | ||
7396 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7397 | if (obj0) { | |
7398 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7399 | if (!SWIG_IsOK(ecode1)) { | |
7400 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7401 | } | |
7402 | arg1 = static_cast< wxWindowVariant >(val1); | |
7403 | } | |
7404 | { | |
7405 | if (!wxPyCheckForApp()) SWIG_fail; | |
7406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7407 | result = wxGauge::GetClassDefaultAttributes(arg1); | |
7408 | wxPyEndAllowThreads(__tstate); | |
7409 | if (PyErr_Occurred()) SWIG_fail; | |
7410 | } | |
7411 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7412 | return resultobj; | |
7413 | fail: | |
7414 | return NULL; | |
b2dc1044 RD |
7415 | } |
7416 | ||
7417 | ||
0085ce49 RD |
7418 | SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7419 | PyObject *obj; | |
7420 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7421 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj)); | |
7422 | return SWIG_Py_Void(); | |
7423 | } | |
7424 | ||
7425 | SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7426 | return SWIG_Python_InitShadowInstance(args); | |
7427 | } | |
7428 | ||
7429 | SWIGINTERN int StaticBitmapNameStr_set(PyObject *) { | |
7430 | SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only."); | |
7431 | return 1; | |
7432 | } | |
7433 | ||
7434 | ||
7435 | SWIGINTERN PyObject *StaticBitmapNameStr_get(void) { | |
7436 | PyObject *pyobj = 0; | |
7437 | ||
7438 | { | |
b2dc1044 | 7439 | #if wxUSE_UNICODE |
0085ce49 | 7440 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); |
b2dc1044 | 7441 | #else |
0085ce49 | 7442 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); |
b2dc1044 | 7443 | #endif |
0085ce49 RD |
7444 | } |
7445 | return pyobj; | |
d14a1e28 RD |
7446 | } |
7447 | ||
7448 | ||
0085ce49 RD |
7449 | SWIGINTERN int StaticBoxNameStr_set(PyObject *) { |
7450 | SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only."); | |
7451 | return 1; | |
d14a1e28 RD |
7452 | } |
7453 | ||
7454 | ||
0085ce49 RD |
7455 | SWIGINTERN PyObject *StaticBoxNameStr_get(void) { |
7456 | PyObject *pyobj = 0; | |
7457 | ||
7458 | { | |
7459 | #if wxUSE_UNICODE | |
7460 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
7461 | #else | |
7462 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
7463 | #endif | |
7464 | } | |
7465 | return pyobj; | |
7466 | } | |
7467 | ||
7468 | ||
7469 | SWIGINTERN int StaticTextNameStr_set(PyObject *) { | |
7470 | SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only."); | |
7471 | return 1; | |
7472 | } | |
7473 | ||
7474 | ||
7475 | SWIGINTERN PyObject *StaticTextNameStr_get(void) { | |
7476 | PyObject *pyobj = 0; | |
7477 | ||
7478 | { | |
7479 | #if wxUSE_UNICODE | |
7480 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
7481 | #else | |
7482 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
7483 | #endif | |
7484 | } | |
7485 | return pyobj; | |
7486 | } | |
7487 | ||
7488 | ||
3f7f284d RD |
7489 | SWIGINTERN int StaticLineNameStr_set(PyObject *) { |
7490 | SWIG_Error(SWIG_AttributeError,"Variable StaticLineNameStr is read-only."); | |
7491 | return 1; | |
7492 | } | |
7493 | ||
7494 | ||
7495 | SWIGINTERN PyObject *StaticLineNameStr_get(void) { | |
7496 | PyObject *pyobj = 0; | |
7497 | ||
7498 | { | |
7499 | #if wxUSE_UNICODE | |
7500 | pyobj = PyUnicode_FromWideChar((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len()); | |
7501 | #else | |
7502 | pyobj = PyString_FromStringAndSize((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len()); | |
7503 | #endif | |
7504 | } | |
7505 | return pyobj; | |
7506 | } | |
7507 | ||
7508 | ||
0085ce49 RD |
7509 | SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7510 | PyObject *resultobj = 0; | |
7511 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7512 | int arg2 = (int) -1 ; | |
7513 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7514 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7515 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7516 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7517 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7518 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7519 | long arg6 = (long) 0 ; | |
7520 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
7521 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7522 | wxStaticBox *result = 0 ; | |
7523 | void *argp1 = 0 ; | |
7524 | int res1 = 0 ; | |
7525 | int val2 ; | |
7526 | int ecode2 = 0 ; | |
7527 | bool temp3 = false ; | |
7528 | wxPoint temp4 ; | |
7529 | wxSize temp5 ; | |
7530 | long val6 ; | |
7531 | int ecode6 = 0 ; | |
7532 | bool temp7 = false ; | |
7533 | PyObject * obj0 = 0 ; | |
7534 | PyObject * obj1 = 0 ; | |
7535 | PyObject * obj2 = 0 ; | |
7536 | PyObject * obj3 = 0 ; | |
7537 | PyObject * obj4 = 0 ; | |
7538 | PyObject * obj5 = 0 ; | |
7539 | PyObject * obj6 = 0 ; | |
7540 | char * kwnames[] = { | |
7541 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7542 | }; | |
7543 | ||
7544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7546 | if (!SWIG_IsOK(res1)) { | |
7547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7548 | } | |
7549 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7550 | if (obj1) { | |
7551 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7552 | if (!SWIG_IsOK(ecode2)) { | |
7553 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'"); | |
7554 | } | |
7555 | arg2 = static_cast< int >(val2); | |
7556 | } | |
7557 | if (obj2) { | |
d14a1e28 | 7558 | { |
0085ce49 RD |
7559 | arg3 = wxString_in_helper(obj2); |
7560 | if (arg3 == NULL) SWIG_fail; | |
7561 | temp3 = true; | |
d14a1e28 | 7562 | } |
0085ce49 RD |
7563 | } |
7564 | if (obj3) { | |
4f89f6a3 | 7565 | { |
0085ce49 RD |
7566 | arg4 = &temp4; |
7567 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 7568 | } |
0085ce49 RD |
7569 | } |
7570 | if (obj4) { | |
d14a1e28 | 7571 | { |
0085ce49 RD |
7572 | arg5 = &temp5; |
7573 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 7574 | } |
0085ce49 RD |
7575 | } |
7576 | if (obj5) { | |
7577 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7578 | if (!SWIG_IsOK(ecode6)) { | |
7579 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'"); | |
7580 | } | |
7581 | arg6 = static_cast< long >(val6); | |
7582 | } | |
7583 | if (obj6) { | |
d14a1e28 | 7584 | { |
0085ce49 RD |
7585 | arg7 = wxString_in_helper(obj6); |
7586 | if (arg7 == NULL) SWIG_fail; | |
7587 | temp7 = true; | |
d14a1e28 | 7588 | } |
0085ce49 RD |
7589 | } |
7590 | { | |
7591 | if (!wxPyCheckForApp()) SWIG_fail; | |
7592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7593 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7594 | wxPyEndAllowThreads(__tstate); | |
7595 | if (PyErr_Occurred()) SWIG_fail; | |
7596 | } | |
7597 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 ); | |
7598 | { | |
7599 | if (temp3) | |
7600 | delete arg3; | |
7601 | } | |
7602 | { | |
7603 | if (temp7) | |
7604 | delete arg7; | |
7605 | } | |
7606 | return resultobj; | |
7607 | fail: | |
7608 | { | |
7609 | if (temp3) | |
7610 | delete arg3; | |
7611 | } | |
7612 | { | |
7613 | if (temp7) | |
7614 | delete arg7; | |
7615 | } | |
7616 | return NULL; | |
d14a1e28 RD |
7617 | } |
7618 | ||
7619 | ||
0085ce49 RD |
7620 | SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7621 | PyObject *resultobj = 0; | |
7622 | wxStaticBox *result = 0 ; | |
7623 | ||
7624 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail; | |
7625 | { | |
7626 | if (!wxPyCheckForApp()) SWIG_fail; | |
7627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7628 | result = (wxStaticBox *)new wxStaticBox(); | |
7629 | wxPyEndAllowThreads(__tstate); | |
7630 | if (PyErr_Occurred()) SWIG_fail; | |
7631 | } | |
7632 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 ); | |
7633 | return resultobj; | |
7634 | fail: | |
7635 | return NULL; | |
7636 | } | |
7637 | ||
7638 | ||
7639 | SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7640 | PyObject *resultobj = 0; | |
7641 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
7642 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7643 | int arg3 = (int) -1 ; | |
7644 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7645 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7646 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7647 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7648 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7649 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7650 | long arg7 = (long) 0 ; | |
7651 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
7652 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7653 | bool result; | |
7654 | void *argp1 = 0 ; | |
7655 | int res1 = 0 ; | |
7656 | void *argp2 = 0 ; | |
7657 | int res2 = 0 ; | |
7658 | int val3 ; | |
7659 | int ecode3 = 0 ; | |
7660 | bool temp4 = false ; | |
7661 | wxPoint temp5 ; | |
7662 | wxSize temp6 ; | |
7663 | long val7 ; | |
7664 | int ecode7 = 0 ; | |
7665 | bool temp8 = false ; | |
7666 | PyObject * obj0 = 0 ; | |
7667 | PyObject * obj1 = 0 ; | |
7668 | PyObject * obj2 = 0 ; | |
7669 | PyObject * obj3 = 0 ; | |
7670 | PyObject * obj4 = 0 ; | |
7671 | PyObject * obj5 = 0 ; | |
7672 | PyObject * obj6 = 0 ; | |
7673 | PyObject * obj7 = 0 ; | |
7674 | char * kwnames[] = { | |
7675 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7676 | }; | |
7677 | ||
7678 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
7679 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 ); | |
7680 | if (!SWIG_IsOK(res1)) { | |
7681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'"); | |
7682 | } | |
7683 | arg1 = reinterpret_cast< wxStaticBox * >(argp1); | |
7684 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7685 | if (!SWIG_IsOK(res2)) { | |
7686 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7687 | } | |
7688 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7689 | if (obj2) { | |
7690 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7691 | if (!SWIG_IsOK(ecode3)) { | |
7692 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
7693 | } | |
7694 | arg3 = static_cast< int >(val3); | |
7695 | } | |
7696 | if (obj3) { | |
093d3ff1 | 7697 | { |
0085ce49 RD |
7698 | arg4 = wxString_in_helper(obj3); |
7699 | if (arg4 == NULL) SWIG_fail; | |
7700 | temp4 = true; | |
093d3ff1 | 7701 | } |
0085ce49 RD |
7702 | } |
7703 | if (obj4) { | |
d14a1e28 | 7704 | { |
0085ce49 RD |
7705 | arg5 = &temp5; |
7706 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 7707 | } |
0085ce49 RD |
7708 | } |
7709 | if (obj5) { | |
d14a1e28 | 7710 | { |
0085ce49 RD |
7711 | arg6 = &temp6; |
7712 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 7713 | } |
0085ce49 RD |
7714 | } |
7715 | if (obj6) { | |
7716 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
7717 | if (!SWIG_IsOK(ecode7)) { | |
7718 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
7719 | } | |
7720 | arg7 = static_cast< long >(val7); | |
7721 | } | |
7722 | if (obj7) { | |
093d3ff1 | 7723 | { |
0085ce49 RD |
7724 | arg8 = wxString_in_helper(obj7); |
7725 | if (arg8 == NULL) SWIG_fail; | |
7726 | temp8 = true; | |
093d3ff1 | 7727 | } |
0085ce49 RD |
7728 | } |
7729 | { | |
7730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7731 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7732 | wxPyEndAllowThreads(__tstate); | |
7733 | if (PyErr_Occurred()) SWIG_fail; | |
7734 | } | |
7735 | { | |
7736 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7737 | } | |
7738 | { | |
7739 | if (temp4) | |
7740 | delete arg4; | |
7741 | } | |
7742 | { | |
7743 | if (temp8) | |
7744 | delete arg8; | |
7745 | } | |
7746 | return resultobj; | |
7747 | fail: | |
7748 | { | |
7749 | if (temp4) | |
7750 | delete arg4; | |
7751 | } | |
7752 | { | |
7753 | if (temp8) | |
7754 | delete arg8; | |
7755 | } | |
7756 | return NULL; | |
7757 | } | |
d14a1e28 | 7758 | |
0085ce49 RD |
7759 | |
7760 | SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7761 | PyObject *resultobj = 0; | |
7762 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7763 | SwigValueWrapper<wxVisualAttributes > result; | |
7764 | int val1 ; | |
7765 | int ecode1 = 0 ; | |
7766 | PyObject * obj0 = 0 ; | |
7767 | char * kwnames[] = { | |
7768 | (char *) "variant", NULL | |
7769 | }; | |
7770 | ||
7771 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7772 | if (obj0) { | |
7773 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7774 | if (!SWIG_IsOK(ecode1)) { | |
7775 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7776 | } | |
7777 | arg1 = static_cast< wxWindowVariant >(val1); | |
7778 | } | |
7779 | { | |
7780 | if (!wxPyCheckForApp()) SWIG_fail; | |
7781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7782 | result = wxStaticBox::GetClassDefaultAttributes(arg1); | |
7783 | wxPyEndAllowThreads(__tstate); | |
7784 | if (PyErr_Occurred()) SWIG_fail; | |
7785 | } | |
7786 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7787 | return resultobj; | |
7788 | fail: | |
7789 | return NULL; | |
7790 | } | |
7791 | ||
7792 | ||
7793 | SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7794 | PyObject *obj; | |
7795 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7796 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj)); | |
7797 | return SWIG_Py_Void(); | |
7798 | } | |
7799 | ||
7800 | SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7801 | return SWIG_Python_InitShadowInstance(args); | |
7802 | } | |
7803 | ||
7804 | SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7805 | PyObject *resultobj = 0; | |
7806 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7807 | int arg2 = (int) -1 ; | |
7808 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
7809 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7810 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7811 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
7812 | long arg5 = (long) wxLI_HORIZONTAL ; | |
3f7f284d | 7813 | wxString const &arg6_defvalue = wxPyStaticLineNameStr ; |
0085ce49 RD |
7814 | wxString *arg6 = (wxString *) &arg6_defvalue ; |
7815 | wxStaticLine *result = 0 ; | |
7816 | void *argp1 = 0 ; | |
7817 | int res1 = 0 ; | |
7818 | int val2 ; | |
7819 | int ecode2 = 0 ; | |
7820 | wxPoint temp3 ; | |
7821 | wxSize temp4 ; | |
7822 | long val5 ; | |
7823 | int ecode5 = 0 ; | |
7824 | bool temp6 = false ; | |
7825 | PyObject * obj0 = 0 ; | |
7826 | PyObject * obj1 = 0 ; | |
7827 | PyObject * obj2 = 0 ; | |
7828 | PyObject * obj3 = 0 ; | |
7829 | PyObject * obj4 = 0 ; | |
7830 | PyObject * obj5 = 0 ; | |
7831 | char * kwnames[] = { | |
7832 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7833 | }; | |
7834 | ||
7835 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
7836 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7837 | if (!SWIG_IsOK(res1)) { | |
7838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7839 | } | |
7840 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7841 | if (obj1) { | |
7842 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7843 | if (!SWIG_IsOK(ecode2)) { | |
7844 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'"); | |
7845 | } | |
7846 | arg2 = static_cast< int >(val2); | |
7847 | } | |
7848 | if (obj2) { | |
093d3ff1 | 7849 | { |
0085ce49 RD |
7850 | arg3 = &temp3; |
7851 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 7852 | } |
0085ce49 RD |
7853 | } |
7854 | if (obj3) { | |
d14a1e28 | 7855 | { |
0085ce49 RD |
7856 | arg4 = &temp4; |
7857 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 7858 | } |
0085ce49 RD |
7859 | } |
7860 | if (obj4) { | |
7861 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
7862 | if (!SWIG_IsOK(ecode5)) { | |
7863 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'"); | |
7864 | } | |
7865 | arg5 = static_cast< long >(val5); | |
7866 | } | |
7867 | if (obj5) { | |
7868 | { | |
7869 | arg6 = wxString_in_helper(obj5); | |
7870 | if (arg6 == NULL) SWIG_fail; | |
7871 | temp6 = true; | |
7872 | } | |
7873 | } | |
7874 | { | |
7875 | if (!wxPyCheckForApp()) SWIG_fail; | |
7876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7877 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
7878 | wxPyEndAllowThreads(__tstate); | |
7879 | if (PyErr_Occurred()) SWIG_fail; | |
7880 | } | |
7881 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 ); | |
7882 | { | |
7883 | if (temp6) | |
7884 | delete arg6; | |
7885 | } | |
7886 | return resultobj; | |
7887 | fail: | |
7888 | { | |
7889 | if (temp6) | |
7890 | delete arg6; | |
7891 | } | |
7892 | return NULL; | |
d14a1e28 RD |
7893 | } |
7894 | ||
7895 | ||
0085ce49 RD |
7896 | SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7897 | PyObject *resultobj = 0; | |
7898 | wxStaticLine *result = 0 ; | |
7899 | ||
7900 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail; | |
7901 | { | |
7902 | if (!wxPyCheckForApp()) SWIG_fail; | |
7903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7904 | result = (wxStaticLine *)new wxStaticLine(); | |
7905 | wxPyEndAllowThreads(__tstate); | |
7906 | if (PyErr_Occurred()) SWIG_fail; | |
7907 | } | |
7908 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 ); | |
7909 | return resultobj; | |
7910 | fail: | |
7911 | return NULL; | |
7912 | } | |
7913 | ||
7914 | ||
7915 | SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7916 | PyObject *resultobj = 0; | |
7917 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
7918 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7919 | int arg3 = (int) -1 ; | |
7920 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7921 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7922 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7923 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7924 | long arg6 = (long) wxLI_HORIZONTAL ; | |
3f7f284d | 7925 | wxString const &arg7_defvalue = wxPyStaticLineNameStr ; |
0085ce49 RD |
7926 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
7927 | bool result; | |
7928 | void *argp1 = 0 ; | |
7929 | int res1 = 0 ; | |
7930 | void *argp2 = 0 ; | |
7931 | int res2 = 0 ; | |
7932 | int val3 ; | |
7933 | int ecode3 = 0 ; | |
7934 | wxPoint temp4 ; | |
7935 | wxSize temp5 ; | |
7936 | long val6 ; | |
7937 | int ecode6 = 0 ; | |
7938 | bool temp7 = false ; | |
7939 | PyObject * obj0 = 0 ; | |
7940 | PyObject * obj1 = 0 ; | |
7941 | PyObject * obj2 = 0 ; | |
7942 | PyObject * obj3 = 0 ; | |
7943 | PyObject * obj4 = 0 ; | |
7944 | PyObject * obj5 = 0 ; | |
7945 | PyObject * obj6 = 0 ; | |
7946 | char * kwnames[] = { | |
7947 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7948 | }; | |
7949 | ||
7950 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7951 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 ); | |
7952 | if (!SWIG_IsOK(res1)) { | |
7953 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'"); | |
7954 | } | |
7955 | arg1 = reinterpret_cast< wxStaticLine * >(argp1); | |
7956 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7957 | if (!SWIG_IsOK(res2)) { | |
7958 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7959 | } | |
7960 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7961 | if (obj2) { | |
7962 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7963 | if (!SWIG_IsOK(ecode3)) { | |
7964 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'"); | |
7965 | } | |
7966 | arg3 = static_cast< int >(val3); | |
7967 | } | |
7968 | if (obj3) { | |
d14a1e28 | 7969 | { |
0085ce49 RD |
7970 | arg4 = &temp4; |
7971 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 7972 | } |
0085ce49 RD |
7973 | } |
7974 | if (obj4) { | |
093d3ff1 | 7975 | { |
0085ce49 RD |
7976 | arg5 = &temp5; |
7977 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 7978 | } |
0085ce49 RD |
7979 | } |
7980 | if (obj5) { | |
7981 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7982 | if (!SWIG_IsOK(ecode6)) { | |
7983 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'"); | |
7984 | } | |
7985 | arg6 = static_cast< long >(val6); | |
7986 | } | |
7987 | if (obj6) { | |
7988 | { | |
7989 | arg7 = wxString_in_helper(obj6); | |
7990 | if (arg7 == NULL) SWIG_fail; | |
7991 | temp7 = true; | |
7992 | } | |
7993 | } | |
7994 | { | |
7995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7996 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7997 | wxPyEndAllowThreads(__tstate); | |
7998 | if (PyErr_Occurred()) SWIG_fail; | |
7999 | } | |
8000 | { | |
8001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8002 | } | |
8003 | { | |
8004 | if (temp7) | |
8005 | delete arg7; | |
8006 | } | |
8007 | return resultobj; | |
8008 | fail: | |
8009 | { | |
8010 | if (temp7) | |
8011 | delete arg7; | |
8012 | } | |
8013 | return NULL; | |
d14a1e28 RD |
8014 | } |
8015 | ||
8016 | ||
0085ce49 RD |
8017 | SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8018 | PyObject *resultobj = 0; | |
8019 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
8020 | bool result; | |
8021 | void *argp1 = 0 ; | |
8022 | int res1 = 0 ; | |
8023 | PyObject *swig_obj[1] ; | |
8024 | ||
8025 | if (!args) SWIG_fail; | |
8026 | swig_obj[0] = args; | |
8027 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 ); | |
8028 | if (!SWIG_IsOK(res1)) { | |
8029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'"); | |
8030 | } | |
8031 | arg1 = reinterpret_cast< wxStaticLine * >(argp1); | |
8032 | { | |
8033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8034 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
8035 | wxPyEndAllowThreads(__tstate); | |
8036 | if (PyErr_Occurred()) SWIG_fail; | |
8037 | } | |
8038 | { | |
8039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8040 | } | |
8041 | return resultobj; | |
8042 | fail: | |
8043 | return NULL; | |
8044 | } | |
8045 | ||
8046 | ||
8047 | SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8048 | PyObject *resultobj = 0; | |
8049 | int result; | |
8050 | ||
8051 | if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail; | |
8052 | { | |
8053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8054 | result = (int)wxStaticLine::GetDefaultSize(); | |
8055 | wxPyEndAllowThreads(__tstate); | |
8056 | if (PyErr_Occurred()) SWIG_fail; | |
8057 | } | |
8058 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8059 | return resultobj; | |
8060 | fail: | |
8061 | return NULL; | |
8062 | } | |
8063 | ||
8064 | ||
8065 | SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8066 | PyObject *resultobj = 0; | |
8067 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8068 | SwigValueWrapper<wxVisualAttributes > result; | |
8069 | int val1 ; | |
8070 | int ecode1 = 0 ; | |
8071 | PyObject * obj0 = 0 ; | |
8072 | char * kwnames[] = { | |
8073 | (char *) "variant", NULL | |
8074 | }; | |
8075 | ||
8076 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8077 | if (obj0) { | |
8078 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8079 | if (!SWIG_IsOK(ecode1)) { | |
8080 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8081 | } | |
8082 | arg1 = static_cast< wxWindowVariant >(val1); | |
8083 | } | |
8084 | { | |
8085 | if (!wxPyCheckForApp()) SWIG_fail; | |
8086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8087 | result = wxStaticLine::GetClassDefaultAttributes(arg1); | |
8088 | wxPyEndAllowThreads(__tstate); | |
8089 | if (PyErr_Occurred()) SWIG_fail; | |
8090 | } | |
8091 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8092 | return resultobj; | |
8093 | fail: | |
8094 | return NULL; | |
8095 | } | |
8096 | ||
8097 | ||
8098 | SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8099 | PyObject *obj; | |
8100 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8101 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj)); | |
8102 | return SWIG_Py_Void(); | |
8103 | } | |
8104 | ||
8105 | SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8106 | return SWIG_Python_InitShadowInstance(args); | |
8107 | } | |
8108 | ||
8109 | SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8110 | PyObject *resultobj = 0; | |
8111 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8112 | int arg2 = (int) -1 ; | |
8113 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8114 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8115 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8116 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8117 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8118 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8119 | long arg6 = (long) 0 ; | |
8120 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
8121 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8122 | wxStaticText *result = 0 ; | |
8123 | void *argp1 = 0 ; | |
8124 | int res1 = 0 ; | |
8125 | int val2 ; | |
8126 | int ecode2 = 0 ; | |
8127 | bool temp3 = false ; | |
8128 | wxPoint temp4 ; | |
8129 | wxSize temp5 ; | |
8130 | long val6 ; | |
8131 | int ecode6 = 0 ; | |
8132 | bool temp7 = false ; | |
8133 | PyObject * obj0 = 0 ; | |
8134 | PyObject * obj1 = 0 ; | |
8135 | PyObject * obj2 = 0 ; | |
8136 | PyObject * obj3 = 0 ; | |
8137 | PyObject * obj4 = 0 ; | |
8138 | PyObject * obj5 = 0 ; | |
8139 | PyObject * obj6 = 0 ; | |
8140 | char * kwnames[] = { | |
8141 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8142 | }; | |
8143 | ||
8144 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
8145 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8146 | if (!SWIG_IsOK(res1)) { | |
8147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8148 | } | |
8149 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8150 | if (obj1) { | |
8151 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8152 | if (!SWIG_IsOK(ecode2)) { | |
8153 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'"); | |
8154 | } | |
8155 | arg2 = static_cast< int >(val2); | |
8156 | } | |
8157 | if (obj2) { | |
d14a1e28 | 8158 | { |
0085ce49 RD |
8159 | arg3 = wxString_in_helper(obj2); |
8160 | if (arg3 == NULL) SWIG_fail; | |
8161 | temp3 = true; | |
d14a1e28 | 8162 | } |
0085ce49 RD |
8163 | } |
8164 | if (obj3) { | |
4f89f6a3 | 8165 | { |
0085ce49 RD |
8166 | arg4 = &temp4; |
8167 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 8168 | } |
0085ce49 RD |
8169 | } |
8170 | if (obj4) { | |
093d3ff1 | 8171 | { |
0085ce49 RD |
8172 | arg5 = &temp5; |
8173 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 8174 | } |
0085ce49 RD |
8175 | } |
8176 | if (obj5) { | |
8177 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8178 | if (!SWIG_IsOK(ecode6)) { | |
8179 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'"); | |
8180 | } | |
8181 | arg6 = static_cast< long >(val6); | |
8182 | } | |
8183 | if (obj6) { | |
d14a1e28 | 8184 | { |
0085ce49 RD |
8185 | arg7 = wxString_in_helper(obj6); |
8186 | if (arg7 == NULL) SWIG_fail; | |
8187 | temp7 = true; | |
d14a1e28 | 8188 | } |
0085ce49 RD |
8189 | } |
8190 | { | |
8191 | if (!wxPyCheckForApp()) SWIG_fail; | |
8192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8193 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8194 | wxPyEndAllowThreads(__tstate); | |
8195 | if (PyErr_Occurred()) SWIG_fail; | |
8196 | } | |
8197 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 ); | |
8198 | { | |
8199 | if (temp3) | |
8200 | delete arg3; | |
8201 | } | |
8202 | { | |
8203 | if (temp7) | |
8204 | delete arg7; | |
8205 | } | |
8206 | return resultobj; | |
8207 | fail: | |
8208 | { | |
8209 | if (temp3) | |
8210 | delete arg3; | |
8211 | } | |
8212 | { | |
8213 | if (temp7) | |
8214 | delete arg7; | |
8215 | } | |
8216 | return NULL; | |
d14a1e28 RD |
8217 | } |
8218 | ||
8219 | ||
0085ce49 RD |
8220 | SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8221 | PyObject *resultobj = 0; | |
8222 | wxStaticText *result = 0 ; | |
8223 | ||
8224 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail; | |
8225 | { | |
8226 | if (!wxPyCheckForApp()) SWIG_fail; | |
8227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8228 | result = (wxStaticText *)new wxStaticText(); | |
8229 | wxPyEndAllowThreads(__tstate); | |
8230 | if (PyErr_Occurred()) SWIG_fail; | |
8231 | } | |
8232 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 ); | |
8233 | return resultobj; | |
8234 | fail: | |
8235 | return NULL; | |
8236 | } | |
8237 | ||
8238 | ||
8239 | SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8240 | PyObject *resultobj = 0; | |
8241 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
8242 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8243 | int arg3 = (int) -1 ; | |
8244 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8245 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8246 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8247 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8248 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8249 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8250 | long arg7 = (long) 0 ; | |
8251 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
8252 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8253 | bool result; | |
8254 | void *argp1 = 0 ; | |
8255 | int res1 = 0 ; | |
8256 | void *argp2 = 0 ; | |
8257 | int res2 = 0 ; | |
8258 | int val3 ; | |
8259 | int ecode3 = 0 ; | |
8260 | bool temp4 = false ; | |
8261 | wxPoint temp5 ; | |
8262 | wxSize temp6 ; | |
8263 | long val7 ; | |
8264 | int ecode7 = 0 ; | |
8265 | bool temp8 = false ; | |
8266 | PyObject * obj0 = 0 ; | |
8267 | PyObject * obj1 = 0 ; | |
8268 | PyObject * obj2 = 0 ; | |
8269 | PyObject * obj3 = 0 ; | |
8270 | PyObject * obj4 = 0 ; | |
8271 | PyObject * obj5 = 0 ; | |
8272 | PyObject * obj6 = 0 ; | |
8273 | PyObject * obj7 = 0 ; | |
8274 | char * kwnames[] = { | |
8275 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8276 | }; | |
8277 | ||
8278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 ); | |
8280 | if (!SWIG_IsOK(res1)) { | |
8281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'"); | |
8282 | } | |
8283 | arg1 = reinterpret_cast< wxStaticText * >(argp1); | |
8284 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8285 | if (!SWIG_IsOK(res2)) { | |
8286 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8287 | } | |
8288 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8289 | if (obj2) { | |
8290 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8291 | if (!SWIG_IsOK(ecode3)) { | |
8292 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'"); | |
8293 | } | |
8294 | arg3 = static_cast< int >(val3); | |
8295 | } | |
8296 | if (obj3) { | |
d14a1e28 | 8297 | { |
0085ce49 RD |
8298 | arg4 = wxString_in_helper(obj3); |
8299 | if (arg4 == NULL) SWIG_fail; | |
8300 | temp4 = true; | |
8301 | } | |
8302 | } | |
8303 | if (obj4) { | |
8304 | { | |
8305 | arg5 = &temp5; | |
8306 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 8307 | } |
0085ce49 RD |
8308 | } |
8309 | if (obj5) { | |
093d3ff1 | 8310 | { |
0085ce49 RD |
8311 | arg6 = &temp6; |
8312 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
093d3ff1 | 8313 | } |
0085ce49 RD |
8314 | } |
8315 | if (obj6) { | |
8316 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8317 | if (!SWIG_IsOK(ecode7)) { | |
8318 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'"); | |
8319 | } | |
8320 | arg7 = static_cast< long >(val7); | |
8321 | } | |
8322 | if (obj7) { | |
093d3ff1 | 8323 | { |
0085ce49 RD |
8324 | arg8 = wxString_in_helper(obj7); |
8325 | if (arg8 == NULL) SWIG_fail; | |
8326 | temp8 = true; | |
8327 | } | |
8328 | } | |
8329 | { | |
8330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8331 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8332 | wxPyEndAllowThreads(__tstate); | |
8333 | if (PyErr_Occurred()) SWIG_fail; | |
8334 | } | |
8335 | { | |
8336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8337 | } | |
8338 | { | |
8339 | if (temp4) | |
8340 | delete arg4; | |
8341 | } | |
8342 | { | |
8343 | if (temp8) | |
8344 | delete arg8; | |
8345 | } | |
8346 | return resultobj; | |
8347 | fail: | |
8348 | { | |
8349 | if (temp4) | |
8350 | delete arg4; | |
8351 | } | |
8352 | { | |
8353 | if (temp8) | |
8354 | delete arg8; | |
8355 | } | |
8356 | return NULL; | |
8357 | } | |
8358 | ||
8359 | ||
8360 | SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8361 | PyObject *resultobj = 0; | |
8362 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
8363 | int arg2 ; | |
8364 | void *argp1 = 0 ; | |
8365 | int res1 = 0 ; | |
8366 | int val2 ; | |
8367 | int ecode2 = 0 ; | |
8368 | PyObject * obj0 = 0 ; | |
8369 | PyObject * obj1 = 0 ; | |
8370 | char * kwnames[] = { | |
8371 | (char *) "self",(char *) "width", NULL | |
8372 | }; | |
8373 | ||
8374 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8375 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 ); | |
8376 | if (!SWIG_IsOK(res1)) { | |
8377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'"); | |
8378 | } | |
8379 | arg1 = reinterpret_cast< wxStaticText * >(argp1); | |
8380 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8381 | if (!SWIG_IsOK(ecode2)) { | |
8382 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'"); | |
8383 | } | |
8384 | arg2 = static_cast< int >(val2); | |
8385 | { | |
8386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8387 | (arg1)->Wrap(arg2); | |
8388 | wxPyEndAllowThreads(__tstate); | |
8389 | if (PyErr_Occurred()) SWIG_fail; | |
8390 | } | |
8391 | resultobj = SWIG_Py_Void(); | |
8392 | return resultobj; | |
8393 | fail: | |
8394 | return NULL; | |
8395 | } | |
8396 | ||
8397 | ||
8398 | SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8399 | PyObject *resultobj = 0; | |
8400 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8401 | SwigValueWrapper<wxVisualAttributes > result; | |
8402 | int val1 ; | |
8403 | int ecode1 = 0 ; | |
8404 | PyObject * obj0 = 0 ; | |
8405 | char * kwnames[] = { | |
8406 | (char *) "variant", NULL | |
8407 | }; | |
8408 | ||
8409 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8410 | if (obj0) { | |
8411 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8412 | if (!SWIG_IsOK(ecode1)) { | |
8413 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8414 | } | |
8415 | arg1 = static_cast< wxWindowVariant >(val1); | |
8416 | } | |
8417 | { | |
8418 | if (!wxPyCheckForApp()) SWIG_fail; | |
8419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8420 | result = wxStaticText::GetClassDefaultAttributes(arg1); | |
8421 | wxPyEndAllowThreads(__tstate); | |
8422 | if (PyErr_Occurred()) SWIG_fail; | |
8423 | } | |
8424 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8425 | return resultobj; | |
8426 | fail: | |
8427 | return NULL; | |
8428 | } | |
8429 | ||
8430 | ||
8431 | SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8432 | PyObject *obj; | |
8433 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8434 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj)); | |
8435 | return SWIG_Py_Void(); | |
8436 | } | |
8437 | ||
8438 | SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8439 | return SWIG_Python_InitShadowInstance(args); | |
8440 | } | |
8441 | ||
8442 | SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8443 | PyObject *resultobj = 0; | |
8444 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8445 | int arg2 = (int) -1 ; | |
8446 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
8447 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
8448 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8449 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8450 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8451 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8452 | long arg6 = (long) 0 ; | |
8453 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
8454 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8455 | wxStaticBitmap *result = 0 ; | |
8456 | void *argp1 = 0 ; | |
8457 | int res1 = 0 ; | |
8458 | int val2 ; | |
8459 | int ecode2 = 0 ; | |
8460 | void *argp3 = 0 ; | |
8461 | int res3 = 0 ; | |
8462 | wxPoint temp4 ; | |
8463 | wxSize temp5 ; | |
8464 | long val6 ; | |
8465 | int ecode6 = 0 ; | |
8466 | bool temp7 = false ; | |
8467 | PyObject * obj0 = 0 ; | |
8468 | PyObject * obj1 = 0 ; | |
8469 | PyObject * obj2 = 0 ; | |
8470 | PyObject * obj3 = 0 ; | |
8471 | PyObject * obj4 = 0 ; | |
8472 | PyObject * obj5 = 0 ; | |
8473 | PyObject * obj6 = 0 ; | |
8474 | char * kwnames[] = { | |
8475 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8476 | }; | |
8477 | ||
8478 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
8479 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8480 | if (!SWIG_IsOK(res1)) { | |
8481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8482 | } | |
8483 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8484 | if (obj1) { | |
8485 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8486 | if (!SWIG_IsOK(ecode2)) { | |
8487 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'"); | |
8488 | } | |
8489 | arg2 = static_cast< int >(val2); | |
8490 | } | |
8491 | if (obj2) { | |
8492 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8493 | if (!SWIG_IsOK(res3)) { | |
8494 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
8495 | } | |
8496 | if (!argp3) { | |
8497 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 8498 | } |
0085ce49 RD |
8499 | arg3 = reinterpret_cast< wxBitmap * >(argp3); |
8500 | } | |
8501 | if (obj3) { | |
d14a1e28 | 8502 | { |
0085ce49 RD |
8503 | arg4 = &temp4; |
8504 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 8505 | } |
0085ce49 RD |
8506 | } |
8507 | if (obj4) { | |
d14a1e28 | 8508 | { |
0085ce49 RD |
8509 | arg5 = &temp5; |
8510 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 8511 | } |
0085ce49 RD |
8512 | } |
8513 | if (obj5) { | |
8514 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8515 | if (!SWIG_IsOK(ecode6)) { | |
8516 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'"); | |
8517 | } | |
8518 | arg6 = static_cast< long >(val6); | |
8519 | } | |
8520 | if (obj6) { | |
093d3ff1 | 8521 | { |
0085ce49 RD |
8522 | arg7 = wxString_in_helper(obj6); |
8523 | if (arg7 == NULL) SWIG_fail; | |
8524 | temp7 = true; | |
093d3ff1 | 8525 | } |
0085ce49 RD |
8526 | } |
8527 | { | |
8528 | if (!wxPyCheckForApp()) SWIG_fail; | |
8529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8530 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8531 | wxPyEndAllowThreads(__tstate); | |
8532 | if (PyErr_Occurred()) SWIG_fail; | |
8533 | } | |
8534 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 ); | |
8535 | { | |
8536 | if (temp7) | |
8537 | delete arg7; | |
8538 | } | |
8539 | return resultobj; | |
8540 | fail: | |
8541 | { | |
8542 | if (temp7) | |
8543 | delete arg7; | |
8544 | } | |
8545 | return NULL; | |
d14a1e28 RD |
8546 | } |
8547 | ||
8548 | ||
0085ce49 RD |
8549 | SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8550 | PyObject *resultobj = 0; | |
8551 | wxStaticBitmap *result = 0 ; | |
8552 | ||
8553 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail; | |
8554 | { | |
8555 | if (!wxPyCheckForApp()) SWIG_fail; | |
8556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8557 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
8558 | wxPyEndAllowThreads(__tstate); | |
8559 | if (PyErr_Occurred()) SWIG_fail; | |
8560 | } | |
8561 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 ); | |
8562 | return resultobj; | |
8563 | fail: | |
8564 | return NULL; | |
8565 | } | |
8566 | ||
8567 | ||
8568 | SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8569 | PyObject *resultobj = 0; | |
8570 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8571 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8572 | int arg3 = (int) -1 ; | |
8573 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
8574 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
8575 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8576 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8577 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8578 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8579 | long arg7 = (long) 0 ; | |
8580 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
8581 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8582 | bool result; | |
8583 | void *argp1 = 0 ; | |
8584 | int res1 = 0 ; | |
8585 | void *argp2 = 0 ; | |
8586 | int res2 = 0 ; | |
8587 | int val3 ; | |
8588 | int ecode3 = 0 ; | |
8589 | void *argp4 = 0 ; | |
8590 | int res4 = 0 ; | |
8591 | wxPoint temp5 ; | |
8592 | wxSize temp6 ; | |
8593 | long val7 ; | |
8594 | int ecode7 = 0 ; | |
8595 | bool temp8 = false ; | |
8596 | PyObject * obj0 = 0 ; | |
8597 | PyObject * obj1 = 0 ; | |
8598 | PyObject * obj2 = 0 ; | |
8599 | PyObject * obj3 = 0 ; | |
8600 | PyObject * obj4 = 0 ; | |
8601 | PyObject * obj5 = 0 ; | |
8602 | PyObject * obj6 = 0 ; | |
8603 | PyObject * obj7 = 0 ; | |
8604 | char * kwnames[] = { | |
8605 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8606 | }; | |
8607 | ||
8608 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8609 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8610 | if (!SWIG_IsOK(res1)) { | |
8611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8612 | } | |
8613 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8614 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8615 | if (!SWIG_IsOK(res2)) { | |
8616 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8617 | } | |
8618 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8619 | if (obj2) { | |
8620 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8621 | if (!SWIG_IsOK(ecode3)) { | |
8622 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'"); | |
8623 | } | |
8624 | arg3 = static_cast< int >(val3); | |
8625 | } | |
8626 | if (obj3) { | |
8627 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8628 | if (!SWIG_IsOK(res4)) { | |
8629 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
8630 | } | |
8631 | if (!argp4) { | |
8632 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
22bfe96c | 8633 | } |
0085ce49 RD |
8634 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
8635 | } | |
8636 | if (obj4) { | |
22bfe96c | 8637 | { |
0085ce49 RD |
8638 | arg5 = &temp5; |
8639 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
22bfe96c | 8640 | } |
0085ce49 RD |
8641 | } |
8642 | if (obj5) { | |
22bfe96c | 8643 | { |
0085ce49 RD |
8644 | arg6 = &temp6; |
8645 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
22bfe96c | 8646 | } |
0085ce49 RD |
8647 | } |
8648 | if (obj6) { | |
8649 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8650 | if (!SWIG_IsOK(ecode7)) { | |
8651 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'"); | |
8652 | } | |
8653 | arg7 = static_cast< long >(val7); | |
8654 | } | |
8655 | if (obj7) { | |
b2dc1044 | 8656 | { |
0085ce49 RD |
8657 | arg8 = wxString_in_helper(obj7); |
8658 | if (arg8 == NULL) SWIG_fail; | |
8659 | temp8 = true; | |
b2dc1044 | 8660 | } |
0085ce49 RD |
8661 | } |
8662 | { | |
8663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8664 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8665 | wxPyEndAllowThreads(__tstate); | |
8666 | if (PyErr_Occurred()) SWIG_fail; | |
8667 | } | |
8668 | { | |
8669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8670 | } | |
8671 | { | |
8672 | if (temp8) | |
8673 | delete arg8; | |
8674 | } | |
8675 | return resultobj; | |
8676 | fail: | |
8677 | { | |
8678 | if (temp8) | |
8679 | delete arg8; | |
8680 | } | |
8681 | return NULL; | |
b2dc1044 RD |
8682 | } |
8683 | ||
8684 | ||
0085ce49 RD |
8685 | SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8686 | PyObject *resultobj = 0; | |
8687 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8688 | wxBitmap result; | |
8689 | void *argp1 = 0 ; | |
8690 | int res1 = 0 ; | |
8691 | PyObject *swig_obj[1] ; | |
8692 | ||
8693 | if (!args) SWIG_fail; | |
8694 | swig_obj[0] = args; | |
8695 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8696 | if (!SWIG_IsOK(res1)) { | |
8697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8698 | } | |
8699 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8700 | { | |
8701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8702 | result = (arg1)->GetBitmap(); | |
8703 | wxPyEndAllowThreads(__tstate); | |
8704 | if (PyErr_Occurred()) SWIG_fail; | |
8705 | } | |
8706 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
8707 | return resultobj; | |
8708 | fail: | |
8709 | return NULL; | |
8710 | } | |
8711 | ||
8712 | ||
8713 | SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8714 | PyObject *resultobj = 0; | |
8715 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8716 | wxBitmap *arg2 = 0 ; | |
8717 | void *argp1 = 0 ; | |
8718 | int res1 = 0 ; | |
8719 | void *argp2 = 0 ; | |
8720 | int res2 = 0 ; | |
8721 | PyObject * obj0 = 0 ; | |
8722 | PyObject * obj1 = 0 ; | |
8723 | char * kwnames[] = { | |
8724 | (char *) "self",(char *) "bitmap", NULL | |
8725 | }; | |
8726 | ||
8727 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8728 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8729 | if (!SWIG_IsOK(res1)) { | |
8730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8731 | } | |
8732 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8733 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8734 | if (!SWIG_IsOK(res2)) { | |
8735 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8736 | } | |
8737 | if (!argp2) { | |
8738 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8739 | } | |
8740 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8741 | { | |
8742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8743 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
8744 | wxPyEndAllowThreads(__tstate); | |
8745 | if (PyErr_Occurred()) SWIG_fail; | |
8746 | } | |
8747 | resultobj = SWIG_Py_Void(); | |
8748 | return resultobj; | |
8749 | fail: | |
8750 | return NULL; | |
8751 | } | |
8752 | ||
8753 | ||
8754 | SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8755 | PyObject *resultobj = 0; | |
8756 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8757 | wxIcon *arg2 = 0 ; | |
8758 | void *argp1 = 0 ; | |
8759 | int res1 = 0 ; | |
8760 | void *argp2 = 0 ; | |
8761 | int res2 = 0 ; | |
8762 | PyObject * obj0 = 0 ; | |
8763 | PyObject * obj1 = 0 ; | |
8764 | char * kwnames[] = { | |
8765 | (char *) "self",(char *) "icon", NULL | |
8766 | }; | |
8767 | ||
8768 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
8769 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8770 | if (!SWIG_IsOK(res1)) { | |
8771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8772 | } | |
8773 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8774 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
8775 | if (!SWIG_IsOK(res2)) { | |
8776 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
8777 | } | |
8778 | if (!argp2) { | |
8779 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
8780 | } | |
8781 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
8782 | { | |
8783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8784 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
8785 | wxPyEndAllowThreads(__tstate); | |
8786 | if (PyErr_Occurred()) SWIG_fail; | |
8787 | } | |
8788 | resultobj = SWIG_Py_Void(); | |
8789 | return resultobj; | |
8790 | fail: | |
8791 | return NULL; | |
8792 | } | |
8793 | ||
8794 | ||
8795 | SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8796 | PyObject *resultobj = 0; | |
8797 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8798 | SwigValueWrapper<wxVisualAttributes > result; | |
8799 | int val1 ; | |
8800 | int ecode1 = 0 ; | |
8801 | PyObject * obj0 = 0 ; | |
8802 | char * kwnames[] = { | |
8803 | (char *) "variant", NULL | |
8804 | }; | |
8805 | ||
8806 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8807 | if (obj0) { | |
8808 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8809 | if (!SWIG_IsOK(ecode1)) { | |
8810 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8811 | } | |
8812 | arg1 = static_cast< wxWindowVariant >(val1); | |
8813 | } | |
8814 | { | |
8815 | if (!wxPyCheckForApp()) SWIG_fail; | |
8816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8817 | result = wxStaticBitmap::GetClassDefaultAttributes(arg1); | |
8818 | wxPyEndAllowThreads(__tstate); | |
8819 | if (PyErr_Occurred()) SWIG_fail; | |
8820 | } | |
8821 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8822 | return resultobj; | |
8823 | fail: | |
8824 | return NULL; | |
b2dc1044 RD |
8825 | } |
8826 | ||
8827 | ||
0085ce49 RD |
8828 | SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8829 | PyObject *obj; | |
8830 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8831 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj)); | |
8832 | return SWIG_Py_Void(); | |
b2dc1044 RD |
8833 | } |
8834 | ||
0085ce49 RD |
8835 | SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8836 | return SWIG_Python_InitShadowInstance(args); | |
8837 | } | |
b2dc1044 | 8838 | |
0085ce49 RD |
8839 | SWIGINTERN int ListBoxNameStr_set(PyObject *) { |
8840 | SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only."); | |
8841 | return 1; | |
b2dc1044 RD |
8842 | } |
8843 | ||
8844 | ||
0085ce49 RD |
8845 | SWIGINTERN PyObject *ListBoxNameStr_get(void) { |
8846 | PyObject *pyobj = 0; | |
8847 | ||
8848 | { | |
b2dc1044 | 8849 | #if wxUSE_UNICODE |
0085ce49 | 8850 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); |
b2dc1044 | 8851 | #else |
0085ce49 | 8852 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); |
b2dc1044 | 8853 | #endif |
0085ce49 RD |
8854 | } |
8855 | return pyobj; | |
8856 | } | |
8857 | ||
8858 | ||
8859 | SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8860 | PyObject *resultobj = 0; | |
8861 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8862 | int arg2 = (int) -1 ; | |
8863 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8864 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8865 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8866 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8867 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
8868 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
8869 | long arg6 = (long) 0 ; | |
8870 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8871 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8872 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
8873 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8874 | wxListBox *result = 0 ; | |
8875 | void *argp1 = 0 ; | |
8876 | int res1 = 0 ; | |
8877 | int val2 ; | |
8878 | int ecode2 = 0 ; | |
8879 | wxPoint temp3 ; | |
8880 | wxSize temp4 ; | |
8881 | bool temp5 = false ; | |
8882 | long val6 ; | |
8883 | int ecode6 = 0 ; | |
8884 | void *argp7 = 0 ; | |
8885 | int res7 = 0 ; | |
8886 | bool temp8 = false ; | |
8887 | PyObject * obj0 = 0 ; | |
8888 | PyObject * obj1 = 0 ; | |
8889 | PyObject * obj2 = 0 ; | |
8890 | PyObject * obj3 = 0 ; | |
8891 | PyObject * obj4 = 0 ; | |
8892 | PyObject * obj5 = 0 ; | |
8893 | PyObject * obj6 = 0 ; | |
8894 | PyObject * obj7 = 0 ; | |
8895 | char * kwnames[] = { | |
8896 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8897 | }; | |
8898 | ||
8899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8901 | if (!SWIG_IsOK(res1)) { | |
8902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8903 | } | |
8904 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8905 | if (obj1) { | |
8906 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8907 | if (!SWIG_IsOK(ecode2)) { | |
8908 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'"); | |
8909 | } | |
8910 | arg2 = static_cast< int >(val2); | |
8911 | } | |
8912 | if (obj2) { | |
d14a1e28 | 8913 | { |
0085ce49 RD |
8914 | arg3 = &temp3; |
8915 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 8916 | } |
0085ce49 RD |
8917 | } |
8918 | if (obj3) { | |
d14a1e28 | 8919 | { |
0085ce49 RD |
8920 | arg4 = &temp4; |
8921 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 8922 | } |
0085ce49 RD |
8923 | } |
8924 | if (obj4) { | |
d14a1e28 | 8925 | { |
0085ce49 RD |
8926 | if (! PySequence_Check(obj4)) { |
8927 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8928 | SWIG_fail; | |
8929 | } | |
8930 | arg5 = new wxArrayString; | |
8931 | temp5 = true; | |
8932 | int i, len=PySequence_Length(obj4); | |
8933 | for (i=0; i<len; i++) { | |
8934 | PyObject* item = PySequence_GetItem(obj4, i); | |
8935 | wxString* s = wxString_in_helper(item); | |
8936 | if (PyErr_Occurred()) SWIG_fail; | |
8937 | arg5->Add(*s); | |
8938 | delete s; | |
8939 | Py_DECREF(item); | |
8940 | } | |
d14a1e28 | 8941 | } |
0085ce49 RD |
8942 | } |
8943 | if (obj5) { | |
8944 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8945 | if (!SWIG_IsOK(ecode6)) { | |
8946 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'"); | |
8947 | } | |
8948 | arg6 = static_cast< long >(val6); | |
8949 | } | |
8950 | if (obj6) { | |
8951 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
8952 | if (!SWIG_IsOK(res7)) { | |
8953 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 8954 | } |
0085ce49 RD |
8955 | if (!argp7) { |
8956 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 8957 | } |
0085ce49 RD |
8958 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
8959 | } | |
8960 | if (obj7) { | |
d14a1e28 | 8961 | { |
0085ce49 RD |
8962 | arg8 = wxString_in_helper(obj7); |
8963 | if (arg8 == NULL) SWIG_fail; | |
8964 | temp8 = true; | |
d14a1e28 | 8965 | } |
0085ce49 RD |
8966 | } |
8967 | { | |
8968 | if (!wxPyCheckForApp()) SWIG_fail; | |
8969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8970 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8971 | wxPyEndAllowThreads(__tstate); | |
8972 | if (PyErr_Occurred()) SWIG_fail; | |
8973 | } | |
8974 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 ); | |
8975 | { | |
8976 | if (temp5) delete arg5; | |
8977 | } | |
8978 | { | |
8979 | if (temp8) | |
8980 | delete arg8; | |
8981 | } | |
8982 | return resultobj; | |
8983 | fail: | |
8984 | { | |
8985 | if (temp5) delete arg5; | |
8986 | } | |
8987 | { | |
8988 | if (temp8) | |
8989 | delete arg8; | |
8990 | } | |
8991 | return NULL; | |
d14a1e28 RD |
8992 | } |
8993 | ||
8994 | ||
0085ce49 RD |
8995 | SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8996 | PyObject *resultobj = 0; | |
8997 | wxListBox *result = 0 ; | |
8998 | ||
8999 | if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail; | |
9000 | { | |
9001 | if (!wxPyCheckForApp()) SWIG_fail; | |
9002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9003 | result = (wxListBox *)new wxListBox(); | |
9004 | wxPyEndAllowThreads(__tstate); | |
9005 | if (PyErr_Occurred()) SWIG_fail; | |
9006 | } | |
9007 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 ); | |
9008 | return resultobj; | |
9009 | fail: | |
9010 | return NULL; | |
9011 | } | |
9012 | ||
9013 | ||
9014 | SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9015 | PyObject *resultobj = 0; | |
9016 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9017 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9018 | int arg3 = (int) -1 ; | |
9019 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9020 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9021 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9022 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9023 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
9024 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
9025 | long arg7 = (long) 0 ; | |
9026 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
9027 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
9028 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
9029 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
9030 | bool result; | |
9031 | void *argp1 = 0 ; | |
9032 | int res1 = 0 ; | |
9033 | void *argp2 = 0 ; | |
9034 | int res2 = 0 ; | |
9035 | int val3 ; | |
9036 | int ecode3 = 0 ; | |
9037 | wxPoint temp4 ; | |
9038 | wxSize temp5 ; | |
9039 | bool temp6 = false ; | |
9040 | long val7 ; | |
9041 | int ecode7 = 0 ; | |
9042 | void *argp8 = 0 ; | |
9043 | int res8 = 0 ; | |
9044 | bool temp9 = false ; | |
9045 | PyObject * obj0 = 0 ; | |
9046 | PyObject * obj1 = 0 ; | |
9047 | PyObject * obj2 = 0 ; | |
9048 | PyObject * obj3 = 0 ; | |
9049 | PyObject * obj4 = 0 ; | |
9050 | PyObject * obj5 = 0 ; | |
9051 | PyObject * obj6 = 0 ; | |
9052 | PyObject * obj7 = 0 ; | |
9053 | PyObject * obj8 = 0 ; | |
9054 | char * kwnames[] = { | |
9055 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9056 | }; | |
9057 | ||
9058 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
9059 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9060 | if (!SWIG_IsOK(res1)) { | |
9061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9062 | } | |
9063 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9064 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9065 | if (!SWIG_IsOK(res2)) { | |
9066 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9067 | } | |
9068 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9069 | if (obj2) { | |
9070 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9071 | if (!SWIG_IsOK(ecode3)) { | |
9072 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
9073 | } | |
9074 | arg3 = static_cast< int >(val3); | |
9075 | } | |
9076 | if (obj3) { | |
d14a1e28 | 9077 | { |
0085ce49 RD |
9078 | arg4 = &temp4; |
9079 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 9080 | } |
0085ce49 RD |
9081 | } |
9082 | if (obj4) { | |
d14a1e28 | 9083 | { |
0085ce49 RD |
9084 | arg5 = &temp5; |
9085 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 9086 | } |
0085ce49 RD |
9087 | } |
9088 | if (obj5) { | |
d14a1e28 | 9089 | { |
0085ce49 RD |
9090 | if (! PySequence_Check(obj5)) { |
9091 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9092 | SWIG_fail; | |
9093 | } | |
9094 | arg6 = new wxArrayString; | |
9095 | temp6 = true; | |
9096 | int i, len=PySequence_Length(obj5); | |
9097 | for (i=0; i<len; i++) { | |
9098 | PyObject* item = PySequence_GetItem(obj5, i); | |
9099 | wxString* s = wxString_in_helper(item); | |
9100 | if (PyErr_Occurred()) SWIG_fail; | |
9101 | arg6->Add(*s); | |
9102 | delete s; | |
9103 | Py_DECREF(item); | |
9104 | } | |
d14a1e28 | 9105 | } |
0085ce49 RD |
9106 | } |
9107 | if (obj6) { | |
9108 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
9109 | if (!SWIG_IsOK(ecode7)) { | |
9110 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
9111 | } | |
9112 | arg7 = static_cast< long >(val7); | |
9113 | } | |
9114 | if (obj7) { | |
9115 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
9116 | if (!SWIG_IsOK(res8)) { | |
9117 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 9118 | } |
0085ce49 RD |
9119 | if (!argp8) { |
9120 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
22bfe96c | 9121 | } |
0085ce49 RD |
9122 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
9123 | } | |
9124 | if (obj8) { | |
22bfe96c | 9125 | { |
0085ce49 RD |
9126 | arg9 = wxString_in_helper(obj8); |
9127 | if (arg9 == NULL) SWIG_fail; | |
9128 | temp9 = true; | |
22bfe96c | 9129 | } |
0085ce49 RD |
9130 | } |
9131 | { | |
9132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9133 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
9134 | wxPyEndAllowThreads(__tstate); | |
9135 | if (PyErr_Occurred()) SWIG_fail; | |
9136 | } | |
9137 | { | |
9138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9139 | } | |
9140 | { | |
9141 | if (temp6) delete arg6; | |
9142 | } | |
9143 | { | |
9144 | if (temp9) | |
9145 | delete arg9; | |
9146 | } | |
9147 | return resultobj; | |
9148 | fail: | |
9149 | { | |
9150 | if (temp6) delete arg6; | |
9151 | } | |
9152 | { | |
9153 | if (temp9) | |
9154 | delete arg9; | |
9155 | } | |
9156 | return NULL; | |
9157 | } | |
9158 | ||
9159 | ||
9160 | SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9161 | PyObject *resultobj = 0; | |
9162 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9163 | wxString *arg2 = 0 ; | |
9164 | int arg3 ; | |
9165 | PyObject *arg4 = (PyObject *) NULL ; | |
9166 | void *argp1 = 0 ; | |
9167 | int res1 = 0 ; | |
9168 | bool temp2 = false ; | |
9169 | int val3 ; | |
9170 | int ecode3 = 0 ; | |
9171 | PyObject * obj0 = 0 ; | |
9172 | PyObject * obj1 = 0 ; | |
9173 | PyObject * obj2 = 0 ; | |
9174 | PyObject * obj3 = 0 ; | |
9175 | char * kwnames[] = { | |
9176 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
9177 | }; | |
9178 | ||
9179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9181 | if (!SWIG_IsOK(res1)) { | |
9182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9183 | } | |
9184 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9185 | { | |
9186 | arg2 = wxString_in_helper(obj1); | |
9187 | if (arg2 == NULL) SWIG_fail; | |
9188 | temp2 = true; | |
9189 | } | |
9190 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9191 | if (!SWIG_IsOK(ecode3)) { | |
9192 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'"); | |
9193 | } | |
9194 | arg3 = static_cast< int >(val3); | |
9195 | if (obj3) { | |
9196 | arg4 = obj3; | |
9197 | } | |
9198 | { | |
9199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9200 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
9201 | wxPyEndAllowThreads(__tstate); | |
9202 | if (PyErr_Occurred()) SWIG_fail; | |
9203 | } | |
9204 | resultobj = SWIG_Py_Void(); | |
9205 | { | |
9206 | if (temp2) | |
9207 | delete arg2; | |
9208 | } | |
9209 | return resultobj; | |
9210 | fail: | |
9211 | { | |
9212 | if (temp2) | |
9213 | delete arg2; | |
9214 | } | |
9215 | return NULL; | |
9216 | } | |
9217 | ||
9218 | ||
9219 | SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9220 | PyObject *resultobj = 0; | |
9221 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9222 | wxArrayString *arg2 = 0 ; | |
50f151d7 | 9223 | unsigned int arg3 ; |
0085ce49 RD |
9224 | void *argp1 = 0 ; |
9225 | int res1 = 0 ; | |
9226 | bool temp2 = false ; | |
50f151d7 | 9227 | unsigned int val3 ; |
0085ce49 RD |
9228 | int ecode3 = 0 ; |
9229 | PyObject * obj0 = 0 ; | |
9230 | PyObject * obj1 = 0 ; | |
9231 | PyObject * obj2 = 0 ; | |
9232 | char * kwnames[] = { | |
9233 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
9234 | }; | |
9235 | ||
9236 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9237 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9238 | if (!SWIG_IsOK(res1)) { | |
9239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9240 | } | |
9241 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9242 | { | |
9243 | if (! PySequence_Check(obj1)) { | |
9244 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9245 | SWIG_fail; | |
9246 | } | |
9247 | arg2 = new wxArrayString; | |
9248 | temp2 = true; | |
9249 | int i, len=PySequence_Length(obj1); | |
9250 | for (i=0; i<len; i++) { | |
9251 | PyObject* item = PySequence_GetItem(obj1, i); | |
9252 | wxString* s = wxString_in_helper(item); | |
9253 | if (PyErr_Occurred()) SWIG_fail; | |
9254 | arg2->Add(*s); | |
9255 | delete s; | |
9256 | Py_DECREF(item); | |
22bfe96c | 9257 | } |
0085ce49 | 9258 | } |
50f151d7 | 9259 | ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); |
0085ce49 | 9260 | if (!SWIG_IsOK(ecode3)) { |
50f151d7 | 9261 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'"); |
0085ce49 | 9262 | } |
50f151d7 | 9263 | arg3 = static_cast< unsigned int >(val3); |
0085ce49 RD |
9264 | { |
9265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9266 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
9267 | wxPyEndAllowThreads(__tstate); | |
9268 | if (PyErr_Occurred()) SWIG_fail; | |
9269 | } | |
9270 | resultobj = SWIG_Py_Void(); | |
9271 | { | |
9272 | if (temp2) delete arg2; | |
9273 | } | |
9274 | return resultobj; | |
9275 | fail: | |
9276 | { | |
9277 | if (temp2) delete arg2; | |
9278 | } | |
9279 | return NULL; | |
22bfe96c RD |
9280 | } |
9281 | ||
9282 | ||
0085ce49 RD |
9283 | SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9284 | PyObject *resultobj = 0; | |
9285 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9286 | wxArrayString *arg2 = 0 ; | |
9287 | void *argp1 = 0 ; | |
9288 | int res1 = 0 ; | |
9289 | bool temp2 = false ; | |
9290 | PyObject * obj0 = 0 ; | |
9291 | PyObject * obj1 = 0 ; | |
9292 | char * kwnames[] = { | |
9293 | (char *) "self",(char *) "items", NULL | |
9294 | }; | |
9295 | ||
9296 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail; | |
9297 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9298 | if (!SWIG_IsOK(res1)) { | |
9299 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9300 | } | |
9301 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9302 | { | |
9303 | if (! PySequence_Check(obj1)) { | |
9304 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9305 | SWIG_fail; | |
9306 | } | |
9307 | arg2 = new wxArrayString; | |
9308 | temp2 = true; | |
9309 | int i, len=PySequence_Length(obj1); | |
9310 | for (i=0; i<len; i++) { | |
9311 | PyObject* item = PySequence_GetItem(obj1, i); | |
9312 | wxString* s = wxString_in_helper(item); | |
9313 | if (PyErr_Occurred()) SWIG_fail; | |
9314 | arg2->Add(*s); | |
9315 | delete s; | |
9316 | Py_DECREF(item); | |
d14a1e28 | 9317 | } |
0085ce49 RD |
9318 | } |
9319 | { | |
9320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9321 | (arg1)->Set((wxArrayString const &)*arg2); | |
9322 | wxPyEndAllowThreads(__tstate); | |
9323 | if (PyErr_Occurred()) SWIG_fail; | |
9324 | } | |
9325 | resultobj = SWIG_Py_Void(); | |
9326 | { | |
9327 | if (temp2) delete arg2; | |
9328 | } | |
9329 | return resultobj; | |
9330 | fail: | |
9331 | { | |
9332 | if (temp2) delete arg2; | |
9333 | } | |
9334 | return NULL; | |
9335 | } | |
9336 | ||
9337 | ||
9338 | SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9339 | PyObject *resultobj = 0; | |
9340 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9341 | int arg2 ; | |
9342 | bool result; | |
9343 | void *argp1 = 0 ; | |
9344 | int res1 = 0 ; | |
9345 | int val2 ; | |
9346 | int ecode2 = 0 ; | |
9347 | PyObject * obj0 = 0 ; | |
9348 | PyObject * obj1 = 0 ; | |
9349 | char * kwnames[] = { | |
9350 | (char *) "self",(char *) "n", NULL | |
9351 | }; | |
9352 | ||
9353 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
9354 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9355 | if (!SWIG_IsOK(res1)) { | |
9356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9357 | } | |
9358 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9359 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9360 | if (!SWIG_IsOK(ecode2)) { | |
9361 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'"); | |
9362 | } | |
9363 | arg2 = static_cast< int >(val2); | |
9364 | { | |
9365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9366 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
9367 | wxPyEndAllowThreads(__tstate); | |
9368 | if (PyErr_Occurred()) SWIG_fail; | |
9369 | } | |
9370 | { | |
9371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9372 | } | |
9373 | return resultobj; | |
9374 | fail: | |
9375 | return NULL; | |
9376 | } | |
9377 | ||
9378 | ||
9379 | SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9380 | PyObject *resultobj = 0; | |
9381 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9382 | int arg2 ; | |
9383 | bool arg3 = (bool) true ; | |
9384 | void *argp1 = 0 ; | |
9385 | int res1 = 0 ; | |
9386 | int val2 ; | |
9387 | int ecode2 = 0 ; | |
9388 | bool val3 ; | |
9389 | int ecode3 = 0 ; | |
9390 | PyObject * obj0 = 0 ; | |
9391 | PyObject * obj1 = 0 ; | |
9392 | PyObject * obj2 = 0 ; | |
9393 | char * kwnames[] = { | |
9394 | (char *) "self",(char *) "n",(char *) "select", NULL | |
9395 | }; | |
9396 | ||
9397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9398 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9399 | if (!SWIG_IsOK(res1)) { | |
9400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9401 | } | |
9402 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9403 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9404 | if (!SWIG_IsOK(ecode2)) { | |
9405 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
9406 | } | |
9407 | arg2 = static_cast< int >(val2); | |
9408 | if (obj2) { | |
9409 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
9410 | if (!SWIG_IsOK(ecode3)) { | |
9411 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'"); | |
9412 | } | |
9413 | arg3 = static_cast< bool >(val3); | |
9414 | } | |
9415 | { | |
9416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9417 | (arg1)->SetSelection(arg2,arg3); | |
9418 | wxPyEndAllowThreads(__tstate); | |
9419 | if (PyErr_Occurred()) SWIG_fail; | |
9420 | } | |
9421 | resultobj = SWIG_Py_Void(); | |
9422 | return resultobj; | |
9423 | fail: | |
9424 | return NULL; | |
9425 | } | |
9426 | ||
9427 | ||
9428 | SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9429 | PyObject *resultobj = 0; | |
9430 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9431 | int arg2 ; | |
9432 | void *argp1 = 0 ; | |
9433 | int res1 = 0 ; | |
9434 | int val2 ; | |
9435 | int ecode2 = 0 ; | |
9436 | PyObject * obj0 = 0 ; | |
9437 | PyObject * obj1 = 0 ; | |
9438 | char * kwnames[] = { | |
9439 | (char *) "self",(char *) "n", NULL | |
9440 | }; | |
9441 | ||
9442 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail; | |
9443 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9444 | if (!SWIG_IsOK(res1)) { | |
9445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9446 | } | |
9447 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9448 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9449 | if (!SWIG_IsOK(ecode2)) { | |
9450 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'"); | |
9451 | } | |
9452 | arg2 = static_cast< int >(val2); | |
9453 | { | |
9454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9455 | (arg1)->Select(arg2); | |
9456 | wxPyEndAllowThreads(__tstate); | |
9457 | if (PyErr_Occurred()) SWIG_fail; | |
9458 | } | |
9459 | resultobj = SWIG_Py_Void(); | |
9460 | return resultobj; | |
9461 | fail: | |
9462 | return NULL; | |
9463 | } | |
9464 | ||
9465 | ||
9466 | SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9467 | PyObject *resultobj = 0; | |
9468 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9469 | int arg2 ; | |
9470 | void *argp1 = 0 ; | |
9471 | int res1 = 0 ; | |
9472 | int val2 ; | |
9473 | int ecode2 = 0 ; | |
9474 | PyObject * obj0 = 0 ; | |
9475 | PyObject * obj1 = 0 ; | |
9476 | char * kwnames[] = { | |
9477 | (char *) "self",(char *) "n", NULL | |
9478 | }; | |
9479 | ||
9480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9482 | if (!SWIG_IsOK(res1)) { | |
9483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9484 | } | |
9485 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9486 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9487 | if (!SWIG_IsOK(ecode2)) { | |
9488 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'"); | |
9489 | } | |
9490 | arg2 = static_cast< int >(val2); | |
9491 | { | |
9492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9493 | (arg1)->Deselect(arg2); | |
9494 | wxPyEndAllowThreads(__tstate); | |
9495 | if (PyErr_Occurred()) SWIG_fail; | |
9496 | } | |
9497 | resultobj = SWIG_Py_Void(); | |
9498 | return resultobj; | |
9499 | fail: | |
9500 | return NULL; | |
9501 | } | |
9502 | ||
9503 | ||
9504 | SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9505 | PyObject *resultobj = 0; | |
9506 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9507 | int arg2 = (int) -1 ; | |
9508 | void *argp1 = 0 ; | |
9509 | int res1 = 0 ; | |
9510 | int val2 ; | |
9511 | int ecode2 = 0 ; | |
9512 | PyObject * obj0 = 0 ; | |
9513 | PyObject * obj1 = 0 ; | |
9514 | char * kwnames[] = { | |
9515 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
9516 | }; | |
9517 | ||
9518 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail; | |
9519 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9520 | if (!SWIG_IsOK(res1)) { | |
9521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9522 | } | |
9523 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9524 | if (obj1) { | |
9525 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9526 | if (!SWIG_IsOK(ecode2)) { | |
9527 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'"); | |
9528 | } | |
9529 | arg2 = static_cast< int >(val2); | |
9530 | } | |
9531 | { | |
9532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9533 | (arg1)->DeselectAll(arg2); | |
9534 | wxPyEndAllowThreads(__tstate); | |
9535 | if (PyErr_Occurred()) SWIG_fail; | |
9536 | } | |
9537 | resultobj = SWIG_Py_Void(); | |
9538 | return resultobj; | |
9539 | fail: | |
9540 | return NULL; | |
9541 | } | |
9542 | ||
9543 | ||
9544 | SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9545 | PyObject *resultobj = 0; | |
9546 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9547 | wxString *arg2 = 0 ; | |
9548 | bool arg3 = (bool) true ; | |
9549 | bool result; | |
9550 | void *argp1 = 0 ; | |
9551 | int res1 = 0 ; | |
9552 | bool temp2 = false ; | |
9553 | bool val3 ; | |
9554 | int ecode3 = 0 ; | |
9555 | PyObject * obj0 = 0 ; | |
9556 | PyObject * obj1 = 0 ; | |
9557 | PyObject * obj2 = 0 ; | |
9558 | char * kwnames[] = { | |
9559 | (char *) "self",(char *) "s",(char *) "select", NULL | |
9560 | }; | |
9561 | ||
9562 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9563 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9564 | if (!SWIG_IsOK(res1)) { | |
9565 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9566 | } | |
9567 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9568 | { | |
9569 | arg2 = wxString_in_helper(obj1); | |
9570 | if (arg2 == NULL) SWIG_fail; | |
9571 | temp2 = true; | |
9572 | } | |
9573 | if (obj2) { | |
9574 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
9575 | if (!SWIG_IsOK(ecode3)) { | |
9576 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'"); | |
9577 | } | |
9578 | arg3 = static_cast< bool >(val3); | |
9579 | } | |
9580 | { | |
9581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9582 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
9583 | wxPyEndAllowThreads(__tstate); | |
9584 | if (PyErr_Occurred()) SWIG_fail; | |
9585 | } | |
9586 | { | |
9587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9588 | } | |
9589 | { | |
9590 | if (temp2) | |
9591 | delete arg2; | |
9592 | } | |
9593 | return resultobj; | |
9594 | fail: | |
9595 | { | |
9596 | if (temp2) | |
9597 | delete arg2; | |
9598 | } | |
9599 | return NULL; | |
d14a1e28 RD |
9600 | } |
9601 | ||
9602 | ||
0085ce49 RD |
9603 | SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9604 | PyObject *resultobj = 0; | |
9605 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9606 | PyObject *result = 0 ; | |
9607 | void *argp1 = 0 ; | |
9608 | int res1 = 0 ; | |
9609 | PyObject *swig_obj[1] ; | |
9610 | ||
9611 | if (!args) SWIG_fail; | |
9612 | swig_obj[0] = args; | |
9613 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9614 | if (!SWIG_IsOK(res1)) { | |
9615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9616 | } | |
9617 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9618 | { | |
9619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9620 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
9621 | wxPyEndAllowThreads(__tstate); | |
9622 | if (PyErr_Occurred()) SWIG_fail; | |
9623 | } | |
9624 | resultobj = result; | |
9625 | return resultobj; | |
9626 | fail: | |
9627 | return NULL; | |
9628 | } | |
9629 | ||
9630 | ||
9631 | SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9632 | PyObject *resultobj = 0; | |
9633 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9634 | int arg2 ; | |
9635 | void *argp1 = 0 ; | |
9636 | int res1 = 0 ; | |
9637 | int val2 ; | |
9638 | int ecode2 = 0 ; | |
9639 | PyObject * obj0 = 0 ; | |
9640 | PyObject * obj1 = 0 ; | |
9641 | char * kwnames[] = { | |
9642 | (char *) "self",(char *) "n", NULL | |
9643 | }; | |
9644 | ||
9645 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
9646 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9647 | if (!SWIG_IsOK(res1)) { | |
9648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9649 | } | |
9650 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9651 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9652 | if (!SWIG_IsOK(ecode2)) { | |
9653 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'"); | |
9654 | } | |
9655 | arg2 = static_cast< int >(val2); | |
9656 | { | |
9657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9658 | (arg1)->SetFirstItem(arg2); | |
9659 | wxPyEndAllowThreads(__tstate); | |
9660 | if (PyErr_Occurred()) SWIG_fail; | |
9661 | } | |
9662 | resultobj = SWIG_Py_Void(); | |
9663 | return resultobj; | |
9664 | fail: | |
9665 | return NULL; | |
9666 | } | |
9667 | ||
9668 | ||
9669 | SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9670 | PyObject *resultobj = 0; | |
9671 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9672 | wxString *arg2 = 0 ; | |
9673 | void *argp1 = 0 ; | |
9674 | int res1 = 0 ; | |
9675 | bool temp2 = false ; | |
9676 | PyObject * obj0 = 0 ; | |
9677 | PyObject * obj1 = 0 ; | |
9678 | char * kwnames[] = { | |
9679 | (char *) "self",(char *) "s", NULL | |
9680 | }; | |
9681 | ||
9682 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail; | |
9683 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9684 | if (!SWIG_IsOK(res1)) { | |
9685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9686 | } | |
9687 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9688 | { | |
9689 | arg2 = wxString_in_helper(obj1); | |
9690 | if (arg2 == NULL) SWIG_fail; | |
9691 | temp2 = true; | |
9692 | } | |
9693 | { | |
9694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9695 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
9696 | wxPyEndAllowThreads(__tstate); | |
9697 | if (PyErr_Occurred()) SWIG_fail; | |
9698 | } | |
9699 | resultobj = SWIG_Py_Void(); | |
9700 | { | |
9701 | if (temp2) | |
9702 | delete arg2; | |
9703 | } | |
9704 | return resultobj; | |
9705 | fail: | |
9706 | { | |
9707 | if (temp2) | |
9708 | delete arg2; | |
9709 | } | |
9710 | return NULL; | |
9711 | } | |
9712 | ||
9713 | ||
9714 | SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9715 | PyObject *resultobj = 0; | |
9716 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9717 | int arg2 ; | |
9718 | void *argp1 = 0 ; | |
9719 | int res1 = 0 ; | |
9720 | int val2 ; | |
9721 | int ecode2 = 0 ; | |
9722 | PyObject * obj0 = 0 ; | |
9723 | PyObject * obj1 = 0 ; | |
9724 | char * kwnames[] = { | |
9725 | (char *) "self",(char *) "n", NULL | |
9726 | }; | |
9727 | ||
9728 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
9729 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9730 | if (!SWIG_IsOK(res1)) { | |
9731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9732 | } | |
9733 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9734 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9735 | if (!SWIG_IsOK(ecode2)) { | |
9736 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'"); | |
9737 | } | |
9738 | arg2 = static_cast< int >(val2); | |
9739 | { | |
9740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9741 | (arg1)->EnsureVisible(arg2); | |
9742 | wxPyEndAllowThreads(__tstate); | |
9743 | if (PyErr_Occurred()) SWIG_fail; | |
9744 | } | |
9745 | resultobj = SWIG_Py_Void(); | |
9746 | return resultobj; | |
9747 | fail: | |
9748 | return NULL; | |
9749 | } | |
9750 | ||
9751 | ||
9752 | SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9753 | PyObject *resultobj = 0; | |
9754 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9755 | wxString *arg2 = 0 ; | |
9756 | void *argp1 = 0 ; | |
9757 | int res1 = 0 ; | |
9758 | bool temp2 = false ; | |
9759 | PyObject * obj0 = 0 ; | |
9760 | PyObject * obj1 = 0 ; | |
9761 | char * kwnames[] = { | |
9762 | (char *) "self",(char *) "s", NULL | |
9763 | }; | |
9764 | ||
9765 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
9766 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9767 | if (!SWIG_IsOK(res1)) { | |
9768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9769 | } | |
9770 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9771 | { | |
9772 | arg2 = wxString_in_helper(obj1); | |
9773 | if (arg2 == NULL) SWIG_fail; | |
9774 | temp2 = true; | |
9775 | } | |
9776 | { | |
9777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9778 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
9779 | wxPyEndAllowThreads(__tstate); | |
9780 | if (PyErr_Occurred()) SWIG_fail; | |
9781 | } | |
9782 | resultobj = SWIG_Py_Void(); | |
9783 | { | |
9784 | if (temp2) | |
9785 | delete arg2; | |
9786 | } | |
9787 | return resultobj; | |
9788 | fail: | |
9789 | { | |
9790 | if (temp2) | |
9791 | delete arg2; | |
9792 | } | |
9793 | return NULL; | |
d14a1e28 RD |
9794 | } |
9795 | ||
9796 | ||
0085ce49 RD |
9797 | SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9798 | PyObject *resultobj = 0; | |
9799 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9800 | bool result; | |
9801 | void *argp1 = 0 ; | |
9802 | int res1 = 0 ; | |
9803 | PyObject *swig_obj[1] ; | |
9804 | ||
9805 | if (!args) SWIG_fail; | |
9806 | swig_obj[0] = args; | |
9807 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9808 | if (!SWIG_IsOK(res1)) { | |
9809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9810 | } | |
9811 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9812 | { | |
9813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9814 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
9815 | wxPyEndAllowThreads(__tstate); | |
9816 | if (PyErr_Occurred()) SWIG_fail; | |
9817 | } | |
9818 | { | |
9819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9820 | } | |
9821 | return resultobj; | |
9822 | fail: | |
9823 | return NULL; | |
9824 | } | |
9825 | ||
9826 | ||
9827 | SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9828 | PyObject *resultobj = 0; | |
9829 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9830 | wxPoint *arg2 = 0 ; | |
9831 | int result; | |
9832 | void *argp1 = 0 ; | |
9833 | int res1 = 0 ; | |
9834 | wxPoint temp2 ; | |
9835 | PyObject * obj0 = 0 ; | |
9836 | PyObject * obj1 = 0 ; | |
9837 | char * kwnames[] = { | |
9838 | (char *) "self",(char *) "pt", NULL | |
9839 | }; | |
9840 | ||
9841 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
9842 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9843 | if (!SWIG_IsOK(res1)) { | |
9844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9845 | } | |
9846 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9847 | { | |
9848 | arg2 = &temp2; | |
9849 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9850 | } | |
9851 | { | |
9852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9853 | result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
9854 | wxPyEndAllowThreads(__tstate); | |
9855 | if (PyErr_Occurred()) SWIG_fail; | |
9856 | } | |
9857 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9858 | return resultobj; | |
9859 | fail: | |
9860 | return NULL; | |
9861 | } | |
9862 | ||
9863 | ||
9864 | SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9865 | PyObject *resultobj = 0; | |
9866 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9867 | int arg2 ; | |
9868 | wxColour *arg3 = 0 ; | |
9869 | void *argp1 = 0 ; | |
9870 | int res1 = 0 ; | |
9871 | int val2 ; | |
9872 | int ecode2 = 0 ; | |
9873 | wxColour temp3 ; | |
9874 | PyObject * obj0 = 0 ; | |
9875 | PyObject * obj1 = 0 ; | |
9876 | PyObject * obj2 = 0 ; | |
9877 | char * kwnames[] = { | |
9878 | (char *) "self",(char *) "item",(char *) "c", NULL | |
9879 | }; | |
9880 | ||
9881 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9882 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9883 | if (!SWIG_IsOK(res1)) { | |
9884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9885 | } | |
9886 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9887 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9888 | if (!SWIG_IsOK(ecode2)) { | |
9889 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'"); | |
9890 | } | |
9891 | arg2 = static_cast< int >(val2); | |
9892 | { | |
9893 | arg3 = &temp3; | |
9894 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9895 | } | |
9896 | { | |
9897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9898 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
9899 | wxPyEndAllowThreads(__tstate); | |
9900 | if (PyErr_Occurred()) SWIG_fail; | |
9901 | } | |
9902 | resultobj = SWIG_Py_Void(); | |
9903 | return resultobj; | |
9904 | fail: | |
9905 | return NULL; | |
9906 | } | |
9907 | ||
9908 | ||
9909 | SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9910 | PyObject *resultobj = 0; | |
9911 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9912 | int arg2 ; | |
9913 | wxColour *arg3 = 0 ; | |
9914 | void *argp1 = 0 ; | |
9915 | int res1 = 0 ; | |
9916 | int val2 ; | |
9917 | int ecode2 = 0 ; | |
9918 | wxColour temp3 ; | |
9919 | PyObject * obj0 = 0 ; | |
9920 | PyObject * obj1 = 0 ; | |
9921 | PyObject * obj2 = 0 ; | |
9922 | char * kwnames[] = { | |
9923 | (char *) "self",(char *) "item",(char *) "c", NULL | |
9924 | }; | |
9925 | ||
9926 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9927 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9928 | if (!SWIG_IsOK(res1)) { | |
9929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9930 | } | |
9931 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9932 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9933 | if (!SWIG_IsOK(ecode2)) { | |
9934 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'"); | |
9935 | } | |
9936 | arg2 = static_cast< int >(val2); | |
9937 | { | |
9938 | arg3 = &temp3; | |
9939 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9940 | } | |
9941 | { | |
9942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9943 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
9944 | wxPyEndAllowThreads(__tstate); | |
9945 | if (PyErr_Occurred()) SWIG_fail; | |
9946 | } | |
9947 | resultobj = SWIG_Py_Void(); | |
9948 | return resultobj; | |
9949 | fail: | |
9950 | return NULL; | |
9951 | } | |
9952 | ||
9953 | ||
9954 | SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9955 | PyObject *resultobj = 0; | |
9956 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9957 | int arg2 ; | |
9958 | wxFont *arg3 = 0 ; | |
9959 | void *argp1 = 0 ; | |
9960 | int res1 = 0 ; | |
9961 | int val2 ; | |
9962 | int ecode2 = 0 ; | |
9963 | void *argp3 = 0 ; | |
9964 | int res3 = 0 ; | |
9965 | PyObject * obj0 = 0 ; | |
9966 | PyObject * obj1 = 0 ; | |
9967 | PyObject * obj2 = 0 ; | |
9968 | char * kwnames[] = { | |
9969 | (char *) "self",(char *) "item",(char *) "f", NULL | |
9970 | }; | |
9971 | ||
9972 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9973 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9974 | if (!SWIG_IsOK(res1)) { | |
9975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9976 | } | |
9977 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9978 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9979 | if (!SWIG_IsOK(ecode2)) { | |
9980 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'"); | |
9981 | } | |
9982 | arg2 = static_cast< int >(val2); | |
9983 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
9984 | if (!SWIG_IsOK(res3)) { | |
9985 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
9986 | } | |
9987 | if (!argp3) { | |
9988 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
9989 | } | |
9990 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
9991 | { | |
9992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9993 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
9994 | wxPyEndAllowThreads(__tstate); | |
9995 | if (PyErr_Occurred()) SWIG_fail; | |
9996 | } | |
9997 | resultobj = SWIG_Py_Void(); | |
9998 | return resultobj; | |
9999 | fail: | |
10000 | return NULL; | |
10001 | } | |
10002 | ||
10003 | ||
10004 | SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10005 | PyObject *resultobj = 0; | |
10006 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
10007 | SwigValueWrapper<wxVisualAttributes > result; | |
10008 | int val1 ; | |
10009 | int ecode1 = 0 ; | |
10010 | PyObject * obj0 = 0 ; | |
10011 | char * kwnames[] = { | |
10012 | (char *) "variant", NULL | |
10013 | }; | |
10014 | ||
10015 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
10016 | if (obj0) { | |
10017 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10018 | if (!SWIG_IsOK(ecode1)) { | |
10019 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
10020 | } | |
10021 | arg1 = static_cast< wxWindowVariant >(val1); | |
10022 | } | |
10023 | { | |
10024 | if (!wxPyCheckForApp()) SWIG_fail; | |
10025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10026 | result = wxListBox::GetClassDefaultAttributes(arg1); | |
10027 | wxPyEndAllowThreads(__tstate); | |
10028 | if (PyErr_Occurred()) SWIG_fail; | |
10029 | } | |
10030 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
10031 | return resultobj; | |
10032 | fail: | |
10033 | return NULL; | |
10034 | } | |
10035 | ||
10036 | ||
10037 | SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10038 | PyObject *obj; | |
10039 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10040 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj)); | |
10041 | return SWIG_Py_Void(); | |
10042 | } | |
10043 | ||
10044 | SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10045 | return SWIG_Python_InitShadowInstance(args); | |
10046 | } | |
10047 | ||
10048 | SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10049 | PyObject *resultobj = 0; | |
10050 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10051 | int arg2 = (int) -1 ; | |
10052 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10053 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10054 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10055 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10056 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
10057 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
10058 | long arg6 = (long) 0 ; | |
10059 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10060 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10061 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
10062 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10063 | wxCheckListBox *result = 0 ; | |
10064 | void *argp1 = 0 ; | |
10065 | int res1 = 0 ; | |
10066 | int val2 ; | |
10067 | int ecode2 = 0 ; | |
10068 | wxPoint temp3 ; | |
10069 | wxSize temp4 ; | |
10070 | bool temp5 = false ; | |
10071 | long val6 ; | |
10072 | int ecode6 = 0 ; | |
10073 | void *argp7 = 0 ; | |
10074 | int res7 = 0 ; | |
10075 | bool temp8 = false ; | |
10076 | PyObject * obj0 = 0 ; | |
10077 | PyObject * obj1 = 0 ; | |
10078 | PyObject * obj2 = 0 ; | |
10079 | PyObject * obj3 = 0 ; | |
10080 | PyObject * obj4 = 0 ; | |
10081 | PyObject * obj5 = 0 ; | |
10082 | PyObject * obj6 = 0 ; | |
10083 | PyObject * obj7 = 0 ; | |
10084 | char * kwnames[] = { | |
10085 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10086 | }; | |
10087 | ||
10088 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
10089 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10090 | if (!SWIG_IsOK(res1)) { | |
10091 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
10092 | } | |
10093 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
10094 | if (obj1) { | |
10095 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10096 | if (!SWIG_IsOK(ecode2)) { | |
10097 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'"); | |
10098 | } | |
10099 | arg2 = static_cast< int >(val2); | |
10100 | } | |
10101 | if (obj2) { | |
d14a1e28 | 10102 | { |
0085ce49 RD |
10103 | arg3 = &temp3; |
10104 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 10105 | } |
0085ce49 RD |
10106 | } |
10107 | if (obj3) { | |
d14a1e28 | 10108 | { |
0085ce49 RD |
10109 | arg4 = &temp4; |
10110 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 10111 | } |
0085ce49 RD |
10112 | } |
10113 | if (obj4) { | |
d14a1e28 | 10114 | { |
0085ce49 RD |
10115 | if (! PySequence_Check(obj4)) { |
10116 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10117 | SWIG_fail; | |
10118 | } | |
10119 | arg5 = new wxArrayString; | |
10120 | temp5 = true; | |
10121 | int i, len=PySequence_Length(obj4); | |
10122 | for (i=0; i<len; i++) { | |
10123 | PyObject* item = PySequence_GetItem(obj4, i); | |
10124 | wxString* s = wxString_in_helper(item); | |
10125 | if (PyErr_Occurred()) SWIG_fail; | |
10126 | arg5->Add(*s); | |
10127 | delete s; | |
10128 | Py_DECREF(item); | |
10129 | } | |
d14a1e28 | 10130 | } |
0085ce49 RD |
10131 | } |
10132 | if (obj5) { | |
10133 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
10134 | if (!SWIG_IsOK(ecode6)) { | |
10135 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'"); | |
10136 | } | |
10137 | arg6 = static_cast< long >(val6); | |
10138 | } | |
10139 | if (obj6) { | |
10140 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
10141 | if (!SWIG_IsOK(res7)) { | |
10142 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
4f89f6a3 | 10143 | } |
0085ce49 RD |
10144 | if (!argp7) { |
10145 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 10146 | } |
0085ce49 RD |
10147 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
10148 | } | |
10149 | if (obj7) { | |
093d3ff1 | 10150 | { |
0085ce49 RD |
10151 | arg8 = wxString_in_helper(obj7); |
10152 | if (arg8 == NULL) SWIG_fail; | |
10153 | temp8 = true; | |
093d3ff1 | 10154 | } |
0085ce49 RD |
10155 | } |
10156 | { | |
10157 | if (!wxPyCheckForApp()) SWIG_fail; | |
10158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10159 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10160 | wxPyEndAllowThreads(__tstate); | |
10161 | if (PyErr_Occurred()) SWIG_fail; | |
10162 | } | |
10163 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 ); | |
10164 | { | |
10165 | if (temp5) delete arg5; | |
10166 | } | |
10167 | { | |
10168 | if (temp8) | |
10169 | delete arg8; | |
10170 | } | |
10171 | return resultobj; | |
10172 | fail: | |
10173 | { | |
10174 | if (temp5) delete arg5; | |
10175 | } | |
10176 | { | |
10177 | if (temp8) | |
10178 | delete arg8; | |
10179 | } | |
10180 | return NULL; | |
d14a1e28 RD |
10181 | } |
10182 | ||
10183 | ||
0085ce49 RD |
10184 | SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10185 | PyObject *resultobj = 0; | |
10186 | wxCheckListBox *result = 0 ; | |
10187 | ||
10188 | if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail; | |
10189 | { | |
10190 | if (!wxPyCheckForApp()) SWIG_fail; | |
10191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10192 | result = (wxCheckListBox *)new wxCheckListBox(); | |
10193 | wxPyEndAllowThreads(__tstate); | |
10194 | if (PyErr_Occurred()) SWIG_fail; | |
10195 | } | |
10196 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 ); | |
10197 | return resultobj; | |
10198 | fail: | |
10199 | return NULL; | |
10200 | } | |
10201 | ||
10202 | ||
10203 | SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10204 | PyObject *resultobj = 0; | |
10205 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
10206 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10207 | int arg3 = (int) -1 ; | |
10208 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10209 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10210 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10211 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10212 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
10213 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
10214 | long arg7 = (long) 0 ; | |
10215 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
10216 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
10217 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
10218 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
10219 | bool result; | |
10220 | void *argp1 = 0 ; | |
10221 | int res1 = 0 ; | |
10222 | void *argp2 = 0 ; | |
10223 | int res2 = 0 ; | |
10224 | int val3 ; | |
10225 | int ecode3 = 0 ; | |
10226 | wxPoint temp4 ; | |
10227 | wxSize temp5 ; | |
10228 | bool temp6 = false ; | |
10229 | long val7 ; | |
10230 | int ecode7 = 0 ; | |
10231 | void *argp8 = 0 ; | |
10232 | int res8 = 0 ; | |
10233 | bool temp9 = false ; | |
10234 | PyObject * obj0 = 0 ; | |
10235 | PyObject * obj1 = 0 ; | |
10236 | PyObject * obj2 = 0 ; | |
10237 | PyObject * obj3 = 0 ; | |
10238 | PyObject * obj4 = 0 ; | |
10239 | PyObject * obj5 = 0 ; | |
10240 | PyObject * obj6 = 0 ; | |
10241 | PyObject * obj7 = 0 ; | |
10242 | PyObject * obj8 = 0 ; | |
10243 | char * kwnames[] = { | |
10244 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10245 | }; | |
10246 | ||
10247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
10248 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10249 | if (!SWIG_IsOK(res1)) { | |
10250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10251 | } | |
10252 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
10253 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10254 | if (!SWIG_IsOK(res2)) { | |
10255 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
10256 | } | |
10257 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
10258 | if (obj2) { | |
10259 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10260 | if (!SWIG_IsOK(ecode3)) { | |
10261 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
10262 | } | |
10263 | arg3 = static_cast< int >(val3); | |
10264 | } | |
10265 | if (obj3) { | |
22bfe96c | 10266 | { |
0085ce49 RD |
10267 | arg4 = &temp4; |
10268 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 10269 | } |
0085ce49 RD |
10270 | } |
10271 | if (obj4) { | |
d14a1e28 | 10272 | { |
0085ce49 RD |
10273 | arg5 = &temp5; |
10274 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 10275 | } |
0085ce49 RD |
10276 | } |
10277 | if (obj5) { | |
d14a1e28 | 10278 | { |
0085ce49 RD |
10279 | if (! PySequence_Check(obj5)) { |
10280 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10281 | SWIG_fail; | |
10282 | } | |
10283 | arg6 = new wxArrayString; | |
10284 | temp6 = true; | |
10285 | int i, len=PySequence_Length(obj5); | |
10286 | for (i=0; i<len; i++) { | |
10287 | PyObject* item = PySequence_GetItem(obj5, i); | |
10288 | wxString* s = wxString_in_helper(item); | |
10289 | if (PyErr_Occurred()) SWIG_fail; | |
10290 | arg6->Add(*s); | |
10291 | delete s; | |
10292 | Py_DECREF(item); | |
10293 | } | |
d14a1e28 | 10294 | } |
0085ce49 RD |
10295 | } |
10296 | if (obj6) { | |
10297 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
10298 | if (!SWIG_IsOK(ecode7)) { | |
10299 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
10300 | } | |
10301 | arg7 = static_cast< long >(val7); | |
10302 | } | |
10303 | if (obj7) { | |
10304 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
10305 | if (!SWIG_IsOK(res8)) { | |
10306 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 10307 | } |
0085ce49 RD |
10308 | if (!argp8) { |
10309 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 10310 | } |
0085ce49 RD |
10311 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
10312 | } | |
10313 | if (obj8) { | |
d14a1e28 | 10314 | { |
0085ce49 RD |
10315 | arg9 = wxString_in_helper(obj8); |
10316 | if (arg9 == NULL) SWIG_fail; | |
10317 | temp9 = true; | |
d14a1e28 | 10318 | } |
0085ce49 RD |
10319 | } |
10320 | { | |
10321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10322 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
10323 | wxPyEndAllowThreads(__tstate); | |
10324 | if (PyErr_Occurred()) SWIG_fail; | |
10325 | } | |
10326 | { | |
10327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10328 | } | |
10329 | { | |
10330 | if (temp6) delete arg6; | |
10331 | } | |
10332 | { | |
10333 | if (temp9) | |
10334 | delete arg9; | |
10335 | } | |
10336 | return resultobj; | |
10337 | fail: | |
10338 | { | |
10339 | if (temp6) delete arg6; | |
10340 | } | |
10341 | { | |
10342 | if (temp9) | |
10343 | delete arg9; | |
10344 | } | |
10345 | return NULL; | |
10346 | } | |
10347 | ||
10348 | ||
10349 | SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10350 | PyObject *resultobj = 0; | |
10351 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
50f151d7 | 10352 | unsigned int arg2 ; |
0085ce49 RD |
10353 | bool result; |
10354 | void *argp1 = 0 ; | |
10355 | int res1 = 0 ; | |
50f151d7 | 10356 | unsigned int val2 ; |
0085ce49 RD |
10357 | int ecode2 = 0 ; |
10358 | PyObject * obj0 = 0 ; | |
10359 | PyObject * obj1 = 0 ; | |
10360 | char * kwnames[] = { | |
10361 | (char *) "self",(char *) "index", NULL | |
10362 | }; | |
10363 | ||
10364 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail; | |
10365 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10366 | if (!SWIG_IsOK(res1)) { | |
10367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10368 | } | |
10369 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
50f151d7 | 10370 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
0085ce49 | 10371 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 10372 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'"); |
0085ce49 | 10373 | } |
50f151d7 | 10374 | arg2 = static_cast< unsigned int >(val2); |
0085ce49 RD |
10375 | { |
10376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10377 | result = (bool)(arg1)->IsChecked(arg2); | |
10378 | wxPyEndAllowThreads(__tstate); | |
10379 | if (PyErr_Occurred()) SWIG_fail; | |
10380 | } | |
10381 | { | |
10382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10383 | } | |
10384 | return resultobj; | |
10385 | fail: | |
10386 | return NULL; | |
10387 | } | |
10388 | ||
10389 | ||
10390 | SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10391 | PyObject *resultobj = 0; | |
10392 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
50f151d7 | 10393 | unsigned int arg2 ; |
0085ce49 RD |
10394 | int arg3 = (int) true ; |
10395 | void *argp1 = 0 ; | |
10396 | int res1 = 0 ; | |
50f151d7 | 10397 | unsigned int val2 ; |
0085ce49 RD |
10398 | int ecode2 = 0 ; |
10399 | int val3 ; | |
10400 | int ecode3 = 0 ; | |
10401 | PyObject * obj0 = 0 ; | |
10402 | PyObject * obj1 = 0 ; | |
10403 | PyObject * obj2 = 0 ; | |
10404 | char * kwnames[] = { | |
10405 | (char *) "self",(char *) "index",(char *) "check", NULL | |
10406 | }; | |
10407 | ||
10408 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10409 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10410 | if (!SWIG_IsOK(res1)) { | |
10411 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10412 | } | |
10413 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
50f151d7 | 10414 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
0085ce49 | 10415 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 10416 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'"); |
0085ce49 | 10417 | } |
50f151d7 | 10418 | arg2 = static_cast< unsigned int >(val2); |
0085ce49 RD |
10419 | if (obj2) { |
10420 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10421 | if (!SWIG_IsOK(ecode3)) { | |
10422 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'"); | |
10423 | } | |
10424 | arg3 = static_cast< int >(val3); | |
10425 | } | |
10426 | { | |
10427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10428 | (arg1)->Check(arg2,arg3); | |
10429 | wxPyEndAllowThreads(__tstate); | |
10430 | if (PyErr_Occurred()) SWIG_fail; | |
10431 | } | |
10432 | resultobj = SWIG_Py_Void(); | |
10433 | return resultobj; | |
10434 | fail: | |
10435 | return NULL; | |
d14a1e28 RD |
10436 | } |
10437 | ||
10438 | ||
0085ce49 RD |
10439 | SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10440 | PyObject *resultobj = 0; | |
10441 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
10442 | int result; | |
10443 | void *argp1 = 0 ; | |
10444 | int res1 = 0 ; | |
10445 | PyObject *swig_obj[1] ; | |
10446 | ||
10447 | if (!args) SWIG_fail; | |
10448 | swig_obj[0] = args; | |
10449 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10450 | if (!SWIG_IsOK(res1)) { | |
10451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10452 | } | |
10453 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
10454 | { | |
10455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10456 | result = (int)(arg1)->GetItemHeight(); | |
10457 | wxPyEndAllowThreads(__tstate); | |
10458 | if (PyErr_Occurred()) SWIG_fail; | |
10459 | } | |
10460 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10461 | return resultobj; | |
10462 | fail: | |
10463 | return NULL; | |
d14a1e28 RD |
10464 | } |
10465 | ||
10466 | ||
0085ce49 RD |
10467 | SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10468 | PyObject *obj; | |
10469 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10470 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj)); | |
10471 | return SWIG_Py_Void(); | |
d14a1e28 RD |
10472 | } |
10473 | ||
0085ce49 RD |
10474 | SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10475 | return SWIG_Python_InitShadowInstance(args); | |
943e8dfd RD |
10476 | } |
10477 | ||
0085ce49 RD |
10478 | SWIGINTERN int TextCtrlNameStr_set(PyObject *) { |
10479 | SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only."); | |
10480 | return 1; | |
22bfe96c RD |
10481 | } |
10482 | ||
10483 | ||
0085ce49 RD |
10484 | SWIGINTERN PyObject *TextCtrlNameStr_get(void) { |
10485 | PyObject *pyobj = 0; | |
10486 | ||
10487 | { | |
10488 | #if wxUSE_UNICODE | |
10489 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
10490 | #else | |
10491 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
10492 | #endif | |
10493 | } | |
10494 | return pyobj; | |
10495 | } | |
10496 | ||
10497 | ||
10498 | SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10499 | PyObject *resultobj = 0; | |
10500 | wxColour const &arg1_defvalue = wxNullColour ; | |
10501 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
10502 | wxColour const &arg2_defvalue = wxNullColour ; | |
10503 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
10504 | wxFont const &arg3_defvalue = wxNullFont ; | |
10505 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
10506 | wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; | |
10507 | wxTextAttr *result = 0 ; | |
10508 | wxColour temp1 ; | |
10509 | wxColour temp2 ; | |
10510 | void *argp3 = 0 ; | |
10511 | int res3 = 0 ; | |
10512 | int val4 ; | |
10513 | int ecode4 = 0 ; | |
10514 | PyObject * obj0 = 0 ; | |
10515 | PyObject * obj1 = 0 ; | |
10516 | PyObject * obj2 = 0 ; | |
10517 | PyObject * obj3 = 0 ; | |
10518 | char * kwnames[] = { | |
10519 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
10520 | }; | |
10521 | ||
10522 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10523 | if (obj0) { | |
d14a1e28 | 10524 | { |
0085ce49 RD |
10525 | arg1 = &temp1; |
10526 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
d14a1e28 | 10527 | } |
0085ce49 RD |
10528 | } |
10529 | if (obj1) { | |
d14a1e28 | 10530 | { |
0085ce49 RD |
10531 | arg2 = &temp2; |
10532 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 10533 | } |
0085ce49 RD |
10534 | } |
10535 | if (obj2) { | |
10536 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
10537 | if (!SWIG_IsOK(res3)) { | |
10538 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d14a1e28 | 10539 | } |
0085ce49 RD |
10540 | if (!argp3) { |
10541 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
10542 | } | |
10543 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
10544 | } | |
10545 | if (obj3) { | |
10546 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10547 | if (!SWIG_IsOK(ecode4)) { | |
10548 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'"); | |
10549 | } | |
10550 | arg4 = static_cast< wxTextAttrAlignment >(val4); | |
10551 | } | |
10552 | { | |
10553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10554 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4); | |
10555 | wxPyEndAllowThreads(__tstate); | |
10556 | if (PyErr_Occurred()) SWIG_fail; | |
10557 | } | |
10558 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 ); | |
10559 | return resultobj; | |
10560 | fail: | |
10561 | return NULL; | |
d14a1e28 RD |
10562 | } |
10563 | ||
10564 | ||
0085ce49 RD |
10565 | SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10566 | PyObject *resultobj = 0; | |
10567 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10568 | void *argp1 = 0 ; | |
10569 | int res1 = 0 ; | |
10570 | PyObject *swig_obj[1] ; | |
10571 | ||
10572 | if (!args) SWIG_fail; | |
10573 | swig_obj[0] = args; | |
10574 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 ); | |
10575 | if (!SWIG_IsOK(res1)) { | |
10576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10577 | } | |
10578 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10579 | { | |
10580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10581 | delete arg1; | |
d14a1e28 | 10582 | |
0085ce49 RD |
10583 | wxPyEndAllowThreads(__tstate); |
10584 | if (PyErr_Occurred()) SWIG_fail; | |
10585 | } | |
10586 | resultobj = SWIG_Py_Void(); | |
10587 | return resultobj; | |
10588 | fail: | |
10589 | return NULL; | |
d14a1e28 RD |
10590 | } |
10591 | ||
10592 | ||
0085ce49 RD |
10593 | SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10594 | PyObject *resultobj = 0; | |
10595 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10596 | void *argp1 = 0 ; | |
10597 | int res1 = 0 ; | |
10598 | PyObject *swig_obj[1] ; | |
10599 | ||
10600 | if (!args) SWIG_fail; | |
10601 | swig_obj[0] = args; | |
10602 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10603 | if (!SWIG_IsOK(res1)) { | |
10604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10605 | } | |
10606 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10607 | { | |
10608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10609 | (arg1)->Init(); | |
10610 | wxPyEndAllowThreads(__tstate); | |
10611 | if (PyErr_Occurred()) SWIG_fail; | |
10612 | } | |
10613 | resultobj = SWIG_Py_Void(); | |
10614 | return resultobj; | |
10615 | fail: | |
10616 | return NULL; | |
10617 | } | |
10618 | ||
10619 | ||
01f6b6d3 RD |
10620 | SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10621 | PyObject *resultobj = 0; | |
10622 | wxTextAttr *arg1 = 0 ; | |
10623 | wxTextAttr *arg2 = 0 ; | |
10624 | wxTextAttr result; | |
10625 | void *argp1 = 0 ; | |
10626 | int res1 = 0 ; | |
10627 | void *argp2 = 0 ; | |
10628 | int res2 = 0 ; | |
10629 | PyObject * obj0 = 0 ; | |
10630 | PyObject * obj1 = 0 ; | |
10631 | char * kwnames[] = { | |
10632 | (char *) "base",(char *) "overlay", NULL | |
10633 | }; | |
10634 | ||
10635 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail; | |
10636 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
10637 | if (!SWIG_IsOK(res1)) { | |
10638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
10639 | } | |
10640 | if (!argp1) { | |
10641 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
10642 | } | |
10643 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10644 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
10645 | if (!SWIG_IsOK(res2)) { | |
10646 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
10647 | } | |
10648 | if (!argp2) { | |
10649 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
10650 | } | |
10651 | arg2 = reinterpret_cast< wxTextAttr * >(argp2); | |
10652 | { | |
10653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10654 | result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2); | |
10655 | wxPyEndAllowThreads(__tstate); | |
10656 | if (PyErr_Occurred()) SWIG_fail; | |
10657 | } | |
10658 | resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 ); | |
10659 | return resultobj; | |
10660 | fail: | |
10661 | return NULL; | |
10662 | } | |
10663 | ||
10664 | ||
0085ce49 RD |
10665 | SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10666 | PyObject *resultobj = 0; | |
10667 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10668 | wxColour *arg2 = 0 ; | |
10669 | void *argp1 = 0 ; | |
10670 | int res1 = 0 ; | |
10671 | wxColour temp2 ; | |
10672 | PyObject * obj0 = 0 ; | |
10673 | PyObject * obj1 = 0 ; | |
10674 | char * kwnames[] = { | |
10675 | (char *) "self",(char *) "colText", NULL | |
10676 | }; | |
10677 | ||
10678 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
10679 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10680 | if (!SWIG_IsOK(res1)) { | |
10681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10682 | } | |
10683 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10684 | { | |
10685 | arg2 = &temp2; | |
10686 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10687 | } | |
10688 | { | |
10689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10690 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
10691 | wxPyEndAllowThreads(__tstate); | |
10692 | if (PyErr_Occurred()) SWIG_fail; | |
10693 | } | |
10694 | resultobj = SWIG_Py_Void(); | |
10695 | return resultobj; | |
10696 | fail: | |
10697 | return NULL; | |
10698 | } | |
10699 | ||
10700 | ||
10701 | SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10702 | PyObject *resultobj = 0; | |
10703 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10704 | wxColour *arg2 = 0 ; | |
10705 | void *argp1 = 0 ; | |
10706 | int res1 = 0 ; | |
10707 | wxColour temp2 ; | |
10708 | PyObject * obj0 = 0 ; | |
10709 | PyObject * obj1 = 0 ; | |
10710 | char * kwnames[] = { | |
10711 | (char *) "self",(char *) "colBack", NULL | |
10712 | }; | |
10713 | ||
10714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
10715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10716 | if (!SWIG_IsOK(res1)) { | |
10717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10718 | } | |
10719 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10720 | { | |
10721 | arg2 = &temp2; | |
10722 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10723 | } | |
10724 | { | |
10725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10726 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
10727 | wxPyEndAllowThreads(__tstate); | |
10728 | if (PyErr_Occurred()) SWIG_fail; | |
10729 | } | |
10730 | resultobj = SWIG_Py_Void(); | |
10731 | return resultobj; | |
10732 | fail: | |
10733 | return NULL; | |
10734 | } | |
10735 | ||
10736 | ||
10737 | SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10738 | PyObject *resultobj = 0; | |
10739 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10740 | wxFont *arg2 = 0 ; | |
10741 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
10742 | void *argp1 = 0 ; | |
10743 | int res1 = 0 ; | |
10744 | void *argp2 = 0 ; | |
10745 | int res2 = 0 ; | |
10746 | long val3 ; | |
10747 | int ecode3 = 0 ; | |
10748 | PyObject * obj0 = 0 ; | |
10749 | PyObject * obj1 = 0 ; | |
10750 | PyObject * obj2 = 0 ; | |
10751 | char * kwnames[] = { | |
10752 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
10753 | }; | |
10754 | ||
10755 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10756 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10757 | if (!SWIG_IsOK(res1)) { | |
10758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10759 | } | |
10760 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10761 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
10762 | if (!SWIG_IsOK(res2)) { | |
10763 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
10764 | } | |
10765 | if (!argp2) { | |
10766 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
10767 | } | |
10768 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
10769 | if (obj2) { | |
10770 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
10771 | if (!SWIG_IsOK(ecode3)) { | |
10772 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'"); | |
10773 | } | |
10774 | arg3 = static_cast< long >(val3); | |
10775 | } | |
10776 | { | |
10777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10778 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
10779 | wxPyEndAllowThreads(__tstate); | |
10780 | if (PyErr_Occurred()) SWIG_fail; | |
10781 | } | |
10782 | resultobj = SWIG_Py_Void(); | |
10783 | return resultobj; | |
10784 | fail: | |
10785 | return NULL; | |
10786 | } | |
10787 | ||
10788 | ||
10789 | SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10790 | PyObject *resultobj = 0; | |
10791 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10792 | wxTextAttrAlignment arg2 ; | |
10793 | void *argp1 = 0 ; | |
10794 | int res1 = 0 ; | |
10795 | int val2 ; | |
10796 | int ecode2 = 0 ; | |
10797 | PyObject * obj0 = 0 ; | |
10798 | PyObject * obj1 = 0 ; | |
10799 | char * kwnames[] = { | |
10800 | (char *) "self",(char *) "alignment", NULL | |
10801 | }; | |
10802 | ||
10803 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
10804 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10805 | if (!SWIG_IsOK(res1)) { | |
10806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10807 | } | |
10808 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10809 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10810 | if (!SWIG_IsOK(ecode2)) { | |
10811 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
10812 | } | |
10813 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
10814 | { | |
10815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10816 | (arg1)->SetAlignment(arg2); | |
10817 | wxPyEndAllowThreads(__tstate); | |
10818 | if (PyErr_Occurred()) SWIG_fail; | |
10819 | } | |
10820 | resultobj = SWIG_Py_Void(); | |
10821 | return resultobj; | |
10822 | fail: | |
10823 | return NULL; | |
10824 | } | |
10825 | ||
10826 | ||
10827 | SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10828 | PyObject *resultobj = 0; | |
10829 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10830 | wxArrayInt *arg2 = 0 ; | |
10831 | void *argp1 = 0 ; | |
10832 | int res1 = 0 ; | |
10833 | bool temp2 = false ; | |
10834 | PyObject * obj0 = 0 ; | |
10835 | PyObject * obj1 = 0 ; | |
10836 | char * kwnames[] = { | |
10837 | (char *) "self",(char *) "tabs", NULL | |
10838 | }; | |
10839 | ||
10840 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail; | |
10841 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10842 | if (!SWIG_IsOK(res1)) { | |
10843 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10844 | } | |
10845 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10846 | { | |
10847 | if (! PySequence_Check(obj1)) { | |
10848 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
10849 | SWIG_fail; | |
10850 | } | |
10851 | arg2 = new wxArrayInt; | |
10852 | temp2 = true; | |
10853 | int i, len=PySequence_Length(obj1); | |
10854 | for (i=0; i<len; i++) { | |
10855 | PyObject* item = PySequence_GetItem(obj1, i); | |
10856 | PyObject* number = PyNumber_Int(item); | |
ec8a7755 RD |
10857 | if (!number) { |
10858 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
10859 | SWIG_fail; | |
10860 | } | |
0085ce49 RD |
10861 | arg2->Add(PyInt_AS_LONG(number)); |
10862 | Py_DECREF(item); | |
10863 | Py_DECREF(number); | |
d14a1e28 | 10864 | } |
0085ce49 RD |
10865 | } |
10866 | { | |
10867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10868 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
10869 | wxPyEndAllowThreads(__tstate); | |
10870 | if (PyErr_Occurred()) SWIG_fail; | |
10871 | } | |
10872 | resultobj = SWIG_Py_Void(); | |
10873 | { | |
10874 | if (temp2) delete arg2; | |
10875 | } | |
10876 | return resultobj; | |
10877 | fail: | |
10878 | { | |
10879 | if (temp2) delete arg2; | |
10880 | } | |
10881 | return NULL; | |
10882 | } | |
10883 | ||
10884 | ||
10885 | SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10886 | PyObject *resultobj = 0; | |
10887 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10888 | int arg2 ; | |
10889 | int arg3 = (int) 0 ; | |
10890 | void *argp1 = 0 ; | |
10891 | int res1 = 0 ; | |
10892 | int val2 ; | |
10893 | int ecode2 = 0 ; | |
10894 | int val3 ; | |
10895 | int ecode3 = 0 ; | |
10896 | PyObject * obj0 = 0 ; | |
10897 | PyObject * obj1 = 0 ; | |
10898 | PyObject * obj2 = 0 ; | |
10899 | char * kwnames[] = { | |
10900 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL | |
10901 | }; | |
10902 | ||
10903 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10904 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10905 | if (!SWIG_IsOK(res1)) { | |
10906 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10907 | } | |
10908 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10909 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10910 | if (!SWIG_IsOK(ecode2)) { | |
10911 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'"); | |
10912 | } | |
10913 | arg2 = static_cast< int >(val2); | |
10914 | if (obj2) { | |
10915 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10916 | if (!SWIG_IsOK(ecode3)) { | |
10917 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'"); | |
10918 | } | |
10919 | arg3 = static_cast< int >(val3); | |
10920 | } | |
10921 | { | |
10922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10923 | (arg1)->SetLeftIndent(arg2,arg3); | |
10924 | wxPyEndAllowThreads(__tstate); | |
10925 | if (PyErr_Occurred()) SWIG_fail; | |
10926 | } | |
10927 | resultobj = SWIG_Py_Void(); | |
10928 | return resultobj; | |
10929 | fail: | |
10930 | return NULL; | |
10931 | } | |
10932 | ||
10933 | ||
10934 | SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10935 | PyObject *resultobj = 0; | |
10936 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10937 | int arg2 ; | |
10938 | void *argp1 = 0 ; | |
10939 | int res1 = 0 ; | |
10940 | int val2 ; | |
10941 | int ecode2 = 0 ; | |
10942 | PyObject * obj0 = 0 ; | |
10943 | PyObject * obj1 = 0 ; | |
10944 | char * kwnames[] = { | |
10945 | (char *) "self",(char *) "indent", NULL | |
10946 | }; | |
10947 | ||
10948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10950 | if (!SWIG_IsOK(res1)) { | |
10951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10952 | } | |
10953 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10954 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10955 | if (!SWIG_IsOK(ecode2)) { | |
10956 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'"); | |
10957 | } | |
10958 | arg2 = static_cast< int >(val2); | |
10959 | { | |
10960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10961 | (arg1)->SetRightIndent(arg2); | |
10962 | wxPyEndAllowThreads(__tstate); | |
10963 | if (PyErr_Occurred()) SWIG_fail; | |
10964 | } | |
10965 | resultobj = SWIG_Py_Void(); | |
10966 | return resultobj; | |
10967 | fail: | |
10968 | return NULL; | |
10969 | } | |
10970 | ||
10971 | ||
10972 | SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10973 | PyObject *resultobj = 0; | |
10974 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10975 | long arg2 ; | |
10976 | void *argp1 = 0 ; | |
10977 | int res1 = 0 ; | |
10978 | long val2 ; | |
10979 | int ecode2 = 0 ; | |
10980 | PyObject * obj0 = 0 ; | |
10981 | PyObject * obj1 = 0 ; | |
10982 | char * kwnames[] = { | |
10983 | (char *) "self",(char *) "flags", NULL | |
10984 | }; | |
10985 | ||
10986 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
10987 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10988 | if (!SWIG_IsOK(res1)) { | |
10989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10990 | } | |
10991 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10992 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10993 | if (!SWIG_IsOK(ecode2)) { | |
10994 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'"); | |
10995 | } | |
10996 | arg2 = static_cast< long >(val2); | |
10997 | { | |
10998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10999 | (arg1)->SetFlags(arg2); | |
11000 | wxPyEndAllowThreads(__tstate); | |
11001 | if (PyErr_Occurred()) SWIG_fail; | |
11002 | } | |
11003 | resultobj = SWIG_Py_Void(); | |
11004 | return resultobj; | |
11005 | fail: | |
11006 | return NULL; | |
d14a1e28 RD |
11007 | } |
11008 | ||
11009 | ||
0085ce49 RD |
11010 | SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11011 | PyObject *resultobj = 0; | |
11012 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11013 | bool result; | |
11014 | void *argp1 = 0 ; | |
11015 | int res1 = 0 ; | |
11016 | PyObject *swig_obj[1] ; | |
11017 | ||
11018 | if (!args) SWIG_fail; | |
11019 | swig_obj[0] = args; | |
11020 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11021 | if (!SWIG_IsOK(res1)) { | |
11022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11023 | } | |
11024 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11025 | { | |
11026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11027 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
11028 | wxPyEndAllowThreads(__tstate); | |
11029 | if (PyErr_Occurred()) SWIG_fail; | |
11030 | } | |
11031 | { | |
11032 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11033 | } | |
11034 | return resultobj; | |
11035 | fail: | |
11036 | return NULL; | |
d14a1e28 RD |
11037 | } |
11038 | ||
11039 | ||
0085ce49 RD |
11040 | SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11041 | PyObject *resultobj = 0; | |
11042 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11043 | bool result; | |
11044 | void *argp1 = 0 ; | |
11045 | int res1 = 0 ; | |
11046 | PyObject *swig_obj[1] ; | |
11047 | ||
11048 | if (!args) SWIG_fail; | |
11049 | swig_obj[0] = args; | |
11050 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11051 | if (!SWIG_IsOK(res1)) { | |
11052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11053 | } | |
11054 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11055 | { | |
11056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11057 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
11058 | wxPyEndAllowThreads(__tstate); | |
11059 | if (PyErr_Occurred()) SWIG_fail; | |
11060 | } | |
11061 | { | |
11062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11063 | } | |
11064 | return resultobj; | |
11065 | fail: | |
11066 | return NULL; | |
d14a1e28 RD |
11067 | } |
11068 | ||
11069 | ||
0085ce49 RD |
11070 | SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11071 | PyObject *resultobj = 0; | |
11072 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11073 | bool result; | |
11074 | void *argp1 = 0 ; | |
11075 | int res1 = 0 ; | |
11076 | PyObject *swig_obj[1] ; | |
11077 | ||
11078 | if (!args) SWIG_fail; | |
11079 | swig_obj[0] = args; | |
11080 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11081 | if (!SWIG_IsOK(res1)) { | |
11082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11083 | } | |
11084 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11085 | { | |
11086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11087 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
11088 | wxPyEndAllowThreads(__tstate); | |
11089 | if (PyErr_Occurred()) SWIG_fail; | |
11090 | } | |
11091 | { | |
11092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11093 | } | |
11094 | return resultobj; | |
11095 | fail: | |
11096 | return NULL; | |
d14a1e28 RD |
11097 | } |
11098 | ||
11099 | ||
0085ce49 RD |
11100 | SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11101 | PyObject *resultobj = 0; | |
11102 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11103 | bool result; | |
11104 | void *argp1 = 0 ; | |
11105 | int res1 = 0 ; | |
11106 | PyObject *swig_obj[1] ; | |
11107 | ||
11108 | if (!args) SWIG_fail; | |
11109 | swig_obj[0] = args; | |
11110 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11111 | if (!SWIG_IsOK(res1)) { | |
11112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11113 | } | |
11114 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11115 | { | |
11116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11117 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
11118 | wxPyEndAllowThreads(__tstate); | |
11119 | if (PyErr_Occurred()) SWIG_fail; | |
11120 | } | |
11121 | { | |
11122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11123 | } | |
11124 | return resultobj; | |
11125 | fail: | |
11126 | return NULL; | |
22bfe96c RD |
11127 | } |
11128 | ||
11129 | ||
0085ce49 RD |
11130 | SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11131 | PyObject *resultobj = 0; | |
11132 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11133 | bool result; | |
11134 | void *argp1 = 0 ; | |
11135 | int res1 = 0 ; | |
11136 | PyObject *swig_obj[1] ; | |
11137 | ||
11138 | if (!args) SWIG_fail; | |
11139 | swig_obj[0] = args; | |
11140 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11141 | if (!SWIG_IsOK(res1)) { | |
11142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11143 | } | |
11144 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11145 | { | |
11146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11147 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
11148 | wxPyEndAllowThreads(__tstate); | |
11149 | if (PyErr_Occurred()) SWIG_fail; | |
11150 | } | |
11151 | { | |
11152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11153 | } | |
11154 | return resultobj; | |
11155 | fail: | |
11156 | return NULL; | |
b2dc1044 RD |
11157 | } |
11158 | ||
11159 | ||
0085ce49 RD |
11160 | SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11161 | PyObject *resultobj = 0; | |
11162 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11163 | bool result; | |
11164 | void *argp1 = 0 ; | |
11165 | int res1 = 0 ; | |
11166 | PyObject *swig_obj[1] ; | |
11167 | ||
11168 | if (!args) SWIG_fail; | |
11169 | swig_obj[0] = args; | |
11170 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11171 | if (!SWIG_IsOK(res1)) { | |
11172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11173 | } | |
11174 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11175 | { | |
11176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11177 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
11178 | wxPyEndAllowThreads(__tstate); | |
11179 | if (PyErr_Occurred()) SWIG_fail; | |
11180 | } | |
11181 | { | |
11182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11183 | } | |
11184 | return resultobj; | |
11185 | fail: | |
11186 | return NULL; | |
d14a1e28 RD |
11187 | } |
11188 | ||
11189 | ||
0085ce49 RD |
11190 | SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11191 | PyObject *resultobj = 0; | |
11192 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11193 | bool result; | |
11194 | void *argp1 = 0 ; | |
11195 | int res1 = 0 ; | |
11196 | PyObject *swig_obj[1] ; | |
11197 | ||
11198 | if (!args) SWIG_fail; | |
11199 | swig_obj[0] = args; | |
11200 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11201 | if (!SWIG_IsOK(res1)) { | |
11202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11203 | } | |
11204 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11205 | { | |
11206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11207 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
11208 | wxPyEndAllowThreads(__tstate); | |
11209 | if (PyErr_Occurred()) SWIG_fail; | |
11210 | } | |
11211 | { | |
11212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11213 | } | |
11214 | return resultobj; | |
11215 | fail: | |
11216 | return NULL; | |
11217 | } | |
11218 | ||
11219 | ||
11220 | SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11221 | PyObject *resultobj = 0; | |
11222 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11223 | long arg2 ; | |
11224 | bool result; | |
11225 | void *argp1 = 0 ; | |
11226 | int res1 = 0 ; | |
11227 | long val2 ; | |
11228 | int ecode2 = 0 ; | |
11229 | PyObject * obj0 = 0 ; | |
11230 | PyObject * obj1 = 0 ; | |
11231 | char * kwnames[] = { | |
11232 | (char *) "self",(char *) "flag", NULL | |
11233 | }; | |
11234 | ||
11235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail; | |
11236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11237 | if (!SWIG_IsOK(res1)) { | |
11238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11239 | } | |
11240 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11241 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
11242 | if (!SWIG_IsOK(ecode2)) { | |
11243 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'"); | |
11244 | } | |
11245 | arg2 = static_cast< long >(val2); | |
11246 | { | |
11247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11248 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
11249 | wxPyEndAllowThreads(__tstate); | |
11250 | if (PyErr_Occurred()) SWIG_fail; | |
11251 | } | |
11252 | { | |
11253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11254 | } | |
11255 | return resultobj; | |
11256 | fail: | |
11257 | return NULL; | |
d14a1e28 RD |
11258 | } |
11259 | ||
11260 | ||
0085ce49 RD |
11261 | SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11262 | PyObject *resultobj = 0; | |
11263 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11264 | wxColour *result = 0 ; | |
11265 | void *argp1 = 0 ; | |
11266 | int res1 = 0 ; | |
11267 | PyObject *swig_obj[1] ; | |
11268 | ||
11269 | if (!args) SWIG_fail; | |
11270 | swig_obj[0] = args; | |
11271 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11272 | if (!SWIG_IsOK(res1)) { | |
11273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11274 | } | |
11275 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11276 | { | |
11277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 11278 | { |
0085ce49 RD |
11279 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); |
11280 | result = (wxColour *) &_result_ref; | |
d14a1e28 | 11281 | } |
0085ce49 RD |
11282 | wxPyEndAllowThreads(__tstate); |
11283 | if (PyErr_Occurred()) SWIG_fail; | |
11284 | } | |
11285 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
11286 | return resultobj; | |
11287 | fail: | |
11288 | return NULL; | |
d14a1e28 RD |
11289 | } |
11290 | ||
11291 | ||
0085ce49 RD |
11292 | SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11293 | PyObject *resultobj = 0; | |
11294 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11295 | wxColour *result = 0 ; | |
11296 | void *argp1 = 0 ; | |
11297 | int res1 = 0 ; | |
11298 | PyObject *swig_obj[1] ; | |
11299 | ||
11300 | if (!args) SWIG_fail; | |
11301 | swig_obj[0] = args; | |
11302 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11303 | if (!SWIG_IsOK(res1)) { | |
11304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11305 | } | |
11306 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11307 | { | |
11308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 11309 | { |
0085ce49 RD |
11310 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); |
11311 | result = (wxColour *) &_result_ref; | |
d14a1e28 | 11312 | } |
0085ce49 RD |
11313 | wxPyEndAllowThreads(__tstate); |
11314 | if (PyErr_Occurred()) SWIG_fail; | |
11315 | } | |
11316 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
11317 | return resultobj; | |
11318 | fail: | |
11319 | return NULL; | |
d14a1e28 RD |
11320 | } |
11321 | ||
11322 | ||
0085ce49 RD |
11323 | SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11324 | PyObject *resultobj = 0; | |
11325 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11326 | wxFont *result = 0 ; | |
11327 | void *argp1 = 0 ; | |
11328 | int res1 = 0 ; | |
11329 | PyObject *swig_obj[1] ; | |
11330 | ||
11331 | if (!args) SWIG_fail; | |
11332 | swig_obj[0] = args; | |
11333 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11334 | if (!SWIG_IsOK(res1)) { | |
11335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11336 | } | |
11337 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11338 | { | |
11339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 11340 | { |
0085ce49 RD |
11341 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); |
11342 | result = (wxFont *) &_result_ref; | |
d14a1e28 | 11343 | } |
0085ce49 RD |
11344 | wxPyEndAllowThreads(__tstate); |
11345 | if (PyErr_Occurred()) SWIG_fail; | |
11346 | } | |
11347 | { | |
11348 | wxFont* resultptr = new wxFont(*result); | |
11349 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
11350 | } | |
11351 | return resultobj; | |
11352 | fail: | |
11353 | return NULL; | |
d14a1e28 RD |
11354 | } |
11355 | ||
11356 | ||
0085ce49 RD |
11357 | SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11358 | PyObject *resultobj = 0; | |
11359 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11360 | wxTextAttrAlignment 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_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11370 | } | |
11371 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11372 | { | |
11373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11374 | result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment(); | |
11375 | wxPyEndAllowThreads(__tstate); | |
11376 | if (PyErr_Occurred()) SWIG_fail; | |
11377 | } | |
11378 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11379 | return resultobj; | |
11380 | fail: | |
11381 | return NULL; | |
d14a1e28 RD |
11382 | } |
11383 | ||
11384 | ||
0085ce49 RD |
11385 | SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11386 | PyObject *resultobj = 0; | |
11387 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11388 | wxArrayInt *result = 0 ; | |
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_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11398 | } | |
11399 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11400 | { | |
11401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 11402 | { |
0085ce49 RD |
11403 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); |
11404 | result = (wxArrayInt *) &_result_ref; | |
d14a1e28 | 11405 | } |
0085ce49 RD |
11406 | wxPyEndAllowThreads(__tstate); |
11407 | if (PyErr_Occurred()) SWIG_fail; | |
11408 | } | |
11409 | { | |
b39fe951 | 11410 | resultobj = wxArrayInt2PyList_helper(*result); |
0085ce49 RD |
11411 | } |
11412 | return resultobj; | |
11413 | fail: | |
11414 | return NULL; | |
d14a1e28 RD |
11415 | } |
11416 | ||
11417 | ||
0085ce49 RD |
11418 | SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11419 | PyObject *resultobj = 0; | |
11420 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11421 | long result; | |
11422 | void *argp1 = 0 ; | |
11423 | int res1 = 0 ; | |
11424 | PyObject *swig_obj[1] ; | |
11425 | ||
11426 | if (!args) SWIG_fail; | |
11427 | swig_obj[0] = args; | |
11428 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11429 | if (!SWIG_IsOK(res1)) { | |
11430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11431 | } | |
11432 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11433 | { | |
11434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11435 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
11436 | wxPyEndAllowThreads(__tstate); | |
11437 | if (PyErr_Occurred()) SWIG_fail; | |
11438 | } | |
11439 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11440 | return resultobj; | |
11441 | fail: | |
11442 | return NULL; | |
d14a1e28 RD |
11443 | } |
11444 | ||
11445 | ||
0085ce49 RD |
11446 | SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11447 | PyObject *resultobj = 0; | |
11448 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11449 | long result; | |
11450 | void *argp1 = 0 ; | |
11451 | int res1 = 0 ; | |
11452 | PyObject *swig_obj[1] ; | |
11453 | ||
11454 | if (!args) SWIG_fail; | |
11455 | swig_obj[0] = args; | |
11456 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11457 | if (!SWIG_IsOK(res1)) { | |
11458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11459 | } | |
11460 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11461 | { | |
11462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11463 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
11464 | wxPyEndAllowThreads(__tstate); | |
11465 | if (PyErr_Occurred()) SWIG_fail; | |
11466 | } | |
11467 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11468 | return resultobj; | |
11469 | fail: | |
11470 | return NULL; | |
d14a1e28 RD |
11471 | } |
11472 | ||
11473 | ||
0085ce49 RD |
11474 | SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11475 | PyObject *resultobj = 0; | |
11476 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11477 | long result; | |
11478 | void *argp1 = 0 ; | |
11479 | int res1 = 0 ; | |
11480 | PyObject *swig_obj[1] ; | |
11481 | ||
11482 | if (!args) SWIG_fail; | |
11483 | swig_obj[0] = args; | |
11484 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11485 | if (!SWIG_IsOK(res1)) { | |
11486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11487 | } | |
11488 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11489 | { | |
11490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11491 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
11492 | wxPyEndAllowThreads(__tstate); | |
11493 | if (PyErr_Occurred()) SWIG_fail; | |
11494 | } | |
11495 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11496 | return resultobj; | |
11497 | fail: | |
11498 | return NULL; | |
d14a1e28 RD |
11499 | } |
11500 | ||
11501 | ||
0085ce49 RD |
11502 | SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11503 | PyObject *resultobj = 0; | |
11504 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11505 | long result; | |
11506 | void *argp1 = 0 ; | |
11507 | int res1 = 0 ; | |
11508 | PyObject *swig_obj[1] ; | |
11509 | ||
11510 | if (!args) SWIG_fail; | |
11511 | swig_obj[0] = args; | |
11512 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11513 | if (!SWIG_IsOK(res1)) { | |
11514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11515 | } | |
11516 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11517 | { | |
11518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11519 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
11520 | wxPyEndAllowThreads(__tstate); | |
11521 | if (PyErr_Occurred()) SWIG_fail; | |
11522 | } | |
11523 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11524 | return resultobj; | |
11525 | fail: | |
11526 | return NULL; | |
d14a1e28 RD |
11527 | } |
11528 | ||
11529 | ||
0085ce49 RD |
11530 | SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11531 | PyObject *resultobj = 0; | |
11532 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11533 | bool result; | |
11534 | void *argp1 = 0 ; | |
11535 | int res1 = 0 ; | |
11536 | PyObject *swig_obj[1] ; | |
11537 | ||
11538 | if (!args) SWIG_fail; | |
11539 | swig_obj[0] = args; | |
11540 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11541 | if (!SWIG_IsOK(res1)) { | |
11542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11543 | } | |
11544 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11545 | { | |
11546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11547 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
11548 | wxPyEndAllowThreads(__tstate); | |
11549 | if (PyErr_Occurred()) SWIG_fail; | |
11550 | } | |
11551 | { | |
11552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11553 | } | |
11554 | return resultobj; | |
11555 | fail: | |
11556 | return NULL; | |
11557 | } | |
11558 | ||
11559 | ||
11560 | SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11561 | PyObject *resultobj = 0; | |
11562 | wxTextAttr *arg1 = 0 ; | |
11563 | wxTextAttr *arg2 = 0 ; | |
11564 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
11565 | wxTextAttr result; | |
11566 | void *argp1 = 0 ; | |
11567 | int res1 = 0 ; | |
11568 | void *argp2 = 0 ; | |
11569 | int res2 = 0 ; | |
11570 | void *argp3 = 0 ; | |
11571 | int res3 = 0 ; | |
11572 | PyObject * obj0 = 0 ; | |
11573 | PyObject * obj1 = 0 ; | |
11574 | PyObject * obj2 = 0 ; | |
11575 | char * kwnames[] = { | |
11576 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
11577 | }; | |
11578 | ||
11579 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11580 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
11581 | if (!SWIG_IsOK(res1)) { | |
11582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
11583 | } | |
11584 | if (!argp1) { | |
11585 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
11586 | } | |
11587 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11588 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
11589 | if (!SWIG_IsOK(res2)) { | |
11590 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
11591 | } | |
11592 | if (!argp2) { | |
11593 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
11594 | } | |
11595 | arg2 = reinterpret_cast< wxTextAttr * >(argp2); | |
11596 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11597 | if (!SWIG_IsOK(res3)) { | |
11598 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'"); | |
11599 | } | |
11600 | arg3 = reinterpret_cast< wxTextCtrl * >(argp3); | |
11601 | { | |
11602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11603 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
11604 | wxPyEndAllowThreads(__tstate); | |
11605 | if (PyErr_Occurred()) SWIG_fail; | |
11606 | } | |
11607 | resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 ); | |
11608 | return resultobj; | |
11609 | fail: | |
11610 | return NULL; | |
11611 | } | |
11612 | ||
11613 | ||
11614 | SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11615 | PyObject *obj; | |
11616 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11617 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj)); | |
11618 | return SWIG_Py_Void(); | |
11619 | } | |
11620 | ||
11621 | SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11622 | return SWIG_Python_InitShadowInstance(args); | |
11623 | } | |
11624 | ||
11625 | SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11626 | PyObject *resultobj = 0; | |
11627 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11628 | int arg2 = (int) -1 ; | |
11629 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11630 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11631 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11632 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11633 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11634 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11635 | long arg6 = (long) 0 ; | |
11636 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11637 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11638 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
11639 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11640 | wxTextCtrl *result = 0 ; | |
11641 | void *argp1 = 0 ; | |
11642 | int res1 = 0 ; | |
11643 | int val2 ; | |
11644 | int ecode2 = 0 ; | |
11645 | bool temp3 = false ; | |
11646 | wxPoint temp4 ; | |
11647 | wxSize temp5 ; | |
11648 | long val6 ; | |
11649 | int ecode6 = 0 ; | |
11650 | void *argp7 = 0 ; | |
11651 | int res7 = 0 ; | |
11652 | bool temp8 = false ; | |
11653 | PyObject * obj0 = 0 ; | |
11654 | PyObject * obj1 = 0 ; | |
11655 | PyObject * obj2 = 0 ; | |
11656 | PyObject * obj3 = 0 ; | |
11657 | PyObject * obj4 = 0 ; | |
11658 | PyObject * obj5 = 0 ; | |
11659 | PyObject * obj6 = 0 ; | |
11660 | PyObject * obj7 = 0 ; | |
11661 | char * kwnames[] = { | |
11662 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11663 | }; | |
11664 | ||
11665 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
11666 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
11667 | if (!SWIG_IsOK(res1)) { | |
11668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
11669 | } | |
11670 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
11671 | if (obj1) { | |
11672 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11673 | if (!SWIG_IsOK(ecode2)) { | |
11674 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'"); | |
11675 | } | |
11676 | arg2 = static_cast< int >(val2); | |
11677 | } | |
11678 | if (obj2) { | |
4f89f6a3 | 11679 | { |
0085ce49 RD |
11680 | arg3 = wxString_in_helper(obj2); |
11681 | if (arg3 == NULL) SWIG_fail; | |
11682 | temp3 = true; | |
4f89f6a3 | 11683 | } |
0085ce49 RD |
11684 | } |
11685 | if (obj3) { | |
d14a1e28 | 11686 | { |
0085ce49 RD |
11687 | arg4 = &temp4; |
11688 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 11689 | } |
0085ce49 RD |
11690 | } |
11691 | if (obj4) { | |
d14a1e28 | 11692 | { |
0085ce49 RD |
11693 | arg5 = &temp5; |
11694 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 11695 | } |
0085ce49 RD |
11696 | } |
11697 | if (obj5) { | |
11698 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
11699 | if (!SWIG_IsOK(ecode6)) { | |
11700 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'"); | |
11701 | } | |
11702 | arg6 = static_cast< long >(val6); | |
11703 | } | |
11704 | if (obj6) { | |
11705 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
11706 | if (!SWIG_IsOK(res7)) { | |
11707 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 11708 | } |
0085ce49 RD |
11709 | if (!argp7) { |
11710 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
093d3ff1 | 11711 | } |
0085ce49 RD |
11712 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
11713 | } | |
11714 | if (obj7) { | |
d14a1e28 | 11715 | { |
0085ce49 RD |
11716 | arg8 = wxString_in_helper(obj7); |
11717 | if (arg8 == NULL) SWIG_fail; | |
11718 | temp8 = true; | |
d14a1e28 | 11719 | } |
0085ce49 RD |
11720 | } |
11721 | { | |
11722 | if (!wxPyCheckForApp()) SWIG_fail; | |
11723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11724 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11725 | wxPyEndAllowThreads(__tstate); | |
11726 | if (PyErr_Occurred()) SWIG_fail; | |
11727 | } | |
11728 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 ); | |
11729 | { | |
11730 | if (temp3) | |
11731 | delete arg3; | |
11732 | } | |
11733 | { | |
11734 | if (temp8) | |
11735 | delete arg8; | |
11736 | } | |
11737 | return resultobj; | |
11738 | fail: | |
11739 | { | |
11740 | if (temp3) | |
11741 | delete arg3; | |
11742 | } | |
11743 | { | |
11744 | if (temp8) | |
11745 | delete arg8; | |
11746 | } | |
11747 | return NULL; | |
d14a1e28 RD |
11748 | } |
11749 | ||
11750 | ||
0085ce49 RD |
11751 | SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11752 | PyObject *resultobj = 0; | |
11753 | wxTextCtrl *result = 0 ; | |
11754 | ||
11755 | if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail; | |
11756 | { | |
11757 | if (!wxPyCheckForApp()) SWIG_fail; | |
11758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11759 | result = (wxTextCtrl *)new wxTextCtrl(); | |
11760 | wxPyEndAllowThreads(__tstate); | |
11761 | if (PyErr_Occurred()) SWIG_fail; | |
11762 | } | |
11763 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 ); | |
11764 | return resultobj; | |
11765 | fail: | |
11766 | return NULL; | |
11767 | } | |
11768 | ||
11769 | ||
11770 | SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11771 | PyObject *resultobj = 0; | |
11772 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11773 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11774 | int arg3 = (int) -1 ; | |
11775 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11776 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11777 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11778 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11779 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11780 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11781 | long arg7 = (long) 0 ; | |
11782 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11783 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11784 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
11785 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11786 | bool result; | |
11787 | void *argp1 = 0 ; | |
11788 | int res1 = 0 ; | |
11789 | void *argp2 = 0 ; | |
11790 | int res2 = 0 ; | |
11791 | int val3 ; | |
11792 | int ecode3 = 0 ; | |
11793 | bool temp4 = false ; | |
11794 | wxPoint temp5 ; | |
11795 | wxSize temp6 ; | |
11796 | long val7 ; | |
11797 | int ecode7 = 0 ; | |
11798 | void *argp8 = 0 ; | |
11799 | int res8 = 0 ; | |
11800 | bool temp9 = false ; | |
11801 | PyObject * obj0 = 0 ; | |
11802 | PyObject * obj1 = 0 ; | |
11803 | PyObject * obj2 = 0 ; | |
11804 | PyObject * obj3 = 0 ; | |
11805 | PyObject * obj4 = 0 ; | |
11806 | PyObject * obj5 = 0 ; | |
11807 | PyObject * obj6 = 0 ; | |
11808 | PyObject * obj7 = 0 ; | |
11809 | PyObject * obj8 = 0 ; | |
11810 | char * kwnames[] = { | |
11811 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11812 | }; | |
11813 | ||
11814 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
11815 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11816 | if (!SWIG_IsOK(res1)) { | |
11817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
11818 | } | |
11819 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11820 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
11821 | if (!SWIG_IsOK(res2)) { | |
11822 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
11823 | } | |
11824 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
11825 | if (obj2) { | |
11826 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11827 | if (!SWIG_IsOK(ecode3)) { | |
11828 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
11829 | } | |
11830 | arg3 = static_cast< int >(val3); | |
11831 | } | |
11832 | if (obj3) { | |
d14a1e28 | 11833 | { |
0085ce49 RD |
11834 | arg4 = wxString_in_helper(obj3); |
11835 | if (arg4 == NULL) SWIG_fail; | |
11836 | temp4 = true; | |
d14a1e28 | 11837 | } |
0085ce49 RD |
11838 | } |
11839 | if (obj4) { | |
d14a1e28 | 11840 | { |
0085ce49 RD |
11841 | arg5 = &temp5; |
11842 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 11843 | } |
0085ce49 RD |
11844 | } |
11845 | if (obj5) { | |
d14a1e28 | 11846 | { |
0085ce49 RD |
11847 | arg6 = &temp6; |
11848 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 11849 | } |
0085ce49 RD |
11850 | } |
11851 | if (obj6) { | |
11852 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
11853 | if (!SWIG_IsOK(ecode7)) { | |
11854 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
11855 | } | |
11856 | arg7 = static_cast< long >(val7); | |
11857 | } | |
11858 | if (obj7) { | |
11859 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
11860 | if (!SWIG_IsOK(res8)) { | |
11861 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 11862 | } |
0085ce49 RD |
11863 | if (!argp8) { |
11864 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
093d3ff1 | 11865 | } |
0085ce49 RD |
11866 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
11867 | } | |
11868 | if (obj8) { | |
d14a1e28 | 11869 | { |
0085ce49 RD |
11870 | arg9 = wxString_in_helper(obj8); |
11871 | if (arg9 == NULL) SWIG_fail; | |
11872 | temp9 = true; | |
d14a1e28 | 11873 | } |
0085ce49 RD |
11874 | } |
11875 | { | |
11876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11877 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11878 | wxPyEndAllowThreads(__tstate); | |
11879 | if (PyErr_Occurred()) SWIG_fail; | |
11880 | } | |
11881 | { | |
11882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11883 | } | |
11884 | { | |
11885 | if (temp4) | |
11886 | delete arg4; | |
11887 | } | |
11888 | { | |
11889 | if (temp9) | |
11890 | delete arg9; | |
11891 | } | |
11892 | return resultobj; | |
11893 | fail: | |
11894 | { | |
11895 | if (temp4) | |
11896 | delete arg4; | |
11897 | } | |
11898 | { | |
11899 | if (temp9) | |
11900 | delete arg9; | |
11901 | } | |
11902 | return NULL; | |
d14a1e28 RD |
11903 | } |
11904 | ||
11905 | ||
0085ce49 RD |
11906 | SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11907 | PyObject *resultobj = 0; | |
11908 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11909 | wxString result; | |
11910 | void *argp1 = 0 ; | |
11911 | int res1 = 0 ; | |
11912 | PyObject *swig_obj[1] ; | |
11913 | ||
11914 | if (!args) SWIG_fail; | |
11915 | swig_obj[0] = args; | |
11916 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11917 | if (!SWIG_IsOK(res1)) { | |
11918 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11919 | } | |
11920 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11921 | { | |
11922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11923 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
11924 | wxPyEndAllowThreads(__tstate); | |
11925 | if (PyErr_Occurred()) SWIG_fail; | |
11926 | } | |
11927 | { | |
11928 | #if wxUSE_UNICODE | |
11929 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11930 | #else | |
11931 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11932 | #endif | |
11933 | } | |
11934 | return resultobj; | |
11935 | fail: | |
11936 | return NULL; | |
11937 | } | |
11938 | ||
11939 | ||
11940 | SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11941 | PyObject *resultobj = 0; | |
11942 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11943 | wxString *arg2 = 0 ; | |
11944 | void *argp1 = 0 ; | |
11945 | int res1 = 0 ; | |
11946 | bool temp2 = false ; | |
11947 | PyObject * obj0 = 0 ; | |
11948 | PyObject * obj1 = 0 ; | |
11949 | char * kwnames[] = { | |
11950 | (char *) "self",(char *) "value", NULL | |
11951 | }; | |
11952 | ||
11953 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
11954 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11955 | if (!SWIG_IsOK(res1)) { | |
11956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
11957 | } | |
11958 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11959 | { | |
11960 | arg2 = wxString_in_helper(obj1); | |
11961 | if (arg2 == NULL) SWIG_fail; | |
11962 | temp2 = true; | |
11963 | } | |
11964 | { | |
11965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11966 | (arg1)->SetValue((wxString const &)*arg2); | |
11967 | wxPyEndAllowThreads(__tstate); | |
11968 | if (PyErr_Occurred()) SWIG_fail; | |
11969 | } | |
11970 | resultobj = SWIG_Py_Void(); | |
11971 | { | |
11972 | if (temp2) | |
11973 | delete arg2; | |
11974 | } | |
11975 | return resultobj; | |
11976 | fail: | |
11977 | { | |
11978 | if (temp2) | |
11979 | delete arg2; | |
11980 | } | |
11981 | return NULL; | |
11982 | } | |
11983 | ||
11984 | ||
b39fe951 RD |
11985 | SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11986 | PyObject *resultobj = 0; | |
11987 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11988 | bool result; | |
11989 | void *argp1 = 0 ; | |
11990 | int res1 = 0 ; | |
11991 | PyObject *swig_obj[1] ; | |
11992 | ||
11993 | if (!args) SWIG_fail; | |
11994 | swig_obj[0] = args; | |
11995 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11996 | if (!SWIG_IsOK(res1)) { | |
11997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11998 | } | |
11999 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12000 | { | |
12001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12002 | result = (bool)((wxTextCtrl const *)arg1)->IsEmpty(); | |
12003 | wxPyEndAllowThreads(__tstate); | |
12004 | if (PyErr_Occurred()) SWIG_fail; | |
12005 | } | |
12006 | { | |
12007 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12008 | } | |
12009 | return resultobj; | |
12010 | fail: | |
12011 | return NULL; | |
12012 | } | |
12013 | ||
12014 | ||
12015 | SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12016 | PyObject *resultobj = 0; | |
12017 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12018 | wxString *arg2 = 0 ; | |
12019 | void *argp1 = 0 ; | |
12020 | int res1 = 0 ; | |
12021 | bool temp2 = false ; | |
12022 | PyObject * obj0 = 0 ; | |
12023 | PyObject * obj1 = 0 ; | |
12024 | char * kwnames[] = { | |
12025 | (char *) "self",(char *) "value", NULL | |
12026 | }; | |
12027 | ||
12028 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
12029 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12030 | if (!SWIG_IsOK(res1)) { | |
12031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12032 | } | |
12033 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12034 | { | |
12035 | arg2 = wxString_in_helper(obj1); | |
12036 | if (arg2 == NULL) SWIG_fail; | |
12037 | temp2 = true; | |
12038 | } | |
12039 | { | |
12040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12041 | (arg1)->ChangeValue((wxString const &)*arg2); | |
12042 | wxPyEndAllowThreads(__tstate); | |
12043 | if (PyErr_Occurred()) SWIG_fail; | |
12044 | } | |
12045 | resultobj = SWIG_Py_Void(); | |
12046 | { | |
12047 | if (temp2) | |
12048 | delete arg2; | |
12049 | } | |
12050 | return resultobj; | |
12051 | fail: | |
12052 | { | |
12053 | if (temp2) | |
12054 | delete arg2; | |
12055 | } | |
12056 | return NULL; | |
12057 | } | |
12058 | ||
12059 | ||
0085ce49 RD |
12060 | SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12061 | PyObject *resultobj = 0; | |
12062 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12063 | long arg2 ; | |
12064 | long arg3 ; | |
12065 | wxString result; | |
12066 | void *argp1 = 0 ; | |
12067 | int res1 = 0 ; | |
12068 | long val2 ; | |
12069 | int ecode2 = 0 ; | |
12070 | long val3 ; | |
12071 | int ecode3 = 0 ; | |
12072 | PyObject * obj0 = 0 ; | |
12073 | PyObject * obj1 = 0 ; | |
12074 | PyObject * obj2 = 0 ; | |
12075 | char * kwnames[] = { | |
2131d850 | 12076 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
12077 | }; |
12078 | ||
12079 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12080 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12081 | if (!SWIG_IsOK(res1)) { | |
12082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12083 | } | |
12084 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12085 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12086 | if (!SWIG_IsOK(ecode2)) { | |
12087 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'"); | |
12088 | } | |
12089 | arg2 = static_cast< long >(val2); | |
12090 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12091 | if (!SWIG_IsOK(ecode3)) { | |
12092 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'"); | |
12093 | } | |
12094 | arg3 = static_cast< long >(val3); | |
12095 | { | |
12096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12097 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
12098 | wxPyEndAllowThreads(__tstate); | |
12099 | if (PyErr_Occurred()) SWIG_fail; | |
12100 | } | |
12101 | { | |
12102 | #if wxUSE_UNICODE | |
12103 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12104 | #else | |
12105 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12106 | #endif | |
12107 | } | |
12108 | return resultobj; | |
12109 | fail: | |
12110 | return NULL; | |
12111 | } | |
12112 | ||
12113 | ||
12114 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12115 | PyObject *resultobj = 0; | |
12116 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12117 | long arg2 ; | |
12118 | int result; | |
12119 | void *argp1 = 0 ; | |
12120 | int res1 = 0 ; | |
12121 | long val2 ; | |
12122 | int ecode2 = 0 ; | |
12123 | PyObject * obj0 = 0 ; | |
12124 | PyObject * obj1 = 0 ; | |
12125 | char * kwnames[] = { | |
12126 | (char *) "self",(char *) "lineNo", NULL | |
12127 | }; | |
12128 | ||
12129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
12130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12131 | if (!SWIG_IsOK(res1)) { | |
12132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12133 | } | |
12134 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12135 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12136 | if (!SWIG_IsOK(ecode2)) { | |
12137 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'"); | |
12138 | } | |
12139 | arg2 = static_cast< long >(val2); | |
12140 | { | |
12141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12142 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
12143 | wxPyEndAllowThreads(__tstate); | |
12144 | if (PyErr_Occurred()) SWIG_fail; | |
12145 | } | |
12146 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12147 | return resultobj; | |
12148 | fail: | |
12149 | return NULL; | |
12150 | } | |
12151 | ||
12152 | ||
12153 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12154 | PyObject *resultobj = 0; | |
12155 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12156 | long arg2 ; | |
12157 | wxString result; | |
12158 | void *argp1 = 0 ; | |
12159 | int res1 = 0 ; | |
12160 | long val2 ; | |
12161 | int ecode2 = 0 ; | |
12162 | PyObject * obj0 = 0 ; | |
12163 | PyObject * obj1 = 0 ; | |
12164 | char * kwnames[] = { | |
12165 | (char *) "self",(char *) "lineNo", NULL | |
12166 | }; | |
12167 | ||
12168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail; | |
12169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12170 | if (!SWIG_IsOK(res1)) { | |
12171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12172 | } | |
12173 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12174 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12175 | if (!SWIG_IsOK(ecode2)) { | |
12176 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'"); | |
12177 | } | |
12178 | arg2 = static_cast< long >(val2); | |
12179 | { | |
12180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12181 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
12182 | wxPyEndAllowThreads(__tstate); | |
12183 | if (PyErr_Occurred()) SWIG_fail; | |
12184 | } | |
12185 | { | |
12186 | #if wxUSE_UNICODE | |
12187 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12188 | #else | |
12189 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12190 | #endif | |
12191 | } | |
12192 | return resultobj; | |
12193 | fail: | |
12194 | return NULL; | |
d14a1e28 RD |
12195 | } |
12196 | ||
12197 | ||
0085ce49 RD |
12198 | SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12199 | PyObject *resultobj = 0; | |
12200 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12201 | int result; | |
12202 | void *argp1 = 0 ; | |
12203 | int res1 = 0 ; | |
12204 | PyObject *swig_obj[1] ; | |
12205 | ||
12206 | if (!args) SWIG_fail; | |
12207 | swig_obj[0] = args; | |
12208 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12209 | if (!SWIG_IsOK(res1)) { | |
12210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12211 | } | |
12212 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12213 | { | |
12214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12215 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
12216 | wxPyEndAllowThreads(__tstate); | |
12217 | if (PyErr_Occurred()) SWIG_fail; | |
12218 | } | |
12219 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12220 | return resultobj; | |
12221 | fail: | |
12222 | return NULL; | |
d14a1e28 RD |
12223 | } |
12224 | ||
12225 | ||
0085ce49 RD |
12226 | SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12227 | PyObject *resultobj = 0; | |
12228 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12229 | bool result; | |
12230 | void *argp1 = 0 ; | |
12231 | int res1 = 0 ; | |
12232 | PyObject *swig_obj[1] ; | |
12233 | ||
12234 | if (!args) SWIG_fail; | |
12235 | swig_obj[0] = args; | |
12236 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12237 | if (!SWIG_IsOK(res1)) { | |
12238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12239 | } | |
12240 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12241 | { | |
12242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12243 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
12244 | wxPyEndAllowThreads(__tstate); | |
12245 | if (PyErr_Occurred()) SWIG_fail; | |
12246 | } | |
12247 | { | |
12248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12249 | } | |
12250 | return resultobj; | |
12251 | fail: | |
12252 | return NULL; | |
c3eb6258 RD |
12253 | } |
12254 | ||
12255 | ||
0085ce49 RD |
12256 | SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12257 | PyObject *resultobj = 0; | |
12258 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12259 | bool result; | |
12260 | void *argp1 = 0 ; | |
12261 | int res1 = 0 ; | |
12262 | PyObject *swig_obj[1] ; | |
12263 | ||
12264 | if (!args) SWIG_fail; | |
12265 | swig_obj[0] = args; | |
12266 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12267 | if (!SWIG_IsOK(res1)) { | |
12268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12269 | } | |
12270 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12271 | { | |
12272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12273 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
12274 | wxPyEndAllowThreads(__tstate); | |
12275 | if (PyErr_Occurred()) SWIG_fail; | |
12276 | } | |
12277 | { | |
12278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12279 | } | |
12280 | return resultobj; | |
12281 | fail: | |
12282 | return NULL; | |
74a57fcd RD |
12283 | } |
12284 | ||
12285 | ||
0085ce49 RD |
12286 | SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12287 | PyObject *resultobj = 0; | |
12288 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12289 | bool result; | |
12290 | void *argp1 = 0 ; | |
12291 | int res1 = 0 ; | |
12292 | PyObject *swig_obj[1] ; | |
12293 | ||
12294 | if (!args) SWIG_fail; | |
12295 | swig_obj[0] = args; | |
12296 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12297 | if (!SWIG_IsOK(res1)) { | |
12298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12299 | } | |
12300 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12301 | { | |
12302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12303 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
12304 | wxPyEndAllowThreads(__tstate); | |
12305 | if (PyErr_Occurred()) SWIG_fail; | |
12306 | } | |
12307 | { | |
12308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12309 | } | |
12310 | return resultobj; | |
12311 | fail: | |
12312 | return NULL; | |
d14a1e28 RD |
12313 | } |
12314 | ||
12315 | ||
0085ce49 RD |
12316 | SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12317 | PyObject *resultobj = 0; | |
12318 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12319 | bool result; | |
12320 | void *argp1 = 0 ; | |
12321 | int res1 = 0 ; | |
12322 | PyObject *swig_obj[1] ; | |
12323 | ||
12324 | if (!args) SWIG_fail; | |
12325 | swig_obj[0] = args; | |
12326 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12327 | if (!SWIG_IsOK(res1)) { | |
12328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12329 | } | |
12330 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12331 | { | |
12332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12333 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
12334 | wxPyEndAllowThreads(__tstate); | |
12335 | if (PyErr_Occurred()) SWIG_fail; | |
12336 | } | |
12337 | { | |
12338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12339 | } | |
12340 | return resultobj; | |
12341 | fail: | |
12342 | return NULL; | |
12343 | } | |
12344 | ||
12345 | ||
12346 | SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12347 | PyObject *resultobj = 0; | |
12348 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12349 | long *arg2 = (long *) 0 ; | |
12350 | long *arg3 = (long *) 0 ; | |
12351 | void *argp1 = 0 ; | |
12352 | int res1 = 0 ; | |
12353 | long temp2 ; | |
12354 | int res2 = SWIG_TMPOBJ ; | |
12355 | long temp3 ; | |
12356 | int res3 = SWIG_TMPOBJ ; | |
12357 | PyObject *swig_obj[1] ; | |
12358 | ||
12359 | arg2 = &temp2; | |
12360 | arg3 = &temp3; | |
12361 | if (!args) SWIG_fail; | |
12362 | swig_obj[0] = args; | |
12363 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12364 | if (!SWIG_IsOK(res1)) { | |
12365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12366 | } | |
12367 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12368 | { | |
12369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12370 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
12371 | wxPyEndAllowThreads(__tstate); | |
12372 | if (PyErr_Occurred()) SWIG_fail; | |
12373 | } | |
12374 | resultobj = SWIG_Py_Void(); | |
12375 | if (SWIG_IsTmpObj(res2)) { | |
12376 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2))); | |
12377 | } else { | |
12378 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12379 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags)); | |
12380 | } | |
12381 | if (SWIG_IsTmpObj(res3)) { | |
12382 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
12383 | } else { | |
12384 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12385 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
12386 | } | |
12387 | return resultobj; | |
12388 | fail: | |
12389 | return NULL; | |
d14a1e28 RD |
12390 | } |
12391 | ||
12392 | ||
0085ce49 RD |
12393 | SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12394 | PyObject *resultobj = 0; | |
12395 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12396 | wxString result; | |
12397 | void *argp1 = 0 ; | |
12398 | int res1 = 0 ; | |
12399 | PyObject *swig_obj[1] ; | |
12400 | ||
12401 | if (!args) SWIG_fail; | |
12402 | swig_obj[0] = args; | |
12403 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12404 | if (!SWIG_IsOK(res1)) { | |
12405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12406 | } | |
12407 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12408 | { | |
12409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12410 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
12411 | wxPyEndAllowThreads(__tstate); | |
12412 | if (PyErr_Occurred()) SWIG_fail; | |
12413 | } | |
12414 | { | |
12415 | #if wxUSE_UNICODE | |
12416 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12417 | #else | |
12418 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12419 | #endif | |
12420 | } | |
12421 | return resultobj; | |
12422 | fail: | |
12423 | return NULL; | |
d14a1e28 RD |
12424 | } |
12425 | ||
12426 | ||
0085ce49 RD |
12427 | SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12428 | PyObject *resultobj = 0; | |
12429 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12430 | void *argp1 = 0 ; | |
12431 | int res1 = 0 ; | |
12432 | PyObject *swig_obj[1] ; | |
12433 | ||
12434 | if (!args) SWIG_fail; | |
12435 | swig_obj[0] = args; | |
12436 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12437 | if (!SWIG_IsOK(res1)) { | |
12438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12439 | } | |
12440 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12441 | { | |
12442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12443 | (arg1)->Clear(); | |
12444 | wxPyEndAllowThreads(__tstate); | |
12445 | if (PyErr_Occurred()) SWIG_fail; | |
12446 | } | |
12447 | resultobj = SWIG_Py_Void(); | |
12448 | return resultobj; | |
12449 | fail: | |
12450 | return NULL; | |
12451 | } | |
12452 | ||
12453 | ||
12454 | SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12455 | PyObject *resultobj = 0; | |
12456 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12457 | long arg2 ; | |
12458 | long arg3 ; | |
12459 | wxString *arg4 = 0 ; | |
12460 | void *argp1 = 0 ; | |
12461 | int res1 = 0 ; | |
12462 | long val2 ; | |
12463 | int ecode2 = 0 ; | |
12464 | long val3 ; | |
12465 | int ecode3 = 0 ; | |
12466 | bool temp4 = false ; | |
12467 | PyObject * obj0 = 0 ; | |
12468 | PyObject * obj1 = 0 ; | |
12469 | PyObject * obj2 = 0 ; | |
12470 | PyObject * obj3 = 0 ; | |
12471 | char * kwnames[] = { | |
2131d850 | 12472 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL |
0085ce49 RD |
12473 | }; |
12474 | ||
12475 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
12476 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12477 | if (!SWIG_IsOK(res1)) { | |
12478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12479 | } | |
12480 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12481 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12482 | if (!SWIG_IsOK(ecode2)) { | |
12483 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'"); | |
12484 | } | |
12485 | arg2 = static_cast< long >(val2); | |
12486 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12487 | if (!SWIG_IsOK(ecode3)) { | |
12488 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'"); | |
12489 | } | |
12490 | arg3 = static_cast< long >(val3); | |
12491 | { | |
12492 | arg4 = wxString_in_helper(obj3); | |
12493 | if (arg4 == NULL) SWIG_fail; | |
12494 | temp4 = true; | |
12495 | } | |
12496 | { | |
12497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12498 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
12499 | wxPyEndAllowThreads(__tstate); | |
12500 | if (PyErr_Occurred()) SWIG_fail; | |
12501 | } | |
12502 | resultobj = SWIG_Py_Void(); | |
12503 | { | |
12504 | if (temp4) | |
12505 | delete arg4; | |
12506 | } | |
12507 | return resultobj; | |
12508 | fail: | |
12509 | { | |
12510 | if (temp4) | |
12511 | delete arg4; | |
12512 | } | |
12513 | return NULL; | |
12514 | } | |
12515 | ||
12516 | ||
12517 | SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12518 | PyObject *resultobj = 0; | |
12519 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12520 | long arg2 ; | |
12521 | long arg3 ; | |
12522 | void *argp1 = 0 ; | |
12523 | int res1 = 0 ; | |
12524 | long val2 ; | |
12525 | int ecode2 = 0 ; | |
12526 | long val3 ; | |
12527 | int ecode3 = 0 ; | |
12528 | PyObject * obj0 = 0 ; | |
12529 | PyObject * obj1 = 0 ; | |
12530 | PyObject * obj2 = 0 ; | |
12531 | char * kwnames[] = { | |
2131d850 | 12532 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
12533 | }; |
12534 | ||
12535 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12536 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12537 | if (!SWIG_IsOK(res1)) { | |
12538 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12539 | } | |
12540 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12541 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12542 | if (!SWIG_IsOK(ecode2)) { | |
12543 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'"); | |
12544 | } | |
12545 | arg2 = static_cast< long >(val2); | |
12546 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12547 | if (!SWIG_IsOK(ecode3)) { | |
12548 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'"); | |
12549 | } | |
12550 | arg3 = static_cast< long >(val3); | |
12551 | { | |
12552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12553 | (arg1)->Remove(arg2,arg3); | |
12554 | wxPyEndAllowThreads(__tstate); | |
12555 | if (PyErr_Occurred()) SWIG_fail; | |
12556 | } | |
12557 | resultobj = SWIG_Py_Void(); | |
12558 | return resultobj; | |
12559 | fail: | |
12560 | return NULL; | |
12561 | } | |
12562 | ||
12563 | ||
12564 | SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12565 | PyObject *resultobj = 0; | |
12566 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12567 | wxString *arg2 = 0 ; | |
f5263701 | 12568 | int arg3 = (int) wxTEXT_TYPE_ANY ; |
0085ce49 RD |
12569 | bool result; |
12570 | void *argp1 = 0 ; | |
12571 | int res1 = 0 ; | |
12572 | bool temp2 = false ; | |
f5263701 RD |
12573 | int val3 ; |
12574 | int ecode3 = 0 ; | |
0085ce49 RD |
12575 | PyObject * obj0 = 0 ; |
12576 | PyObject * obj1 = 0 ; | |
f5263701 | 12577 | PyObject * obj2 = 0 ; |
0085ce49 | 12578 | char * kwnames[] = { |
f5263701 | 12579 | (char *) "self",(char *) "file",(char *) "fileType", NULL |
0085ce49 RD |
12580 | }; |
12581 | ||
f5263701 | 12582 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
0085ce49 RD |
12583 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); |
12584 | if (!SWIG_IsOK(res1)) { | |
12585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12586 | } | |
12587 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12588 | { | |
12589 | arg2 = wxString_in_helper(obj1); | |
12590 | if (arg2 == NULL) SWIG_fail; | |
12591 | temp2 = true; | |
12592 | } | |
f5263701 RD |
12593 | if (obj2) { |
12594 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12595 | if (!SWIG_IsOK(ecode3)) { | |
12596 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'"); | |
12597 | } | |
12598 | arg3 = static_cast< int >(val3); | |
12599 | } | |
0085ce49 RD |
12600 | { |
12601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f5263701 | 12602 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
0085ce49 RD |
12603 | wxPyEndAllowThreads(__tstate); |
12604 | if (PyErr_Occurred()) SWIG_fail; | |
12605 | } | |
12606 | { | |
12607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12608 | } | |
12609 | { | |
12610 | if (temp2) | |
12611 | delete arg2; | |
12612 | } | |
12613 | return resultobj; | |
12614 | fail: | |
12615 | { | |
12616 | if (temp2) | |
12617 | delete arg2; | |
12618 | } | |
12619 | return NULL; | |
12620 | } | |
12621 | ||
12622 | ||
12623 | SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12624 | PyObject *resultobj = 0; | |
12625 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12626 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12627 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
f5263701 | 12628 | int arg3 = (int) wxTEXT_TYPE_ANY ; |
0085ce49 RD |
12629 | bool result; |
12630 | void *argp1 = 0 ; | |
12631 | int res1 = 0 ; | |
12632 | bool temp2 = false ; | |
f5263701 RD |
12633 | int val3 ; |
12634 | int ecode3 = 0 ; | |
0085ce49 RD |
12635 | PyObject * obj0 = 0 ; |
12636 | PyObject * obj1 = 0 ; | |
f5263701 | 12637 | PyObject * obj2 = 0 ; |
0085ce49 | 12638 | char * kwnames[] = { |
f5263701 | 12639 | (char *) "self",(char *) "file",(char *) "fileType", NULL |
0085ce49 RD |
12640 | }; |
12641 | ||
f5263701 | 12642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
0085ce49 RD |
12643 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); |
12644 | if (!SWIG_IsOK(res1)) { | |
12645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12646 | } | |
12647 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12648 | if (obj1) { | |
4f89f6a3 | 12649 | { |
0085ce49 RD |
12650 | arg2 = wxString_in_helper(obj1); |
12651 | if (arg2 == NULL) SWIG_fail; | |
12652 | temp2 = true; | |
4f89f6a3 | 12653 | } |
0085ce49 | 12654 | } |
f5263701 RD |
12655 | if (obj2) { |
12656 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12657 | if (!SWIG_IsOK(ecode3)) { | |
12658 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'"); | |
12659 | } | |
12660 | arg3 = static_cast< int >(val3); | |
12661 | } | |
0085ce49 RD |
12662 | { |
12663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f5263701 | 12664 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); |
0085ce49 RD |
12665 | wxPyEndAllowThreads(__tstate); |
12666 | if (PyErr_Occurred()) SWIG_fail; | |
12667 | } | |
12668 | { | |
12669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12670 | } | |
12671 | { | |
12672 | if (temp2) | |
12673 | delete arg2; | |
12674 | } | |
12675 | return resultobj; | |
12676 | fail: | |
12677 | { | |
12678 | if (temp2) | |
12679 | delete arg2; | |
12680 | } | |
12681 | return NULL; | |
d14a1e28 RD |
12682 | } |
12683 | ||
12684 | ||
0085ce49 RD |
12685 | SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12686 | PyObject *resultobj = 0; | |
12687 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12688 | void *argp1 = 0 ; | |
12689 | int res1 = 0 ; | |
12690 | PyObject *swig_obj[1] ; | |
12691 | ||
12692 | if (!args) SWIG_fail; | |
12693 | swig_obj[0] = args; | |
12694 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12695 | if (!SWIG_IsOK(res1)) { | |
12696 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12697 | } | |
12698 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12699 | { | |
12700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12701 | (arg1)->MarkDirty(); | |
12702 | wxPyEndAllowThreads(__tstate); | |
12703 | if (PyErr_Occurred()) SWIG_fail; | |
12704 | } | |
12705 | resultobj = SWIG_Py_Void(); | |
12706 | return resultobj; | |
12707 | fail: | |
12708 | return NULL; | |
d14a1e28 RD |
12709 | } |
12710 | ||
12711 | ||
0085ce49 RD |
12712 | SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12713 | PyObject *resultobj = 0; | |
12714 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12715 | void *argp1 = 0 ; | |
12716 | int res1 = 0 ; | |
12717 | PyObject *swig_obj[1] ; | |
12718 | ||
12719 | if (!args) SWIG_fail; | |
12720 | swig_obj[0] = args; | |
12721 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12722 | if (!SWIG_IsOK(res1)) { | |
12723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12724 | } | |
12725 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12726 | { | |
12727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12728 | (arg1)->DiscardEdits(); | |
12729 | wxPyEndAllowThreads(__tstate); | |
12730 | if (PyErr_Occurred()) SWIG_fail; | |
12731 | } | |
12732 | resultobj = SWIG_Py_Void(); | |
12733 | return resultobj; | |
12734 | fail: | |
12735 | return NULL; | |
12736 | } | |
12737 | ||
12738 | ||
b02396e8 RD |
12739 | SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12740 | PyObject *resultobj = 0; | |
12741 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12742 | bool arg2 ; | |
12743 | void *argp1 = 0 ; | |
12744 | int res1 = 0 ; | |
12745 | bool val2 ; | |
12746 | int ecode2 = 0 ; | |
12747 | PyObject * obj0 = 0 ; | |
12748 | PyObject * obj1 = 0 ; | |
12749 | char * kwnames[] = { | |
12750 | (char *) "self",(char *) "modified", NULL | |
12751 | }; | |
12752 | ||
12753 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail; | |
12754 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12755 | if (!SWIG_IsOK(res1)) { | |
12756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12757 | } | |
12758 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12759 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
12760 | if (!SWIG_IsOK(ecode2)) { | |
12761 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'"); | |
12762 | } | |
12763 | arg2 = static_cast< bool >(val2); | |
12764 | { | |
12765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12766 | (arg1)->SetModified(arg2); | |
12767 | wxPyEndAllowThreads(__tstate); | |
12768 | if (PyErr_Occurred()) SWIG_fail; | |
12769 | } | |
12770 | resultobj = SWIG_Py_Void(); | |
12771 | return resultobj; | |
12772 | fail: | |
12773 | return NULL; | |
12774 | } | |
12775 | ||
12776 | ||
0085ce49 RD |
12777 | SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12778 | PyObject *resultobj = 0; | |
12779 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12780 | unsigned long arg2 ; | |
12781 | void *argp1 = 0 ; | |
12782 | int res1 = 0 ; | |
12783 | unsigned long val2 ; | |
12784 | int ecode2 = 0 ; | |
12785 | PyObject * obj0 = 0 ; | |
12786 | PyObject * obj1 = 0 ; | |
12787 | char * kwnames[] = { | |
12788 | (char *) "self",(char *) "len", NULL | |
12789 | }; | |
12790 | ||
12791 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
12792 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12793 | if (!SWIG_IsOK(res1)) { | |
12794 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12795 | } | |
12796 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12797 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
12798 | if (!SWIG_IsOK(ecode2)) { | |
12799 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'"); | |
12800 | } | |
12801 | arg2 = static_cast< unsigned long >(val2); | |
12802 | { | |
12803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12804 | (arg1)->SetMaxLength(arg2); | |
12805 | wxPyEndAllowThreads(__tstate); | |
12806 | if (PyErr_Occurred()) SWIG_fail; | |
12807 | } | |
12808 | resultobj = SWIG_Py_Void(); | |
12809 | return resultobj; | |
12810 | fail: | |
12811 | return NULL; | |
12812 | } | |
12813 | ||
12814 | ||
12815 | SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12816 | PyObject *resultobj = 0; | |
12817 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12818 | wxString *arg2 = 0 ; | |
12819 | void *argp1 = 0 ; | |
12820 | int res1 = 0 ; | |
12821 | bool temp2 = false ; | |
12822 | PyObject * obj0 = 0 ; | |
12823 | PyObject * obj1 = 0 ; | |
12824 | char * kwnames[] = { | |
12825 | (char *) "self",(char *) "text", NULL | |
12826 | }; | |
12827 | ||
12828 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail; | |
12829 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12830 | if (!SWIG_IsOK(res1)) { | |
12831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12832 | } | |
12833 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12834 | { | |
12835 | arg2 = wxString_in_helper(obj1); | |
12836 | if (arg2 == NULL) SWIG_fail; | |
12837 | temp2 = true; | |
12838 | } | |
12839 | { | |
12840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12841 | (arg1)->WriteText((wxString const &)*arg2); | |
12842 | wxPyEndAllowThreads(__tstate); | |
12843 | if (PyErr_Occurred()) SWIG_fail; | |
12844 | } | |
12845 | resultobj = SWIG_Py_Void(); | |
12846 | { | |
12847 | if (temp2) | |
12848 | delete arg2; | |
12849 | } | |
12850 | return resultobj; | |
12851 | fail: | |
12852 | { | |
12853 | if (temp2) | |
12854 | delete arg2; | |
12855 | } | |
12856 | return NULL; | |
d14a1e28 RD |
12857 | } |
12858 | ||
12859 | ||
0085ce49 RD |
12860 | SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12861 | PyObject *resultobj = 0; | |
12862 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12863 | wxString *arg2 = 0 ; | |
12864 | void *argp1 = 0 ; | |
12865 | int res1 = 0 ; | |
12866 | bool temp2 = false ; | |
12867 | PyObject * obj0 = 0 ; | |
12868 | PyObject * obj1 = 0 ; | |
12869 | char * kwnames[] = { | |
12870 | (char *) "self",(char *) "text", NULL | |
12871 | }; | |
12872 | ||
12873 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail; | |
12874 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12875 | if (!SWIG_IsOK(res1)) { | |
12876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12877 | } | |
12878 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12879 | { | |
12880 | arg2 = wxString_in_helper(obj1); | |
12881 | if (arg2 == NULL) SWIG_fail; | |
12882 | temp2 = true; | |
12883 | } | |
12884 | { | |
12885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12886 | (arg1)->AppendText((wxString const &)*arg2); | |
12887 | wxPyEndAllowThreads(__tstate); | |
12888 | if (PyErr_Occurred()) SWIG_fail; | |
12889 | } | |
12890 | resultobj = SWIG_Py_Void(); | |
12891 | { | |
12892 | if (temp2) | |
12893 | delete arg2; | |
12894 | } | |
12895 | return resultobj; | |
12896 | fail: | |
12897 | { | |
12898 | if (temp2) | |
12899 | delete arg2; | |
12900 | } | |
12901 | return NULL; | |
12902 | } | |
12903 | ||
12904 | ||
12905 | SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12906 | PyObject *resultobj = 0; | |
12907 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12908 | wxKeyEvent *arg2 = 0 ; | |
12909 | bool result; | |
12910 | void *argp1 = 0 ; | |
12911 | int res1 = 0 ; | |
12912 | void *argp2 = 0 ; | |
12913 | int res2 = 0 ; | |
12914 | PyObject * obj0 = 0 ; | |
12915 | PyObject * obj1 = 0 ; | |
12916 | char * kwnames[] = { | |
12917 | (char *) "self",(char *) "event", NULL | |
12918 | }; | |
12919 | ||
12920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail; | |
12921 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12922 | if (!SWIG_IsOK(res1)) { | |
12923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12924 | } | |
12925 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12926 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0); | |
12927 | if (!SWIG_IsOK(res2)) { | |
12928 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
12929 | } | |
12930 | if (!argp2) { | |
12931 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
12932 | } | |
12933 | arg2 = reinterpret_cast< wxKeyEvent * >(argp2); | |
12934 | { | |
12935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12936 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
12937 | wxPyEndAllowThreads(__tstate); | |
12938 | if (PyErr_Occurred()) SWIG_fail; | |
12939 | } | |
12940 | { | |
12941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12942 | } | |
12943 | return resultobj; | |
12944 | fail: | |
12945 | return NULL; | |
12946 | } | |
12947 | ||
12948 | ||
12949 | SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12950 | PyObject *resultobj = 0; | |
12951 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12952 | long arg2 ; | |
12953 | long arg3 ; | |
12954 | wxTextAttr *arg4 = 0 ; | |
12955 | bool result; | |
12956 | void *argp1 = 0 ; | |
12957 | int res1 = 0 ; | |
12958 | long val2 ; | |
12959 | int ecode2 = 0 ; | |
12960 | long val3 ; | |
12961 | int ecode3 = 0 ; | |
12962 | void *argp4 = 0 ; | |
12963 | int res4 = 0 ; | |
12964 | PyObject * obj0 = 0 ; | |
12965 | PyObject * obj1 = 0 ; | |
12966 | PyObject * obj2 = 0 ; | |
12967 | PyObject * obj3 = 0 ; | |
12968 | char * kwnames[] = { | |
12969 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
12970 | }; | |
12971 | ||
12972 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
12973 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12974 | if (!SWIG_IsOK(res1)) { | |
12975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12976 | } | |
12977 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12978 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12979 | if (!SWIG_IsOK(ecode2)) { | |
12980 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'"); | |
12981 | } | |
12982 | arg2 = static_cast< long >(val2); | |
12983 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12984 | if (!SWIG_IsOK(ecode3)) { | |
12985 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'"); | |
12986 | } | |
12987 | arg3 = static_cast< long >(val3); | |
12988 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
12989 | if (!SWIG_IsOK(res4)) { | |
12990 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'"); | |
12991 | } | |
12992 | if (!argp4) { | |
12993 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'"); | |
12994 | } | |
12995 | arg4 = reinterpret_cast< wxTextAttr * >(argp4); | |
12996 | { | |
12997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12998 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
12999 | wxPyEndAllowThreads(__tstate); | |
13000 | if (PyErr_Occurred()) SWIG_fail; | |
13001 | } | |
13002 | { | |
13003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13004 | } | |
13005 | return resultobj; | |
13006 | fail: | |
13007 | return NULL; | |
13008 | } | |
13009 | ||
13010 | ||
13011 | SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13012 | PyObject *resultobj = 0; | |
13013 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13014 | long arg2 ; | |
13015 | wxTextAttr *arg3 = 0 ; | |
13016 | bool result; | |
13017 | void *argp1 = 0 ; | |
13018 | int res1 = 0 ; | |
13019 | long val2 ; | |
13020 | int ecode2 = 0 ; | |
13021 | void *argp3 = 0 ; | |
13022 | int res3 = 0 ; | |
13023 | PyObject * obj0 = 0 ; | |
13024 | PyObject * obj1 = 0 ; | |
13025 | PyObject * obj2 = 0 ; | |
13026 | char * kwnames[] = { | |
13027 | (char *) "self",(char *) "position",(char *) "style", NULL | |
13028 | }; | |
13029 | ||
13030 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13031 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13032 | if (!SWIG_IsOK(res1)) { | |
13033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13034 | } | |
13035 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13036 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13037 | if (!SWIG_IsOK(ecode2)) { | |
13038 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'"); | |
13039 | } | |
13040 | arg2 = static_cast< long >(val2); | |
13041 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 ); | |
13042 | if (!SWIG_IsOK(res3)) { | |
13043 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'"); | |
13044 | } | |
13045 | if (!argp3) { | |
13046 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'"); | |
13047 | } | |
13048 | arg3 = reinterpret_cast< wxTextAttr * >(argp3); | |
13049 | { | |
13050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13051 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
13052 | wxPyEndAllowThreads(__tstate); | |
13053 | if (PyErr_Occurred()) SWIG_fail; | |
13054 | } | |
13055 | { | |
13056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13057 | } | |
13058 | return resultobj; | |
13059 | fail: | |
13060 | return NULL; | |
13061 | } | |
13062 | ||
13063 | ||
13064 | SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13065 | PyObject *resultobj = 0; | |
13066 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13067 | wxTextAttr *arg2 = 0 ; | |
13068 | bool result; | |
13069 | void *argp1 = 0 ; | |
13070 | int res1 = 0 ; | |
13071 | void *argp2 = 0 ; | |
13072 | int res2 = 0 ; | |
13073 | PyObject * obj0 = 0 ; | |
13074 | PyObject * obj1 = 0 ; | |
13075 | char * kwnames[] = { | |
13076 | (char *) "self",(char *) "style", NULL | |
13077 | }; | |
13078 | ||
13079 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
13080 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13081 | if (!SWIG_IsOK(res1)) { | |
13082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13083 | } | |
13084 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13085 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
13086 | if (!SWIG_IsOK(res2)) { | |
13087 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
13088 | } | |
13089 | if (!argp2) { | |
13090 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
13091 | } | |
13092 | arg2 = reinterpret_cast< wxTextAttr * >(argp2); | |
13093 | { | |
13094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13095 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
13096 | wxPyEndAllowThreads(__tstate); | |
13097 | if (PyErr_Occurred()) SWIG_fail; | |
13098 | } | |
13099 | { | |
13100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13101 | } | |
13102 | return resultobj; | |
13103 | fail: | |
13104 | return NULL; | |
d14a1e28 RD |
13105 | } |
13106 | ||
13107 | ||
0085ce49 RD |
13108 | SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13109 | PyObject *resultobj = 0; | |
13110 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13111 | wxTextAttr *result = 0 ; | |
13112 | void *argp1 = 0 ; | |
13113 | int res1 = 0 ; | |
13114 | PyObject *swig_obj[1] ; | |
13115 | ||
13116 | if (!args) SWIG_fail; | |
13117 | swig_obj[0] = args; | |
13118 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13119 | if (!SWIG_IsOK(res1)) { | |
13120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13121 | } | |
13122 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13123 | { | |
13124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13125 | { |
0085ce49 RD |
13126 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); |
13127 | result = (wxTextAttr *) &_result_ref; | |
093d3ff1 | 13128 | } |
0085ce49 RD |
13129 | wxPyEndAllowThreads(__tstate); |
13130 | if (PyErr_Occurred()) SWIG_fail; | |
13131 | } | |
13132 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
13133 | return resultobj; | |
13134 | fail: | |
13135 | return NULL; | |
13136 | } | |
13137 | ||
13138 | ||
13139 | SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13140 | PyObject *resultobj = 0; | |
13141 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13142 | long arg2 ; | |
13143 | long arg3 ; | |
13144 | long result; | |
13145 | void *argp1 = 0 ; | |
13146 | int res1 = 0 ; | |
13147 | long val2 ; | |
13148 | int ecode2 = 0 ; | |
13149 | long val3 ; | |
13150 | int ecode3 = 0 ; | |
13151 | PyObject * obj0 = 0 ; | |
13152 | PyObject * obj1 = 0 ; | |
13153 | PyObject * obj2 = 0 ; | |
13154 | char * kwnames[] = { | |
13155 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13156 | }; | |
13157 | ||
13158 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13159 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13160 | if (!SWIG_IsOK(res1)) { | |
13161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13162 | } | |
13163 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13164 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13165 | if (!SWIG_IsOK(ecode2)) { | |
13166 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'"); | |
13167 | } | |
13168 | arg2 = static_cast< long >(val2); | |
13169 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13170 | if (!SWIG_IsOK(ecode3)) { | |
13171 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'"); | |
13172 | } | |
13173 | arg3 = static_cast< long >(val3); | |
13174 | { | |
13175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13176 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
13177 | wxPyEndAllowThreads(__tstate); | |
13178 | if (PyErr_Occurred()) SWIG_fail; | |
13179 | } | |
13180 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13181 | return resultobj; | |
13182 | fail: | |
13183 | return NULL; | |
13184 | } | |
13185 | ||
13186 | ||
13187 | SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13188 | PyObject *resultobj = 0; | |
13189 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13190 | long arg2 ; | |
13191 | long *arg3 = (long *) 0 ; | |
13192 | long *arg4 = (long *) 0 ; | |
13193 | void *argp1 = 0 ; | |
13194 | int res1 = 0 ; | |
13195 | long val2 ; | |
13196 | int ecode2 = 0 ; | |
13197 | long temp3 ; | |
13198 | int res3 = SWIG_TMPOBJ ; | |
13199 | long temp4 ; | |
13200 | int res4 = SWIG_TMPOBJ ; | |
13201 | PyObject * obj0 = 0 ; | |
13202 | PyObject * obj1 = 0 ; | |
13203 | char * kwnames[] = { | |
13204 | (char *) "self",(char *) "pos", NULL | |
13205 | }; | |
13206 | ||
13207 | arg3 = &temp3; | |
13208 | arg4 = &temp4; | |
13209 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail; | |
13210 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13211 | if (!SWIG_IsOK(res1)) { | |
13212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13213 | } | |
13214 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13215 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13216 | if (!SWIG_IsOK(ecode2)) { | |
13217 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'"); | |
13218 | } | |
13219 | arg2 = static_cast< long >(val2); | |
13220 | { | |
13221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13222 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
13223 | wxPyEndAllowThreads(__tstate); | |
13224 | if (PyErr_Occurred()) SWIG_fail; | |
13225 | } | |
13226 | resultobj = SWIG_Py_Void(); | |
13227 | if (SWIG_IsTmpObj(res3)) { | |
13228 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
13229 | } else { | |
13230 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13231 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
13232 | } | |
13233 | if (SWIG_IsTmpObj(res4)) { | |
13234 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
13235 | } else { | |
13236 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13237 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
13238 | } | |
13239 | return resultobj; | |
13240 | fail: | |
13241 | return NULL; | |
13242 | } | |
13243 | ||
13244 | ||
13245 | SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13246 | PyObject *resultobj = 0; | |
13247 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13248 | long arg2 ; | |
13249 | void *argp1 = 0 ; | |
13250 | int res1 = 0 ; | |
13251 | long val2 ; | |
13252 | int ecode2 = 0 ; | |
13253 | PyObject * obj0 = 0 ; | |
13254 | PyObject * obj1 = 0 ; | |
13255 | char * kwnames[] = { | |
13256 | (char *) "self",(char *) "pos", NULL | |
13257 | }; | |
13258 | ||
13259 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
13260 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13261 | if (!SWIG_IsOK(res1)) { | |
13262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13263 | } | |
13264 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13265 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13266 | if (!SWIG_IsOK(ecode2)) { | |
13267 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'"); | |
13268 | } | |
13269 | arg2 = static_cast< long >(val2); | |
13270 | { | |
13271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13272 | (arg1)->ShowPosition(arg2); | |
13273 | wxPyEndAllowThreads(__tstate); | |
13274 | if (PyErr_Occurred()) SWIG_fail; | |
13275 | } | |
13276 | resultobj = SWIG_Py_Void(); | |
13277 | return resultobj; | |
13278 | fail: | |
13279 | return NULL; | |
13280 | } | |
13281 | ||
13282 | ||
13283 | SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13284 | PyObject *resultobj = 0; | |
13285 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13286 | wxPoint *arg2 = 0 ; | |
13287 | long *arg3 = (long *) 0 ; | |
13288 | long *arg4 = (long *) 0 ; | |
13289 | wxTextCtrlHitTestResult result; | |
13290 | void *argp1 = 0 ; | |
13291 | int res1 = 0 ; | |
13292 | wxPoint temp2 ; | |
13293 | long temp3 ; | |
13294 | int res3 = SWIG_TMPOBJ ; | |
13295 | long temp4 ; | |
13296 | int res4 = SWIG_TMPOBJ ; | |
13297 | PyObject * obj0 = 0 ; | |
13298 | PyObject * obj1 = 0 ; | |
13299 | char * kwnames[] = { | |
13300 | (char *) "self",(char *) "pt", NULL | |
13301 | }; | |
13302 | ||
13303 | arg3 = &temp3; | |
13304 | arg4 = &temp4; | |
13305 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
13306 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13307 | if (!SWIG_IsOK(res1)) { | |
13308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13309 | } | |
13310 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13311 | { | |
13312 | arg2 = &temp2; | |
13313 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13314 | } | |
13315 | { | |
13316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13317 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
13318 | wxPyEndAllowThreads(__tstate); | |
13319 | if (PyErr_Occurred()) SWIG_fail; | |
13320 | } | |
13321 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13322 | if (SWIG_IsTmpObj(res3)) { | |
13323 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
13324 | } else { | |
13325 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13326 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
13327 | } | |
13328 | if (SWIG_IsTmpObj(res4)) { | |
13329 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
13330 | } else { | |
13331 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13332 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
13333 | } | |
13334 | return resultobj; | |
13335 | fail: | |
13336 | return NULL; | |
13337 | } | |
13338 | ||
13339 | ||
13340 | SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13341 | PyObject *resultobj = 0; | |
13342 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13343 | wxPoint *arg2 = 0 ; | |
13344 | long *arg3 = (long *) 0 ; | |
13345 | wxTextCtrlHitTestResult result; | |
13346 | void *argp1 = 0 ; | |
13347 | int res1 = 0 ; | |
13348 | wxPoint temp2 ; | |
13349 | long temp3 ; | |
13350 | int res3 = SWIG_TMPOBJ ; | |
13351 | PyObject * obj0 = 0 ; | |
13352 | PyObject * obj1 = 0 ; | |
13353 | char * kwnames[] = { | |
13354 | (char *) "self",(char *) "pt", NULL | |
13355 | }; | |
13356 | ||
13357 | arg3 = &temp3; | |
13358 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
13359 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13360 | if (!SWIG_IsOK(res1)) { | |
13361 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13362 | } | |
13363 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13364 | { | |
13365 | arg2 = &temp2; | |
13366 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13367 | } | |
13368 | { | |
13369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13370 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
13371 | wxPyEndAllowThreads(__tstate); | |
13372 | if (PyErr_Occurred()) SWIG_fail; | |
13373 | } | |
13374 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13375 | if (SWIG_IsTmpObj(res3)) { | |
13376 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
13377 | } else { | |
13378 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13379 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
13380 | } | |
13381 | return resultobj; | |
13382 | fail: | |
13383 | return NULL; | |
d14a1e28 RD |
13384 | } |
13385 | ||
13386 | ||
0085ce49 RD |
13387 | SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13388 | PyObject *resultobj = 0; | |
13389 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13390 | void *argp1 = 0 ; | |
13391 | int res1 = 0 ; | |
13392 | PyObject *swig_obj[1] ; | |
13393 | ||
13394 | if (!args) SWIG_fail; | |
13395 | swig_obj[0] = args; | |
13396 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13397 | if (!SWIG_IsOK(res1)) { | |
13398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13399 | } | |
13400 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13401 | { | |
13402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13403 | (arg1)->Copy(); | |
13404 | wxPyEndAllowThreads(__tstate); | |
13405 | if (PyErr_Occurred()) SWIG_fail; | |
13406 | } | |
13407 | resultobj = SWIG_Py_Void(); | |
13408 | return resultobj; | |
13409 | fail: | |
13410 | return NULL; | |
d14a1e28 | 13411 | } |
0085ce49 RD |
13412 | |
13413 | ||
13414 | SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13415 | PyObject *resultobj = 0; | |
13416 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13417 | void *argp1 = 0 ; | |
13418 | int res1 = 0 ; | |
13419 | PyObject *swig_obj[1] ; | |
13420 | ||
13421 | if (!args) SWIG_fail; | |
13422 | swig_obj[0] = args; | |
13423 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13424 | if (!SWIG_IsOK(res1)) { | |
13425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13426 | } | |
13427 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13428 | { | |
13429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13430 | (arg1)->Cut(); | |
13431 | wxPyEndAllowThreads(__tstate); | |
13432 | if (PyErr_Occurred()) SWIG_fail; | |
13433 | } | |
13434 | resultobj = SWIG_Py_Void(); | |
13435 | return resultobj; | |
13436 | fail: | |
13437 | return NULL; | |
b2dc1044 RD |
13438 | } |
13439 | ||
13440 | ||
0085ce49 RD |
13441 | SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13442 | PyObject *resultobj = 0; | |
13443 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13444 | void *argp1 = 0 ; | |
13445 | int res1 = 0 ; | |
13446 | PyObject *swig_obj[1] ; | |
13447 | ||
13448 | if (!args) SWIG_fail; | |
13449 | swig_obj[0] = args; | |
13450 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13451 | if (!SWIG_IsOK(res1)) { | |
13452 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13453 | } | |
13454 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13455 | { | |
13456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13457 | (arg1)->Paste(); | |
13458 | wxPyEndAllowThreads(__tstate); | |
13459 | if (PyErr_Occurred()) SWIG_fail; | |
13460 | } | |
13461 | resultobj = SWIG_Py_Void(); | |
13462 | return resultobj; | |
13463 | fail: | |
13464 | return NULL; | |
d14a1e28 RD |
13465 | } |
13466 | ||
13467 | ||
0085ce49 RD |
13468 | SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13469 | PyObject *resultobj = 0; | |
13470 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13471 | bool result; | |
13472 | void *argp1 = 0 ; | |
13473 | int res1 = 0 ; | |
13474 | PyObject *swig_obj[1] ; | |
13475 | ||
13476 | if (!args) SWIG_fail; | |
13477 | swig_obj[0] = args; | |
13478 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13479 | if (!SWIG_IsOK(res1)) { | |
13480 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13481 | } | |
13482 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13483 | { | |
13484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13485 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
13486 | wxPyEndAllowThreads(__tstate); | |
13487 | if (PyErr_Occurred()) SWIG_fail; | |
13488 | } | |
13489 | { | |
13490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13491 | } | |
13492 | return resultobj; | |
13493 | fail: | |
13494 | return NULL; | |
d14a1e28 RD |
13495 | } |
13496 | ||
13497 | ||
0085ce49 RD |
13498 | SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13499 | PyObject *resultobj = 0; | |
13500 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13501 | bool result; | |
13502 | void *argp1 = 0 ; | |
13503 | int res1 = 0 ; | |
13504 | PyObject *swig_obj[1] ; | |
13505 | ||
13506 | if (!args) SWIG_fail; | |
13507 | swig_obj[0] = args; | |
13508 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13509 | if (!SWIG_IsOK(res1)) { | |
13510 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13511 | } | |
13512 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13513 | { | |
13514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13515 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
13516 | wxPyEndAllowThreads(__tstate); | |
13517 | if (PyErr_Occurred()) SWIG_fail; | |
13518 | } | |
13519 | { | |
13520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13521 | } | |
13522 | return resultobj; | |
13523 | fail: | |
13524 | return NULL; | |
994141e6 RD |
13525 | } |
13526 | ||
13527 | ||
0085ce49 RD |
13528 | SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13529 | PyObject *resultobj = 0; | |
13530 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13531 | bool result; | |
13532 | void *argp1 = 0 ; | |
13533 | int res1 = 0 ; | |
13534 | PyObject *swig_obj[1] ; | |
13535 | ||
13536 | if (!args) SWIG_fail; | |
13537 | swig_obj[0] = args; | |
13538 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13539 | if (!SWIG_IsOK(res1)) { | |
13540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13541 | } | |
13542 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13543 | { | |
13544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13545 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
13546 | wxPyEndAllowThreads(__tstate); | |
13547 | if (PyErr_Occurred()) SWIG_fail; | |
13548 | } | |
13549 | { | |
13550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13551 | } | |
13552 | return resultobj; | |
13553 | fail: | |
13554 | return NULL; | |
d14a1e28 RD |
13555 | } |
13556 | ||
13557 | ||
0085ce49 RD |
13558 | SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13559 | PyObject *resultobj = 0; | |
13560 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13561 | void *argp1 = 0 ; | |
13562 | int res1 = 0 ; | |
13563 | PyObject *swig_obj[1] ; | |
13564 | ||
13565 | if (!args) SWIG_fail; | |
13566 | swig_obj[0] = args; | |
13567 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13568 | if (!SWIG_IsOK(res1)) { | |
13569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13570 | } | |
13571 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13572 | { | |
13573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13574 | (arg1)->Undo(); | |
13575 | wxPyEndAllowThreads(__tstate); | |
13576 | if (PyErr_Occurred()) SWIG_fail; | |
13577 | } | |
13578 | resultobj = SWIG_Py_Void(); | |
13579 | return resultobj; | |
13580 | fail: | |
13581 | return NULL; | |
d14a1e28 RD |
13582 | } |
13583 | ||
13584 | ||
0085ce49 RD |
13585 | SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13586 | PyObject *resultobj = 0; | |
13587 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13588 | void *argp1 = 0 ; | |
13589 | int res1 = 0 ; | |
13590 | PyObject *swig_obj[1] ; | |
13591 | ||
13592 | if (!args) SWIG_fail; | |
13593 | swig_obj[0] = args; | |
13594 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13595 | if (!SWIG_IsOK(res1)) { | |
13596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13597 | } | |
13598 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13599 | { | |
13600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13601 | (arg1)->Redo(); | |
13602 | wxPyEndAllowThreads(__tstate); | |
13603 | if (PyErr_Occurred()) SWIG_fail; | |
13604 | } | |
13605 | resultobj = SWIG_Py_Void(); | |
13606 | return resultobj; | |
13607 | fail: | |
13608 | return NULL; | |
d14a1e28 RD |
13609 | } |
13610 | ||
13611 | ||
0085ce49 RD |
13612 | SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13613 | PyObject *resultobj = 0; | |
13614 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13615 | bool result; | |
13616 | void *argp1 = 0 ; | |
13617 | int res1 = 0 ; | |
13618 | PyObject *swig_obj[1] ; | |
13619 | ||
13620 | if (!args) SWIG_fail; | |
13621 | swig_obj[0] = args; | |
13622 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13623 | if (!SWIG_IsOK(res1)) { | |
13624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13625 | } | |
13626 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13627 | { | |
13628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13629 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
13630 | wxPyEndAllowThreads(__tstate); | |
13631 | if (PyErr_Occurred()) SWIG_fail; | |
13632 | } | |
13633 | { | |
13634 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13635 | } | |
13636 | return resultobj; | |
13637 | fail: | |
13638 | return NULL; | |
d14a1e28 RD |
13639 | } |
13640 | ||
13641 | ||
0085ce49 RD |
13642 | SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13643 | PyObject *resultobj = 0; | |
13644 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13645 | bool result; | |
13646 | void *argp1 = 0 ; | |
13647 | int res1 = 0 ; | |
13648 | PyObject *swig_obj[1] ; | |
13649 | ||
13650 | if (!args) SWIG_fail; | |
13651 | swig_obj[0] = args; | |
13652 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13653 | if (!SWIG_IsOK(res1)) { | |
13654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13655 | } | |
13656 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13657 | { | |
13658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13659 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
13660 | wxPyEndAllowThreads(__tstate); | |
13661 | if (PyErr_Occurred()) SWIG_fail; | |
13662 | } | |
13663 | { | |
13664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13665 | } | |
13666 | return resultobj; | |
13667 | fail: | |
13668 | return NULL; | |
13669 | } | |
13670 | ||
13671 | ||
13672 | SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13673 | PyObject *resultobj = 0; | |
13674 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13675 | long arg2 ; | |
13676 | void *argp1 = 0 ; | |
13677 | int res1 = 0 ; | |
13678 | long val2 ; | |
13679 | int ecode2 = 0 ; | |
13680 | PyObject * obj0 = 0 ; | |
13681 | PyObject * obj1 = 0 ; | |
13682 | char * kwnames[] = { | |
13683 | (char *) "self",(char *) "pos", NULL | |
13684 | }; | |
13685 | ||
13686 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
13687 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13688 | if (!SWIG_IsOK(res1)) { | |
13689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13690 | } | |
13691 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13692 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13693 | if (!SWIG_IsOK(ecode2)) { | |
13694 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'"); | |
13695 | } | |
13696 | arg2 = static_cast< long >(val2); | |
13697 | { | |
13698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13699 | (arg1)->SetInsertionPoint(arg2); | |
13700 | wxPyEndAllowThreads(__tstate); | |
13701 | if (PyErr_Occurred()) SWIG_fail; | |
13702 | } | |
13703 | resultobj = SWIG_Py_Void(); | |
13704 | return resultobj; | |
13705 | fail: | |
13706 | return NULL; | |
d14a1e28 RD |
13707 | } |
13708 | ||
13709 | ||
0085ce49 RD |
13710 | SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13711 | PyObject *resultobj = 0; | |
13712 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13713 | void *argp1 = 0 ; | |
13714 | int res1 = 0 ; | |
13715 | PyObject *swig_obj[1] ; | |
13716 | ||
13717 | if (!args) SWIG_fail; | |
13718 | swig_obj[0] = args; | |
13719 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13720 | if (!SWIG_IsOK(res1)) { | |
13721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13722 | } | |
13723 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13724 | { | |
13725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13726 | (arg1)->SetInsertionPointEnd(); | |
13727 | wxPyEndAllowThreads(__tstate); | |
13728 | if (PyErr_Occurred()) SWIG_fail; | |
13729 | } | |
13730 | resultobj = SWIG_Py_Void(); | |
13731 | return resultobj; | |
13732 | fail: | |
13733 | return NULL; | |
d14a1e28 RD |
13734 | } |
13735 | ||
13736 | ||
0085ce49 RD |
13737 | SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13738 | PyObject *resultobj = 0; | |
13739 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13740 | long result; | |
13741 | void *argp1 = 0 ; | |
13742 | int res1 = 0 ; | |
13743 | PyObject *swig_obj[1] ; | |
13744 | ||
13745 | if (!args) SWIG_fail; | |
13746 | swig_obj[0] = args; | |
13747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13748 | if (!SWIG_IsOK(res1)) { | |
13749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13750 | } | |
13751 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13752 | { | |
13753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13754 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
13755 | wxPyEndAllowThreads(__tstate); | |
13756 | if (PyErr_Occurred()) SWIG_fail; | |
13757 | } | |
13758 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13759 | return resultobj; | |
13760 | fail: | |
13761 | return NULL; | |
d14a1e28 RD |
13762 | } |
13763 | ||
13764 | ||
0085ce49 RD |
13765 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13766 | PyObject *resultobj = 0; | |
13767 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13768 | long result; | |
13769 | void *argp1 = 0 ; | |
13770 | int res1 = 0 ; | |
13771 | PyObject *swig_obj[1] ; | |
13772 | ||
13773 | if (!args) SWIG_fail; | |
13774 | swig_obj[0] = args; | |
13775 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13776 | if (!SWIG_IsOK(res1)) { | |
13777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13778 | } | |
13779 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13780 | { | |
13781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13782 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
13783 | wxPyEndAllowThreads(__tstate); | |
13784 | if (PyErr_Occurred()) SWIG_fail; | |
13785 | } | |
13786 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13787 | return resultobj; | |
13788 | fail: | |
13789 | return NULL; | |
13790 | } | |
13791 | ||
13792 | ||
13793 | SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13794 | PyObject *resultobj = 0; | |
13795 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13796 | long arg2 ; | |
13797 | long arg3 ; | |
13798 | void *argp1 = 0 ; | |
13799 | int res1 = 0 ; | |
13800 | long val2 ; | |
13801 | int ecode2 = 0 ; | |
13802 | long val3 ; | |
13803 | int ecode3 = 0 ; | |
13804 | PyObject * obj0 = 0 ; | |
13805 | PyObject * obj1 = 0 ; | |
13806 | PyObject * obj2 = 0 ; | |
13807 | char * kwnames[] = { | |
2131d850 | 13808 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
13809 | }; |
13810 | ||
13811 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13812 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13813 | if (!SWIG_IsOK(res1)) { | |
13814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13815 | } | |
13816 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13817 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13818 | if (!SWIG_IsOK(ecode2)) { | |
13819 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'"); | |
13820 | } | |
13821 | arg2 = static_cast< long >(val2); | |
13822 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13823 | if (!SWIG_IsOK(ecode3)) { | |
13824 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'"); | |
13825 | } | |
13826 | arg3 = static_cast< long >(val3); | |
13827 | { | |
13828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13829 | (arg1)->SetSelection(arg2,arg3); | |
13830 | wxPyEndAllowThreads(__tstate); | |
13831 | if (PyErr_Occurred()) SWIG_fail; | |
13832 | } | |
13833 | resultobj = SWIG_Py_Void(); | |
13834 | return resultobj; | |
13835 | fail: | |
13836 | return NULL; | |
d14a1e28 RD |
13837 | } |
13838 | ||
13839 | ||
0085ce49 RD |
13840 | SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13841 | PyObject *resultobj = 0; | |
13842 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13843 | void *argp1 = 0 ; | |
13844 | int res1 = 0 ; | |
13845 | PyObject *swig_obj[1] ; | |
13846 | ||
13847 | if (!args) SWIG_fail; | |
13848 | swig_obj[0] = args; | |
13849 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13850 | if (!SWIG_IsOK(res1)) { | |
13851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13852 | } | |
13853 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13854 | { | |
13855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13856 | (arg1)->SelectAll(); | |
13857 | wxPyEndAllowThreads(__tstate); | |
13858 | if (PyErr_Occurred()) SWIG_fail; | |
13859 | } | |
13860 | resultobj = SWIG_Py_Void(); | |
13861 | return resultobj; | |
13862 | fail: | |
13863 | return NULL; | |
13864 | } | |
13865 | ||
13866 | ||
13867 | SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13868 | PyObject *resultobj = 0; | |
13869 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13870 | bool arg2 ; | |
13871 | void *argp1 = 0 ; | |
13872 | int res1 = 0 ; | |
13873 | bool val2 ; | |
13874 | int ecode2 = 0 ; | |
13875 | PyObject * obj0 = 0 ; | |
13876 | PyObject * obj1 = 0 ; | |
13877 | char * kwnames[] = { | |
13878 | (char *) "self",(char *) "editable", NULL | |
13879 | }; | |
13880 | ||
13881 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail; | |
13882 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13883 | if (!SWIG_IsOK(res1)) { | |
13884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13885 | } | |
13886 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13887 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
13888 | if (!SWIG_IsOK(ecode2)) { | |
13889 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'"); | |
13890 | } | |
13891 | arg2 = static_cast< bool >(val2); | |
13892 | { | |
13893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13894 | (arg1)->SetEditable(arg2); | |
13895 | wxPyEndAllowThreads(__tstate); | |
13896 | if (PyErr_Occurred()) SWIG_fail; | |
13897 | } | |
13898 | resultobj = SWIG_Py_Void(); | |
13899 | return resultobj; | |
13900 | fail: | |
13901 | return NULL; | |
13902 | } | |
13903 | ||
13904 | ||
d7645bfd VZ |
13905 | SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13906 | PyObject *resultobj = 0; | |
13907 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13908 | bool arg2 ; | |
13909 | void *argp1 = 0 ; | |
13910 | int res1 = 0 ; | |
13911 | bool val2 ; | |
13912 | int ecode2 = 0 ; | |
13913 | PyObject * obj0 = 0 ; | |
13914 | PyObject * obj1 = 0 ; | |
13915 | char * kwnames[] = { | |
13916 | (char *) "self",(char *) "check", NULL | |
13917 | }; | |
13918 | ||
13919 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail; | |
13920 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13921 | if (!SWIG_IsOK(res1)) { | |
13922 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13923 | } | |
13924 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13925 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
13926 | if (!SWIG_IsOK(ecode2)) { | |
13927 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'"); | |
13928 | } | |
13929 | arg2 = static_cast< bool >(val2); | |
13930 | { | |
13931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13932 | wxTextCtrl_MacCheckSpelling(arg1,arg2); | |
13933 | wxPyEndAllowThreads(__tstate); | |
13934 | if (PyErr_Occurred()) SWIG_fail; | |
13935 | } | |
13936 | resultobj = SWIG_Py_Void(); | |
13937 | return resultobj; | |
13938 | fail: | |
13939 | return NULL; | |
13940 | } | |
13941 | ||
13942 | ||
b39fe951 RD |
13943 | SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13944 | PyObject *resultobj = 0; | |
13945 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13946 | void *argp1 = 0 ; | |
13947 | int res1 = 0 ; | |
13948 | PyObject *swig_obj[1] ; | |
13949 | ||
13950 | if (!args) SWIG_fail; | |
13951 | swig_obj[0] = args; | |
13952 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13953 | if (!SWIG_IsOK(res1)) { | |
13954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13955 | } | |
13956 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13957 | { | |
13958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13959 | (arg1)->SendTextUpdatedEvent(); | |
13960 | wxPyEndAllowThreads(__tstate); | |
13961 | if (PyErr_Occurred()) SWIG_fail; | |
13962 | } | |
13963 | resultobj = SWIG_Py_Void(); | |
13964 | return resultobj; | |
13965 | fail: | |
13966 | return NULL; | |
13967 | } | |
13968 | ||
13969 | ||
0085ce49 RD |
13970 | SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13971 | PyObject *resultobj = 0; | |
13972 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13973 | wxString *arg2 = 0 ; | |
13974 | void *argp1 = 0 ; | |
13975 | int res1 = 0 ; | |
13976 | bool temp2 = false ; | |
13977 | PyObject * obj0 = 0 ; | |
13978 | PyObject * obj1 = 0 ; | |
13979 | char * kwnames[] = { | |
13980 | (char *) "self",(char *) "text", NULL | |
13981 | }; | |
13982 | ||
13983 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail; | |
13984 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13985 | if (!SWIG_IsOK(res1)) { | |
13986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13987 | } | |
13988 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13989 | { | |
13990 | arg2 = wxString_in_helper(obj1); | |
13991 | if (arg2 == NULL) SWIG_fail; | |
13992 | temp2 = true; | |
13993 | } | |
13994 | { | |
13995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13996 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
13997 | wxPyEndAllowThreads(__tstate); | |
13998 | if (PyErr_Occurred()) SWIG_fail; | |
13999 | } | |
14000 | resultobj = SWIG_Py_Void(); | |
14001 | { | |
14002 | if (temp2) | |
14003 | delete arg2; | |
14004 | } | |
14005 | return resultobj; | |
14006 | fail: | |
14007 | { | |
14008 | if (temp2) | |
14009 | delete arg2; | |
14010 | } | |
14011 | return NULL; | |
14012 | } | |
14013 | ||
14014 | ||
14015 | SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14016 | PyObject *resultobj = 0; | |
14017 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
14018 | long arg2 ; | |
14019 | long arg3 ; | |
14020 | wxString result; | |
14021 | void *argp1 = 0 ; | |
14022 | int res1 = 0 ; | |
14023 | long val2 ; | |
14024 | int ecode2 = 0 ; | |
14025 | long val3 ; | |
14026 | int ecode3 = 0 ; | |
14027 | PyObject * obj0 = 0 ; | |
14028 | PyObject * obj1 = 0 ; | |
14029 | PyObject * obj2 = 0 ; | |
14030 | char * kwnames[] = { | |
2131d850 | 14031 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
14032 | }; |
14033 | ||
14034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14035 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
14036 | if (!SWIG_IsOK(res1)) { | |
14037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
14038 | } | |
14039 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
14040 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
14041 | if (!SWIG_IsOK(ecode2)) { | |
14042 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'"); | |
14043 | } | |
14044 | arg2 = static_cast< long >(val2); | |
14045 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
14046 | if (!SWIG_IsOK(ecode3)) { | |
14047 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'"); | |
14048 | } | |
14049 | arg3 = static_cast< long >(val3); | |
14050 | { | |
14051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14052 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
14053 | wxPyEndAllowThreads(__tstate); | |
14054 | if (PyErr_Occurred()) SWIG_fail; | |
14055 | } | |
14056 | { | |
14057 | #if wxUSE_UNICODE | |
14058 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14059 | #else | |
14060 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14061 | #endif | |
14062 | } | |
14063 | return resultobj; | |
14064 | fail: | |
14065 | return NULL; | |
d14a1e28 RD |
14066 | } |
14067 | ||
14068 | ||
0085ce49 RD |
14069 | SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14070 | PyObject *resultobj = 0; | |
14071 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
14072 | SwigValueWrapper<wxVisualAttributes > result; | |
14073 | int val1 ; | |
14074 | int ecode1 = 0 ; | |
14075 | PyObject * obj0 = 0 ; | |
14076 | char * kwnames[] = { | |
14077 | (char *) "variant", NULL | |
14078 | }; | |
14079 | ||
14080 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
14081 | if (obj0) { | |
14082 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14083 | if (!SWIG_IsOK(ecode1)) { | |
14084 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
14085 | } | |
14086 | arg1 = static_cast< wxWindowVariant >(val1); | |
14087 | } | |
14088 | { | |
14089 | if (!wxPyCheckForApp()) SWIG_fail; | |
14090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14091 | result = wxTextCtrl::GetClassDefaultAttributes(arg1); | |
14092 | wxPyEndAllowThreads(__tstate); | |
14093 | if (PyErr_Occurred()) SWIG_fail; | |
14094 | } | |
14095 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
14096 | return resultobj; | |
14097 | fail: | |
14098 | return NULL; | |
14099 | } | |
14100 | ||
14101 | ||
14102 | SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
14103 | PyObject *obj; | |
14104 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14105 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj)); | |
14106 | return SWIG_Py_Void(); | |
14107 | } | |
14108 | ||
14109 | SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
14110 | return SWIG_Python_InitShadowInstance(args); | |
14111 | } | |
14112 | ||
14113 | SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14114 | PyObject *resultobj = 0; | |
14115 | int arg1 ; | |
14116 | wxMouseEvent *arg2 = 0 ; | |
14117 | long arg3 ; | |
14118 | long arg4 ; | |
14119 | wxTextUrlEvent *result = 0 ; | |
14120 | int val1 ; | |
14121 | int ecode1 = 0 ; | |
14122 | void *argp2 = 0 ; | |
14123 | int res2 = 0 ; | |
14124 | long val3 ; | |
14125 | int ecode3 = 0 ; | |
14126 | long val4 ; | |
14127 | int ecode4 = 0 ; | |
14128 | PyObject * obj0 = 0 ; | |
14129 | PyObject * obj1 = 0 ; | |
14130 | PyObject * obj2 = 0 ; | |
14131 | PyObject * obj3 = 0 ; | |
14132 | char * kwnames[] = { | |
14133 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
14134 | }; | |
14135 | ||
14136 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
14137 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14138 | if (!SWIG_IsOK(ecode1)) { | |
14139 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'"); | |
14140 | } | |
14141 | arg1 = static_cast< int >(val1); | |
14142 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0); | |
14143 | if (!SWIG_IsOK(res2)) { | |
14144 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'"); | |
14145 | } | |
14146 | if (!argp2) { | |
14147 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'"); | |
14148 | } | |
14149 | arg2 = reinterpret_cast< wxMouseEvent * >(argp2); | |
14150 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
14151 | if (!SWIG_IsOK(ecode3)) { | |
14152 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'"); | |
14153 | } | |
14154 | arg3 = static_cast< long >(val3); | |
14155 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
14156 | if (!SWIG_IsOK(ecode4)) { | |
14157 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'"); | |
14158 | } | |
14159 | arg4 = static_cast< long >(val4); | |
14160 | { | |
14161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14162 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
14163 | wxPyEndAllowThreads(__tstate); | |
14164 | if (PyErr_Occurred()) SWIG_fail; | |
14165 | } | |
14166 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 ); | |
14167 | return resultobj; | |
14168 | fail: | |
14169 | return NULL; | |
d14a1e28 RD |
14170 | } |
14171 | ||
14172 | ||
0085ce49 RD |
14173 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14174 | PyObject *resultobj = 0; | |
14175 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
14176 | wxMouseEvent *result = 0 ; | |
14177 | void *argp1 = 0 ; | |
14178 | int res1 = 0 ; | |
14179 | PyObject *swig_obj[1] ; | |
14180 | ||
14181 | if (!args) SWIG_fail; | |
14182 | swig_obj[0] = args; | |
14183 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
14184 | if (!SWIG_IsOK(res1)) { | |
14185 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'"); | |
14186 | } | |
14187 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
14188 | { | |
14189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 14190 | { |
0085ce49 RD |
14191 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); |
14192 | result = (wxMouseEvent *) &_result_ref; | |
4f89f6a3 | 14193 | } |
0085ce49 RD |
14194 | wxPyEndAllowThreads(__tstate); |
14195 | if (PyErr_Occurred()) SWIG_fail; | |
14196 | } | |
14197 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 ); | |
14198 | return resultobj; | |
14199 | fail: | |
14200 | return NULL; | |
d14a1e28 RD |
14201 | } |
14202 | ||
14203 | ||
0085ce49 RD |
14204 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14205 | PyObject *resultobj = 0; | |
14206 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
14207 | long result; | |
14208 | void *argp1 = 0 ; | |
14209 | int res1 = 0 ; | |
14210 | PyObject *swig_obj[1] ; | |
14211 | ||
14212 | if (!args) SWIG_fail; | |
14213 | swig_obj[0] = args; | |
14214 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
14215 | if (!SWIG_IsOK(res1)) { | |
14216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'"); | |
14217 | } | |
14218 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
14219 | { | |
14220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14221 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
14222 | wxPyEndAllowThreads(__tstate); | |
14223 | if (PyErr_Occurred()) SWIG_fail; | |
14224 | } | |
14225 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
14226 | return resultobj; | |
14227 | fail: | |
14228 | return NULL; | |
d14a1e28 RD |
14229 | } |
14230 | ||
14231 | ||
0085ce49 RD |
14232 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14233 | PyObject *resultobj = 0; | |
14234 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
14235 | long result; | |
14236 | void *argp1 = 0 ; | |
14237 | int res1 = 0 ; | |
14238 | PyObject *swig_obj[1] ; | |
14239 | ||
14240 | if (!args) SWIG_fail; | |
14241 | swig_obj[0] = args; | |
14242 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
14243 | if (!SWIG_IsOK(res1)) { | |
14244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'"); | |
14245 | } | |
14246 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
14247 | { | |
14248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14249 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
14250 | wxPyEndAllowThreads(__tstate); | |
14251 | if (PyErr_Occurred()) SWIG_fail; | |
14252 | } | |
14253 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
14254 | return resultobj; | |
14255 | fail: | |
14256 | return NULL; | |
d14a1e28 RD |
14257 | } |
14258 | ||
14259 | ||
0085ce49 RD |
14260 | SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14261 | PyObject *obj; | |
14262 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14263 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj)); | |
14264 | return SWIG_Py_Void(); | |
d14a1e28 RD |
14265 | } |
14266 | ||
0085ce49 RD |
14267 | SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14268 | return SWIG_Python_InitShadowInstance(args); | |
14269 | } | |
d14a1e28 | 14270 | |
0085ce49 RD |
14271 | SWIGINTERN int ScrollBarNameStr_set(PyObject *) { |
14272 | SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only."); | |
14273 | return 1; | |
14274 | } | |
14275 | ||
14276 | ||
14277 | SWIGINTERN PyObject *ScrollBarNameStr_get(void) { | |
14278 | PyObject *pyobj = 0; | |
14279 | ||
14280 | { | |
14281 | #if wxUSE_UNICODE | |
14282 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
14283 | #else | |
14284 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
14285 | #endif | |
14286 | } | |
14287 | return pyobj; | |
14288 | } | |
14289 | ||
14290 | ||
14291 | SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14292 | PyObject *resultobj = 0; | |
14293 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14294 | int arg2 = (int) -1 ; | |
14295 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14296 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14297 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14298 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14299 | long arg5 = (long) wxSB_HORIZONTAL ; | |
14300 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
14301 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
14302 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
14303 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14304 | wxScrollBar *result = 0 ; | |
14305 | void *argp1 = 0 ; | |
14306 | int res1 = 0 ; | |
14307 | int val2 ; | |
14308 | int ecode2 = 0 ; | |
14309 | wxPoint temp3 ; | |
14310 | wxSize temp4 ; | |
14311 | long val5 ; | |
14312 | int ecode5 = 0 ; | |
14313 | void *argp6 = 0 ; | |
14314 | int res6 = 0 ; | |
14315 | bool temp7 = false ; | |
14316 | PyObject * obj0 = 0 ; | |
14317 | PyObject * obj1 = 0 ; | |
14318 | PyObject * obj2 = 0 ; | |
14319 | PyObject * obj3 = 0 ; | |
14320 | PyObject * obj4 = 0 ; | |
14321 | PyObject * obj5 = 0 ; | |
14322 | PyObject * obj6 = 0 ; | |
14323 | char * kwnames[] = { | |
14324 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14325 | }; | |
14326 | ||
14327 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14328 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14329 | if (!SWIG_IsOK(res1)) { | |
14330 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14331 | } | |
14332 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14333 | if (obj1) { | |
14334 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14335 | if (!SWIG_IsOK(ecode2)) { | |
14336 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'"); | |
14337 | } | |
14338 | arg2 = static_cast< int >(val2); | |
14339 | } | |
14340 | if (obj2) { | |
d14a1e28 | 14341 | { |
0085ce49 RD |
14342 | arg3 = &temp3; |
14343 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 14344 | } |
0085ce49 RD |
14345 | } |
14346 | if (obj3) { | |
4f89f6a3 | 14347 | { |
0085ce49 RD |
14348 | arg4 = &temp4; |
14349 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 14350 | } |
0085ce49 RD |
14351 | } |
14352 | if (obj4) { | |
14353 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14354 | if (!SWIG_IsOK(ecode5)) { | |
14355 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'"); | |
14356 | } | |
14357 | arg5 = static_cast< long >(val5); | |
14358 | } | |
14359 | if (obj5) { | |
14360 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
14361 | if (!SWIG_IsOK(res6)) { | |
14362 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
14363 | } | |
14364 | if (!argp6) { | |
14365 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
14366 | } | |
14367 | arg6 = reinterpret_cast< wxValidator * >(argp6); | |
14368 | } | |
14369 | if (obj6) { | |
14370 | { | |
14371 | arg7 = wxString_in_helper(obj6); | |
14372 | if (arg7 == NULL) SWIG_fail; | |
14373 | temp7 = true; | |
14374 | } | |
14375 | } | |
14376 | { | |
14377 | if (!wxPyCheckForApp()) SWIG_fail; | |
14378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14379 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
14380 | wxPyEndAllowThreads(__tstate); | |
14381 | if (PyErr_Occurred()) SWIG_fail; | |
14382 | } | |
14383 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 ); | |
14384 | { | |
14385 | if (temp7) | |
14386 | delete arg7; | |
14387 | } | |
14388 | return resultobj; | |
14389 | fail: | |
14390 | { | |
14391 | if (temp7) | |
14392 | delete arg7; | |
14393 | } | |
14394 | return NULL; | |
d14a1e28 RD |
14395 | } |
14396 | ||
14397 | ||
0085ce49 RD |
14398 | SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14399 | PyObject *resultobj = 0; | |
14400 | wxScrollBar *result = 0 ; | |
14401 | ||
14402 | if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail; | |
14403 | { | |
14404 | if (!wxPyCheckForApp()) SWIG_fail; | |
14405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14406 | result = (wxScrollBar *)new wxScrollBar(); | |
14407 | wxPyEndAllowThreads(__tstate); | |
14408 | if (PyErr_Occurred()) SWIG_fail; | |
14409 | } | |
14410 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 ); | |
14411 | return resultobj; | |
14412 | fail: | |
14413 | return NULL; | |
14414 | } | |
14415 | ||
14416 | ||
14417 | SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14418 | PyObject *resultobj = 0; | |
14419 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14420 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14421 | int arg3 = (int) -1 ; | |
14422 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14423 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14424 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14425 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14426 | long arg6 = (long) wxSB_HORIZONTAL ; | |
14427 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
14428 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
14429 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
14430 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14431 | bool result; | |
14432 | void *argp1 = 0 ; | |
14433 | int res1 = 0 ; | |
14434 | void *argp2 = 0 ; | |
14435 | int res2 = 0 ; | |
14436 | int val3 ; | |
14437 | int ecode3 = 0 ; | |
14438 | wxPoint temp4 ; | |
14439 | wxSize temp5 ; | |
14440 | long val6 ; | |
14441 | int ecode6 = 0 ; | |
14442 | void *argp7 = 0 ; | |
14443 | int res7 = 0 ; | |
14444 | bool temp8 = false ; | |
14445 | PyObject * obj0 = 0 ; | |
14446 | PyObject * obj1 = 0 ; | |
14447 | PyObject * obj2 = 0 ; | |
14448 | PyObject * obj3 = 0 ; | |
14449 | PyObject * obj4 = 0 ; | |
14450 | PyObject * obj5 = 0 ; | |
14451 | PyObject * obj6 = 0 ; | |
14452 | PyObject * obj7 = 0 ; | |
14453 | char * kwnames[] = { | |
14454 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14455 | }; | |
14456 | ||
14457 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
14458 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14459 | if (!SWIG_IsOK(res1)) { | |
14460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'"); | |
14461 | } | |
14462 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14463 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14464 | if (!SWIG_IsOK(res2)) { | |
14465 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14466 | } | |
14467 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14468 | if (obj2) { | |
14469 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14470 | if (!SWIG_IsOK(ecode3)) { | |
14471 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
14472 | } | |
14473 | arg3 = static_cast< int >(val3); | |
14474 | } | |
14475 | if (obj3) { | |
093d3ff1 | 14476 | { |
0085ce49 RD |
14477 | arg4 = &temp4; |
14478 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 14479 | } |
0085ce49 RD |
14480 | } |
14481 | if (obj4) { | |
d14a1e28 | 14482 | { |
0085ce49 RD |
14483 | arg5 = &temp5; |
14484 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14485 | } | |
14486 | } | |
14487 | if (obj5) { | |
14488 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14489 | if (!SWIG_IsOK(ecode6)) { | |
14490 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'"); | |
14491 | } | |
14492 | arg6 = static_cast< long >(val6); | |
14493 | } | |
14494 | if (obj6) { | |
14495 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
14496 | if (!SWIG_IsOK(res7)) { | |
14497 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 14498 | } |
0085ce49 RD |
14499 | if (!argp7) { |
14500 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
14501 | } | |
14502 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
14503 | } | |
14504 | if (obj7) { | |
4f89f6a3 | 14505 | { |
0085ce49 RD |
14506 | arg8 = wxString_in_helper(obj7); |
14507 | if (arg8 == NULL) SWIG_fail; | |
14508 | temp8 = true; | |
4f89f6a3 | 14509 | } |
0085ce49 RD |
14510 | } |
14511 | { | |
14512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14513 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
14514 | wxPyEndAllowThreads(__tstate); | |
14515 | if (PyErr_Occurred()) SWIG_fail; | |
14516 | } | |
14517 | { | |
14518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14519 | } | |
14520 | { | |
14521 | if (temp8) | |
14522 | delete arg8; | |
14523 | } | |
14524 | return resultobj; | |
14525 | fail: | |
14526 | { | |
14527 | if (temp8) | |
14528 | delete arg8; | |
14529 | } | |
14530 | return NULL; | |
d14a1e28 RD |
14531 | } |
14532 | ||
14533 | ||
0085ce49 RD |
14534 | SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14535 | PyObject *resultobj = 0; | |
14536 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14537 | int result; | |
14538 | void *argp1 = 0 ; | |
14539 | int res1 = 0 ; | |
14540 | PyObject *swig_obj[1] ; | |
14541 | ||
14542 | if (!args) SWIG_fail; | |
14543 | swig_obj[0] = args; | |
14544 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14545 | if (!SWIG_IsOK(res1)) { | |
14546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14547 | } | |
14548 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14549 | { | |
14550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14551 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
14552 | wxPyEndAllowThreads(__tstate); | |
14553 | if (PyErr_Occurred()) SWIG_fail; | |
14554 | } | |
14555 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14556 | return resultobj; | |
14557 | fail: | |
14558 | return NULL; | |
d14a1e28 RD |
14559 | } |
14560 | ||
14561 | ||
0085ce49 RD |
14562 | SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14563 | PyObject *resultobj = 0; | |
14564 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14565 | int result; | |
14566 | void *argp1 = 0 ; | |
14567 | int res1 = 0 ; | |
14568 | PyObject *swig_obj[1] ; | |
14569 | ||
14570 | if (!args) SWIG_fail; | |
14571 | swig_obj[0] = args; | |
14572 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14573 | if (!SWIG_IsOK(res1)) { | |
14574 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14575 | } | |
14576 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14577 | { | |
14578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14579 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
14580 | wxPyEndAllowThreads(__tstate); | |
14581 | if (PyErr_Occurred()) SWIG_fail; | |
14582 | } | |
14583 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14584 | return resultobj; | |
14585 | fail: | |
14586 | return NULL; | |
d14a1e28 RD |
14587 | } |
14588 | ||
14589 | ||
0085ce49 RD |
14590 | SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14591 | PyObject *resultobj = 0; | |
14592 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14593 | int result; | |
14594 | void *argp1 = 0 ; | |
14595 | int res1 = 0 ; | |
14596 | PyObject *swig_obj[1] ; | |
14597 | ||
14598 | if (!args) SWIG_fail; | |
14599 | swig_obj[0] = args; | |
14600 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14601 | if (!SWIG_IsOK(res1)) { | |
14602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14603 | } | |
14604 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14605 | { | |
14606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14607 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
14608 | wxPyEndAllowThreads(__tstate); | |
14609 | if (PyErr_Occurred()) SWIG_fail; | |
14610 | } | |
14611 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14612 | return resultobj; | |
14613 | fail: | |
14614 | return NULL; | |
d14a1e28 RD |
14615 | } |
14616 | ||
14617 | ||
0085ce49 RD |
14618 | SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14619 | PyObject *resultobj = 0; | |
14620 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14621 | int result; | |
14622 | void *argp1 = 0 ; | |
14623 | int res1 = 0 ; | |
14624 | PyObject *swig_obj[1] ; | |
14625 | ||
14626 | if (!args) SWIG_fail; | |
14627 | swig_obj[0] = args; | |
14628 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14629 | if (!SWIG_IsOK(res1)) { | |
14630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14631 | } | |
14632 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14633 | { | |
14634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14635 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
14636 | wxPyEndAllowThreads(__tstate); | |
14637 | if (PyErr_Occurred()) SWIG_fail; | |
14638 | } | |
14639 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14640 | return resultobj; | |
14641 | fail: | |
14642 | return NULL; | |
d14a1e28 RD |
14643 | } |
14644 | ||
14645 | ||
0085ce49 RD |
14646 | SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14647 | PyObject *resultobj = 0; | |
14648 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14649 | bool result; | |
14650 | void *argp1 = 0 ; | |
14651 | int res1 = 0 ; | |
14652 | PyObject *swig_obj[1] ; | |
14653 | ||
14654 | if (!args) SWIG_fail; | |
14655 | swig_obj[0] = args; | |
14656 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14657 | if (!SWIG_IsOK(res1)) { | |
14658 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14659 | } | |
14660 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14661 | { | |
14662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14663 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
14664 | wxPyEndAllowThreads(__tstate); | |
14665 | if (PyErr_Occurred()) SWIG_fail; | |
14666 | } | |
14667 | { | |
14668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14669 | } | |
14670 | return resultobj; | |
14671 | fail: | |
14672 | return NULL; | |
14673 | } | |
14674 | ||
14675 | ||
14676 | SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14677 | PyObject *resultobj = 0; | |
14678 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14679 | int arg2 ; | |
14680 | void *argp1 = 0 ; | |
14681 | int res1 = 0 ; | |
14682 | int val2 ; | |
14683 | int ecode2 = 0 ; | |
14684 | PyObject * obj0 = 0 ; | |
14685 | PyObject * obj1 = 0 ; | |
14686 | char * kwnames[] = { | |
14687 | (char *) "self",(char *) "viewStart", NULL | |
14688 | }; | |
14689 | ||
14690 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
14691 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14692 | if (!SWIG_IsOK(res1)) { | |
14693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'"); | |
14694 | } | |
14695 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14696 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14697 | if (!SWIG_IsOK(ecode2)) { | |
14698 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'"); | |
14699 | } | |
14700 | arg2 = static_cast< int >(val2); | |
14701 | { | |
14702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14703 | (arg1)->SetThumbPosition(arg2); | |
14704 | wxPyEndAllowThreads(__tstate); | |
14705 | if (PyErr_Occurred()) SWIG_fail; | |
14706 | } | |
14707 | resultobj = SWIG_Py_Void(); | |
14708 | return resultobj; | |
14709 | fail: | |
14710 | return NULL; | |
14711 | } | |
14712 | ||
14713 | ||
14714 | SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14715 | PyObject *resultobj = 0; | |
14716 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
14717 | SwigValueWrapper<wxVisualAttributes > result; | |
14718 | int val1 ; | |
14719 | int ecode1 = 0 ; | |
14720 | PyObject * obj0 = 0 ; | |
14721 | char * kwnames[] = { | |
14722 | (char *) "variant", NULL | |
14723 | }; | |
14724 | ||
14725 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
14726 | if (obj0) { | |
14727 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14728 | if (!SWIG_IsOK(ecode1)) { | |
14729 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
14730 | } | |
14731 | arg1 = static_cast< wxWindowVariant >(val1); | |
14732 | } | |
14733 | { | |
14734 | if (!wxPyCheckForApp()) SWIG_fail; | |
14735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14736 | result = wxScrollBar::GetClassDefaultAttributes(arg1); | |
14737 | wxPyEndAllowThreads(__tstate); | |
14738 | if (PyErr_Occurred()) SWIG_fail; | |
14739 | } | |
14740 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
14741 | return resultobj; | |
14742 | fail: | |
14743 | return NULL; | |
d14a1e28 RD |
14744 | } |
14745 | ||
14746 | ||
0085ce49 RD |
14747 | SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14748 | PyObject *obj; | |
14749 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14750 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj)); | |
14751 | return SWIG_Py_Void(); | |
d14a1e28 RD |
14752 | } |
14753 | ||
0085ce49 RD |
14754 | SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14755 | return SWIG_Python_InitShadowInstance(args); | |
14756 | } | |
d14a1e28 | 14757 | |
0085ce49 RD |
14758 | SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) { |
14759 | SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
14760 | return 1; | |
d14a1e28 RD |
14761 | } |
14762 | ||
14763 | ||
0085ce49 RD |
14764 | SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) { |
14765 | PyObject *pyobj = 0; | |
14766 | ||
14767 | { | |
14768 | #if wxUSE_UNICODE | |
14769 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
14770 | #else | |
14771 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
14772 | #endif | |
14773 | } | |
14774 | return pyobj; | |
d14a1e28 RD |
14775 | } |
14776 | ||
14777 | ||
0085ce49 RD |
14778 | SWIGINTERN int SpinCtrlNameStr_set(PyObject *) { |
14779 | SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only."); | |
14780 | return 1; | |
d14a1e28 RD |
14781 | } |
14782 | ||
14783 | ||
0085ce49 RD |
14784 | SWIGINTERN PyObject *SpinCtrlNameStr_get(void) { |
14785 | PyObject *pyobj = 0; | |
14786 | ||
14787 | { | |
14788 | #if wxUSE_UNICODE | |
14789 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
14790 | #else | |
14791 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
14792 | #endif | |
14793 | } | |
14794 | return pyobj; | |
14795 | } | |
14796 | ||
14797 | ||
14798 | SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14799 | PyObject *resultobj = 0; | |
14800 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14801 | int arg2 = (int) -1 ; | |
14802 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14803 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14804 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14805 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14806 | long arg5 = (long) wxSP_HORIZONTAL ; | |
14807 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
14808 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14809 | wxSpinButton *result = 0 ; | |
14810 | void *argp1 = 0 ; | |
14811 | int res1 = 0 ; | |
14812 | int val2 ; | |
14813 | int ecode2 = 0 ; | |
14814 | wxPoint temp3 ; | |
14815 | wxSize temp4 ; | |
14816 | long val5 ; | |
14817 | int ecode5 = 0 ; | |
14818 | bool temp6 = false ; | |
14819 | PyObject * obj0 = 0 ; | |
14820 | PyObject * obj1 = 0 ; | |
14821 | PyObject * obj2 = 0 ; | |
14822 | PyObject * obj3 = 0 ; | |
14823 | PyObject * obj4 = 0 ; | |
14824 | PyObject * obj5 = 0 ; | |
14825 | char * kwnames[] = { | |
14826 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14827 | }; | |
14828 | ||
14829 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
14830 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14831 | if (!SWIG_IsOK(res1)) { | |
14832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14833 | } | |
14834 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14835 | if (obj1) { | |
14836 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14837 | if (!SWIG_IsOK(ecode2)) { | |
14838 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'"); | |
14839 | } | |
14840 | arg2 = static_cast< int >(val2); | |
14841 | } | |
14842 | if (obj2) { | |
093d3ff1 | 14843 | { |
0085ce49 RD |
14844 | arg3 = &temp3; |
14845 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 14846 | } |
0085ce49 RD |
14847 | } |
14848 | if (obj3) { | |
d14a1e28 | 14849 | { |
0085ce49 RD |
14850 | arg4 = &temp4; |
14851 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 14852 | } |
0085ce49 RD |
14853 | } |
14854 | if (obj4) { | |
14855 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14856 | if (!SWIG_IsOK(ecode5)) { | |
14857 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'"); | |
14858 | } | |
14859 | arg5 = static_cast< long >(val5); | |
14860 | } | |
14861 | if (obj5) { | |
d14a1e28 | 14862 | { |
0085ce49 RD |
14863 | arg6 = wxString_in_helper(obj5); |
14864 | if (arg6 == NULL) SWIG_fail; | |
14865 | temp6 = true; | |
d14a1e28 | 14866 | } |
0085ce49 RD |
14867 | } |
14868 | { | |
14869 | if (!wxPyCheckForApp()) SWIG_fail; | |
14870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14871 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14872 | wxPyEndAllowThreads(__tstate); | |
14873 | if (PyErr_Occurred()) SWIG_fail; | |
14874 | } | |
14875 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 ); | |
14876 | { | |
14877 | if (temp6) | |
14878 | delete arg6; | |
14879 | } | |
14880 | return resultobj; | |
14881 | fail: | |
14882 | { | |
14883 | if (temp6) | |
14884 | delete arg6; | |
14885 | } | |
14886 | return NULL; | |
d14a1e28 RD |
14887 | } |
14888 | ||
14889 | ||
0085ce49 RD |
14890 | SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14891 | PyObject *resultobj = 0; | |
14892 | wxSpinButton *result = 0 ; | |
14893 | ||
14894 | if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail; | |
14895 | { | |
14896 | if (!wxPyCheckForApp()) SWIG_fail; | |
14897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14898 | result = (wxSpinButton *)new wxSpinButton(); | |
14899 | wxPyEndAllowThreads(__tstate); | |
14900 | if (PyErr_Occurred()) SWIG_fail; | |
14901 | } | |
14902 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 ); | |
14903 | return resultobj; | |
14904 | fail: | |
14905 | return NULL; | |
14906 | } | |
14907 | ||
14908 | ||
14909 | SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14910 | PyObject *resultobj = 0; | |
14911 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14912 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14913 | int arg3 = (int) -1 ; | |
14914 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14915 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14916 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14917 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14918 | long arg6 = (long) wxSP_HORIZONTAL ; | |
14919 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
14920 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14921 | bool result; | |
14922 | void *argp1 = 0 ; | |
14923 | int res1 = 0 ; | |
14924 | void *argp2 = 0 ; | |
14925 | int res2 = 0 ; | |
14926 | int val3 ; | |
14927 | int ecode3 = 0 ; | |
14928 | wxPoint temp4 ; | |
14929 | wxSize temp5 ; | |
14930 | long val6 ; | |
14931 | int ecode6 = 0 ; | |
14932 | bool temp7 = false ; | |
14933 | PyObject * obj0 = 0 ; | |
14934 | PyObject * obj1 = 0 ; | |
14935 | PyObject * obj2 = 0 ; | |
14936 | PyObject * obj3 = 0 ; | |
14937 | PyObject * obj4 = 0 ; | |
14938 | PyObject * obj5 = 0 ; | |
14939 | PyObject * obj6 = 0 ; | |
14940 | char * kwnames[] = { | |
14941 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14942 | }; | |
14943 | ||
14944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14946 | if (!SWIG_IsOK(res1)) { | |
14947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
14948 | } | |
14949 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14950 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14951 | if (!SWIG_IsOK(res2)) { | |
14952 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14953 | } | |
14954 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14955 | if (obj2) { | |
14956 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14957 | if (!SWIG_IsOK(ecode3)) { | |
14958 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
14959 | } | |
14960 | arg3 = static_cast< int >(val3); | |
14961 | } | |
14962 | if (obj3) { | |
d14a1e28 | 14963 | { |
0085ce49 RD |
14964 | arg4 = &temp4; |
14965 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 14966 | } |
0085ce49 RD |
14967 | } |
14968 | if (obj4) { | |
d14a1e28 | 14969 | { |
0085ce49 RD |
14970 | arg5 = &temp5; |
14971 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 14972 | } |
0085ce49 RD |
14973 | } |
14974 | if (obj5) { | |
14975 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14976 | if (!SWIG_IsOK(ecode6)) { | |
14977 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'"); | |
14978 | } | |
14979 | arg6 = static_cast< long >(val6); | |
14980 | } | |
14981 | if (obj6) { | |
d14a1e28 | 14982 | { |
0085ce49 RD |
14983 | arg7 = wxString_in_helper(obj6); |
14984 | if (arg7 == NULL) SWIG_fail; | |
14985 | temp7 = true; | |
d14a1e28 | 14986 | } |
0085ce49 RD |
14987 | } |
14988 | { | |
14989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14990 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14991 | wxPyEndAllowThreads(__tstate); | |
14992 | if (PyErr_Occurred()) SWIG_fail; | |
14993 | } | |
14994 | { | |
14995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14996 | } | |
14997 | { | |
14998 | if (temp7) | |
14999 | delete arg7; | |
15000 | } | |
15001 | return resultobj; | |
15002 | fail: | |
15003 | { | |
15004 | if (temp7) | |
15005 | delete arg7; | |
15006 | } | |
15007 | return NULL; | |
d14a1e28 RD |
15008 | } |
15009 | ||
15010 | ||
0085ce49 RD |
15011 | SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15012 | PyObject *resultobj = 0; | |
15013 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15014 | int result; | |
15015 | void *argp1 = 0 ; | |
15016 | int res1 = 0 ; | |
15017 | PyObject *swig_obj[1] ; | |
15018 | ||
15019 | if (!args) SWIG_fail; | |
15020 | swig_obj[0] = args; | |
15021 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15022 | if (!SWIG_IsOK(res1)) { | |
15023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
15024 | } | |
15025 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15026 | { | |
15027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15028 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
15029 | wxPyEndAllowThreads(__tstate); | |
15030 | if (PyErr_Occurred()) SWIG_fail; | |
15031 | } | |
15032 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15033 | return resultobj; | |
15034 | fail: | |
15035 | return NULL; | |
d14a1e28 RD |
15036 | } |
15037 | ||
15038 | ||
0085ce49 RD |
15039 | SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15040 | PyObject *resultobj = 0; | |
15041 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15042 | int result; | |
15043 | void *argp1 = 0 ; | |
15044 | int res1 = 0 ; | |
15045 | PyObject *swig_obj[1] ; | |
15046 | ||
15047 | if (!args) SWIG_fail; | |
15048 | swig_obj[0] = args; | |
15049 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15050 | if (!SWIG_IsOK(res1)) { | |
15051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
15052 | } | |
15053 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15054 | { | |
15055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15056 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
15057 | wxPyEndAllowThreads(__tstate); | |
15058 | if (PyErr_Occurred()) SWIG_fail; | |
15059 | } | |
15060 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15061 | return resultobj; | |
15062 | fail: | |
15063 | return NULL; | |
d14a1e28 RD |
15064 | } |
15065 | ||
15066 | ||
0085ce49 RD |
15067 | SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15068 | PyObject *resultobj = 0; | |
15069 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15070 | int result; | |
15071 | void *argp1 = 0 ; | |
15072 | int res1 = 0 ; | |
15073 | PyObject *swig_obj[1] ; | |
15074 | ||
15075 | if (!args) SWIG_fail; | |
15076 | swig_obj[0] = args; | |
15077 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15078 | if (!SWIG_IsOK(res1)) { | |
15079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
15080 | } | |
15081 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15082 | { | |
15083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15084 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
15085 | wxPyEndAllowThreads(__tstate); | |
15086 | if (PyErr_Occurred()) SWIG_fail; | |
15087 | } | |
15088 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15089 | return resultobj; | |
15090 | fail: | |
15091 | return NULL; | |
15092 | } | |
15093 | ||
15094 | ||
15095 | SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15096 | PyObject *resultobj = 0; | |
15097 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15098 | int arg2 ; | |
15099 | void *argp1 = 0 ; | |
15100 | int res1 = 0 ; | |
15101 | int val2 ; | |
15102 | int ecode2 = 0 ; | |
15103 | PyObject * obj0 = 0 ; | |
15104 | PyObject * obj1 = 0 ; | |
15105 | char * kwnames[] = { | |
15106 | (char *) "self",(char *) "val", NULL | |
15107 | }; | |
15108 | ||
15109 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
15110 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15111 | if (!SWIG_IsOK(res1)) { | |
15112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
15113 | } | |
15114 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15115 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15116 | if (!SWIG_IsOK(ecode2)) { | |
15117 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
15118 | } | |
15119 | arg2 = static_cast< int >(val2); | |
15120 | { | |
15121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15122 | (arg1)->SetValue(arg2); | |
15123 | wxPyEndAllowThreads(__tstate); | |
15124 | if (PyErr_Occurred()) SWIG_fail; | |
15125 | } | |
15126 | resultobj = SWIG_Py_Void(); | |
15127 | return resultobj; | |
15128 | fail: | |
15129 | return NULL; | |
15130 | } | |
15131 | ||
15132 | ||
15133 | SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15134 | PyObject *resultobj = 0; | |
15135 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15136 | int arg2 ; | |
15137 | void *argp1 = 0 ; | |
15138 | int res1 = 0 ; | |
15139 | int val2 ; | |
15140 | int ecode2 = 0 ; | |
15141 | PyObject * obj0 = 0 ; | |
15142 | PyObject * obj1 = 0 ; | |
15143 | char * kwnames[] = { | |
15144 | (char *) "self",(char *) "minVal", NULL | |
15145 | }; | |
15146 | ||
15147 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail; | |
15148 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15149 | if (!SWIG_IsOK(res1)) { | |
15150 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
15151 | } | |
15152 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15153 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15154 | if (!SWIG_IsOK(ecode2)) { | |
15155 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'"); | |
15156 | } | |
15157 | arg2 = static_cast< int >(val2); | |
15158 | { | |
15159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15160 | (arg1)->SetMin(arg2); | |
15161 | wxPyEndAllowThreads(__tstate); | |
15162 | if (PyErr_Occurred()) SWIG_fail; | |
15163 | } | |
15164 | resultobj = SWIG_Py_Void(); | |
15165 | return resultobj; | |
15166 | fail: | |
15167 | return NULL; | |
15168 | } | |
15169 | ||
15170 | ||
15171 | SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15172 | PyObject *resultobj = 0; | |
15173 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15174 | int arg2 ; | |
15175 | void *argp1 = 0 ; | |
15176 | int res1 = 0 ; | |
15177 | int val2 ; | |
15178 | int ecode2 = 0 ; | |
15179 | PyObject * obj0 = 0 ; | |
15180 | PyObject * obj1 = 0 ; | |
15181 | char * kwnames[] = { | |
15182 | (char *) "self",(char *) "maxVal", NULL | |
15183 | }; | |
15184 | ||
15185 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail; | |
15186 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15187 | if (!SWIG_IsOK(res1)) { | |
15188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
15189 | } | |
15190 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15191 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15192 | if (!SWIG_IsOK(ecode2)) { | |
15193 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'"); | |
15194 | } | |
15195 | arg2 = static_cast< int >(val2); | |
15196 | { | |
15197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15198 | (arg1)->SetMax(arg2); | |
15199 | wxPyEndAllowThreads(__tstate); | |
15200 | if (PyErr_Occurred()) SWIG_fail; | |
15201 | } | |
15202 | resultobj = SWIG_Py_Void(); | |
15203 | return resultobj; | |
15204 | fail: | |
15205 | return NULL; | |
15206 | } | |
15207 | ||
15208 | ||
15209 | SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15210 | PyObject *resultobj = 0; | |
15211 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15212 | int arg2 ; | |
15213 | int arg3 ; | |
15214 | void *argp1 = 0 ; | |
15215 | int res1 = 0 ; | |
15216 | int val2 ; | |
15217 | int ecode2 = 0 ; | |
15218 | int val3 ; | |
15219 | int ecode3 = 0 ; | |
15220 | PyObject * obj0 = 0 ; | |
15221 | PyObject * obj1 = 0 ; | |
15222 | PyObject * obj2 = 0 ; | |
15223 | char * kwnames[] = { | |
15224 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
15225 | }; | |
15226 | ||
15227 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15228 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15229 | if (!SWIG_IsOK(res1)) { | |
15230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
15231 | } | |
15232 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15233 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15234 | if (!SWIG_IsOK(ecode2)) { | |
15235 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
15236 | } | |
15237 | arg2 = static_cast< int >(val2); | |
15238 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15239 | if (!SWIG_IsOK(ecode3)) { | |
15240 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
15241 | } | |
15242 | arg3 = static_cast< int >(val3); | |
15243 | { | |
15244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15245 | (arg1)->SetRange(arg2,arg3); | |
15246 | wxPyEndAllowThreads(__tstate); | |
15247 | if (PyErr_Occurred()) SWIG_fail; | |
15248 | } | |
15249 | resultobj = SWIG_Py_Void(); | |
15250 | return resultobj; | |
15251 | fail: | |
15252 | return NULL; | |
d14a1e28 RD |
15253 | } |
15254 | ||
15255 | ||
0085ce49 RD |
15256 | SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15257 | PyObject *resultobj = 0; | |
15258 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15259 | bool result; | |
15260 | void *argp1 = 0 ; | |
15261 | int res1 = 0 ; | |
15262 | PyObject *swig_obj[1] ; | |
15263 | ||
15264 | if (!args) SWIG_fail; | |
15265 | swig_obj[0] = args; | |
15266 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15267 | if (!SWIG_IsOK(res1)) { | |
15268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
15269 | } | |
15270 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15271 | { | |
15272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15273 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
15274 | wxPyEndAllowThreads(__tstate); | |
15275 | if (PyErr_Occurred()) SWIG_fail; | |
15276 | } | |
15277 | { | |
15278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15279 | } | |
15280 | return resultobj; | |
15281 | fail: | |
15282 | return NULL; | |
d14a1e28 RD |
15283 | } |
15284 | ||
15285 | ||
0085ce49 RD |
15286 | SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15287 | PyObject *resultobj = 0; | |
15288 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
15289 | SwigValueWrapper<wxVisualAttributes > result; | |
15290 | int val1 ; | |
15291 | int ecode1 = 0 ; | |
15292 | PyObject * obj0 = 0 ; | |
15293 | char * kwnames[] = { | |
15294 | (char *) "variant", NULL | |
15295 | }; | |
15296 | ||
15297 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
15298 | if (obj0) { | |
15299 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15300 | if (!SWIG_IsOK(ecode1)) { | |
15301 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
15302 | } | |
15303 | arg1 = static_cast< wxWindowVariant >(val1); | |
15304 | } | |
15305 | { | |
15306 | if (!wxPyCheckForApp()) SWIG_fail; | |
15307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15308 | result = wxSpinButton::GetClassDefaultAttributes(arg1); | |
15309 | wxPyEndAllowThreads(__tstate); | |
15310 | if (PyErr_Occurred()) SWIG_fail; | |
15311 | } | |
15312 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
15313 | return resultobj; | |
15314 | fail: | |
15315 | return NULL; | |
15316 | } | |
15317 | ||
15318 | ||
15319 | SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15320 | PyObject *obj; | |
15321 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15322 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj)); | |
15323 | return SWIG_Py_Void(); | |
15324 | } | |
15325 | ||
15326 | SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15327 | return SWIG_Python_InitShadowInstance(args); | |
15328 | } | |
15329 | ||
15330 | SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15331 | PyObject *resultobj = 0; | |
15332 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15333 | int arg2 = (int) -1 ; | |
15334 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15335 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15336 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15337 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15338 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15339 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15340 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
15341 | int arg7 = (int) 0 ; | |
15342 | int arg8 = (int) 100 ; | |
15343 | int arg9 = (int) 0 ; | |
15344 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
15345 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
15346 | wxSpinCtrl *result = 0 ; | |
15347 | void *argp1 = 0 ; | |
15348 | int res1 = 0 ; | |
15349 | int val2 ; | |
15350 | int ecode2 = 0 ; | |
15351 | bool temp3 = false ; | |
15352 | wxPoint temp4 ; | |
15353 | wxSize temp5 ; | |
15354 | long val6 ; | |
15355 | int ecode6 = 0 ; | |
15356 | int val7 ; | |
15357 | int ecode7 = 0 ; | |
15358 | int val8 ; | |
15359 | int ecode8 = 0 ; | |
15360 | int val9 ; | |
15361 | int ecode9 = 0 ; | |
15362 | bool temp10 = false ; | |
15363 | PyObject * obj0 = 0 ; | |
15364 | PyObject * obj1 = 0 ; | |
15365 | PyObject * obj2 = 0 ; | |
15366 | PyObject * obj3 = 0 ; | |
15367 | PyObject * obj4 = 0 ; | |
15368 | PyObject * obj5 = 0 ; | |
15369 | PyObject * obj6 = 0 ; | |
15370 | PyObject * obj7 = 0 ; | |
15371 | PyObject * obj8 = 0 ; | |
15372 | PyObject * obj9 = 0 ; | |
15373 | char * kwnames[] = { | |
15374 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
15375 | }; | |
15376 | ||
15377 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
15378 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15379 | if (!SWIG_IsOK(res1)) { | |
15380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
15381 | } | |
15382 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
15383 | if (obj1) { | |
15384 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15385 | if (!SWIG_IsOK(ecode2)) { | |
15386 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'"); | |
15387 | } | |
15388 | arg2 = static_cast< int >(val2); | |
15389 | } | |
15390 | if (obj2) { | |
093d3ff1 | 15391 | { |
0085ce49 RD |
15392 | arg3 = wxString_in_helper(obj2); |
15393 | if (arg3 == NULL) SWIG_fail; | |
15394 | temp3 = true; | |
093d3ff1 | 15395 | } |
0085ce49 RD |
15396 | } |
15397 | if (obj3) { | |
093d3ff1 | 15398 | { |
0085ce49 RD |
15399 | arg4 = &temp4; |
15400 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 15401 | } |
0085ce49 RD |
15402 | } |
15403 | if (obj4) { | |
d14a1e28 | 15404 | { |
0085ce49 RD |
15405 | arg5 = &temp5; |
15406 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 15407 | } |
0085ce49 RD |
15408 | } |
15409 | if (obj5) { | |
15410 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
15411 | if (!SWIG_IsOK(ecode6)) { | |
15412 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'"); | |
15413 | } | |
15414 | arg6 = static_cast< long >(val6); | |
15415 | } | |
15416 | if (obj6) { | |
15417 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
15418 | if (!SWIG_IsOK(ecode7)) { | |
15419 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'"); | |
15420 | } | |
15421 | arg7 = static_cast< int >(val7); | |
15422 | } | |
15423 | if (obj7) { | |
15424 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
15425 | if (!SWIG_IsOK(ecode8)) { | |
15426 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'"); | |
15427 | } | |
15428 | arg8 = static_cast< int >(val8); | |
15429 | } | |
15430 | if (obj8) { | |
15431 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
15432 | if (!SWIG_IsOK(ecode9)) { | |
15433 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'"); | |
15434 | } | |
15435 | arg9 = static_cast< int >(val9); | |
15436 | } | |
15437 | if (obj9) { | |
d14a1e28 | 15438 | { |
0085ce49 RD |
15439 | arg10 = wxString_in_helper(obj9); |
15440 | if (arg10 == NULL) SWIG_fail; | |
15441 | temp10 = true; | |
d14a1e28 | 15442 | } |
0085ce49 RD |
15443 | } |
15444 | { | |
15445 | if (!wxPyCheckForApp()) SWIG_fail; | |
15446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15447 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
15448 | wxPyEndAllowThreads(__tstate); | |
15449 | if (PyErr_Occurred()) SWIG_fail; | |
15450 | } | |
15451 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 ); | |
15452 | { | |
15453 | if (temp3) | |
15454 | delete arg3; | |
15455 | } | |
15456 | { | |
15457 | if (temp10) | |
15458 | delete arg10; | |
15459 | } | |
15460 | return resultobj; | |
15461 | fail: | |
15462 | { | |
15463 | if (temp3) | |
15464 | delete arg3; | |
15465 | } | |
15466 | { | |
15467 | if (temp10) | |
15468 | delete arg10; | |
15469 | } | |
15470 | return NULL; | |
d14a1e28 RD |
15471 | } |
15472 | ||
15473 | ||
0085ce49 RD |
15474 | SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15475 | PyObject *resultobj = 0; | |
15476 | wxSpinCtrl *result = 0 ; | |
15477 | ||
15478 | if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail; | |
15479 | { | |
15480 | if (!wxPyCheckForApp()) SWIG_fail; | |
15481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15482 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
15483 | wxPyEndAllowThreads(__tstate); | |
15484 | if (PyErr_Occurred()) SWIG_fail; | |
15485 | } | |
15486 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 ); | |
15487 | return resultobj; | |
15488 | fail: | |
15489 | return NULL; | |
15490 | } | |
15491 | ||
15492 | ||
15493 | SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15494 | PyObject *resultobj = 0; | |
15495 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15496 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15497 | int arg3 = (int) -1 ; | |
15498 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15499 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15500 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
15501 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15502 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15503 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15504 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
15505 | int arg8 = (int) 0 ; | |
15506 | int arg9 = (int) 100 ; | |
15507 | int arg10 = (int) 0 ; | |
15508 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
15509 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
15510 | bool result; | |
15511 | void *argp1 = 0 ; | |
15512 | int res1 = 0 ; | |
15513 | void *argp2 = 0 ; | |
15514 | int res2 = 0 ; | |
15515 | int val3 ; | |
15516 | int ecode3 = 0 ; | |
15517 | bool temp4 = false ; | |
15518 | wxPoint temp5 ; | |
15519 | wxSize temp6 ; | |
15520 | long val7 ; | |
15521 | int ecode7 = 0 ; | |
15522 | int val8 ; | |
15523 | int ecode8 = 0 ; | |
15524 | int val9 ; | |
15525 | int ecode9 = 0 ; | |
15526 | int val10 ; | |
15527 | int ecode10 = 0 ; | |
15528 | bool temp11 = false ; | |
15529 | PyObject * obj0 = 0 ; | |
15530 | PyObject * obj1 = 0 ; | |
15531 | PyObject * obj2 = 0 ; | |
15532 | PyObject * obj3 = 0 ; | |
15533 | PyObject * obj4 = 0 ; | |
15534 | PyObject * obj5 = 0 ; | |
15535 | PyObject * obj6 = 0 ; | |
15536 | PyObject * obj7 = 0 ; | |
15537 | PyObject * obj8 = 0 ; | |
15538 | PyObject * obj9 = 0 ; | |
15539 | PyObject * obj10 = 0 ; | |
15540 | char * kwnames[] = { | |
15541 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
15542 | }; | |
15543 | ||
15544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
15545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15546 | if (!SWIG_IsOK(res1)) { | |
15547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15548 | } | |
15549 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15550 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15551 | if (!SWIG_IsOK(res2)) { | |
15552 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
15553 | } | |
15554 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
15555 | if (obj2) { | |
15556 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15557 | if (!SWIG_IsOK(ecode3)) { | |
15558 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
15559 | } | |
15560 | arg3 = static_cast< int >(val3); | |
15561 | } | |
15562 | if (obj3) { | |
093d3ff1 | 15563 | { |
0085ce49 RD |
15564 | arg4 = wxString_in_helper(obj3); |
15565 | if (arg4 == NULL) SWIG_fail; | |
15566 | temp4 = true; | |
093d3ff1 | 15567 | } |
0085ce49 RD |
15568 | } |
15569 | if (obj4) { | |
d14a1e28 | 15570 | { |
0085ce49 RD |
15571 | arg5 = &temp5; |
15572 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 15573 | } |
0085ce49 RD |
15574 | } |
15575 | if (obj5) { | |
093d3ff1 | 15576 | { |
0085ce49 RD |
15577 | arg6 = &temp6; |
15578 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 15579 | } |
0085ce49 RD |
15580 | } |
15581 | if (obj6) { | |
15582 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
15583 | if (!SWIG_IsOK(ecode7)) { | |
15584 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
15585 | } | |
15586 | arg7 = static_cast< long >(val7); | |
15587 | } | |
15588 | if (obj7) { | |
15589 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
15590 | if (!SWIG_IsOK(ecode8)) { | |
15591 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'"); | |
15592 | } | |
15593 | arg8 = static_cast< int >(val8); | |
15594 | } | |
15595 | if (obj8) { | |
15596 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
15597 | if (!SWIG_IsOK(ecode9)) { | |
15598 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'"); | |
15599 | } | |
15600 | arg9 = static_cast< int >(val9); | |
15601 | } | |
15602 | if (obj9) { | |
15603 | ecode10 = SWIG_AsVal_int(obj9, &val10); | |
15604 | if (!SWIG_IsOK(ecode10)) { | |
15605 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'"); | |
15606 | } | |
15607 | arg10 = static_cast< int >(val10); | |
15608 | } | |
15609 | if (obj10) { | |
d14a1e28 | 15610 | { |
0085ce49 RD |
15611 | arg11 = wxString_in_helper(obj10); |
15612 | if (arg11 == NULL) SWIG_fail; | |
15613 | temp11 = true; | |
d14a1e28 | 15614 | } |
0085ce49 RD |
15615 | } |
15616 | { | |
15617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15618 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
15619 | wxPyEndAllowThreads(__tstate); | |
15620 | if (PyErr_Occurred()) SWIG_fail; | |
15621 | } | |
15622 | { | |
15623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15624 | } | |
15625 | { | |
15626 | if (temp4) | |
15627 | delete arg4; | |
15628 | } | |
15629 | { | |
15630 | if (temp11) | |
15631 | delete arg11; | |
15632 | } | |
15633 | return resultobj; | |
15634 | fail: | |
15635 | { | |
15636 | if (temp4) | |
15637 | delete arg4; | |
15638 | } | |
15639 | { | |
15640 | if (temp11) | |
15641 | delete arg11; | |
15642 | } | |
15643 | return NULL; | |
d14a1e28 RD |
15644 | } |
15645 | ||
15646 | ||
0085ce49 RD |
15647 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15648 | PyObject *resultobj = 0; | |
15649 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15650 | int result; | |
15651 | void *argp1 = 0 ; | |
15652 | int res1 = 0 ; | |
15653 | PyObject *swig_obj[1] ; | |
15654 | ||
15655 | if (!args) SWIG_fail; | |
15656 | swig_obj[0] = args; | |
15657 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15658 | if (!SWIG_IsOK(res1)) { | |
15659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15660 | } | |
15661 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15662 | { | |
15663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15664 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
15665 | wxPyEndAllowThreads(__tstate); | |
15666 | if (PyErr_Occurred()) SWIG_fail; | |
15667 | } | |
15668 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15669 | return resultobj; | |
15670 | fail: | |
15671 | return NULL; | |
15672 | } | |
15673 | ||
15674 | ||
15675 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15676 | PyObject *resultobj = 0; | |
15677 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15678 | int arg2 ; | |
15679 | void *argp1 = 0 ; | |
15680 | int res1 = 0 ; | |
15681 | int val2 ; | |
15682 | int ecode2 = 0 ; | |
15683 | PyObject * obj0 = 0 ; | |
15684 | PyObject * obj1 = 0 ; | |
15685 | char * kwnames[] = { | |
15686 | (char *) "self",(char *) "value", NULL | |
15687 | }; | |
15688 | ||
15689 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
15690 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15691 | if (!SWIG_IsOK(res1)) { | |
15692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15693 | } | |
15694 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15695 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15696 | if (!SWIG_IsOK(ecode2)) { | |
15697 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
15698 | } | |
15699 | arg2 = static_cast< int >(val2); | |
15700 | { | |
15701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15702 | (arg1)->SetValue(arg2); | |
15703 | wxPyEndAllowThreads(__tstate); | |
15704 | if (PyErr_Occurred()) SWIG_fail; | |
15705 | } | |
15706 | resultobj = SWIG_Py_Void(); | |
15707 | return resultobj; | |
15708 | fail: | |
15709 | return NULL; | |
15710 | } | |
15711 | ||
15712 | ||
15713 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15714 | PyObject *resultobj = 0; | |
15715 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15716 | wxString *arg2 = 0 ; | |
15717 | void *argp1 = 0 ; | |
15718 | int res1 = 0 ; | |
15719 | bool temp2 = false ; | |
15720 | PyObject * obj0 = 0 ; | |
15721 | PyObject * obj1 = 0 ; | |
15722 | char * kwnames[] = { | |
15723 | (char *) "self",(char *) "text", NULL | |
15724 | }; | |
15725 | ||
15726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail; | |
15727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15728 | if (!SWIG_IsOK(res1)) { | |
15729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15730 | } | |
15731 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15732 | { | |
15733 | arg2 = wxString_in_helper(obj1); | |
15734 | if (arg2 == NULL) SWIG_fail; | |
15735 | temp2 = true; | |
15736 | } | |
15737 | { | |
15738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15739 | (arg1)->SetValue((wxString const &)*arg2); | |
15740 | wxPyEndAllowThreads(__tstate); | |
15741 | if (PyErr_Occurred()) SWIG_fail; | |
15742 | } | |
15743 | resultobj = SWIG_Py_Void(); | |
15744 | { | |
15745 | if (temp2) | |
15746 | delete arg2; | |
15747 | } | |
15748 | return resultobj; | |
15749 | fail: | |
15750 | { | |
15751 | if (temp2) | |
15752 | delete arg2; | |
15753 | } | |
15754 | return NULL; | |
15755 | } | |
15756 | ||
15757 | ||
15758 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15759 | PyObject *resultobj = 0; | |
15760 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15761 | int arg2 ; | |
15762 | int arg3 ; | |
15763 | void *argp1 = 0 ; | |
15764 | int res1 = 0 ; | |
15765 | int val2 ; | |
15766 | int ecode2 = 0 ; | |
15767 | int val3 ; | |
15768 | int ecode3 = 0 ; | |
15769 | PyObject * obj0 = 0 ; | |
15770 | PyObject * obj1 = 0 ; | |
15771 | PyObject * obj2 = 0 ; | |
15772 | char * kwnames[] = { | |
15773 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
15774 | }; | |
15775 | ||
15776 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15777 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15778 | if (!SWIG_IsOK(res1)) { | |
15779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15780 | } | |
15781 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15782 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15783 | if (!SWIG_IsOK(ecode2)) { | |
15784 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
15785 | } | |
15786 | arg2 = static_cast< int >(val2); | |
15787 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15788 | if (!SWIG_IsOK(ecode3)) { | |
15789 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
15790 | } | |
15791 | arg3 = static_cast< int >(val3); | |
15792 | { | |
15793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15794 | (arg1)->SetRange(arg2,arg3); | |
15795 | wxPyEndAllowThreads(__tstate); | |
15796 | if (PyErr_Occurred()) SWIG_fail; | |
15797 | } | |
15798 | resultobj = SWIG_Py_Void(); | |
15799 | return resultobj; | |
15800 | fail: | |
15801 | return NULL; | |
d14a1e28 RD |
15802 | } |
15803 | ||
15804 | ||
0085ce49 RD |
15805 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15806 | PyObject *resultobj = 0; | |
15807 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15808 | int result; | |
15809 | void *argp1 = 0 ; | |
15810 | int res1 = 0 ; | |
15811 | PyObject *swig_obj[1] ; | |
15812 | ||
15813 | if (!args) SWIG_fail; | |
15814 | swig_obj[0] = args; | |
15815 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15816 | if (!SWIG_IsOK(res1)) { | |
15817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15818 | } | |
15819 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15820 | { | |
15821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15822 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
15823 | wxPyEndAllowThreads(__tstate); | |
15824 | if (PyErr_Occurred()) SWIG_fail; | |
15825 | } | |
15826 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15827 | return resultobj; | |
15828 | fail: | |
15829 | return NULL; | |
d14a1e28 RD |
15830 | } |
15831 | ||
15832 | ||
0085ce49 RD |
15833 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15834 | PyObject *resultobj = 0; | |
15835 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15836 | int result; | |
15837 | void *argp1 = 0 ; | |
15838 | int res1 = 0 ; | |
15839 | PyObject *swig_obj[1] ; | |
15840 | ||
15841 | if (!args) SWIG_fail; | |
15842 | swig_obj[0] = args; | |
15843 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15844 | if (!SWIG_IsOK(res1)) { | |
15845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15846 | } | |
15847 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15848 | { | |
15849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15850 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
15851 | wxPyEndAllowThreads(__tstate); | |
15852 | if (PyErr_Occurred()) SWIG_fail; | |
15853 | } | |
15854 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15855 | return resultobj; | |
15856 | fail: | |
15857 | return NULL; | |
15858 | } | |
15859 | ||
15860 | ||
15861 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15862 | PyObject *resultobj = 0; | |
15863 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15864 | long arg2 ; | |
15865 | long arg3 ; | |
15866 | void *argp1 = 0 ; | |
15867 | int res1 = 0 ; | |
15868 | long val2 ; | |
15869 | int ecode2 = 0 ; | |
15870 | long val3 ; | |
15871 | int ecode3 = 0 ; | |
15872 | PyObject * obj0 = 0 ; | |
15873 | PyObject * obj1 = 0 ; | |
15874 | PyObject * obj2 = 0 ; | |
15875 | char * kwnames[] = { | |
2131d850 | 15876 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
15877 | }; |
15878 | ||
15879 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15880 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15881 | if (!SWIG_IsOK(res1)) { | |
15882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15883 | } | |
15884 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15885 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
15886 | if (!SWIG_IsOK(ecode2)) { | |
15887 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'"); | |
15888 | } | |
15889 | arg2 = static_cast< long >(val2); | |
15890 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
15891 | if (!SWIG_IsOK(ecode3)) { | |
15892 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'"); | |
15893 | } | |
15894 | arg3 = static_cast< long >(val3); | |
15895 | { | |
15896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15897 | (arg1)->SetSelection(arg2,arg3); | |
15898 | wxPyEndAllowThreads(__tstate); | |
15899 | if (PyErr_Occurred()) SWIG_fail; | |
15900 | } | |
15901 | resultobj = SWIG_Py_Void(); | |
15902 | return resultobj; | |
15903 | fail: | |
15904 | return NULL; | |
15905 | } | |
15906 | ||
15907 | ||
15908 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15909 | PyObject *resultobj = 0; | |
15910 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
15911 | SwigValueWrapper<wxVisualAttributes > result; | |
15912 | int val1 ; | |
15913 | int ecode1 = 0 ; | |
15914 | PyObject * obj0 = 0 ; | |
15915 | char * kwnames[] = { | |
15916 | (char *) "variant", NULL | |
15917 | }; | |
15918 | ||
15919 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
15920 | if (obj0) { | |
15921 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15922 | if (!SWIG_IsOK(ecode1)) { | |
15923 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
15924 | } | |
15925 | arg1 = static_cast< wxWindowVariant >(val1); | |
15926 | } | |
15927 | { | |
15928 | if (!wxPyCheckForApp()) SWIG_fail; | |
15929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15930 | result = wxSpinCtrl::GetClassDefaultAttributes(arg1); | |
15931 | wxPyEndAllowThreads(__tstate); | |
15932 | if (PyErr_Occurred()) SWIG_fail; | |
15933 | } | |
15934 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
15935 | return resultobj; | |
15936 | fail: | |
15937 | return NULL; | |
d14a1e28 RD |
15938 | } |
15939 | ||
15940 | ||
0085ce49 RD |
15941 | SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15942 | PyObject *obj; | |
15943 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15944 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj)); | |
15945 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15946 | } |
15947 | ||
0085ce49 RD |
15948 | SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15949 | return SWIG_Python_InitShadowInstance(args); | |
15950 | } | |
d14a1e28 | 15951 | |
0085ce49 RD |
15952 | SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15953 | PyObject *resultobj = 0; | |
15954 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15955 | int arg2 = (int) 0 ; | |
15956 | wxSpinEvent *result = 0 ; | |
15957 | int val1 ; | |
15958 | int ecode1 = 0 ; | |
15959 | int val2 ; | |
15960 | int ecode2 = 0 ; | |
15961 | PyObject * obj0 = 0 ; | |
15962 | PyObject * obj1 = 0 ; | |
15963 | char * kwnames[] = { | |
15964 | (char *) "commandType",(char *) "winid", NULL | |
15965 | }; | |
15966 | ||
15967 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
15968 | if (obj0) { | |
15969 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15970 | if (!SWIG_IsOK(ecode1)) { | |
15971 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
15972 | } | |
15973 | arg1 = static_cast< wxEventType >(val1); | |
15974 | } | |
15975 | if (obj1) { | |
15976 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15977 | if (!SWIG_IsOK(ecode2)) { | |
15978 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'"); | |
15979 | } | |
15980 | arg2 = static_cast< int >(val2); | |
15981 | } | |
15982 | { | |
15983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15984 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
15985 | wxPyEndAllowThreads(__tstate); | |
15986 | if (PyErr_Occurred()) SWIG_fail; | |
15987 | } | |
15988 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 ); | |
15989 | return resultobj; | |
15990 | fail: | |
15991 | return NULL; | |
d14a1e28 RD |
15992 | } |
15993 | ||
15994 | ||
0085ce49 RD |
15995 | SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15996 | PyObject *resultobj = 0; | |
15997 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
15998 | int result; | |
15999 | void *argp1 = 0 ; | |
16000 | int res1 = 0 ; | |
16001 | PyObject *swig_obj[1] ; | |
16002 | ||
16003 | if (!args) SWIG_fail; | |
16004 | swig_obj[0] = args; | |
16005 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 ); | |
16006 | if (!SWIG_IsOK(res1)) { | |
16007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'"); | |
16008 | } | |
16009 | arg1 = reinterpret_cast< wxSpinEvent * >(argp1); | |
16010 | { | |
16011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16012 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
16013 | wxPyEndAllowThreads(__tstate); | |
16014 | if (PyErr_Occurred()) SWIG_fail; | |
16015 | } | |
16016 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16017 | return resultobj; | |
16018 | fail: | |
16019 | return NULL; | |
16020 | } | |
16021 | ||
16022 | ||
16023 | SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16024 | PyObject *resultobj = 0; | |
16025 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
16026 | int arg2 ; | |
16027 | void *argp1 = 0 ; | |
16028 | int res1 = 0 ; | |
16029 | int val2 ; | |
16030 | int ecode2 = 0 ; | |
16031 | PyObject * obj0 = 0 ; | |
16032 | PyObject * obj1 = 0 ; | |
16033 | char * kwnames[] = { | |
16034 | (char *) "self",(char *) "pos", NULL | |
16035 | }; | |
16036 | ||
16037 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
16038 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 ); | |
16039 | if (!SWIG_IsOK(res1)) { | |
16040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'"); | |
16041 | } | |
16042 | arg1 = reinterpret_cast< wxSpinEvent * >(argp1); | |
16043 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16044 | if (!SWIG_IsOK(ecode2)) { | |
16045 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'"); | |
16046 | } | |
16047 | arg2 = static_cast< int >(val2); | |
16048 | { | |
16049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16050 | (arg1)->SetPosition(arg2); | |
16051 | wxPyEndAllowThreads(__tstate); | |
16052 | if (PyErr_Occurred()) SWIG_fail; | |
16053 | } | |
16054 | resultobj = SWIG_Py_Void(); | |
16055 | return resultobj; | |
16056 | fail: | |
16057 | return NULL; | |
d14a1e28 RD |
16058 | } |
16059 | ||
16060 | ||
0085ce49 RD |
16061 | SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16062 | PyObject *obj; | |
16063 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16064 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj)); | |
16065 | return SWIG_Py_Void(); | |
16066 | } | |
16067 | ||
16068 | SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16069 | return SWIG_Python_InitShadowInstance(args); | |
16070 | } | |
16071 | ||
16072 | SWIGINTERN int RadioBoxNameStr_set(PyObject *) { | |
16073 | SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only."); | |
16074 | return 1; | |
16075 | } | |
16076 | ||
16077 | ||
16078 | SWIGINTERN PyObject *RadioBoxNameStr_get(void) { | |
16079 | PyObject *pyobj = 0; | |
16080 | ||
16081 | { | |
d14a1e28 | 16082 | #if wxUSE_UNICODE |
0085ce49 | 16083 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); |
d14a1e28 | 16084 | #else |
0085ce49 | 16085 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); |
d14a1e28 | 16086 | #endif |
0085ce49 RD |
16087 | } |
16088 | return pyobj; | |
d14a1e28 RD |
16089 | } |
16090 | ||
16091 | ||
0085ce49 RD |
16092 | SWIGINTERN int RadioButtonNameStr_set(PyObject *) { |
16093 | SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only."); | |
16094 | return 1; | |
d14a1e28 RD |
16095 | } |
16096 | ||
16097 | ||
0085ce49 RD |
16098 | SWIGINTERN PyObject *RadioButtonNameStr_get(void) { |
16099 | PyObject *pyobj = 0; | |
16100 | ||
16101 | { | |
16102 | #if wxUSE_UNICODE | |
16103 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
16104 | #else | |
16105 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
16106 | #endif | |
16107 | } | |
16108 | return pyobj; | |
16109 | } | |
16110 | ||
16111 | ||
16112 | SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16113 | PyObject *resultobj = 0; | |
16114 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16115 | int arg2 = (int) -1 ; | |
16116 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16117 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16118 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
16119 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
16120 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
16121 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
16122 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
16123 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
16124 | int arg7 = (int) 0 ; | |
16125 | long arg8 = (long) wxRA_HORIZONTAL ; | |
16126 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
16127 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
16128 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
16129 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
16130 | wxRadioBox *result = 0 ; | |
16131 | void *argp1 = 0 ; | |
16132 | int res1 = 0 ; | |
16133 | int val2 ; | |
16134 | int ecode2 = 0 ; | |
16135 | bool temp3 = false ; | |
16136 | wxPoint temp4 ; | |
16137 | wxSize temp5 ; | |
16138 | bool temp6 = false ; | |
16139 | int val7 ; | |
16140 | int ecode7 = 0 ; | |
16141 | long val8 ; | |
16142 | int ecode8 = 0 ; | |
16143 | void *argp9 = 0 ; | |
16144 | int res9 = 0 ; | |
16145 | bool temp10 = false ; | |
16146 | PyObject * obj0 = 0 ; | |
16147 | PyObject * obj1 = 0 ; | |
16148 | PyObject * obj2 = 0 ; | |
16149 | PyObject * obj3 = 0 ; | |
16150 | PyObject * obj4 = 0 ; | |
16151 | PyObject * obj5 = 0 ; | |
16152 | PyObject * obj6 = 0 ; | |
16153 | PyObject * obj7 = 0 ; | |
16154 | PyObject * obj8 = 0 ; | |
16155 | PyObject * obj9 = 0 ; | |
16156 | char * kwnames[] = { | |
16157 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
16158 | }; | |
16159 | ||
16160 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
16161 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16162 | if (!SWIG_IsOK(res1)) { | |
16163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16164 | } | |
16165 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16166 | if (obj1) { | |
16167 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16168 | if (!SWIG_IsOK(ecode2)) { | |
16169 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'"); | |
16170 | } | |
16171 | arg2 = static_cast< int >(val2); | |
16172 | } | |
16173 | if (obj2) { | |
093d3ff1 | 16174 | { |
0085ce49 RD |
16175 | arg3 = wxString_in_helper(obj2); |
16176 | if (arg3 == NULL) SWIG_fail; | |
16177 | temp3 = true; | |
093d3ff1 | 16178 | } |
0085ce49 RD |
16179 | } |
16180 | if (obj3) { | |
093d3ff1 | 16181 | { |
0085ce49 RD |
16182 | arg4 = &temp4; |
16183 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 16184 | } |
0085ce49 RD |
16185 | } |
16186 | if (obj4) { | |
d14a1e28 | 16187 | { |
0085ce49 RD |
16188 | arg5 = &temp5; |
16189 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 16190 | } |
0085ce49 RD |
16191 | } |
16192 | if (obj5) { | |
d14a1e28 | 16193 | { |
0085ce49 RD |
16194 | if (! PySequence_Check(obj5)) { |
16195 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
16196 | SWIG_fail; | |
16197 | } | |
16198 | arg6 = new wxArrayString; | |
16199 | temp6 = true; | |
16200 | int i, len=PySequence_Length(obj5); | |
16201 | for (i=0; i<len; i++) { | |
16202 | PyObject* item = PySequence_GetItem(obj5, i); | |
16203 | wxString* s = wxString_in_helper(item); | |
16204 | if (PyErr_Occurred()) SWIG_fail; | |
16205 | arg6->Add(*s); | |
16206 | delete s; | |
16207 | Py_DECREF(item); | |
16208 | } | |
d14a1e28 | 16209 | } |
0085ce49 RD |
16210 | } |
16211 | if (obj6) { | |
16212 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
16213 | if (!SWIG_IsOK(ecode7)) { | |
16214 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'"); | |
16215 | } | |
16216 | arg7 = static_cast< int >(val7); | |
16217 | } | |
16218 | if (obj7) { | |
16219 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
16220 | if (!SWIG_IsOK(ecode8)) { | |
16221 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'"); | |
16222 | } | |
16223 | arg8 = static_cast< long >(val8); | |
16224 | } | |
16225 | if (obj8) { | |
16226 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
16227 | if (!SWIG_IsOK(res9)) { | |
16228 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
16229 | } | |
16230 | if (!argp9) { | |
16231 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 16232 | } |
0085ce49 RD |
16233 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
16234 | } | |
16235 | if (obj9) { | |
d14a1e28 | 16236 | { |
0085ce49 RD |
16237 | arg10 = wxString_in_helper(obj9); |
16238 | if (arg10 == NULL) SWIG_fail; | |
16239 | temp10 = true; | |
d14a1e28 | 16240 | } |
0085ce49 RD |
16241 | } |
16242 | { | |
16243 | if (!wxPyCheckForApp()) SWIG_fail; | |
16244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16245 | 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); | |
16246 | wxPyEndAllowThreads(__tstate); | |
16247 | if (PyErr_Occurred()) SWIG_fail; | |
16248 | } | |
16249 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 ); | |
16250 | { | |
16251 | if (temp3) | |
16252 | delete arg3; | |
16253 | } | |
16254 | { | |
16255 | if (temp6) delete arg6; | |
16256 | } | |
16257 | { | |
16258 | if (temp10) | |
16259 | delete arg10; | |
16260 | } | |
16261 | return resultobj; | |
16262 | fail: | |
16263 | { | |
16264 | if (temp3) | |
16265 | delete arg3; | |
16266 | } | |
16267 | { | |
16268 | if (temp6) delete arg6; | |
16269 | } | |
16270 | { | |
16271 | if (temp10) | |
16272 | delete arg10; | |
16273 | } | |
16274 | return NULL; | |
d14a1e28 RD |
16275 | } |
16276 | ||
16277 | ||
0085ce49 RD |
16278 | SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16279 | PyObject *resultobj = 0; | |
16280 | wxRadioBox *result = 0 ; | |
16281 | ||
16282 | if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail; | |
16283 | { | |
16284 | if (!wxPyCheckForApp()) SWIG_fail; | |
16285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16286 | result = (wxRadioBox *)new wxRadioBox(); | |
16287 | wxPyEndAllowThreads(__tstate); | |
16288 | if (PyErr_Occurred()) SWIG_fail; | |
16289 | } | |
16290 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 ); | |
16291 | return resultobj; | |
16292 | fail: | |
16293 | return NULL; | |
16294 | } | |
16295 | ||
16296 | ||
16297 | SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16298 | PyObject *resultobj = 0; | |
16299 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16300 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16301 | int arg3 = (int) -1 ; | |
16302 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16303 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16304 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
16305 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
16306 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
16307 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
16308 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
16309 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
16310 | int arg8 = (int) 0 ; | |
16311 | long arg9 = (long) wxRA_HORIZONTAL ; | |
16312 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
16313 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
16314 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
16315 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
16316 | bool result; | |
16317 | void *argp1 = 0 ; | |
16318 | int res1 = 0 ; | |
16319 | void *argp2 = 0 ; | |
16320 | int res2 = 0 ; | |
16321 | int val3 ; | |
16322 | int ecode3 = 0 ; | |
16323 | bool temp4 = false ; | |
16324 | wxPoint temp5 ; | |
16325 | wxSize temp6 ; | |
16326 | bool temp7 = false ; | |
16327 | int val8 ; | |
16328 | int ecode8 = 0 ; | |
16329 | long val9 ; | |
16330 | int ecode9 = 0 ; | |
16331 | void *argp10 = 0 ; | |
16332 | int res10 = 0 ; | |
16333 | bool temp11 = false ; | |
16334 | PyObject * obj0 = 0 ; | |
16335 | PyObject * obj1 = 0 ; | |
16336 | PyObject * obj2 = 0 ; | |
16337 | PyObject * obj3 = 0 ; | |
16338 | PyObject * obj4 = 0 ; | |
16339 | PyObject * obj5 = 0 ; | |
16340 | PyObject * obj6 = 0 ; | |
16341 | PyObject * obj7 = 0 ; | |
16342 | PyObject * obj8 = 0 ; | |
16343 | PyObject * obj9 = 0 ; | |
16344 | PyObject * obj10 = 0 ; | |
16345 | char * kwnames[] = { | |
16346 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
16347 | }; | |
16348 | ||
16349 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
16350 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16351 | if (!SWIG_IsOK(res1)) { | |
16352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16353 | } | |
16354 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16355 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16356 | if (!SWIG_IsOK(res2)) { | |
16357 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
16358 | } | |
16359 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
16360 | if (obj2) { | |
16361 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16362 | if (!SWIG_IsOK(ecode3)) { | |
16363 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
16364 | } | |
16365 | arg3 = static_cast< int >(val3); | |
16366 | } | |
16367 | if (obj3) { | |
093d3ff1 | 16368 | { |
0085ce49 RD |
16369 | arg4 = wxString_in_helper(obj3); |
16370 | if (arg4 == NULL) SWIG_fail; | |
16371 | temp4 = true; | |
093d3ff1 | 16372 | } |
0085ce49 RD |
16373 | } |
16374 | if (obj4) { | |
d14a1e28 | 16375 | { |
0085ce49 RD |
16376 | arg5 = &temp5; |
16377 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 16378 | } |
0085ce49 RD |
16379 | } |
16380 | if (obj5) { | |
d14a1e28 | 16381 | { |
0085ce49 RD |
16382 | arg6 = &temp6; |
16383 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 16384 | } |
0085ce49 RD |
16385 | } |
16386 | if (obj6) { | |
d14a1e28 | 16387 | { |
0085ce49 RD |
16388 | if (! PySequence_Check(obj6)) { |
16389 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
16390 | SWIG_fail; | |
16391 | } | |
16392 | arg7 = new wxArrayString; | |
16393 | temp7 = true; | |
16394 | int i, len=PySequence_Length(obj6); | |
16395 | for (i=0; i<len; i++) { | |
16396 | PyObject* item = PySequence_GetItem(obj6, i); | |
16397 | wxString* s = wxString_in_helper(item); | |
16398 | if (PyErr_Occurred()) SWIG_fail; | |
16399 | arg7->Add(*s); | |
16400 | delete s; | |
16401 | Py_DECREF(item); | |
16402 | } | |
d14a1e28 | 16403 | } |
0085ce49 RD |
16404 | } |
16405 | if (obj7) { | |
16406 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
16407 | if (!SWIG_IsOK(ecode8)) { | |
16408 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'"); | |
16409 | } | |
16410 | arg8 = static_cast< int >(val8); | |
16411 | } | |
16412 | if (obj8) { | |
16413 | ecode9 = SWIG_AsVal_long(obj8, &val9); | |
16414 | if (!SWIG_IsOK(ecode9)) { | |
16415 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'"); | |
16416 | } | |
16417 | arg9 = static_cast< long >(val9); | |
16418 | } | |
16419 | if (obj9) { | |
16420 | res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0); | |
16421 | if (!SWIG_IsOK(res10)) { | |
16422 | SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
4f89f6a3 | 16423 | } |
0085ce49 RD |
16424 | if (!argp10) { |
16425 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 16426 | } |
0085ce49 RD |
16427 | arg10 = reinterpret_cast< wxValidator * >(argp10); |
16428 | } | |
16429 | if (obj10) { | |
d14a1e28 | 16430 | { |
0085ce49 RD |
16431 | arg11 = wxString_in_helper(obj10); |
16432 | if (arg11 == NULL) SWIG_fail; | |
16433 | temp11 = true; | |
d14a1e28 | 16434 | } |
0085ce49 RD |
16435 | } |
16436 | { | |
16437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16438 | 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); | |
16439 | wxPyEndAllowThreads(__tstate); | |
16440 | if (PyErr_Occurred()) SWIG_fail; | |
16441 | } | |
16442 | { | |
16443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16444 | } | |
16445 | { | |
16446 | if (temp4) | |
16447 | delete arg4; | |
16448 | } | |
16449 | { | |
16450 | if (temp7) delete arg7; | |
16451 | } | |
16452 | { | |
16453 | if (temp11) | |
16454 | delete arg11; | |
16455 | } | |
16456 | return resultobj; | |
16457 | fail: | |
16458 | { | |
16459 | if (temp4) | |
16460 | delete arg4; | |
16461 | } | |
16462 | { | |
16463 | if (temp7) delete arg7; | |
16464 | } | |
16465 | { | |
16466 | if (temp11) | |
16467 | delete arg11; | |
16468 | } | |
16469 | return NULL; | |
16470 | } | |
16471 | ||
16472 | ||
16473 | SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16474 | PyObject *resultobj = 0; | |
16475 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16476 | int arg2 ; | |
16477 | void *argp1 = 0 ; | |
16478 | int res1 = 0 ; | |
16479 | int val2 ; | |
16480 | int ecode2 = 0 ; | |
16481 | PyObject * obj0 = 0 ; | |
16482 | PyObject * obj1 = 0 ; | |
16483 | char * kwnames[] = { | |
16484 | (char *) "self",(char *) "n", NULL | |
16485 | }; | |
16486 | ||
16487 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
16488 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16489 | if (!SWIG_IsOK(res1)) { | |
16490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16491 | } | |
16492 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16493 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16494 | if (!SWIG_IsOK(ecode2)) { | |
16495 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
16496 | } | |
16497 | arg2 = static_cast< int >(val2); | |
16498 | { | |
16499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16500 | (arg1)->SetSelection(arg2); | |
16501 | wxPyEndAllowThreads(__tstate); | |
16502 | if (PyErr_Occurred()) SWIG_fail; | |
16503 | } | |
16504 | resultobj = SWIG_Py_Void(); | |
16505 | return resultobj; | |
16506 | fail: | |
16507 | return NULL; | |
d14a1e28 RD |
16508 | } |
16509 | ||
16510 | ||
0085ce49 RD |
16511 | SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16512 | PyObject *resultobj = 0; | |
16513 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16514 | int result; | |
16515 | void *argp1 = 0 ; | |
16516 | int res1 = 0 ; | |
16517 | PyObject *swig_obj[1] ; | |
16518 | ||
16519 | if (!args) SWIG_fail; | |
16520 | swig_obj[0] = args; | |
16521 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16522 | if (!SWIG_IsOK(res1)) { | |
16523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16524 | } | |
16525 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16526 | { | |
16527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16528 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
16529 | wxPyEndAllowThreads(__tstate); | |
16530 | if (PyErr_Occurred()) SWIG_fail; | |
16531 | } | |
16532 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16533 | return resultobj; | |
16534 | fail: | |
16535 | return NULL; | |
d14a1e28 RD |
16536 | } |
16537 | ||
16538 | ||
0085ce49 RD |
16539 | SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16540 | PyObject *resultobj = 0; | |
16541 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16542 | wxString result; | |
16543 | void *argp1 = 0 ; | |
16544 | int res1 = 0 ; | |
16545 | PyObject *swig_obj[1] ; | |
16546 | ||
16547 | if (!args) SWIG_fail; | |
16548 | swig_obj[0] = args; | |
16549 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16550 | if (!SWIG_IsOK(res1)) { | |
16551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16552 | } | |
16553 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16554 | { | |
16555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16556 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
16557 | wxPyEndAllowThreads(__tstate); | |
16558 | if (PyErr_Occurred()) SWIG_fail; | |
16559 | } | |
16560 | { | |
16561 | #if wxUSE_UNICODE | |
16562 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16563 | #else | |
16564 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16565 | #endif | |
16566 | } | |
16567 | return resultobj; | |
16568 | fail: | |
16569 | return NULL; | |
16570 | } | |
16571 | ||
16572 | ||
16573 | SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16574 | PyObject *resultobj = 0; | |
16575 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16576 | wxString *arg2 = 0 ; | |
16577 | bool result; | |
16578 | void *argp1 = 0 ; | |
16579 | int res1 = 0 ; | |
16580 | bool temp2 = false ; | |
16581 | PyObject * obj0 = 0 ; | |
16582 | PyObject * obj1 = 0 ; | |
16583 | char * kwnames[] = { | |
16584 | (char *) "self",(char *) "s", NULL | |
16585 | }; | |
16586 | ||
16587 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
16588 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16589 | if (!SWIG_IsOK(res1)) { | |
16590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16591 | } | |
16592 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16593 | { | |
16594 | arg2 = wxString_in_helper(obj1); | |
16595 | if (arg2 == NULL) SWIG_fail; | |
16596 | temp2 = true; | |
16597 | } | |
16598 | { | |
16599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16600 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
16601 | wxPyEndAllowThreads(__tstate); | |
16602 | if (PyErr_Occurred()) SWIG_fail; | |
16603 | } | |
16604 | { | |
16605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16606 | } | |
16607 | { | |
16608 | if (temp2) | |
16609 | delete arg2; | |
16610 | } | |
16611 | return resultobj; | |
16612 | fail: | |
16613 | { | |
16614 | if (temp2) | |
16615 | delete arg2; | |
16616 | } | |
16617 | return NULL; | |
d14a1e28 RD |
16618 | } |
16619 | ||
16620 | ||
0085ce49 RD |
16621 | SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16622 | PyObject *resultobj = 0; | |
16623 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
75219dcb | 16624 | size_t result; |
0085ce49 RD |
16625 | void *argp1 = 0 ; |
16626 | int res1 = 0 ; | |
16627 | PyObject *swig_obj[1] ; | |
16628 | ||
16629 | if (!args) SWIG_fail; | |
16630 | swig_obj[0] = args; | |
16631 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16632 | if (!SWIG_IsOK(res1)) { | |
16633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16634 | } | |
16635 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16636 | { | |
16637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
75219dcb | 16638 | result = (size_t)((wxRadioBox const *)arg1)->GetCount(); |
0085ce49 RD |
16639 | wxPyEndAllowThreads(__tstate); |
16640 | if (PyErr_Occurred()) SWIG_fail; | |
16641 | } | |
75219dcb | 16642 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); |
0085ce49 RD |
16643 | return resultobj; |
16644 | fail: | |
16645 | return NULL; | |
16646 | } | |
16647 | ||
16648 | ||
16649 | SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16650 | PyObject *resultobj = 0; | |
16651 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16652 | wxString *arg2 = 0 ; | |
16653 | int result; | |
16654 | void *argp1 = 0 ; | |
16655 | int res1 = 0 ; | |
16656 | bool temp2 = false ; | |
16657 | PyObject * obj0 = 0 ; | |
16658 | PyObject * obj1 = 0 ; | |
16659 | char * kwnames[] = { | |
16660 | (char *) "self",(char *) "s", NULL | |
16661 | }; | |
16662 | ||
16663 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
16664 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16665 | if (!SWIG_IsOK(res1)) { | |
16666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16667 | } | |
16668 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16669 | { | |
16670 | arg2 = wxString_in_helper(obj1); | |
16671 | if (arg2 == NULL) SWIG_fail; | |
16672 | temp2 = true; | |
16673 | } | |
16674 | { | |
16675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16676 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
16677 | wxPyEndAllowThreads(__tstate); | |
16678 | if (PyErr_Occurred()) SWIG_fail; | |
16679 | } | |
16680 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16681 | { | |
16682 | if (temp2) | |
16683 | delete arg2; | |
16684 | } | |
16685 | return resultobj; | |
16686 | fail: | |
16687 | { | |
16688 | if (temp2) | |
16689 | delete arg2; | |
16690 | } | |
16691 | return NULL; | |
16692 | } | |
16693 | ||
16694 | ||
16695 | SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16696 | PyObject *resultobj = 0; | |
16697 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16698 | int arg2 ; | |
16699 | wxString result; | |
16700 | void *argp1 = 0 ; | |
16701 | int res1 = 0 ; | |
16702 | int val2 ; | |
16703 | int ecode2 = 0 ; | |
16704 | PyObject * obj0 = 0 ; | |
16705 | PyObject * obj1 = 0 ; | |
16706 | char * kwnames[] = { | |
16707 | (char *) "self",(char *) "n", NULL | |
16708 | }; | |
16709 | ||
16710 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail; | |
16711 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16712 | if (!SWIG_IsOK(res1)) { | |
16713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16714 | } | |
16715 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16716 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16717 | if (!SWIG_IsOK(ecode2)) { | |
16718 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'"); | |
16719 | } | |
16720 | arg2 = static_cast< int >(val2); | |
16721 | { | |
16722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16723 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
16724 | wxPyEndAllowThreads(__tstate); | |
16725 | if (PyErr_Occurred()) SWIG_fail; | |
16726 | } | |
16727 | { | |
16728 | #if wxUSE_UNICODE | |
16729 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16730 | #else | |
16731 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16732 | #endif | |
16733 | } | |
16734 | return resultobj; | |
16735 | fail: | |
16736 | return NULL; | |
16737 | } | |
16738 | ||
16739 | ||
16740 | SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16741 | PyObject *resultobj = 0; | |
16742 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16743 | int arg2 ; | |
16744 | wxString *arg3 = 0 ; | |
16745 | void *argp1 = 0 ; | |
16746 | int res1 = 0 ; | |
16747 | int val2 ; | |
16748 | int ecode2 = 0 ; | |
16749 | bool temp3 = false ; | |
16750 | PyObject * obj0 = 0 ; | |
16751 | PyObject * obj1 = 0 ; | |
16752 | PyObject * obj2 = 0 ; | |
16753 | char * kwnames[] = { | |
16754 | (char *) "self",(char *) "n",(char *) "label", NULL | |
16755 | }; | |
16756 | ||
16757 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16758 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16759 | if (!SWIG_IsOK(res1)) { | |
16760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16761 | } | |
16762 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16763 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16764 | if (!SWIG_IsOK(ecode2)) { | |
16765 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'"); | |
16766 | } | |
16767 | arg2 = static_cast< int >(val2); | |
16768 | { | |
16769 | arg3 = wxString_in_helper(obj2); | |
16770 | if (arg3 == NULL) SWIG_fail; | |
16771 | temp3 = true; | |
16772 | } | |
16773 | { | |
16774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16775 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
16776 | wxPyEndAllowThreads(__tstate); | |
16777 | if (PyErr_Occurred()) SWIG_fail; | |
16778 | } | |
16779 | resultobj = SWIG_Py_Void(); | |
16780 | { | |
16781 | if (temp3) | |
16782 | delete arg3; | |
16783 | } | |
16784 | return resultobj; | |
16785 | fail: | |
16786 | { | |
16787 | if (temp3) | |
16788 | delete arg3; | |
16789 | } | |
16790 | return NULL; | |
16791 | } | |
16792 | ||
16793 | ||
16794 | SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16795 | PyObject *resultobj = 0; | |
16796 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16797 | unsigned int arg2 ; |
0085ce49 RD |
16798 | bool arg3 = (bool) true ; |
16799 | void *argp1 = 0 ; | |
16800 | int res1 = 0 ; | |
50f151d7 | 16801 | unsigned int val2 ; |
0085ce49 RD |
16802 | int ecode2 = 0 ; |
16803 | bool val3 ; | |
16804 | int ecode3 = 0 ; | |
16805 | PyObject * obj0 = 0 ; | |
16806 | PyObject * obj1 = 0 ; | |
16807 | PyObject * obj2 = 0 ; | |
16808 | char * kwnames[] = { | |
16809 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
16810 | }; | |
16811 | ||
16812 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16813 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16814 | if (!SWIG_IsOK(res1)) { | |
16815 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16816 | } | |
16817 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
50f151d7 | 16818 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
0085ce49 | 16819 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 16820 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'"); |
0085ce49 | 16821 | } |
50f151d7 | 16822 | arg2 = static_cast< unsigned int >(val2); |
0085ce49 RD |
16823 | if (obj2) { |
16824 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
16825 | if (!SWIG_IsOK(ecode3)) { | |
16826 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'"); | |
16827 | } | |
16828 | arg3 = static_cast< bool >(val3); | |
16829 | } | |
16830 | { | |
16831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16832 | (arg1)->Enable(arg2,arg3); | |
16833 | wxPyEndAllowThreads(__tstate); | |
16834 | if (PyErr_Occurred()) SWIG_fail; | |
16835 | } | |
16836 | resultobj = SWIG_Py_Void(); | |
16837 | return resultobj; | |
16838 | fail: | |
16839 | return NULL; | |
16840 | } | |
16841 | ||
16842 | ||
16843 | SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16844 | PyObject *resultobj = 0; | |
16845 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16846 | unsigned int arg2 ; |
0085ce49 RD |
16847 | bool arg3 = (bool) true ; |
16848 | void *argp1 = 0 ; | |
16849 | int res1 = 0 ; | |
50f151d7 | 16850 | unsigned int val2 ; |
0085ce49 RD |
16851 | int ecode2 = 0 ; |
16852 | bool val3 ; | |
16853 | int ecode3 = 0 ; | |
16854 | PyObject * obj0 = 0 ; | |
16855 | PyObject * obj1 = 0 ; | |
16856 | PyObject * obj2 = 0 ; | |
16857 | char * kwnames[] = { | |
16858 | (char *) "self",(char *) "n",(char *) "show", NULL | |
16859 | }; | |
16860 | ||
16861 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16862 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16863 | if (!SWIG_IsOK(res1)) { | |
16864 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16865 | } | |
16866 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
50f151d7 | 16867 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
0085ce49 | 16868 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 16869 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'"); |
0085ce49 | 16870 | } |
50f151d7 | 16871 | arg2 = static_cast< unsigned int >(val2); |
0085ce49 RD |
16872 | if (obj2) { |
16873 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
16874 | if (!SWIG_IsOK(ecode3)) { | |
16875 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'"); | |
16876 | } | |
16877 | arg3 = static_cast< bool >(val3); | |
16878 | } | |
16879 | { | |
16880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16881 | (arg1)->Show(arg2,arg3); | |
16882 | wxPyEndAllowThreads(__tstate); | |
16883 | if (PyErr_Occurred()) SWIG_fail; | |
16884 | } | |
16885 | resultobj = SWIG_Py_Void(); | |
16886 | return resultobj; | |
16887 | fail: | |
16888 | return NULL; | |
d14a1e28 RD |
16889 | } |
16890 | ||
16891 | ||
50f151d7 RD |
16892 | SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16893 | PyObject *resultobj = 0; | |
16894 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16895 | unsigned int arg2 ; | |
16896 | bool result; | |
16897 | void *argp1 = 0 ; | |
16898 | int res1 = 0 ; | |
16899 | unsigned int val2 ; | |
16900 | int ecode2 = 0 ; | |
16901 | PyObject * obj0 = 0 ; | |
16902 | PyObject * obj1 = 0 ; | |
16903 | char * kwnames[] = { | |
16904 | (char *) "self",(char *) "n", NULL | |
16905 | }; | |
16906 | ||
16907 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
16908 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16909 | if (!SWIG_IsOK(res1)) { | |
16910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16911 | } | |
16912 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16913 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
16914 | if (!SWIG_IsOK(ecode2)) { | |
16915 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'"); | |
16916 | } | |
16917 | arg2 = static_cast< unsigned int >(val2); | |
16918 | { | |
16919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16920 | result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2); | |
16921 | wxPyEndAllowThreads(__tstate); | |
16922 | if (PyErr_Occurred()) SWIG_fail; | |
16923 | } | |
16924 | { | |
16925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16926 | } | |
16927 | return resultobj; | |
16928 | fail: | |
16929 | return NULL; | |
16930 | } | |
16931 | ||
16932 | ||
16933 | SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16934 | PyObject *resultobj = 0; | |
16935 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16936 | unsigned int arg2 ; | |
16937 | bool result; | |
16938 | void *argp1 = 0 ; | |
16939 | int res1 = 0 ; | |
16940 | unsigned int val2 ; | |
16941 | int ecode2 = 0 ; | |
16942 | PyObject * obj0 = 0 ; | |
16943 | PyObject * obj1 = 0 ; | |
16944 | char * kwnames[] = { | |
16945 | (char *) "self",(char *) "n", NULL | |
16946 | }; | |
16947 | ||
16948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail; | |
16949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16950 | if (!SWIG_IsOK(res1)) { | |
16951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16952 | } | |
16953 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16954 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
16955 | if (!SWIG_IsOK(ecode2)) { | |
16956 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'"); | |
16957 | } | |
16958 | arg2 = static_cast< unsigned int >(val2); | |
16959 | { | |
16960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16961 | result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2); | |
16962 | wxPyEndAllowThreads(__tstate); | |
16963 | if (PyErr_Occurred()) SWIG_fail; | |
16964 | } | |
16965 | { | |
16966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16967 | } | |
16968 | return resultobj; | |
16969 | fail: | |
16970 | return NULL; | |
16971 | } | |
16972 | ||
16973 | ||
0085ce49 RD |
16974 | SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16975 | PyObject *resultobj = 0; | |
16976 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16977 | unsigned int result; |
0085ce49 RD |
16978 | void *argp1 = 0 ; |
16979 | int res1 = 0 ; | |
16980 | PyObject *swig_obj[1] ; | |
16981 | ||
16982 | if (!args) SWIG_fail; | |
16983 | swig_obj[0] = args; | |
16984 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16985 | if (!SWIG_IsOK(res1)) { | |
16986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16987 | } | |
16988 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16989 | { | |
16990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50f151d7 | 16991 | result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount(); |
0085ce49 RD |
16992 | wxPyEndAllowThreads(__tstate); |
16993 | if (PyErr_Occurred()) SWIG_fail; | |
16994 | } | |
50f151d7 | 16995 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
0085ce49 RD |
16996 | return resultobj; |
16997 | fail: | |
16998 | return NULL; | |
d14a1e28 RD |
16999 | } |
17000 | ||
17001 | ||
0085ce49 RD |
17002 | SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17003 | PyObject *resultobj = 0; | |
17004 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 17005 | unsigned int result; |
0085ce49 RD |
17006 | void *argp1 = 0 ; |
17007 | int res1 = 0 ; | |
17008 | PyObject *swig_obj[1] ; | |
17009 | ||
17010 | if (!args) SWIG_fail; | |
17011 | swig_obj[0] = args; | |
17012 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17013 | if (!SWIG_IsOK(res1)) { | |
17014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
17015 | } | |
17016 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17017 | { | |
17018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50f151d7 | 17019 | result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount(); |
0085ce49 RD |
17020 | wxPyEndAllowThreads(__tstate); |
17021 | if (PyErr_Occurred()) SWIG_fail; | |
17022 | } | |
50f151d7 | 17023 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
0085ce49 RD |
17024 | return resultobj; |
17025 | fail: | |
17026 | return NULL; | |
17027 | } | |
17028 | ||
17029 | ||
17030 | SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17031 | PyObject *resultobj = 0; | |
17032 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
17033 | int arg2 ; | |
17034 | wxDirection arg3 ; | |
17035 | long arg4 ; | |
17036 | int result; | |
17037 | void *argp1 = 0 ; | |
17038 | int res1 = 0 ; | |
17039 | int val2 ; | |
17040 | int ecode2 = 0 ; | |
17041 | int val3 ; | |
17042 | int ecode3 = 0 ; | |
17043 | long val4 ; | |
17044 | int ecode4 = 0 ; | |
17045 | PyObject * obj0 = 0 ; | |
17046 | PyObject * obj1 = 0 ; | |
17047 | PyObject * obj2 = 0 ; | |
17048 | PyObject * obj3 = 0 ; | |
17049 | char * kwnames[] = { | |
17050 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
17051 | }; | |
17052 | ||
17053 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17054 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17055 | if (!SWIG_IsOK(res1)) { | |
17056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
17057 | } | |
17058 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17059 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17060 | if (!SWIG_IsOK(ecode2)) { | |
17061 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'"); | |
17062 | } | |
17063 | arg2 = static_cast< int >(val2); | |
17064 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17065 | if (!SWIG_IsOK(ecode3)) { | |
17066 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'"); | |
17067 | } | |
17068 | arg3 = static_cast< wxDirection >(val3); | |
17069 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
17070 | if (!SWIG_IsOK(ecode4)) { | |
17071 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'"); | |
17072 | } | |
17073 | arg4 = static_cast< long >(val4); | |
17074 | { | |
17075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50f151d7 | 17076 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4); |
0085ce49 RD |
17077 | wxPyEndAllowThreads(__tstate); |
17078 | if (PyErr_Occurred()) SWIG_fail; | |
17079 | } | |
17080 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17081 | return resultobj; | |
17082 | fail: | |
17083 | return NULL; | |
17084 | } | |
17085 | ||
17086 | ||
01f6b6d3 RD |
17087 | SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17088 | PyObject *resultobj = 0; | |
17089 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
17090 | unsigned int arg2 ; | |
17091 | wxString *arg3 = 0 ; | |
17092 | void *argp1 = 0 ; | |
17093 | int res1 = 0 ; | |
17094 | unsigned int val2 ; | |
17095 | int ecode2 = 0 ; | |
17096 | bool temp3 = false ; | |
17097 | PyObject * obj0 = 0 ; | |
17098 | PyObject * obj1 = 0 ; | |
17099 | PyObject * obj2 = 0 ; | |
17100 | char * kwnames[] = { | |
17101 | (char *) "self",(char *) "item",(char *) "text", NULL | |
17102 | }; | |
17103 | ||
17104 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17105 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17106 | if (!SWIG_IsOK(res1)) { | |
17107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
17108 | } | |
17109 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17110 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
17111 | if (!SWIG_IsOK(ecode2)) { | |
17112 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'"); | |
17113 | } | |
17114 | arg2 = static_cast< unsigned int >(val2); | |
17115 | { | |
17116 | arg3 = wxString_in_helper(obj2); | |
17117 | if (arg3 == NULL) SWIG_fail; | |
17118 | temp3 = true; | |
17119 | } | |
17120 | { | |
17121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17122 | (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3); | |
17123 | wxPyEndAllowThreads(__tstate); | |
17124 | if (PyErr_Occurred()) SWIG_fail; | |
17125 | } | |
17126 | resultobj = SWIG_Py_Void(); | |
17127 | { | |
17128 | if (temp3) | |
17129 | delete arg3; | |
17130 | } | |
17131 | return resultobj; | |
17132 | fail: | |
17133 | { | |
17134 | if (temp3) | |
17135 | delete arg3; | |
17136 | } | |
17137 | return NULL; | |
17138 | } | |
17139 | ||
17140 | ||
17141 | SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17142 | PyObject *resultobj = 0; | |
17143 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
17144 | unsigned int arg2 ; | |
17145 | wxToolTip *result = 0 ; | |
17146 | void *argp1 = 0 ; | |
17147 | int res1 = 0 ; | |
17148 | unsigned int val2 ; | |
17149 | int ecode2 = 0 ; | |
17150 | PyObject * obj0 = 0 ; | |
17151 | PyObject * obj1 = 0 ; | |
17152 | char * kwnames[] = { | |
17153 | (char *) "self",(char *) "item", NULL | |
17154 | }; | |
17155 | ||
17156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail; | |
17157 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17158 | if (!SWIG_IsOK(res1)) { | |
17159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
17160 | } | |
17161 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17162 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
17163 | if (!SWIG_IsOK(ecode2)) { | |
17164 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'"); | |
17165 | } | |
17166 | arg2 = static_cast< unsigned int >(val2); | |
17167 | { | |
17168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17169 | result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2); | |
17170 | wxPyEndAllowThreads(__tstate); | |
17171 | if (PyErr_Occurred()) SWIG_fail; | |
17172 | } | |
17173 | { | |
17174 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
17175 | } | |
17176 | return resultobj; | |
17177 | fail: | |
17178 | return NULL; | |
17179 | } | |
17180 | ||
17181 | ||
b850e7f3 RD |
17182 | SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17183 | PyObject *resultobj = 0; | |
17184 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
17185 | unsigned int arg2 ; | |
17186 | wxString *arg3 = 0 ; | |
17187 | void *argp1 = 0 ; | |
17188 | int res1 = 0 ; | |
17189 | unsigned int val2 ; | |
17190 | int ecode2 = 0 ; | |
17191 | bool temp3 = false ; | |
17192 | PyObject * obj0 = 0 ; | |
17193 | PyObject * obj1 = 0 ; | |
17194 | PyObject * obj2 = 0 ; | |
17195 | char * kwnames[] = { | |
17196 | (char *) "self",(char *) "n",(char *) "helpText", NULL | |
17197 | }; | |
17198 | ||
17199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17201 | if (!SWIG_IsOK(res1)) { | |
17202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
17203 | } | |
17204 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17205 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
17206 | if (!SWIG_IsOK(ecode2)) { | |
17207 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'"); | |
17208 | } | |
17209 | arg2 = static_cast< unsigned int >(val2); | |
17210 | { | |
17211 | arg3 = wxString_in_helper(obj2); | |
17212 | if (arg3 == NULL) SWIG_fail; | |
17213 | temp3 = true; | |
17214 | } | |
17215 | { | |
17216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17217 | (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3); | |
17218 | wxPyEndAllowThreads(__tstate); | |
17219 | if (PyErr_Occurred()) SWIG_fail; | |
17220 | } | |
17221 | resultobj = SWIG_Py_Void(); | |
17222 | { | |
17223 | if (temp3) | |
17224 | delete arg3; | |
17225 | } | |
17226 | return resultobj; | |
17227 | fail: | |
17228 | { | |
17229 | if (temp3) | |
17230 | delete arg3; | |
17231 | } | |
17232 | return NULL; | |
17233 | } | |
17234 | ||
17235 | ||
17236 | SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17237 | PyObject *resultobj = 0; | |
17238 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
17239 | unsigned int arg2 ; | |
17240 | wxString result; | |
17241 | void *argp1 = 0 ; | |
17242 | int res1 = 0 ; | |
17243 | unsigned int val2 ; | |
17244 | int ecode2 = 0 ; | |
17245 | PyObject * obj0 = 0 ; | |
17246 | PyObject * obj1 = 0 ; | |
17247 | char * kwnames[] = { | |
17248 | (char *) "self",(char *) "n", NULL | |
17249 | }; | |
17250 | ||
17251 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail; | |
17252 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17253 | if (!SWIG_IsOK(res1)) { | |
17254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
17255 | } | |
17256 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17257 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
17258 | if (!SWIG_IsOK(ecode2)) { | |
17259 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'"); | |
17260 | } | |
17261 | arg2 = static_cast< unsigned int >(val2); | |
17262 | { | |
17263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17264 | result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2); | |
17265 | wxPyEndAllowThreads(__tstate); | |
17266 | if (PyErr_Occurred()) SWIG_fail; | |
17267 | } | |
17268 | { | |
17269 | #if wxUSE_UNICODE | |
17270 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17271 | #else | |
17272 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17273 | #endif | |
17274 | } | |
17275 | return resultobj; | |
17276 | fail: | |
17277 | return NULL; | |
17278 | } | |
17279 | ||
17280 | ||
0085ce49 RD |
17281 | SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17282 | PyObject *resultobj = 0; | |
17283 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
17284 | SwigValueWrapper<wxVisualAttributes > result; | |
17285 | int val1 ; | |
17286 | int ecode1 = 0 ; | |
17287 | PyObject * obj0 = 0 ; | |
17288 | char * kwnames[] = { | |
17289 | (char *) "variant", NULL | |
17290 | }; | |
17291 | ||
17292 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
17293 | if (obj0) { | |
17294 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17295 | if (!SWIG_IsOK(ecode1)) { | |
17296 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
17297 | } | |
17298 | arg1 = static_cast< wxWindowVariant >(val1); | |
17299 | } | |
17300 | { | |
17301 | if (!wxPyCheckForApp()) SWIG_fail; | |
17302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17303 | result = wxRadioBox::GetClassDefaultAttributes(arg1); | |
17304 | wxPyEndAllowThreads(__tstate); | |
17305 | if (PyErr_Occurred()) SWIG_fail; | |
17306 | } | |
17307 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
17308 | return resultobj; | |
17309 | fail: | |
17310 | return NULL; | |
17311 | } | |
17312 | ||
17313 | ||
17314 | SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17315 | PyObject *obj; | |
17316 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17317 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj)); | |
17318 | return SWIG_Py_Void(); | |
17319 | } | |
17320 | ||
17321 | SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17322 | return SWIG_Python_InitShadowInstance(args); | |
17323 | } | |
17324 | ||
17325 | SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17326 | PyObject *resultobj = 0; | |
17327 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17328 | int arg2 = (int) -1 ; | |
17329 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17330 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17331 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
17332 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17333 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17334 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17335 | long arg6 = (long) 0 ; | |
17336 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
17337 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
17338 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
17339 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17340 | wxRadioButton *result = 0 ; | |
17341 | void *argp1 = 0 ; | |
17342 | int res1 = 0 ; | |
17343 | int val2 ; | |
17344 | int ecode2 = 0 ; | |
17345 | bool temp3 = false ; | |
17346 | wxPoint temp4 ; | |
17347 | wxSize temp5 ; | |
17348 | long val6 ; | |
17349 | int ecode6 = 0 ; | |
17350 | void *argp7 = 0 ; | |
17351 | int res7 = 0 ; | |
17352 | bool temp8 = false ; | |
17353 | PyObject * obj0 = 0 ; | |
17354 | PyObject * obj1 = 0 ; | |
17355 | PyObject * obj2 = 0 ; | |
17356 | PyObject * obj3 = 0 ; | |
17357 | PyObject * obj4 = 0 ; | |
17358 | PyObject * obj5 = 0 ; | |
17359 | PyObject * obj6 = 0 ; | |
17360 | PyObject * obj7 = 0 ; | |
17361 | char * kwnames[] = { | |
17362 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17363 | }; | |
17364 | ||
17365 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
17366 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17367 | if (!SWIG_IsOK(res1)) { | |
17368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17369 | } | |
17370 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17371 | if (obj1) { | |
17372 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17373 | if (!SWIG_IsOK(ecode2)) { | |
17374 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'"); | |
17375 | } | |
17376 | arg2 = static_cast< int >(val2); | |
17377 | } | |
17378 | if (obj2) { | |
d14a1e28 | 17379 | { |
0085ce49 RD |
17380 | arg3 = wxString_in_helper(obj2); |
17381 | if (arg3 == NULL) SWIG_fail; | |
17382 | temp3 = true; | |
d14a1e28 | 17383 | } |
0085ce49 RD |
17384 | } |
17385 | if (obj3) { | |
d14a1e28 | 17386 | { |
0085ce49 RD |
17387 | arg4 = &temp4; |
17388 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 17389 | } |
0085ce49 RD |
17390 | } |
17391 | if (obj4) { | |
d14a1e28 | 17392 | { |
0085ce49 RD |
17393 | arg5 = &temp5; |
17394 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17395 | } | |
17396 | } | |
17397 | if (obj5) { | |
17398 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
17399 | if (!SWIG_IsOK(ecode6)) { | |
17400 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'"); | |
17401 | } | |
17402 | arg6 = static_cast< long >(val6); | |
17403 | } | |
17404 | if (obj6) { | |
17405 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
17406 | if (!SWIG_IsOK(res7)) { | |
17407 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 17408 | } |
0085ce49 RD |
17409 | if (!argp7) { |
17410 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
17411 | } | |
17412 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
17413 | } | |
17414 | if (obj7) { | |
d14a1e28 | 17415 | { |
0085ce49 RD |
17416 | arg8 = wxString_in_helper(obj7); |
17417 | if (arg8 == NULL) SWIG_fail; | |
17418 | temp8 = true; | |
d14a1e28 | 17419 | } |
0085ce49 RD |
17420 | } |
17421 | { | |
17422 | if (!wxPyCheckForApp()) SWIG_fail; | |
17423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17424 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
17425 | wxPyEndAllowThreads(__tstate); | |
17426 | if (PyErr_Occurred()) SWIG_fail; | |
17427 | } | |
17428 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 ); | |
17429 | { | |
17430 | if (temp3) | |
17431 | delete arg3; | |
17432 | } | |
17433 | { | |
17434 | if (temp8) | |
17435 | delete arg8; | |
17436 | } | |
17437 | return resultobj; | |
17438 | fail: | |
17439 | { | |
17440 | if (temp3) | |
17441 | delete arg3; | |
17442 | } | |
17443 | { | |
17444 | if (temp8) | |
17445 | delete arg8; | |
17446 | } | |
17447 | return NULL; | |
d14a1e28 RD |
17448 | } |
17449 | ||
17450 | ||
0085ce49 RD |
17451 | SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17452 | PyObject *resultobj = 0; | |
17453 | wxRadioButton *result = 0 ; | |
17454 | ||
17455 | if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail; | |
17456 | { | |
17457 | if (!wxPyCheckForApp()) SWIG_fail; | |
17458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17459 | result = (wxRadioButton *)new wxRadioButton(); | |
17460 | wxPyEndAllowThreads(__tstate); | |
17461 | if (PyErr_Occurred()) SWIG_fail; | |
17462 | } | |
17463 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 ); | |
17464 | return resultobj; | |
17465 | fail: | |
17466 | return NULL; | |
17467 | } | |
17468 | ||
17469 | ||
17470 | SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17471 | PyObject *resultobj = 0; | |
17472 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
17473 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17474 | int arg3 = (int) -1 ; | |
17475 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
17476 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
17477 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
17478 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
17479 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
17480 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
17481 | long arg7 = (long) 0 ; | |
17482 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
17483 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
17484 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
17485 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
17486 | bool result; | |
17487 | void *argp1 = 0 ; | |
17488 | int res1 = 0 ; | |
17489 | void *argp2 = 0 ; | |
17490 | int res2 = 0 ; | |
17491 | int val3 ; | |
17492 | int ecode3 = 0 ; | |
17493 | bool temp4 = false ; | |
17494 | wxPoint temp5 ; | |
17495 | wxSize temp6 ; | |
17496 | long val7 ; | |
17497 | int ecode7 = 0 ; | |
17498 | void *argp8 = 0 ; | |
17499 | int res8 = 0 ; | |
17500 | bool temp9 = false ; | |
17501 | PyObject * obj0 = 0 ; | |
17502 | PyObject * obj1 = 0 ; | |
17503 | PyObject * obj2 = 0 ; | |
17504 | PyObject * obj3 = 0 ; | |
17505 | PyObject * obj4 = 0 ; | |
17506 | PyObject * obj5 = 0 ; | |
17507 | PyObject * obj6 = 0 ; | |
17508 | PyObject * obj7 = 0 ; | |
17509 | PyObject * obj8 = 0 ; | |
17510 | char * kwnames[] = { | |
17511 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17512 | }; | |
17513 | ||
17514 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
17515 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17516 | if (!SWIG_IsOK(res1)) { | |
17517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17518 | } | |
17519 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17520 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17521 | if (!SWIG_IsOK(res2)) { | |
17522 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
17523 | } | |
17524 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
17525 | if (obj2) { | |
17526 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17527 | if (!SWIG_IsOK(ecode3)) { | |
17528 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
17529 | } | |
17530 | arg3 = static_cast< int >(val3); | |
17531 | } | |
17532 | if (obj3) { | |
d14a1e28 | 17533 | { |
0085ce49 RD |
17534 | arg4 = wxString_in_helper(obj3); |
17535 | if (arg4 == NULL) SWIG_fail; | |
17536 | temp4 = true; | |
d14a1e28 | 17537 | } |
0085ce49 RD |
17538 | } |
17539 | if (obj4) { | |
d14a1e28 | 17540 | { |
0085ce49 RD |
17541 | arg5 = &temp5; |
17542 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 17543 | } |
0085ce49 RD |
17544 | } |
17545 | if (obj5) { | |
d14a1e28 | 17546 | { |
0085ce49 RD |
17547 | arg6 = &temp6; |
17548 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
17549 | } | |
17550 | } | |
17551 | if (obj6) { | |
17552 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
17553 | if (!SWIG_IsOK(ecode7)) { | |
17554 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
17555 | } | |
17556 | arg7 = static_cast< long >(val7); | |
17557 | } | |
17558 | if (obj7) { | |
17559 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
17560 | if (!SWIG_IsOK(res8)) { | |
17561 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
17562 | } | |
17563 | if (!argp8) { | |
17564 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 17565 | } |
0085ce49 RD |
17566 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
17567 | } | |
17568 | if (obj8) { | |
d14a1e28 | 17569 | { |
0085ce49 RD |
17570 | arg9 = wxString_in_helper(obj8); |
17571 | if (arg9 == NULL) SWIG_fail; | |
17572 | temp9 = true; | |
d14a1e28 | 17573 | } |
0085ce49 RD |
17574 | } |
17575 | { | |
17576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17577 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
17578 | wxPyEndAllowThreads(__tstate); | |
17579 | if (PyErr_Occurred()) SWIG_fail; | |
17580 | } | |
17581 | { | |
17582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17583 | } | |
17584 | { | |
17585 | if (temp4) | |
17586 | delete arg4; | |
17587 | } | |
17588 | { | |
17589 | if (temp9) | |
17590 | delete arg9; | |
17591 | } | |
17592 | return resultobj; | |
17593 | fail: | |
17594 | { | |
17595 | if (temp4) | |
17596 | delete arg4; | |
17597 | } | |
17598 | { | |
17599 | if (temp9) | |
17600 | delete arg9; | |
17601 | } | |
17602 | return NULL; | |
d14a1e28 RD |
17603 | } |
17604 | ||
17605 | ||
0085ce49 RD |
17606 | SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17607 | PyObject *resultobj = 0; | |
17608 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
17609 | bool result; | |
17610 | void *argp1 = 0 ; | |
17611 | int res1 = 0 ; | |
17612 | PyObject *swig_obj[1] ; | |
17613 | ||
17614 | if (!args) SWIG_fail; | |
17615 | swig_obj[0] = args; | |
17616 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17617 | if (!SWIG_IsOK(res1)) { | |
17618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17619 | } | |
17620 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17621 | { | |
17622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17623 | result = (bool)(arg1)->GetValue(); | |
17624 | wxPyEndAllowThreads(__tstate); | |
17625 | if (PyErr_Occurred()) SWIG_fail; | |
17626 | } | |
17627 | { | |
17628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17629 | } | |
17630 | return resultobj; | |
17631 | fail: | |
17632 | return NULL; | |
17633 | } | |
17634 | ||
17635 | ||
17636 | SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17637 | PyObject *resultobj = 0; | |
17638 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
17639 | bool arg2 ; | |
17640 | void *argp1 = 0 ; | |
17641 | int res1 = 0 ; | |
17642 | bool val2 ; | |
17643 | int ecode2 = 0 ; | |
17644 | PyObject * obj0 = 0 ; | |
17645 | PyObject * obj1 = 0 ; | |
17646 | char * kwnames[] = { | |
17647 | (char *) "self",(char *) "value", NULL | |
17648 | }; | |
17649 | ||
17650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
17651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17652 | if (!SWIG_IsOK(res1)) { | |
17653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17654 | } | |
17655 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17656 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
17657 | if (!SWIG_IsOK(ecode2)) { | |
17658 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
17659 | } | |
17660 | arg2 = static_cast< bool >(val2); | |
17661 | { | |
17662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17663 | (arg1)->SetValue(arg2); | |
17664 | wxPyEndAllowThreads(__tstate); | |
17665 | if (PyErr_Occurred()) SWIG_fail; | |
17666 | } | |
17667 | resultobj = SWIG_Py_Void(); | |
17668 | return resultobj; | |
17669 | fail: | |
17670 | return NULL; | |
17671 | } | |
17672 | ||
17673 | ||
17674 | SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17675 | PyObject *resultobj = 0; | |
17676 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
17677 | SwigValueWrapper<wxVisualAttributes > result; | |
17678 | int val1 ; | |
17679 | int ecode1 = 0 ; | |
17680 | PyObject * obj0 = 0 ; | |
17681 | char * kwnames[] = { | |
17682 | (char *) "variant", NULL | |
17683 | }; | |
17684 | ||
17685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
17686 | if (obj0) { | |
17687 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17688 | if (!SWIG_IsOK(ecode1)) { | |
17689 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
17690 | } | |
17691 | arg1 = static_cast< wxWindowVariant >(val1); | |
17692 | } | |
17693 | { | |
17694 | if (!wxPyCheckForApp()) SWIG_fail; | |
17695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17696 | result = wxRadioButton::GetClassDefaultAttributes(arg1); | |
17697 | wxPyEndAllowThreads(__tstate); | |
17698 | if (PyErr_Occurred()) SWIG_fail; | |
17699 | } | |
17700 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
17701 | return resultobj; | |
17702 | fail: | |
17703 | return NULL; | |
d14a1e28 RD |
17704 | } |
17705 | ||
17706 | ||
0085ce49 RD |
17707 | SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17708 | PyObject *obj; | |
17709 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17710 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj)); | |
17711 | return SWIG_Py_Void(); | |
17712 | } | |
17713 | ||
17714 | SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17715 | return SWIG_Python_InitShadowInstance(args); | |
17716 | } | |
17717 | ||
17718 | SWIGINTERN int SliderNameStr_set(PyObject *) { | |
17719 | SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only."); | |
17720 | return 1; | |
17721 | } | |
17722 | ||
17723 | ||
17724 | SWIGINTERN PyObject *SliderNameStr_get(void) { | |
17725 | PyObject *pyobj = 0; | |
17726 | ||
17727 | { | |
17728 | #if wxUSE_UNICODE | |
17729 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
17730 | #else | |
17731 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
17732 | #endif | |
17733 | } | |
17734 | return pyobj; | |
17735 | } | |
17736 | ||
17737 | ||
17738 | SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17739 | PyObject *resultobj = 0; | |
17740 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17741 | int arg2 = (int) -1 ; | |
17742 | int arg3 = (int) 0 ; | |
17743 | int arg4 = (int) 0 ; | |
17744 | int arg5 = (int) 100 ; | |
17745 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
17746 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
17747 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
17748 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
17749 | long arg8 = (long) wxSL_HORIZONTAL ; | |
17750 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
17751 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
17752 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
17753 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
17754 | wxSlider *result = 0 ; | |
17755 | void *argp1 = 0 ; | |
17756 | int res1 = 0 ; | |
17757 | int val2 ; | |
17758 | int ecode2 = 0 ; | |
17759 | int val3 ; | |
17760 | int ecode3 = 0 ; | |
17761 | int val4 ; | |
17762 | int ecode4 = 0 ; | |
17763 | int val5 ; | |
17764 | int ecode5 = 0 ; | |
17765 | wxPoint temp6 ; | |
17766 | wxSize temp7 ; | |
17767 | long val8 ; | |
17768 | int ecode8 = 0 ; | |
17769 | void *argp9 = 0 ; | |
17770 | int res9 = 0 ; | |
17771 | bool temp10 = false ; | |
17772 | PyObject * obj0 = 0 ; | |
17773 | PyObject * obj1 = 0 ; | |
17774 | PyObject * obj2 = 0 ; | |
17775 | PyObject * obj3 = 0 ; | |
17776 | PyObject * obj4 = 0 ; | |
17777 | PyObject * obj5 = 0 ; | |
17778 | PyObject * obj6 = 0 ; | |
17779 | PyObject * obj7 = 0 ; | |
17780 | PyObject * obj8 = 0 ; | |
17781 | PyObject * obj9 = 0 ; | |
17782 | char * kwnames[] = { | |
17783 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17784 | }; | |
17785 | ||
17786 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
17787 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17788 | if (!SWIG_IsOK(res1)) { | |
17789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17790 | } | |
17791 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17792 | if (obj1) { | |
17793 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17794 | if (!SWIG_IsOK(ecode2)) { | |
17795 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'"); | |
17796 | } | |
17797 | arg2 = static_cast< int >(val2); | |
17798 | } | |
17799 | if (obj2) { | |
17800 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17801 | if (!SWIG_IsOK(ecode3)) { | |
17802 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'"); | |
17803 | } | |
17804 | arg3 = static_cast< int >(val3); | |
17805 | } | |
17806 | if (obj3) { | |
17807 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17808 | if (!SWIG_IsOK(ecode4)) { | |
17809 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'"); | |
17810 | } | |
17811 | arg4 = static_cast< int >(val4); | |
17812 | } | |
17813 | if (obj4) { | |
17814 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17815 | if (!SWIG_IsOK(ecode5)) { | |
17816 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'"); | |
17817 | } | |
17818 | arg5 = static_cast< int >(val5); | |
17819 | } | |
17820 | if (obj5) { | |
093d3ff1 | 17821 | { |
0085ce49 RD |
17822 | arg6 = &temp6; |
17823 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
093d3ff1 | 17824 | } |
0085ce49 RD |
17825 | } |
17826 | if (obj6) { | |
093d3ff1 | 17827 | { |
0085ce49 RD |
17828 | arg7 = &temp7; |
17829 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
093d3ff1 | 17830 | } |
0085ce49 RD |
17831 | } |
17832 | if (obj7) { | |
17833 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
17834 | if (!SWIG_IsOK(ecode8)) { | |
17835 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'"); | |
17836 | } | |
17837 | arg8 = static_cast< long >(val8); | |
17838 | } | |
17839 | if (obj8) { | |
17840 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
17841 | if (!SWIG_IsOK(res9)) { | |
17842 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 17843 | } |
0085ce49 RD |
17844 | if (!argp9) { |
17845 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 17846 | } |
0085ce49 RD |
17847 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
17848 | } | |
17849 | if (obj9) { | |
4f89f6a3 | 17850 | { |
0085ce49 RD |
17851 | arg10 = wxString_in_helper(obj9); |
17852 | if (arg10 == NULL) SWIG_fail; | |
17853 | temp10 = true; | |
4f89f6a3 | 17854 | } |
0085ce49 RD |
17855 | } |
17856 | { | |
17857 | if (!wxPyCheckForApp()) SWIG_fail; | |
17858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17859 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
17860 | wxPyEndAllowThreads(__tstate); | |
17861 | if (PyErr_Occurred()) SWIG_fail; | |
17862 | } | |
17863 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 ); | |
17864 | { | |
17865 | if (temp10) | |
17866 | delete arg10; | |
17867 | } | |
17868 | return resultobj; | |
17869 | fail: | |
17870 | { | |
17871 | if (temp10) | |
17872 | delete arg10; | |
17873 | } | |
17874 | return NULL; | |
d14a1e28 RD |
17875 | } |
17876 | ||
17877 | ||
0085ce49 RD |
17878 | SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17879 | PyObject *resultobj = 0; | |
17880 | wxSlider *result = 0 ; | |
17881 | ||
17882 | if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail; | |
17883 | { | |
17884 | if (!wxPyCheckForApp()) SWIG_fail; | |
17885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17886 | result = (wxSlider *)new wxSlider(); | |
17887 | wxPyEndAllowThreads(__tstate); | |
17888 | if (PyErr_Occurred()) SWIG_fail; | |
17889 | } | |
17890 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 ); | |
17891 | return resultobj; | |
17892 | fail: | |
17893 | return NULL; | |
17894 | } | |
17895 | ||
17896 | ||
17897 | SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17898 | PyObject *resultobj = 0; | |
17899 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17900 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17901 | int arg3 = (int) -1 ; | |
17902 | int arg4 = (int) 0 ; | |
17903 | int arg5 = (int) 0 ; | |
17904 | int arg6 = (int) 100 ; | |
17905 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17906 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17907 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
17908 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
17909 | long arg9 = (long) wxSL_HORIZONTAL ; | |
17910 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
17911 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
17912 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
17913 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
17914 | bool result; | |
17915 | void *argp1 = 0 ; | |
17916 | int res1 = 0 ; | |
17917 | void *argp2 = 0 ; | |
17918 | int res2 = 0 ; | |
17919 | int val3 ; | |
17920 | int ecode3 = 0 ; | |
17921 | int val4 ; | |
17922 | int ecode4 = 0 ; | |
17923 | int val5 ; | |
17924 | int ecode5 = 0 ; | |
17925 | int val6 ; | |
17926 | int ecode6 = 0 ; | |
17927 | wxPoint temp7 ; | |
17928 | wxSize temp8 ; | |
17929 | long val9 ; | |
17930 | int ecode9 = 0 ; | |
17931 | void *argp10 = 0 ; | |
17932 | int res10 = 0 ; | |
17933 | bool temp11 = false ; | |
17934 | PyObject * obj0 = 0 ; | |
17935 | PyObject * obj1 = 0 ; | |
17936 | PyObject * obj2 = 0 ; | |
17937 | PyObject * obj3 = 0 ; | |
17938 | PyObject * obj4 = 0 ; | |
17939 | PyObject * obj5 = 0 ; | |
17940 | PyObject * obj6 = 0 ; | |
17941 | PyObject * obj7 = 0 ; | |
17942 | PyObject * obj8 = 0 ; | |
17943 | PyObject * obj9 = 0 ; | |
17944 | PyObject * obj10 = 0 ; | |
17945 | char * kwnames[] = { | |
17946 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17947 | }; | |
17948 | ||
17949 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
17950 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17951 | if (!SWIG_IsOK(res1)) { | |
17952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17953 | } | |
17954 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17955 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17956 | if (!SWIG_IsOK(res2)) { | |
17957 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
17958 | } | |
17959 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
17960 | if (obj2) { | |
17961 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17962 | if (!SWIG_IsOK(ecode3)) { | |
17963 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'"); | |
17964 | } | |
17965 | arg3 = static_cast< int >(val3); | |
17966 | } | |
17967 | if (obj3) { | |
17968 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17969 | if (!SWIG_IsOK(ecode4)) { | |
17970 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'"); | |
17971 | } | |
17972 | arg4 = static_cast< int >(val4); | |
17973 | } | |
17974 | if (obj4) { | |
17975 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17976 | if (!SWIG_IsOK(ecode5)) { | |
17977 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'"); | |
17978 | } | |
17979 | arg5 = static_cast< int >(val5); | |
17980 | } | |
17981 | if (obj5) { | |
17982 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
17983 | if (!SWIG_IsOK(ecode6)) { | |
17984 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'"); | |
17985 | } | |
17986 | arg6 = static_cast< int >(val6); | |
17987 | } | |
17988 | if (obj6) { | |
093d3ff1 | 17989 | { |
0085ce49 RD |
17990 | arg7 = &temp7; |
17991 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
d14a1e28 | 17992 | } |
0085ce49 RD |
17993 | } |
17994 | if (obj7) { | |
d14a1e28 | 17995 | { |
0085ce49 RD |
17996 | arg8 = &temp8; |
17997 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
d14a1e28 | 17998 | } |
0085ce49 RD |
17999 | } |
18000 | if (obj8) { | |
18001 | ecode9 = SWIG_AsVal_long(obj8, &val9); | |
18002 | if (!SWIG_IsOK(ecode9)) { | |
18003 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'"); | |
18004 | } | |
18005 | arg9 = static_cast< long >(val9); | |
18006 | } | |
18007 | if (obj9) { | |
18008 | res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0); | |
18009 | if (!SWIG_IsOK(res10)) { | |
18010 | SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 18011 | } |
0085ce49 RD |
18012 | if (!argp10) { |
18013 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 18014 | } |
0085ce49 RD |
18015 | arg10 = reinterpret_cast< wxValidator * >(argp10); |
18016 | } | |
18017 | if (obj10) { | |
4f89f6a3 | 18018 | { |
0085ce49 RD |
18019 | arg11 = wxString_in_helper(obj10); |
18020 | if (arg11 == NULL) SWIG_fail; | |
18021 | temp11 = true; | |
4f89f6a3 | 18022 | } |
0085ce49 RD |
18023 | } |
18024 | { | |
18025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18026 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
18027 | wxPyEndAllowThreads(__tstate); | |
18028 | if (PyErr_Occurred()) SWIG_fail; | |
18029 | } | |
18030 | { | |
18031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18032 | } | |
18033 | { | |
18034 | if (temp11) | |
18035 | delete arg11; | |
18036 | } | |
18037 | return resultobj; | |
18038 | fail: | |
18039 | { | |
18040 | if (temp11) | |
18041 | delete arg11; | |
18042 | } | |
18043 | return NULL; | |
d14a1e28 RD |
18044 | } |
18045 | ||
18046 | ||
0085ce49 RD |
18047 | SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18048 | PyObject *resultobj = 0; | |
18049 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18050 | int result; | |
18051 | void *argp1 = 0 ; | |
18052 | int res1 = 0 ; | |
18053 | PyObject *swig_obj[1] ; | |
18054 | ||
18055 | if (!args) SWIG_fail; | |
18056 | swig_obj[0] = args; | |
18057 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18058 | if (!SWIG_IsOK(res1)) { | |
18059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18060 | } | |
18061 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18062 | { | |
18063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18064 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
18065 | wxPyEndAllowThreads(__tstate); | |
18066 | if (PyErr_Occurred()) SWIG_fail; | |
18067 | } | |
18068 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18069 | return resultobj; | |
18070 | fail: | |
18071 | return NULL; | |
18072 | } | |
18073 | ||
18074 | ||
18075 | SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18076 | PyObject *resultobj = 0; | |
18077 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18078 | int arg2 ; | |
18079 | void *argp1 = 0 ; | |
18080 | int res1 = 0 ; | |
18081 | int val2 ; | |
18082 | int ecode2 = 0 ; | |
18083 | PyObject * obj0 = 0 ; | |
18084 | PyObject * obj1 = 0 ; | |
18085 | char * kwnames[] = { | |
18086 | (char *) "self",(char *) "value", NULL | |
18087 | }; | |
18088 | ||
18089 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
18090 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18091 | if (!SWIG_IsOK(res1)) { | |
18092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18093 | } | |
18094 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18095 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18096 | if (!SWIG_IsOK(ecode2)) { | |
18097 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
18098 | } | |
18099 | arg2 = static_cast< int >(val2); | |
18100 | { | |
18101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18102 | (arg1)->SetValue(arg2); | |
18103 | wxPyEndAllowThreads(__tstate); | |
18104 | if (PyErr_Occurred()) SWIG_fail; | |
18105 | } | |
18106 | resultobj = SWIG_Py_Void(); | |
18107 | return resultobj; | |
18108 | fail: | |
18109 | return NULL; | |
18110 | } | |
18111 | ||
18112 | ||
18113 | SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18114 | PyObject *resultobj = 0; | |
18115 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18116 | int arg2 ; | |
18117 | int arg3 ; | |
18118 | void *argp1 = 0 ; | |
18119 | int res1 = 0 ; | |
18120 | int val2 ; | |
18121 | int ecode2 = 0 ; | |
18122 | int val3 ; | |
18123 | int ecode3 = 0 ; | |
18124 | PyObject * obj0 = 0 ; | |
18125 | PyObject * obj1 = 0 ; | |
18126 | PyObject * obj2 = 0 ; | |
18127 | char * kwnames[] = { | |
18128 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
18129 | }; | |
18130 | ||
18131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18132 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18133 | if (!SWIG_IsOK(res1)) { | |
18134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18135 | } | |
18136 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18137 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18138 | if (!SWIG_IsOK(ecode2)) { | |
18139 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
18140 | } | |
18141 | arg2 = static_cast< int >(val2); | |
18142 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18143 | if (!SWIG_IsOK(ecode3)) { | |
18144 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
18145 | } | |
18146 | arg3 = static_cast< int >(val3); | |
18147 | { | |
18148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18149 | (arg1)->SetRange(arg2,arg3); | |
18150 | wxPyEndAllowThreads(__tstate); | |
18151 | if (PyErr_Occurred()) SWIG_fail; | |
18152 | } | |
18153 | resultobj = SWIG_Py_Void(); | |
18154 | return resultobj; | |
18155 | fail: | |
18156 | return NULL; | |
d14a1e28 RD |
18157 | } |
18158 | ||
18159 | ||
0085ce49 RD |
18160 | SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18161 | PyObject *resultobj = 0; | |
18162 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18163 | int result; | |
18164 | void *argp1 = 0 ; | |
18165 | int res1 = 0 ; | |
18166 | PyObject *swig_obj[1] ; | |
18167 | ||
18168 | if (!args) SWIG_fail; | |
18169 | swig_obj[0] = args; | |
18170 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18171 | if (!SWIG_IsOK(res1)) { | |
18172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18173 | } | |
18174 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18175 | { | |
18176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18177 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
18178 | wxPyEndAllowThreads(__tstate); | |
18179 | if (PyErr_Occurred()) SWIG_fail; | |
18180 | } | |
18181 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18182 | return resultobj; | |
18183 | fail: | |
18184 | return NULL; | |
d14a1e28 RD |
18185 | } |
18186 | ||
18187 | ||
0085ce49 RD |
18188 | SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18189 | PyObject *resultobj = 0; | |
18190 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18191 | int result; | |
18192 | void *argp1 = 0 ; | |
18193 | int res1 = 0 ; | |
18194 | PyObject *swig_obj[1] ; | |
18195 | ||
18196 | if (!args) SWIG_fail; | |
18197 | swig_obj[0] = args; | |
18198 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18199 | if (!SWIG_IsOK(res1)) { | |
18200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18201 | } | |
18202 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18203 | { | |
18204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18205 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
18206 | wxPyEndAllowThreads(__tstate); | |
18207 | if (PyErr_Occurred()) SWIG_fail; | |
18208 | } | |
18209 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18210 | return resultobj; | |
18211 | fail: | |
18212 | return NULL; | |
18213 | } | |
18214 | ||
18215 | ||
18216 | SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18217 | PyObject *resultobj = 0; | |
18218 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18219 | int arg2 ; | |
18220 | void *argp1 = 0 ; | |
18221 | int res1 = 0 ; | |
18222 | int val2 ; | |
18223 | int ecode2 = 0 ; | |
18224 | PyObject * obj0 = 0 ; | |
18225 | PyObject * obj1 = 0 ; | |
18226 | char * kwnames[] = { | |
18227 | (char *) "self",(char *) "minValue", NULL | |
18228 | }; | |
18229 | ||
18230 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail; | |
18231 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18232 | if (!SWIG_IsOK(res1)) { | |
18233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18234 | } | |
18235 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18236 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18237 | if (!SWIG_IsOK(ecode2)) { | |
18238 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'"); | |
18239 | } | |
18240 | arg2 = static_cast< int >(val2); | |
18241 | { | |
18242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18243 | (arg1)->SetMin(arg2); | |
18244 | wxPyEndAllowThreads(__tstate); | |
18245 | if (PyErr_Occurred()) SWIG_fail; | |
18246 | } | |
18247 | resultobj = SWIG_Py_Void(); | |
18248 | return resultobj; | |
18249 | fail: | |
18250 | return NULL; | |
18251 | } | |
18252 | ||
18253 | ||
18254 | SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18255 | PyObject *resultobj = 0; | |
18256 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18257 | int arg2 ; | |
18258 | void *argp1 = 0 ; | |
18259 | int res1 = 0 ; | |
18260 | int val2 ; | |
18261 | int ecode2 = 0 ; | |
18262 | PyObject * obj0 = 0 ; | |
18263 | PyObject * obj1 = 0 ; | |
18264 | char * kwnames[] = { | |
18265 | (char *) "self",(char *) "maxValue", NULL | |
18266 | }; | |
18267 | ||
18268 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail; | |
18269 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18270 | if (!SWIG_IsOK(res1)) { | |
18271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18272 | } | |
18273 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18274 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18275 | if (!SWIG_IsOK(ecode2)) { | |
18276 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'"); | |
18277 | } | |
18278 | arg2 = static_cast< int >(val2); | |
18279 | { | |
18280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18281 | (arg1)->SetMax(arg2); | |
18282 | wxPyEndAllowThreads(__tstate); | |
18283 | if (PyErr_Occurred()) SWIG_fail; | |
18284 | } | |
18285 | resultobj = SWIG_Py_Void(); | |
18286 | return resultobj; | |
18287 | fail: | |
18288 | return NULL; | |
18289 | } | |
18290 | ||
18291 | ||
18292 | SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18293 | PyObject *resultobj = 0; | |
18294 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18295 | int arg2 ; | |
18296 | void *argp1 = 0 ; | |
18297 | int res1 = 0 ; | |
18298 | int val2 ; | |
18299 | int ecode2 = 0 ; | |
18300 | PyObject * obj0 = 0 ; | |
18301 | PyObject * obj1 = 0 ; | |
18302 | char * kwnames[] = { | |
18303 | (char *) "self",(char *) "lineSize", NULL | |
18304 | }; | |
18305 | ||
18306 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
18307 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18308 | if (!SWIG_IsOK(res1)) { | |
18309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18310 | } | |
18311 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18312 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18313 | if (!SWIG_IsOK(ecode2)) { | |
18314 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'"); | |
18315 | } | |
18316 | arg2 = static_cast< int >(val2); | |
18317 | { | |
18318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18319 | (arg1)->SetLineSize(arg2); | |
18320 | wxPyEndAllowThreads(__tstate); | |
18321 | if (PyErr_Occurred()) SWIG_fail; | |
18322 | } | |
18323 | resultobj = SWIG_Py_Void(); | |
18324 | return resultobj; | |
18325 | fail: | |
18326 | return NULL; | |
18327 | } | |
18328 | ||
18329 | ||
18330 | SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18331 | PyObject *resultobj = 0; | |
18332 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18333 | int arg2 ; | |
18334 | void *argp1 = 0 ; | |
18335 | int res1 = 0 ; | |
18336 | int val2 ; | |
18337 | int ecode2 = 0 ; | |
18338 | PyObject * obj0 = 0 ; | |
18339 | PyObject * obj1 = 0 ; | |
18340 | char * kwnames[] = { | |
18341 | (char *) "self",(char *) "pageSize", NULL | |
18342 | }; | |
18343 | ||
18344 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
18345 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18346 | if (!SWIG_IsOK(res1)) { | |
18347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18348 | } | |
18349 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18350 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18351 | if (!SWIG_IsOK(ecode2)) { | |
18352 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'"); | |
18353 | } | |
18354 | arg2 = static_cast< int >(val2); | |
18355 | { | |
18356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18357 | (arg1)->SetPageSize(arg2); | |
18358 | wxPyEndAllowThreads(__tstate); | |
18359 | if (PyErr_Occurred()) SWIG_fail; | |
18360 | } | |
18361 | resultobj = SWIG_Py_Void(); | |
18362 | return resultobj; | |
18363 | fail: | |
18364 | return NULL; | |
d14a1e28 RD |
18365 | } |
18366 | ||
18367 | ||
0085ce49 RD |
18368 | SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18369 | PyObject *resultobj = 0; | |
18370 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18371 | int result; | |
18372 | void *argp1 = 0 ; | |
18373 | int res1 = 0 ; | |
18374 | PyObject *swig_obj[1] ; | |
18375 | ||
18376 | if (!args) SWIG_fail; | |
18377 | swig_obj[0] = args; | |
18378 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18379 | if (!SWIG_IsOK(res1)) { | |
18380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18381 | } | |
18382 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18383 | { | |
18384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18385 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
18386 | wxPyEndAllowThreads(__tstate); | |
18387 | if (PyErr_Occurred()) SWIG_fail; | |
18388 | } | |
18389 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18390 | return resultobj; | |
18391 | fail: | |
18392 | return NULL; | |
d14a1e28 RD |
18393 | } |
18394 | ||
18395 | ||
0085ce49 RD |
18396 | SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18397 | PyObject *resultobj = 0; | |
18398 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18399 | int result; | |
18400 | void *argp1 = 0 ; | |
18401 | int res1 = 0 ; | |
18402 | PyObject *swig_obj[1] ; | |
18403 | ||
18404 | if (!args) SWIG_fail; | |
18405 | swig_obj[0] = args; | |
18406 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18407 | if (!SWIG_IsOK(res1)) { | |
18408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18409 | } | |
18410 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18411 | { | |
18412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18413 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
18414 | wxPyEndAllowThreads(__tstate); | |
18415 | if (PyErr_Occurred()) SWIG_fail; | |
18416 | } | |
18417 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18418 | return resultobj; | |
18419 | fail: | |
18420 | return NULL; | |
18421 | } | |
18422 | ||
18423 | ||
18424 | SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18425 | PyObject *resultobj = 0; | |
18426 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18427 | int arg2 ; | |
18428 | void *argp1 = 0 ; | |
18429 | int res1 = 0 ; | |
18430 | int val2 ; | |
18431 | int ecode2 = 0 ; | |
18432 | PyObject * obj0 = 0 ; | |
18433 | PyObject * obj1 = 0 ; | |
18434 | char * kwnames[] = { | |
18435 | (char *) "self",(char *) "lenPixels", NULL | |
18436 | }; | |
18437 | ||
18438 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
18439 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18440 | if (!SWIG_IsOK(res1)) { | |
18441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18442 | } | |
18443 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18444 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18445 | if (!SWIG_IsOK(ecode2)) { | |
18446 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'"); | |
18447 | } | |
18448 | arg2 = static_cast< int >(val2); | |
18449 | { | |
18450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18451 | (arg1)->SetThumbLength(arg2); | |
18452 | wxPyEndAllowThreads(__tstate); | |
18453 | if (PyErr_Occurred()) SWIG_fail; | |
18454 | } | |
18455 | resultobj = SWIG_Py_Void(); | |
18456 | return resultobj; | |
18457 | fail: | |
18458 | return NULL; | |
4d5c3d91 RD |
18459 | } |
18460 | ||
18461 | ||
0085ce49 RD |
18462 | SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18463 | PyObject *resultobj = 0; | |
18464 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18465 | int result; | |
18466 | void *argp1 = 0 ; | |
18467 | int res1 = 0 ; | |
18468 | PyObject *swig_obj[1] ; | |
18469 | ||
18470 | if (!args) SWIG_fail; | |
18471 | swig_obj[0] = args; | |
18472 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18473 | if (!SWIG_IsOK(res1)) { | |
18474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18475 | } | |
18476 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18477 | { | |
18478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18479 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
18480 | wxPyEndAllowThreads(__tstate); | |
18481 | if (PyErr_Occurred()) SWIG_fail; | |
18482 | } | |
18483 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18484 | return resultobj; | |
18485 | fail: | |
18486 | return NULL; | |
18487 | } | |
18488 | ||
18489 | ||
18490 | SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18491 | PyObject *resultobj = 0; | |
18492 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18493 | int arg2 ; | |
18494 | int arg3 = (int) 1 ; | |
18495 | void *argp1 = 0 ; | |
18496 | int res1 = 0 ; | |
18497 | int val2 ; | |
18498 | int ecode2 = 0 ; | |
18499 | int val3 ; | |
18500 | int ecode3 = 0 ; | |
18501 | PyObject * obj0 = 0 ; | |
18502 | PyObject * obj1 = 0 ; | |
18503 | PyObject * obj2 = 0 ; | |
18504 | char * kwnames[] = { | |
18505 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
18506 | }; | |
18507 | ||
18508 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18509 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18510 | if (!SWIG_IsOK(res1)) { | |
18511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18512 | } | |
18513 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18514 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18515 | if (!SWIG_IsOK(ecode2)) { | |
18516 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'"); | |
18517 | } | |
18518 | arg2 = static_cast< int >(val2); | |
18519 | if (obj2) { | |
18520 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18521 | if (!SWIG_IsOK(ecode3)) { | |
18522 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'"); | |
18523 | } | |
18524 | arg3 = static_cast< int >(val3); | |
18525 | } | |
18526 | { | |
18527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18528 | (arg1)->SetTickFreq(arg2,arg3); | |
18529 | wxPyEndAllowThreads(__tstate); | |
18530 | if (PyErr_Occurred()) SWIG_fail; | |
18531 | } | |
18532 | resultobj = SWIG_Py_Void(); | |
18533 | return resultobj; | |
18534 | fail: | |
18535 | return NULL; | |
4896ac9e RD |
18536 | } |
18537 | ||
18538 | ||
0085ce49 RD |
18539 | SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18540 | PyObject *resultobj = 0; | |
18541 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18542 | int result; | |
18543 | void *argp1 = 0 ; | |
18544 | int res1 = 0 ; | |
18545 | PyObject *swig_obj[1] ; | |
18546 | ||
18547 | if (!args) SWIG_fail; | |
18548 | swig_obj[0] = args; | |
18549 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18550 | if (!SWIG_IsOK(res1)) { | |
18551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18552 | } | |
18553 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18554 | { | |
18555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18556 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
18557 | wxPyEndAllowThreads(__tstate); | |
18558 | if (PyErr_Occurred()) SWIG_fail; | |
18559 | } | |
18560 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18561 | return resultobj; | |
18562 | fail: | |
18563 | return NULL; | |
d14a1e28 RD |
18564 | } |
18565 | ||
18566 | ||
0085ce49 RD |
18567 | SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18568 | PyObject *resultobj = 0; | |
18569 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18570 | void *argp1 = 0 ; | |
18571 | int res1 = 0 ; | |
18572 | PyObject *swig_obj[1] ; | |
18573 | ||
18574 | if (!args) SWIG_fail; | |
18575 | swig_obj[0] = args; | |
18576 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18577 | if (!SWIG_IsOK(res1)) { | |
18578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18579 | } | |
18580 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18581 | { | |
18582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18583 | (arg1)->ClearTicks(); | |
18584 | wxPyEndAllowThreads(__tstate); | |
18585 | if (PyErr_Occurred()) SWIG_fail; | |
18586 | } | |
18587 | resultobj = SWIG_Py_Void(); | |
18588 | return resultobj; | |
18589 | fail: | |
18590 | return NULL; | |
18591 | } | |
18592 | ||
18593 | ||
18594 | SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18595 | PyObject *resultobj = 0; | |
18596 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18597 | int arg2 ; | |
18598 | void *argp1 = 0 ; | |
18599 | int res1 = 0 ; | |
18600 | int val2 ; | |
18601 | int ecode2 = 0 ; | |
18602 | PyObject * obj0 = 0 ; | |
18603 | PyObject * obj1 = 0 ; | |
18604 | char * kwnames[] = { | |
18605 | (char *) "self",(char *) "tickPos", NULL | |
18606 | }; | |
18607 | ||
18608 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail; | |
18609 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18610 | if (!SWIG_IsOK(res1)) { | |
18611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18612 | } | |
18613 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18614 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18615 | if (!SWIG_IsOK(ecode2)) { | |
18616 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'"); | |
18617 | } | |
18618 | arg2 = static_cast< int >(val2); | |
18619 | { | |
18620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18621 | (arg1)->SetTick(arg2); | |
18622 | wxPyEndAllowThreads(__tstate); | |
18623 | if (PyErr_Occurred()) SWIG_fail; | |
18624 | } | |
18625 | resultobj = SWIG_Py_Void(); | |
18626 | return resultobj; | |
18627 | fail: | |
18628 | return NULL; | |
d14a1e28 RD |
18629 | } |
18630 | ||
18631 | ||
0085ce49 RD |
18632 | SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18633 | PyObject *resultobj = 0; | |
18634 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18635 | void *argp1 = 0 ; | |
18636 | int res1 = 0 ; | |
18637 | PyObject *swig_obj[1] ; | |
18638 | ||
18639 | if (!args) SWIG_fail; | |
18640 | swig_obj[0] = args; | |
18641 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18642 | if (!SWIG_IsOK(res1)) { | |
18643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18644 | } | |
18645 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18646 | { | |
18647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18648 | (arg1)->ClearSel(); | |
18649 | wxPyEndAllowThreads(__tstate); | |
18650 | if (PyErr_Occurred()) SWIG_fail; | |
18651 | } | |
18652 | resultobj = SWIG_Py_Void(); | |
18653 | return resultobj; | |
18654 | fail: | |
18655 | return NULL; | |
d14a1e28 RD |
18656 | } |
18657 | ||
18658 | ||
0085ce49 RD |
18659 | SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18660 | PyObject *resultobj = 0; | |
18661 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18662 | int result; | |
18663 | void *argp1 = 0 ; | |
18664 | int res1 = 0 ; | |
18665 | PyObject *swig_obj[1] ; | |
18666 | ||
18667 | if (!args) SWIG_fail; | |
18668 | swig_obj[0] = args; | |
18669 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18670 | if (!SWIG_IsOK(res1)) { | |
18671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18672 | } | |
18673 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18674 | { | |
18675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18676 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
18677 | wxPyEndAllowThreads(__tstate); | |
18678 | if (PyErr_Occurred()) SWIG_fail; | |
18679 | } | |
18680 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18681 | return resultobj; | |
18682 | fail: | |
18683 | return NULL; | |
d14a1e28 RD |
18684 | } |
18685 | ||
18686 | ||
0085ce49 RD |
18687 | SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18688 | PyObject *resultobj = 0; | |
18689 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18690 | int result; | |
18691 | void *argp1 = 0 ; | |
18692 | int res1 = 0 ; | |
18693 | PyObject *swig_obj[1] ; | |
18694 | ||
18695 | if (!args) SWIG_fail; | |
18696 | swig_obj[0] = args; | |
18697 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18698 | if (!SWIG_IsOK(res1)) { | |
18699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18700 | } | |
18701 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18702 | { | |
18703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18704 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
18705 | wxPyEndAllowThreads(__tstate); | |
18706 | if (PyErr_Occurred()) SWIG_fail; | |
18707 | } | |
18708 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18709 | return resultobj; | |
18710 | fail: | |
18711 | return NULL; | |
18712 | } | |
18713 | ||
18714 | ||
18715 | SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18716 | PyObject *resultobj = 0; | |
18717 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18718 | int arg2 ; | |
18719 | int arg3 ; | |
18720 | void *argp1 = 0 ; | |
18721 | int res1 = 0 ; | |
18722 | int val2 ; | |
18723 | int ecode2 = 0 ; | |
18724 | int val3 ; | |
18725 | int ecode3 = 0 ; | |
18726 | PyObject * obj0 = 0 ; | |
18727 | PyObject * obj1 = 0 ; | |
18728 | PyObject * obj2 = 0 ; | |
18729 | char * kwnames[] = { | |
18730 | (char *) "self",(char *) "min",(char *) "max", NULL | |
18731 | }; | |
18732 | ||
18733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18734 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18735 | if (!SWIG_IsOK(res1)) { | |
18736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18737 | } | |
18738 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18739 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18740 | if (!SWIG_IsOK(ecode2)) { | |
18741 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
18742 | } | |
18743 | arg2 = static_cast< int >(val2); | |
18744 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18745 | if (!SWIG_IsOK(ecode3)) { | |
18746 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'"); | |
18747 | } | |
18748 | arg3 = static_cast< int >(val3); | |
18749 | { | |
18750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18751 | (arg1)->SetSelection(arg2,arg3); | |
18752 | wxPyEndAllowThreads(__tstate); | |
18753 | if (PyErr_Occurred()) SWIG_fail; | |
18754 | } | |
18755 | resultobj = SWIG_Py_Void(); | |
18756 | return resultobj; | |
18757 | fail: | |
18758 | return NULL; | |
18759 | } | |
18760 | ||
18761 | ||
18762 | SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18763 | PyObject *resultobj = 0; | |
18764 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
18765 | SwigValueWrapper<wxVisualAttributes > result; | |
18766 | int val1 ; | |
18767 | int ecode1 = 0 ; | |
18768 | PyObject * obj0 = 0 ; | |
18769 | char * kwnames[] = { | |
18770 | (char *) "variant", NULL | |
18771 | }; | |
18772 | ||
18773 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
18774 | if (obj0) { | |
18775 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18776 | if (!SWIG_IsOK(ecode1)) { | |
18777 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
18778 | } | |
18779 | arg1 = static_cast< wxWindowVariant >(val1); | |
18780 | } | |
18781 | { | |
18782 | if (!wxPyCheckForApp()) SWIG_fail; | |
18783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18784 | result = wxSlider::GetClassDefaultAttributes(arg1); | |
18785 | wxPyEndAllowThreads(__tstate); | |
18786 | if (PyErr_Occurred()) SWIG_fail; | |
18787 | } | |
18788 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
18789 | return resultobj; | |
18790 | fail: | |
18791 | return NULL; | |
d14a1e28 RD |
18792 | } |
18793 | ||
18794 | ||
0085ce49 RD |
18795 | SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18796 | PyObject *obj; | |
18797 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18798 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj)); | |
18799 | return SWIG_Py_Void(); | |
d14a1e28 RD |
18800 | } |
18801 | ||
0085ce49 RD |
18802 | SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18803 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
18804 | } |
18805 | ||
0085ce49 RD |
18806 | SWIGINTERN int ToggleButtonNameStr_set(PyObject *) { |
18807 | SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only."); | |
18808 | return 1; | |
d14a1e28 RD |
18809 | } |
18810 | ||
18811 | ||
0085ce49 RD |
18812 | SWIGINTERN PyObject *ToggleButtonNameStr_get(void) { |
18813 | PyObject *pyobj = 0; | |
18814 | ||
18815 | { | |
18816 | #if wxUSE_UNICODE | |
18817 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
18818 | #else | |
18819 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
18820 | #endif | |
18821 | } | |
18822 | return pyobj; | |
18823 | } | |
18824 | ||
18825 | ||
18826 | SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18827 | PyObject *resultobj = 0; | |
18828 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18829 | int arg2 = (int) -1 ; | |
18830 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
18831 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18832 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
18833 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18834 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18835 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18836 | long arg6 = (long) 0 ; | |
18837 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
18838 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
18839 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
18840 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
18841 | wxToggleButton *result = 0 ; | |
18842 | void *argp1 = 0 ; | |
18843 | int res1 = 0 ; | |
18844 | int val2 ; | |
18845 | int ecode2 = 0 ; | |
18846 | bool temp3 = false ; | |
18847 | wxPoint temp4 ; | |
18848 | wxSize temp5 ; | |
18849 | long val6 ; | |
18850 | int ecode6 = 0 ; | |
18851 | void *argp7 = 0 ; | |
18852 | int res7 = 0 ; | |
18853 | bool temp8 = false ; | |
18854 | PyObject * obj0 = 0 ; | |
18855 | PyObject * obj1 = 0 ; | |
18856 | PyObject * obj2 = 0 ; | |
18857 | PyObject * obj3 = 0 ; | |
18858 | PyObject * obj4 = 0 ; | |
18859 | PyObject * obj5 = 0 ; | |
18860 | PyObject * obj6 = 0 ; | |
18861 | PyObject * obj7 = 0 ; | |
18862 | char * kwnames[] = { | |
18863 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
18864 | }; | |
18865 | ||
18866 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
18867 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18868 | if (!SWIG_IsOK(res1)) { | |
18869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18870 | } | |
18871 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18872 | if (obj1) { | |
18873 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18874 | if (!SWIG_IsOK(ecode2)) { | |
18875 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'"); | |
18876 | } | |
18877 | arg2 = static_cast< int >(val2); | |
18878 | } | |
18879 | if (obj2) { | |
d14a1e28 | 18880 | { |
0085ce49 RD |
18881 | arg3 = wxString_in_helper(obj2); |
18882 | if (arg3 == NULL) SWIG_fail; | |
18883 | temp3 = true; | |
d14a1e28 | 18884 | } |
0085ce49 RD |
18885 | } |
18886 | if (obj3) { | |
4f89f6a3 | 18887 | { |
0085ce49 RD |
18888 | arg4 = &temp4; |
18889 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 18890 | } |
0085ce49 RD |
18891 | } |
18892 | if (obj4) { | |
d14a1e28 | 18893 | { |
0085ce49 RD |
18894 | arg5 = &temp5; |
18895 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 18896 | } |
0085ce49 RD |
18897 | } |
18898 | if (obj5) { | |
18899 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
18900 | if (!SWIG_IsOK(ecode6)) { | |
18901 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'"); | |
18902 | } | |
18903 | arg6 = static_cast< long >(val6); | |
18904 | } | |
18905 | if (obj6) { | |
18906 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
18907 | if (!SWIG_IsOK(res7)) { | |
18908 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
4f89f6a3 | 18909 | } |
0085ce49 RD |
18910 | if (!argp7) { |
18911 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
093d3ff1 | 18912 | } |
0085ce49 RD |
18913 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
18914 | } | |
18915 | if (obj7) { | |
d14a1e28 | 18916 | { |
0085ce49 RD |
18917 | arg8 = wxString_in_helper(obj7); |
18918 | if (arg8 == NULL) SWIG_fail; | |
18919 | temp8 = true; | |
d14a1e28 | 18920 | } |
0085ce49 RD |
18921 | } |
18922 | { | |
18923 | if (!wxPyCheckForApp()) SWIG_fail; | |
18924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18925 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
18926 | wxPyEndAllowThreads(__tstate); | |
18927 | if (PyErr_Occurred()) SWIG_fail; | |
18928 | } | |
18929 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 ); | |
18930 | { | |
18931 | if (temp3) | |
18932 | delete arg3; | |
18933 | } | |
18934 | { | |
18935 | if (temp8) | |
18936 | delete arg8; | |
18937 | } | |
18938 | return resultobj; | |
18939 | fail: | |
18940 | { | |
18941 | if (temp3) | |
18942 | delete arg3; | |
18943 | } | |
18944 | { | |
18945 | if (temp8) | |
18946 | delete arg8; | |
18947 | } | |
18948 | return NULL; | |
d14a1e28 RD |
18949 | } |
18950 | ||
18951 | ||
0085ce49 RD |
18952 | SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18953 | PyObject *resultobj = 0; | |
18954 | wxToggleButton *result = 0 ; | |
18955 | ||
18956 | if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail; | |
18957 | { | |
18958 | if (!wxPyCheckForApp()) SWIG_fail; | |
18959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18960 | result = (wxToggleButton *)new wxToggleButton(); | |
18961 | wxPyEndAllowThreads(__tstate); | |
18962 | if (PyErr_Occurred()) SWIG_fail; | |
18963 | } | |
18964 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 ); | |
18965 | return resultobj; | |
18966 | fail: | |
18967 | return NULL; | |
18968 | } | |
18969 | ||
18970 | ||
18971 | SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18972 | PyObject *resultobj = 0; | |
18973 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
18974 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18975 | int arg3 = (int) -1 ; | |
18976 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18977 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18978 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
18979 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
18980 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
18981 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
18982 | long arg7 = (long) 0 ; | |
18983 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
18984 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
18985 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
18986 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
18987 | bool result; | |
18988 | void *argp1 = 0 ; | |
18989 | int res1 = 0 ; | |
18990 | void *argp2 = 0 ; | |
18991 | int res2 = 0 ; | |
18992 | int val3 ; | |
18993 | int ecode3 = 0 ; | |
18994 | bool temp4 = false ; | |
18995 | wxPoint temp5 ; | |
18996 | wxSize temp6 ; | |
18997 | long val7 ; | |
18998 | int ecode7 = 0 ; | |
18999 | void *argp8 = 0 ; | |
19000 | int res8 = 0 ; | |
19001 | bool temp9 = false ; | |
19002 | PyObject * obj0 = 0 ; | |
19003 | PyObject * obj1 = 0 ; | |
19004 | PyObject * obj2 = 0 ; | |
19005 | PyObject * obj3 = 0 ; | |
19006 | PyObject * obj4 = 0 ; | |
19007 | PyObject * obj5 = 0 ; | |
19008 | PyObject * obj6 = 0 ; | |
19009 | PyObject * obj7 = 0 ; | |
19010 | PyObject * obj8 = 0 ; | |
19011 | char * kwnames[] = { | |
19012 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19013 | }; | |
19014 | ||
19015 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
19016 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
19017 | if (!SWIG_IsOK(res1)) { | |
19018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'"); | |
19019 | } | |
19020 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
19021 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19022 | if (!SWIG_IsOK(res2)) { | |
19023 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
19024 | } | |
19025 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
19026 | if (obj2) { | |
19027 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19028 | if (!SWIG_IsOK(ecode3)) { | |
19029 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
19030 | } | |
19031 | arg3 = static_cast< int >(val3); | |
19032 | } | |
19033 | if (obj3) { | |
d14a1e28 | 19034 | { |
0085ce49 RD |
19035 | arg4 = wxString_in_helper(obj3); |
19036 | if (arg4 == NULL) SWIG_fail; | |
19037 | temp4 = true; | |
d14a1e28 | 19038 | } |
0085ce49 RD |
19039 | } |
19040 | if (obj4) { | |
d14a1e28 | 19041 | { |
0085ce49 RD |
19042 | arg5 = &temp5; |
19043 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 19044 | } |
0085ce49 RD |
19045 | } |
19046 | if (obj5) { | |
093d3ff1 | 19047 | { |
0085ce49 RD |
19048 | arg6 = &temp6; |
19049 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
093d3ff1 | 19050 | } |
0085ce49 RD |
19051 | } |
19052 | if (obj6) { | |
19053 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
19054 | if (!SWIG_IsOK(ecode7)) { | |
19055 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
19056 | } | |
19057 | arg7 = static_cast< long >(val7); | |
19058 | } | |
19059 | if (obj7) { | |
19060 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
19061 | if (!SWIG_IsOK(res8)) { | |
19062 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
19063 | } | |
19064 | if (!argp8) { | |
19065 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 19066 | } |
0085ce49 RD |
19067 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
19068 | } | |
19069 | if (obj8) { | |
093d3ff1 | 19070 | { |
0085ce49 RD |
19071 | arg9 = wxString_in_helper(obj8); |
19072 | if (arg9 == NULL) SWIG_fail; | |
19073 | temp9 = true; | |
093d3ff1 | 19074 | } |
0085ce49 RD |
19075 | } |
19076 | { | |
19077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19078 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
19079 | wxPyEndAllowThreads(__tstate); | |
19080 | if (PyErr_Occurred()) SWIG_fail; | |
19081 | } | |
19082 | { | |
19083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19084 | } | |
19085 | { | |
19086 | if (temp4) | |
19087 | delete arg4; | |
19088 | } | |
19089 | { | |
19090 | if (temp9) | |
19091 | delete arg9; | |
19092 | } | |
19093 | return resultobj; | |
19094 | fail: | |
19095 | { | |
19096 | if (temp4) | |
19097 | delete arg4; | |
19098 | } | |
19099 | { | |
19100 | if (temp9) | |
19101 | delete arg9; | |
19102 | } | |
19103 | return NULL; | |
19104 | } | |
19105 | ||
19106 | ||
19107 | SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19108 | PyObject *resultobj = 0; | |
19109 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
19110 | bool arg2 ; | |
19111 | void *argp1 = 0 ; | |
19112 | int res1 = 0 ; | |
19113 | bool val2 ; | |
19114 | int ecode2 = 0 ; | |
19115 | PyObject * obj0 = 0 ; | |
19116 | PyObject * obj1 = 0 ; | |
19117 | char * kwnames[] = { | |
19118 | (char *) "self",(char *) "value", NULL | |
19119 | }; | |
19120 | ||
19121 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
19122 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
19123 | if (!SWIG_IsOK(res1)) { | |
19124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'"); | |
19125 | } | |
19126 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
19127 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19128 | if (!SWIG_IsOK(ecode2)) { | |
19129 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
19130 | } | |
19131 | arg2 = static_cast< bool >(val2); | |
19132 | { | |
19133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19134 | (arg1)->SetValue(arg2); | |
19135 | wxPyEndAllowThreads(__tstate); | |
19136 | if (PyErr_Occurred()) SWIG_fail; | |
19137 | } | |
19138 | resultobj = SWIG_Py_Void(); | |
19139 | return resultobj; | |
19140 | fail: | |
19141 | return NULL; | |
d14a1e28 RD |
19142 | } |
19143 | ||
19144 | ||
0085ce49 RD |
19145 | SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19146 | PyObject *resultobj = 0; | |
19147 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
19148 | bool result; | |
19149 | void *argp1 = 0 ; | |
19150 | int res1 = 0 ; | |
19151 | PyObject *swig_obj[1] ; | |
19152 | ||
19153 | if (!args) SWIG_fail; | |
19154 | swig_obj[0] = args; | |
19155 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
19156 | if (!SWIG_IsOK(res1)) { | |
19157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'"); | |
19158 | } | |
19159 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
19160 | { | |
19161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19162 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
19163 | wxPyEndAllowThreads(__tstate); | |
19164 | if (PyErr_Occurred()) SWIG_fail; | |
19165 | } | |
19166 | { | |
19167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19168 | } | |
19169 | return resultobj; | |
19170 | fail: | |
19171 | return NULL; | |
d14a1e28 RD |
19172 | } |
19173 | ||
19174 | ||
0085ce49 RD |
19175 | SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19176 | PyObject *resultobj = 0; | |
19177 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
19178 | SwigValueWrapper<wxVisualAttributes > result; | |
19179 | int val1 ; | |
19180 | int ecode1 = 0 ; | |
19181 | PyObject * obj0 = 0 ; | |
19182 | char * kwnames[] = { | |
19183 | (char *) "variant", NULL | |
19184 | }; | |
19185 | ||
19186 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
19187 | if (obj0) { | |
19188 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19189 | if (!SWIG_IsOK(ecode1)) { | |
19190 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
19191 | } | |
19192 | arg1 = static_cast< wxWindowVariant >(val1); | |
19193 | } | |
19194 | { | |
19195 | if (!wxPyCheckForApp()) SWIG_fail; | |
19196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19197 | result = wxToggleButton::GetClassDefaultAttributes(arg1); | |
19198 | wxPyEndAllowThreads(__tstate); | |
19199 | if (PyErr_Occurred()) SWIG_fail; | |
19200 | } | |
19201 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
19202 | return resultobj; | |
19203 | fail: | |
19204 | return NULL; | |
d14a1e28 RD |
19205 | } |
19206 | ||
19207 | ||
0085ce49 RD |
19208 | SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19209 | PyObject *obj; | |
19210 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19211 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj)); | |
19212 | return SWIG_Py_Void(); | |
d14a1e28 RD |
19213 | } |
19214 | ||
0085ce49 RD |
19215 | SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19216 | return SWIG_Python_InitShadowInstance(args); | |
19217 | } | |
d14a1e28 | 19218 | |
0085ce49 RD |
19219 | SWIGINTERN int NotebookNameStr_set(PyObject *) { |
19220 | SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only."); | |
19221 | return 1; | |
d14a1e28 RD |
19222 | } |
19223 | ||
19224 | ||
0085ce49 RD |
19225 | SWIGINTERN PyObject *NotebookNameStr_get(void) { |
19226 | PyObject *pyobj = 0; | |
19227 | ||
19228 | { | |
d14a1e28 | 19229 | #if wxUSE_UNICODE |
0085ce49 | 19230 | pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
d14a1e28 | 19231 | #else |
0085ce49 | 19232 | pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
d14a1e28 | 19233 | #endif |
0085ce49 RD |
19234 | } |
19235 | return pyobj; | |
d14a1e28 RD |
19236 | } |
19237 | ||
19238 | ||
0085ce49 RD |
19239 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19240 | PyObject *resultobj = 0; | |
19241 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19242 | size_t result; | |
19243 | void *argp1 = 0 ; | |
19244 | int res1 = 0 ; | |
19245 | PyObject *swig_obj[1] ; | |
19246 | ||
19247 | if (!args) SWIG_fail; | |
19248 | swig_obj[0] = args; | |
19249 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19250 | if (!SWIG_IsOK(res1)) { | |
19251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19252 | } | |
19253 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19254 | { | |
19255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19256 | result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount(); | |
19257 | wxPyEndAllowThreads(__tstate); | |
19258 | if (PyErr_Occurred()) SWIG_fail; | |
19259 | } | |
19260 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
19261 | return resultobj; | |
19262 | fail: | |
19263 | return NULL; | |
19264 | } | |
19265 | ||
19266 | ||
19267 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19268 | PyObject *resultobj = 0; | |
19269 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19270 | size_t arg2 ; | |
19271 | wxWindow *result = 0 ; | |
19272 | void *argp1 = 0 ; | |
19273 | int res1 = 0 ; | |
19274 | size_t val2 ; | |
19275 | int ecode2 = 0 ; | |
19276 | PyObject * obj0 = 0 ; | |
19277 | PyObject * obj1 = 0 ; | |
19278 | char * kwnames[] = { | |
19279 | (char *) "self",(char *) "n", NULL | |
19280 | }; | |
19281 | ||
19282 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19283 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19284 | if (!SWIG_IsOK(res1)) { | |
19285 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19286 | } | |
19287 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19288 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19289 | if (!SWIG_IsOK(ecode2)) { | |
19290 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'"); | |
19291 | } | |
19292 | arg2 = static_cast< size_t >(val2); | |
19293 | { | |
19294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19295 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
19296 | wxPyEndAllowThreads(__tstate); | |
19297 | if (PyErr_Occurred()) SWIG_fail; | |
19298 | } | |
19299 | { | |
19300 | resultobj = wxPyMake_wxObject(result, 0); | |
19301 | } | |
19302 | return resultobj; | |
19303 | fail: | |
19304 | return NULL; | |
22bfe96c RD |
19305 | } |
19306 | ||
19307 | ||
0085ce49 RD |
19308 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19309 | PyObject *resultobj = 0; | |
19310 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19311 | wxWindow *result = 0 ; | |
19312 | void *argp1 = 0 ; | |
19313 | int res1 = 0 ; | |
19314 | PyObject *swig_obj[1] ; | |
19315 | ||
19316 | if (!args) SWIG_fail; | |
19317 | swig_obj[0] = args; | |
19318 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19319 | if (!SWIG_IsOK(res1)) { | |
19320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19321 | } | |
19322 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19323 | { | |
19324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19325 | result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage(); | |
19326 | wxPyEndAllowThreads(__tstate); | |
19327 | if (PyErr_Occurred()) SWIG_fail; | |
19328 | } | |
19329 | { | |
19330 | resultobj = wxPyMake_wxObject(result, 0); | |
19331 | } | |
19332 | return resultobj; | |
19333 | fail: | |
19334 | return NULL; | |
d14a1e28 RD |
19335 | } |
19336 | ||
19337 | ||
0085ce49 RD |
19338 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19339 | PyObject *resultobj = 0; | |
19340 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19341 | int result; | |
19342 | void *argp1 = 0 ; | |
19343 | int res1 = 0 ; | |
19344 | PyObject *swig_obj[1] ; | |
19345 | ||
19346 | if (!args) SWIG_fail; | |
19347 | swig_obj[0] = args; | |
19348 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19349 | if (!SWIG_IsOK(res1)) { | |
19350 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19351 | } | |
19352 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19353 | { | |
19354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19355 | result = (int)((wxBookCtrlBase const *)arg1)->GetSelection(); | |
19356 | wxPyEndAllowThreads(__tstate); | |
19357 | if (PyErr_Occurred()) SWIG_fail; | |
19358 | } | |
19359 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19360 | return resultobj; | |
19361 | fail: | |
19362 | return NULL; | |
19363 | } | |
19364 | ||
19365 | ||
19366 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19367 | PyObject *resultobj = 0; | |
19368 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19369 | size_t arg2 ; | |
19370 | wxString *arg3 = 0 ; | |
19371 | bool result; | |
19372 | void *argp1 = 0 ; | |
19373 | int res1 = 0 ; | |
19374 | size_t val2 ; | |
19375 | int ecode2 = 0 ; | |
19376 | bool temp3 = false ; | |
19377 | PyObject * obj0 = 0 ; | |
19378 | PyObject * obj1 = 0 ; | |
19379 | PyObject * obj2 = 0 ; | |
19380 | char * kwnames[] = { | |
19381 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
19382 | }; | |
19383 | ||
19384 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19385 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19386 | if (!SWIG_IsOK(res1)) { | |
19387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19388 | } | |
19389 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19390 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19391 | if (!SWIG_IsOK(ecode2)) { | |
19392 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'"); | |
19393 | } | |
19394 | arg2 = static_cast< size_t >(val2); | |
19395 | { | |
19396 | arg3 = wxString_in_helper(obj2); | |
19397 | if (arg3 == NULL) SWIG_fail; | |
19398 | temp3 = true; | |
19399 | } | |
19400 | { | |
19401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19402 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
19403 | wxPyEndAllowThreads(__tstate); | |
19404 | if (PyErr_Occurred()) SWIG_fail; | |
19405 | } | |
19406 | { | |
19407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19408 | } | |
19409 | { | |
19410 | if (temp3) | |
19411 | delete arg3; | |
19412 | } | |
19413 | return resultobj; | |
19414 | fail: | |
19415 | { | |
19416 | if (temp3) | |
19417 | delete arg3; | |
19418 | } | |
19419 | return NULL; | |
19420 | } | |
19421 | ||
19422 | ||
19423 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19424 | PyObject *resultobj = 0; | |
19425 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19426 | size_t arg2 ; | |
19427 | wxString result; | |
19428 | void *argp1 = 0 ; | |
19429 | int res1 = 0 ; | |
19430 | size_t val2 ; | |
19431 | int ecode2 = 0 ; | |
19432 | PyObject * obj0 = 0 ; | |
19433 | PyObject * obj1 = 0 ; | |
19434 | char * kwnames[] = { | |
19435 | (char *) "self",(char *) "n", NULL | |
19436 | }; | |
19437 | ||
19438 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail; | |
19439 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19440 | if (!SWIG_IsOK(res1)) { | |
19441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19442 | } | |
19443 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19444 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19445 | if (!SWIG_IsOK(ecode2)) { | |
19446 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'"); | |
19447 | } | |
19448 | arg2 = static_cast< size_t >(val2); | |
19449 | { | |
19450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19451 | result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2); | |
19452 | wxPyEndAllowThreads(__tstate); | |
19453 | if (PyErr_Occurred()) SWIG_fail; | |
19454 | } | |
19455 | { | |
19456 | #if wxUSE_UNICODE | |
19457 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19458 | #else | |
19459 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19460 | #endif | |
19461 | } | |
19462 | return resultobj; | |
19463 | fail: | |
19464 | return NULL; | |
19465 | } | |
19466 | ||
19467 | ||
19468 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19469 | PyObject *resultobj = 0; | |
19470 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19471 | wxImageList *arg2 = (wxImageList *) 0 ; | |
19472 | void *argp1 = 0 ; | |
19473 | int res1 = 0 ; | |
19474 | void *argp2 = 0 ; | |
19475 | int res2 = 0 ; | |
19476 | PyObject * obj0 = 0 ; | |
19477 | PyObject * obj1 = 0 ; | |
19478 | char * kwnames[] = { | |
19479 | (char *) "self",(char *) "imageList", NULL | |
19480 | }; | |
19481 | ||
19482 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
19483 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19484 | if (!SWIG_IsOK(res1)) { | |
19485 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19486 | } | |
19487 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19488 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
19489 | if (!SWIG_IsOK(res2)) { | |
19490 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
19491 | } | |
19492 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
19493 | { | |
19494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19495 | (arg1)->SetImageList(arg2); | |
19496 | wxPyEndAllowThreads(__tstate); | |
19497 | if (PyErr_Occurred()) SWIG_fail; | |
19498 | } | |
19499 | resultobj = SWIG_Py_Void(); | |
19500 | return resultobj; | |
19501 | fail: | |
19502 | return NULL; | |
19503 | } | |
19504 | ||
19505 | ||
19506 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19507 | PyObject *resultobj = 0; | |
19508 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19509 | wxImageList *arg2 = (wxImageList *) 0 ; | |
19510 | void *argp1 = 0 ; | |
19511 | int res1 = 0 ; | |
19512 | int res2 = 0 ; | |
19513 | PyObject * obj0 = 0 ; | |
19514 | PyObject * obj1 = 0 ; | |
19515 | char * kwnames[] = { | |
19516 | (char *) "self",(char *) "imageList", NULL | |
19517 | }; | |
19518 | ||
19519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
19520 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19521 | if (!SWIG_IsOK(res1)) { | |
19522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19523 | } | |
19524 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19525 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
19526 | if (!SWIG_IsOK(res2)) { | |
19527 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
19528 | } | |
19529 | { | |
19530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19531 | (arg1)->AssignImageList(arg2); | |
19532 | wxPyEndAllowThreads(__tstate); | |
19533 | if (PyErr_Occurred()) SWIG_fail; | |
19534 | } | |
19535 | resultobj = SWIG_Py_Void(); | |
19536 | return resultobj; | |
19537 | fail: | |
19538 | return NULL; | |
d14a1e28 RD |
19539 | } |
19540 | ||
19541 | ||
0085ce49 RD |
19542 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19543 | PyObject *resultobj = 0; | |
19544 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19545 | wxImageList *result = 0 ; | |
19546 | void *argp1 = 0 ; | |
19547 | int res1 = 0 ; | |
19548 | PyObject *swig_obj[1] ; | |
19549 | ||
19550 | if (!args) SWIG_fail; | |
19551 | swig_obj[0] = args; | |
19552 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19553 | if (!SWIG_IsOK(res1)) { | |
19554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19555 | } | |
19556 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19557 | { | |
19558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19559 | result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList(); | |
19560 | wxPyEndAllowThreads(__tstate); | |
19561 | if (PyErr_Occurred()) SWIG_fail; | |
19562 | } | |
3ecece7e RD |
19563 | { |
19564 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
19565 | } | |
0085ce49 RD |
19566 | return resultobj; |
19567 | fail: | |
19568 | return NULL; | |
19569 | } | |
19570 | ||
19571 | ||
19572 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19573 | PyObject *resultobj = 0; | |
19574 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19575 | size_t arg2 ; | |
19576 | int result; | |
19577 | void *argp1 = 0 ; | |
19578 | int res1 = 0 ; | |
19579 | size_t val2 ; | |
19580 | int ecode2 = 0 ; | |
19581 | PyObject * obj0 = 0 ; | |
19582 | PyObject * obj1 = 0 ; | |
19583 | char * kwnames[] = { | |
19584 | (char *) "self",(char *) "n", NULL | |
19585 | }; | |
19586 | ||
19587 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19588 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19589 | if (!SWIG_IsOK(res1)) { | |
19590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19591 | } | |
19592 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19593 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19594 | if (!SWIG_IsOK(ecode2)) { | |
19595 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'"); | |
19596 | } | |
19597 | arg2 = static_cast< size_t >(val2); | |
19598 | { | |
19599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19600 | result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2); | |
19601 | wxPyEndAllowThreads(__tstate); | |
19602 | if (PyErr_Occurred()) SWIG_fail; | |
19603 | } | |
19604 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19605 | return resultobj; | |
19606 | fail: | |
19607 | return NULL; | |
19608 | } | |
19609 | ||
19610 | ||
19611 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19612 | PyObject *resultobj = 0; | |
19613 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19614 | size_t arg2 ; | |
19615 | int arg3 ; | |
19616 | bool result; | |
19617 | void *argp1 = 0 ; | |
19618 | int res1 = 0 ; | |
19619 | size_t val2 ; | |
19620 | int ecode2 = 0 ; | |
19621 | int val3 ; | |
19622 | int ecode3 = 0 ; | |
19623 | PyObject * obj0 = 0 ; | |
19624 | PyObject * obj1 = 0 ; | |
19625 | PyObject * obj2 = 0 ; | |
19626 | char * kwnames[] = { | |
19627 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
19628 | }; | |
19629 | ||
19630 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19631 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19632 | if (!SWIG_IsOK(res1)) { | |
19633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19634 | } | |
19635 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19636 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19637 | if (!SWIG_IsOK(ecode2)) { | |
19638 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'"); | |
19639 | } | |
19640 | arg2 = static_cast< size_t >(val2); | |
19641 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19642 | if (!SWIG_IsOK(ecode3)) { | |
19643 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'"); | |
19644 | } | |
19645 | arg3 = static_cast< int >(val3); | |
19646 | { | |
19647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19648 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
19649 | wxPyEndAllowThreads(__tstate); | |
19650 | if (PyErr_Occurred()) SWIG_fail; | |
19651 | } | |
19652 | { | |
19653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19654 | } | |
19655 | return resultobj; | |
19656 | fail: | |
19657 | return NULL; | |
19658 | } | |
19659 | ||
19660 | ||
19661 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19662 | PyObject *resultobj = 0; | |
19663 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19664 | wxSize *arg2 = 0 ; | |
19665 | void *argp1 = 0 ; | |
19666 | int res1 = 0 ; | |
19667 | wxSize temp2 ; | |
19668 | PyObject * obj0 = 0 ; | |
19669 | PyObject * obj1 = 0 ; | |
19670 | char * kwnames[] = { | |
19671 | (char *) "self",(char *) "size", NULL | |
19672 | }; | |
19673 | ||
19674 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
19675 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19676 | if (!SWIG_IsOK(res1)) { | |
19677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19678 | } | |
19679 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19680 | { | |
19681 | arg2 = &temp2; | |
19682 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19683 | } | |
19684 | { | |
19685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19686 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
19687 | wxPyEndAllowThreads(__tstate); | |
19688 | if (PyErr_Occurred()) SWIG_fail; | |
19689 | } | |
19690 | resultobj = SWIG_Py_Void(); | |
19691 | return resultobj; | |
19692 | fail: | |
19693 | return NULL; | |
19694 | } | |
19695 | ||
19696 | ||
19697 | SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19698 | PyObject *resultobj = 0; | |
19699 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19700 | wxSize *arg2 = 0 ; | |
19701 | wxSize result; | |
19702 | void *argp1 = 0 ; | |
19703 | int res1 = 0 ; | |
19704 | wxSize temp2 ; | |
19705 | PyObject * obj0 = 0 ; | |
19706 | PyObject * obj1 = 0 ; | |
19707 | char * kwnames[] = { | |
19708 | (char *) "self",(char *) "sizePage", NULL | |
19709 | }; | |
19710 | ||
19711 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19712 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19713 | if (!SWIG_IsOK(res1)) { | |
19714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19715 | } | |
19716 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19717 | { | |
19718 | arg2 = &temp2; | |
19719 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19720 | } | |
19721 | { | |
19722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19723 | result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
19724 | wxPyEndAllowThreads(__tstate); | |
19725 | if (PyErr_Occurred()) SWIG_fail; | |
19726 | } | |
19727 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
19728 | return resultobj; | |
19729 | fail: | |
19730 | return NULL; | |
d14a1e28 RD |
19731 | } |
19732 | ||
19733 | ||
0085ce49 RD |
19734 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19735 | PyObject *resultobj = 0; | |
19736 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
e9d6f3a4 | 19737 | unsigned int result; |
0085ce49 RD |
19738 | void *argp1 = 0 ; |
19739 | int res1 = 0 ; | |
19740 | PyObject *swig_obj[1] ; | |
19741 | ||
19742 | if (!args) SWIG_fail; | |
19743 | swig_obj[0] = args; | |
19744 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19745 | if (!SWIG_IsOK(res1)) { | |
19746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19747 | } | |
19748 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19749 | { | |
19750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e9d6f3a4 | 19751 | result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder(); |
0085ce49 RD |
19752 | wxPyEndAllowThreads(__tstate); |
19753 | if (PyErr_Occurred()) SWIG_fail; | |
19754 | } | |
e9d6f3a4 | 19755 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
0085ce49 RD |
19756 | return resultobj; |
19757 | fail: | |
19758 | return NULL; | |
19759 | } | |
19760 | ||
19761 | ||
19762 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19763 | PyObject *resultobj = 0; | |
19764 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
e9d6f3a4 | 19765 | unsigned int arg2 ; |
0085ce49 RD |
19766 | void *argp1 = 0 ; |
19767 | int res1 = 0 ; | |
e9d6f3a4 | 19768 | unsigned int val2 ; |
0085ce49 RD |
19769 | int ecode2 = 0 ; |
19770 | PyObject * obj0 = 0 ; | |
19771 | PyObject * obj1 = 0 ; | |
19772 | char * kwnames[] = { | |
19773 | (char *) "self",(char *) "internalBorder", NULL | |
19774 | }; | |
19775 | ||
19776 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail; | |
19777 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19778 | if (!SWIG_IsOK(res1)) { | |
19779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19780 | } | |
19781 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
e9d6f3a4 | 19782 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
0085ce49 | 19783 | if (!SWIG_IsOK(ecode2)) { |
e9d6f3a4 | 19784 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'"); |
0085ce49 | 19785 | } |
e9d6f3a4 | 19786 | arg2 = static_cast< unsigned int >(val2); |
0085ce49 RD |
19787 | { |
19788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19789 | (arg1)->SetInternalBorder(arg2); | |
19790 | wxPyEndAllowThreads(__tstate); | |
19791 | if (PyErr_Occurred()) SWIG_fail; | |
19792 | } | |
19793 | resultobj = SWIG_Py_Void(); | |
19794 | return resultobj; | |
19795 | fail: | |
19796 | return NULL; | |
b2dc1044 RD |
19797 | } |
19798 | ||
19799 | ||
0085ce49 RD |
19800 | SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19801 | PyObject *resultobj = 0; | |
19802 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19803 | bool result; | |
19804 | void *argp1 = 0 ; | |
19805 | int res1 = 0 ; | |
19806 | PyObject *swig_obj[1] ; | |
19807 | ||
19808 | if (!args) SWIG_fail; | |
19809 | swig_obj[0] = args; | |
19810 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19811 | if (!SWIG_IsOK(res1)) { | |
19812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19813 | } | |
19814 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19815 | { | |
19816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19817 | result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical(); | |
19818 | wxPyEndAllowThreads(__tstate); | |
19819 | if (PyErr_Occurred()) SWIG_fail; | |
19820 | } | |
19821 | { | |
19822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19823 | } | |
19824 | return resultobj; | |
19825 | fail: | |
19826 | return NULL; | |
19827 | } | |
19828 | ||
19829 | ||
e9d6f3a4 RD |
19830 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19831 | PyObject *resultobj = 0; | |
19832 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19833 | int arg2 ; | |
19834 | void *argp1 = 0 ; | |
19835 | int res1 = 0 ; | |
19836 | int val2 ; | |
19837 | int ecode2 = 0 ; | |
19838 | PyObject * obj0 = 0 ; | |
19839 | PyObject * obj1 = 0 ; | |
19840 | char * kwnames[] = { | |
19841 | (char *) "self",(char *) "margin", NULL | |
19842 | }; | |
19843 | ||
19844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail; | |
19845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19846 | if (!SWIG_IsOK(res1)) { | |
19847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19848 | } | |
19849 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19850 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19851 | if (!SWIG_IsOK(ecode2)) { | |
19852 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'"); | |
19853 | } | |
19854 | arg2 = static_cast< int >(val2); | |
19855 | { | |
19856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19857 | (arg1)->SetControlMargin(arg2); | |
19858 | wxPyEndAllowThreads(__tstate); | |
19859 | if (PyErr_Occurred()) SWIG_fail; | |
19860 | } | |
19861 | resultobj = SWIG_Py_Void(); | |
19862 | return resultobj; | |
19863 | fail: | |
19864 | return NULL; | |
19865 | } | |
19866 | ||
19867 | ||
19868 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19869 | PyObject *resultobj = 0; | |
19870 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19871 | int result; | |
19872 | void *argp1 = 0 ; | |
19873 | int res1 = 0 ; | |
19874 | PyObject *swig_obj[1] ; | |
19875 | ||
19876 | if (!args) SWIG_fail; | |
19877 | swig_obj[0] = args; | |
19878 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19879 | if (!SWIG_IsOK(res1)) { | |
19880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19881 | } | |
19882 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19883 | { | |
19884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19885 | result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin(); | |
19886 | wxPyEndAllowThreads(__tstate); | |
19887 | if (PyErr_Occurred()) SWIG_fail; | |
19888 | } | |
19889 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19890 | return resultobj; | |
19891 | fail: | |
19892 | return NULL; | |
19893 | } | |
19894 | ||
19895 | ||
0085ce49 RD |
19896 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19897 | PyObject *resultobj = 0; | |
19898 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19899 | bool arg2 ; | |
19900 | void *argp1 = 0 ; | |
19901 | int res1 = 0 ; | |
19902 | bool val2 ; | |
19903 | int ecode2 = 0 ; | |
19904 | PyObject * obj0 = 0 ; | |
19905 | PyObject * obj1 = 0 ; | |
19906 | char * kwnames[] = { | |
19907 | (char *) "self",(char *) "fit", NULL | |
19908 | }; | |
19909 | ||
19910 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19911 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19912 | if (!SWIG_IsOK(res1)) { | |
19913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19914 | } | |
19915 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19916 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19917 | if (!SWIG_IsOK(ecode2)) { | |
19918 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'"); | |
19919 | } | |
19920 | arg2 = static_cast< bool >(val2); | |
19921 | { | |
19922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19923 | (arg1)->SetFitToCurrentPage(arg2); | |
19924 | wxPyEndAllowThreads(__tstate); | |
19925 | if (PyErr_Occurred()) SWIG_fail; | |
19926 | } | |
19927 | resultobj = SWIG_Py_Void(); | |
19928 | return resultobj; | |
19929 | fail: | |
19930 | return NULL; | |
d14a1e28 RD |
19931 | } |
19932 | ||
19933 | ||
0085ce49 RD |
19934 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19935 | PyObject *resultobj = 0; | |
19936 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19937 | bool result; | |
19938 | void *argp1 = 0 ; | |
19939 | int res1 = 0 ; | |
19940 | PyObject *swig_obj[1] ; | |
19941 | ||
19942 | if (!args) SWIG_fail; | |
19943 | swig_obj[0] = args; | |
19944 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19945 | if (!SWIG_IsOK(res1)) { | |
19946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19947 | } | |
19948 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19949 | { | |
19950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19951 | result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage(); | |
19952 | wxPyEndAllowThreads(__tstate); | |
19953 | if (PyErr_Occurred()) SWIG_fail; | |
19954 | } | |
19955 | { | |
19956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19957 | } | |
19958 | return resultobj; | |
19959 | fail: | |
19960 | return NULL; | |
19961 | } | |
19962 | ||
19963 | ||
e9d6f3a4 RD |
19964 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19965 | PyObject *resultobj = 0; | |
19966 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19967 | wxSizer *result = 0 ; | |
19968 | void *argp1 = 0 ; | |
19969 | int res1 = 0 ; | |
19970 | PyObject *swig_obj[1] ; | |
19971 | ||
19972 | if (!args) SWIG_fail; | |
19973 | swig_obj[0] = args; | |
19974 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19975 | if (!SWIG_IsOK(res1)) { | |
19976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19977 | } | |
19978 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19979 | { | |
19980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19981 | result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer(); | |
19982 | wxPyEndAllowThreads(__tstate); | |
19983 | if (PyErr_Occurred()) SWIG_fail; | |
19984 | } | |
19985 | { | |
19986 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
19987 | } | |
19988 | return resultobj; | |
19989 | fail: | |
19990 | return NULL; | |
19991 | } | |
19992 | ||
19993 | ||
0085ce49 RD |
19994 | SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19995 | PyObject *resultobj = 0; | |
19996 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19997 | size_t arg2 ; | |
19998 | bool result; | |
19999 | void *argp1 = 0 ; | |
20000 | int res1 = 0 ; | |
20001 | size_t val2 ; | |
20002 | int ecode2 = 0 ; | |
20003 | PyObject * obj0 = 0 ; | |
20004 | PyObject * obj1 = 0 ; | |
20005 | char * kwnames[] = { | |
20006 | (char *) "self",(char *) "n", NULL | |
20007 | }; | |
20008 | ||
20009 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail; | |
20010 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20011 | if (!SWIG_IsOK(res1)) { | |
20012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20013 | } | |
20014 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20015 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
20016 | if (!SWIG_IsOK(ecode2)) { | |
20017 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'"); | |
20018 | } | |
20019 | arg2 = static_cast< size_t >(val2); | |
20020 | { | |
20021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20022 | result = (bool)(arg1)->DeletePage(arg2); | |
20023 | wxPyEndAllowThreads(__tstate); | |
20024 | if (PyErr_Occurred()) SWIG_fail; | |
20025 | } | |
20026 | { | |
20027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20028 | } | |
20029 | return resultobj; | |
20030 | fail: | |
20031 | return NULL; | |
20032 | } | |
20033 | ||
20034 | ||
20035 | SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20036 | PyObject *resultobj = 0; | |
20037 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20038 | size_t arg2 ; | |
20039 | bool result; | |
20040 | void *argp1 = 0 ; | |
20041 | int res1 = 0 ; | |
20042 | size_t val2 ; | |
20043 | int ecode2 = 0 ; | |
20044 | PyObject * obj0 = 0 ; | |
20045 | PyObject * obj1 = 0 ; | |
20046 | char * kwnames[] = { | |
20047 | (char *) "self",(char *) "n", NULL | |
20048 | }; | |
20049 | ||
20050 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail; | |
20051 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20052 | if (!SWIG_IsOK(res1)) { | |
20053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20054 | } | |
20055 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20056 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
20057 | if (!SWIG_IsOK(ecode2)) { | |
20058 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'"); | |
20059 | } | |
20060 | arg2 = static_cast< size_t >(val2); | |
20061 | { | |
20062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20063 | result = (bool)(arg1)->RemovePage(arg2); | |
20064 | wxPyEndAllowThreads(__tstate); | |
20065 | if (PyErr_Occurred()) SWIG_fail; | |
20066 | } | |
20067 | { | |
20068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20069 | } | |
20070 | return resultobj; | |
20071 | fail: | |
20072 | return NULL; | |
d14a1e28 RD |
20073 | } |
20074 | ||
20075 | ||
0085ce49 RD |
20076 | SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20077 | PyObject *resultobj = 0; | |
20078 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20079 | bool result; | |
20080 | void *argp1 = 0 ; | |
20081 | int res1 = 0 ; | |
20082 | PyObject *swig_obj[1] ; | |
20083 | ||
20084 | if (!args) SWIG_fail; | |
20085 | swig_obj[0] = args; | |
20086 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20087 | if (!SWIG_IsOK(res1)) { | |
20088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20089 | } | |
20090 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20091 | { | |
20092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20093 | result = (bool)(arg1)->DeleteAllPages(); | |
20094 | wxPyEndAllowThreads(__tstate); | |
20095 | if (PyErr_Occurred()) SWIG_fail; | |
20096 | } | |
20097 | { | |
20098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20099 | } | |
20100 | return resultobj; | |
20101 | fail: | |
20102 | return NULL; | |
20103 | } | |
20104 | ||
20105 | ||
20106 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20107 | PyObject *resultobj = 0; | |
20108 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20109 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20110 | wxString *arg3 = 0 ; | |
20111 | bool arg4 = (bool) false ; | |
20112 | int arg5 = (int) -1 ; | |
20113 | bool result; | |
20114 | void *argp1 = 0 ; | |
20115 | int res1 = 0 ; | |
20116 | void *argp2 = 0 ; | |
20117 | int res2 = 0 ; | |
20118 | bool temp3 = false ; | |
20119 | bool val4 ; | |
20120 | int ecode4 = 0 ; | |
20121 | int val5 ; | |
20122 | int ecode5 = 0 ; | |
20123 | PyObject * obj0 = 0 ; | |
20124 | PyObject * obj1 = 0 ; | |
20125 | PyObject * obj2 = 0 ; | |
20126 | PyObject * obj3 = 0 ; | |
20127 | PyObject * obj4 = 0 ; | |
20128 | char * kwnames[] = { | |
20129 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
20130 | }; | |
20131 | ||
20132 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20133 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20134 | if (!SWIG_IsOK(res1)) { | |
20135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20136 | } | |
20137 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20138 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20139 | if (!SWIG_IsOK(res2)) { | |
20140 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20141 | } | |
20142 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20143 | { | |
20144 | arg3 = wxString_in_helper(obj2); | |
20145 | if (arg3 == NULL) SWIG_fail; | |
20146 | temp3 = true; | |
20147 | } | |
20148 | if (obj3) { | |
20149 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
20150 | if (!SWIG_IsOK(ecode4)) { | |
20151 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'"); | |
20152 | } | |
20153 | arg4 = static_cast< bool >(val4); | |
20154 | } | |
20155 | if (obj4) { | |
20156 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20157 | if (!SWIG_IsOK(ecode5)) { | |
20158 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'"); | |
20159 | } | |
20160 | arg5 = static_cast< int >(val5); | |
20161 | } | |
20162 | { | |
20163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20164 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
20165 | wxPyEndAllowThreads(__tstate); | |
20166 | if (PyErr_Occurred()) SWIG_fail; | |
20167 | } | |
20168 | { | |
20169 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20170 | } | |
20171 | { | |
20172 | if (temp3) | |
20173 | delete arg3; | |
20174 | } | |
20175 | return resultobj; | |
20176 | fail: | |
20177 | { | |
20178 | if (temp3) | |
20179 | delete arg3; | |
20180 | } | |
20181 | return NULL; | |
20182 | } | |
20183 | ||
20184 | ||
20185 | SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20186 | PyObject *resultobj = 0; | |
20187 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20188 | size_t arg2 ; | |
20189 | wxWindow *arg3 = (wxWindow *) 0 ; | |
20190 | wxString *arg4 = 0 ; | |
20191 | bool arg5 = (bool) false ; | |
20192 | int arg6 = (int) -1 ; | |
20193 | bool result; | |
20194 | void *argp1 = 0 ; | |
20195 | int res1 = 0 ; | |
20196 | size_t val2 ; | |
20197 | int ecode2 = 0 ; | |
20198 | void *argp3 = 0 ; | |
20199 | int res3 = 0 ; | |
20200 | bool temp4 = false ; | |
20201 | bool val5 ; | |
20202 | int ecode5 = 0 ; | |
20203 | int val6 ; | |
20204 | int ecode6 = 0 ; | |
20205 | PyObject * obj0 = 0 ; | |
20206 | PyObject * obj1 = 0 ; | |
20207 | PyObject * obj2 = 0 ; | |
20208 | PyObject * obj3 = 0 ; | |
20209 | PyObject * obj4 = 0 ; | |
20210 | PyObject * obj5 = 0 ; | |
20211 | char * kwnames[] = { | |
20212 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
20213 | }; | |
20214 | ||
20215 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20216 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20217 | if (!SWIG_IsOK(res1)) { | |
20218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20219 | } | |
20220 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20221 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
20222 | if (!SWIG_IsOK(ecode2)) { | |
20223 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'"); | |
20224 | } | |
20225 | arg2 = static_cast< size_t >(val2); | |
20226 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20227 | if (!SWIG_IsOK(res3)) { | |
20228 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
20229 | } | |
20230 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
20231 | { | |
20232 | arg4 = wxString_in_helper(obj3); | |
20233 | if (arg4 == NULL) SWIG_fail; | |
20234 | temp4 = true; | |
20235 | } | |
20236 | if (obj4) { | |
20237 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
20238 | if (!SWIG_IsOK(ecode5)) { | |
20239 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'"); | |
20240 | } | |
20241 | arg5 = static_cast< bool >(val5); | |
20242 | } | |
20243 | if (obj5) { | |
20244 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20245 | if (!SWIG_IsOK(ecode6)) { | |
20246 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'"); | |
20247 | } | |
20248 | arg6 = static_cast< int >(val6); | |
20249 | } | |
20250 | { | |
20251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20252 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
20253 | wxPyEndAllowThreads(__tstate); | |
20254 | if (PyErr_Occurred()) SWIG_fail; | |
20255 | } | |
20256 | { | |
20257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20258 | } | |
20259 | { | |
20260 | if (temp4) | |
20261 | delete arg4; | |
20262 | } | |
20263 | return resultobj; | |
20264 | fail: | |
20265 | { | |
20266 | if (temp4) | |
20267 | delete arg4; | |
20268 | } | |
20269 | return NULL; | |
20270 | } | |
20271 | ||
20272 | ||
20273 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20274 | PyObject *resultobj = 0; | |
20275 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20276 | size_t arg2 ; | |
20277 | int result; | |
20278 | void *argp1 = 0 ; | |
20279 | int res1 = 0 ; | |
20280 | size_t val2 ; | |
20281 | int ecode2 = 0 ; | |
20282 | PyObject * obj0 = 0 ; | |
20283 | PyObject * obj1 = 0 ; | |
20284 | char * kwnames[] = { | |
20285 | (char *) "self",(char *) "n", NULL | |
20286 | }; | |
20287 | ||
20288 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20289 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20290 | if (!SWIG_IsOK(res1)) { | |
20291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20292 | } | |
20293 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20294 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
20295 | if (!SWIG_IsOK(ecode2)) { | |
20296 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'"); | |
20297 | } | |
20298 | arg2 = static_cast< size_t >(val2); | |
20299 | { | |
20300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20301 | result = (int)(arg1)->SetSelection(arg2); | |
20302 | wxPyEndAllowThreads(__tstate); | |
20303 | if (PyErr_Occurred()) SWIG_fail; | |
20304 | } | |
20305 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20306 | return resultobj; | |
20307 | fail: | |
20308 | return NULL; | |
20309 | } | |
20310 | ||
20311 | ||
b39fe951 RD |
20312 | SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20313 | PyObject *resultobj = 0; | |
20314 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20315 | size_t arg2 ; | |
20316 | int result; | |
20317 | void *argp1 = 0 ; | |
20318 | int res1 = 0 ; | |
20319 | size_t val2 ; | |
20320 | int ecode2 = 0 ; | |
20321 | PyObject * obj0 = 0 ; | |
20322 | PyObject * obj1 = 0 ; | |
20323 | char * kwnames[] = { | |
20324 | (char *) "self",(char *) "n", NULL | |
20325 | }; | |
20326 | ||
20327 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20328 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20329 | if (!SWIG_IsOK(res1)) { | |
20330 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20331 | } | |
20332 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20333 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
20334 | if (!SWIG_IsOK(ecode2)) { | |
20335 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'"); | |
20336 | } | |
20337 | arg2 = static_cast< size_t >(val2); | |
20338 | { | |
20339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20340 | result = (int)(arg1)->ChangeSelection(arg2); | |
20341 | wxPyEndAllowThreads(__tstate); | |
20342 | if (PyErr_Occurred()) SWIG_fail; | |
20343 | } | |
20344 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20345 | return resultobj; | |
20346 | fail: | |
20347 | return NULL; | |
20348 | } | |
20349 | ||
20350 | ||
0085ce49 RD |
20351 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20352 | PyObject *resultobj = 0; | |
20353 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20354 | bool arg2 = (bool) true ; | |
20355 | void *argp1 = 0 ; | |
20356 | int res1 = 0 ; | |
20357 | bool val2 ; | |
20358 | int ecode2 = 0 ; | |
20359 | PyObject * obj0 = 0 ; | |
20360 | PyObject * obj1 = 0 ; | |
20361 | char * kwnames[] = { | |
20362 | (char *) "self",(char *) "forward", NULL | |
20363 | }; | |
20364 | ||
20365 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20366 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20367 | if (!SWIG_IsOK(res1)) { | |
20368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20369 | } | |
20370 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20371 | if (obj1) { | |
20372 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
20373 | if (!SWIG_IsOK(ecode2)) { | |
20374 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'"); | |
20375 | } | |
20376 | arg2 = static_cast< bool >(val2); | |
20377 | } | |
20378 | { | |
20379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20380 | (arg1)->AdvanceSelection(arg2); | |
20381 | wxPyEndAllowThreads(__tstate); | |
20382 | if (PyErr_Occurred()) SWIG_fail; | |
20383 | } | |
20384 | resultobj = SWIG_Py_Void(); | |
20385 | return resultobj; | |
20386 | fail: | |
20387 | return NULL; | |
20388 | } | |
20389 | ||
20390 | ||
704eda0c RD |
20391 | SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20392 | PyObject *resultobj = 0; | |
20393 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20394 | wxPoint *arg2 = 0 ; | |
20395 | long *arg3 = (long *) 0 ; | |
20396 | int result; | |
20397 | void *argp1 = 0 ; | |
20398 | int res1 = 0 ; | |
20399 | wxPoint temp2 ; | |
20400 | long temp3 ; | |
20401 | int res3 = SWIG_TMPOBJ ; | |
20402 | PyObject * obj0 = 0 ; | |
20403 | PyObject * obj1 = 0 ; | |
20404 | char * kwnames[] = { | |
20405 | (char *) "self",(char *) "pt", NULL | |
20406 | }; | |
20407 | ||
20408 | arg3 = &temp3; | |
20409 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
20410 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20411 | if (!SWIG_IsOK(res1)) { | |
20412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
20413 | } | |
20414 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20415 | { | |
20416 | arg2 = &temp2; | |
20417 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20418 | } | |
20419 | { | |
20420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20421 | result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
20422 | wxPyEndAllowThreads(__tstate); | |
20423 | if (PyErr_Occurred()) SWIG_fail; | |
20424 | } | |
20425 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20426 | if (SWIG_IsTmpObj(res3)) { | |
20427 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
20428 | } else { | |
20429 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20430 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
20431 | } | |
20432 | return resultobj; | |
20433 | fail: | |
20434 | return NULL; | |
20435 | } | |
20436 | ||
20437 | ||
0085ce49 RD |
20438 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20439 | PyObject *resultobj = 0; | |
20440 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
20441 | SwigValueWrapper<wxVisualAttributes > result; | |
20442 | int val1 ; | |
20443 | int ecode1 = 0 ; | |
20444 | PyObject * obj0 = 0 ; | |
20445 | char * kwnames[] = { | |
20446 | (char *) "variant", NULL | |
20447 | }; | |
20448 | ||
20449 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
20450 | if (obj0) { | |
20451 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20452 | if (!SWIG_IsOK(ecode1)) { | |
20453 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
20454 | } | |
20455 | arg1 = static_cast< wxWindowVariant >(val1); | |
20456 | } | |
20457 | { | |
20458 | if (!wxPyCheckForApp()) SWIG_fail; | |
20459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20460 | result = wxBookCtrlBase::GetClassDefaultAttributes(arg1); | |
20461 | wxPyEndAllowThreads(__tstate); | |
20462 | if (PyErr_Occurred()) SWIG_fail; | |
20463 | } | |
20464 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
20465 | return resultobj; | |
20466 | fail: | |
20467 | return NULL; | |
20468 | } | |
20469 | ||
20470 | ||
20471 | SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20472 | PyObject *obj; | |
20473 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20474 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj)); | |
20475 | return SWIG_Py_Void(); | |
20476 | } | |
20477 | ||
20478 | SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20479 | PyObject *resultobj = 0; | |
20480 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20481 | int arg2 = (int) 0 ; | |
20482 | int arg3 = (int) -1 ; | |
20483 | int arg4 = (int) -1 ; | |
20484 | wxBookCtrlBaseEvent *result = 0 ; | |
20485 | int val1 ; | |
20486 | int ecode1 = 0 ; | |
20487 | int val2 ; | |
20488 | int ecode2 = 0 ; | |
20489 | int val3 ; | |
20490 | int ecode3 = 0 ; | |
20491 | int val4 ; | |
20492 | int ecode4 = 0 ; | |
20493 | PyObject * obj0 = 0 ; | |
20494 | PyObject * obj1 = 0 ; | |
20495 | PyObject * obj2 = 0 ; | |
20496 | PyObject * obj3 = 0 ; | |
20497 | char * kwnames[] = { | |
20498 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
20499 | }; | |
20500 | ||
20501 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20502 | if (obj0) { | |
20503 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20504 | if (!SWIG_IsOK(ecode1)) { | |
20505 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
20506 | } | |
20507 | arg1 = static_cast< wxEventType >(val1); | |
20508 | } | |
20509 | if (obj1) { | |
20510 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20511 | if (!SWIG_IsOK(ecode2)) { | |
20512 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'"); | |
20513 | } | |
20514 | arg2 = static_cast< int >(val2); | |
20515 | } | |
20516 | if (obj2) { | |
20517 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20518 | if (!SWIG_IsOK(ecode3)) { | |
20519 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'"); | |
20520 | } | |
20521 | arg3 = static_cast< int >(val3); | |
20522 | } | |
20523 | if (obj3) { | |
20524 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20525 | if (!SWIG_IsOK(ecode4)) { | |
20526 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'"); | |
20527 | } | |
20528 | arg4 = static_cast< int >(val4); | |
20529 | } | |
20530 | { | |
20531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20532 | result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4); | |
20533 | wxPyEndAllowThreads(__tstate); | |
20534 | if (PyErr_Occurred()) SWIG_fail; | |
20535 | } | |
20536 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 ); | |
20537 | return resultobj; | |
20538 | fail: | |
20539 | return NULL; | |
d14a1e28 RD |
20540 | } |
20541 | ||
20542 | ||
0085ce49 RD |
20543 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20544 | PyObject *resultobj = 0; | |
20545 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20546 | int result; | |
20547 | void *argp1 = 0 ; | |
20548 | int res1 = 0 ; | |
20549 | PyObject *swig_obj[1] ; | |
20550 | ||
20551 | if (!args) SWIG_fail; | |
20552 | swig_obj[0] = args; | |
20553 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20554 | if (!SWIG_IsOK(res1)) { | |
20555 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'"); | |
20556 | } | |
20557 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20558 | { | |
20559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20560 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection(); | |
20561 | wxPyEndAllowThreads(__tstate); | |
20562 | if (PyErr_Occurred()) SWIG_fail; | |
20563 | } | |
20564 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20565 | return resultobj; | |
20566 | fail: | |
20567 | return NULL; | |
20568 | } | |
20569 | ||
20570 | ||
20571 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20572 | PyObject *resultobj = 0; | |
20573 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20574 | int arg2 ; | |
20575 | void *argp1 = 0 ; | |
20576 | int res1 = 0 ; | |
20577 | int val2 ; | |
20578 | int ecode2 = 0 ; | |
20579 | PyObject * obj0 = 0 ; | |
20580 | PyObject * obj1 = 0 ; | |
20581 | char * kwnames[] = { | |
20582 | (char *) "self",(char *) "nSel", NULL | |
20583 | }; | |
20584 | ||
20585 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20586 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20587 | if (!SWIG_IsOK(res1)) { | |
20588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'"); | |
20589 | } | |
20590 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20591 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20592 | if (!SWIG_IsOK(ecode2)) { | |
20593 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
20594 | } | |
20595 | arg2 = static_cast< int >(val2); | |
20596 | { | |
20597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20598 | (arg1)->SetSelection(arg2); | |
20599 | wxPyEndAllowThreads(__tstate); | |
20600 | if (PyErr_Occurred()) SWIG_fail; | |
20601 | } | |
20602 | resultobj = SWIG_Py_Void(); | |
20603 | return resultobj; | |
20604 | fail: | |
20605 | return NULL; | |
d14a1e28 RD |
20606 | } |
20607 | ||
20608 | ||
0085ce49 RD |
20609 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20610 | PyObject *resultobj = 0; | |
20611 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20612 | int result; | |
20613 | void *argp1 = 0 ; | |
20614 | int res1 = 0 ; | |
20615 | PyObject *swig_obj[1] ; | |
20616 | ||
20617 | if (!args) SWIG_fail; | |
20618 | swig_obj[0] = args; | |
20619 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20620 | if (!SWIG_IsOK(res1)) { | |
20621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'"); | |
20622 | } | |
20623 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20624 | { | |
20625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20626 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection(); | |
20627 | wxPyEndAllowThreads(__tstate); | |
20628 | if (PyErr_Occurred()) SWIG_fail; | |
20629 | } | |
20630 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20631 | return resultobj; | |
20632 | fail: | |
20633 | return NULL; | |
20634 | } | |
20635 | ||
20636 | ||
20637 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20638 | PyObject *resultobj = 0; | |
20639 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20640 | int arg2 ; | |
20641 | void *argp1 = 0 ; | |
20642 | int res1 = 0 ; | |
20643 | int val2 ; | |
20644 | int ecode2 = 0 ; | |
20645 | PyObject * obj0 = 0 ; | |
20646 | PyObject * obj1 = 0 ; | |
20647 | char * kwnames[] = { | |
20648 | (char *) "self",(char *) "nOldSel", NULL | |
20649 | }; | |
20650 | ||
20651 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20652 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20653 | if (!SWIG_IsOK(res1)) { | |
20654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'"); | |
20655 | } | |
20656 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20657 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20658 | if (!SWIG_IsOK(ecode2)) { | |
20659 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'"); | |
20660 | } | |
20661 | arg2 = static_cast< int >(val2); | |
20662 | { | |
20663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20664 | (arg1)->SetOldSelection(arg2); | |
20665 | wxPyEndAllowThreads(__tstate); | |
20666 | if (PyErr_Occurred()) SWIG_fail; | |
20667 | } | |
20668 | resultobj = SWIG_Py_Void(); | |
20669 | return resultobj; | |
20670 | fail: | |
20671 | return NULL; | |
20672 | } | |
20673 | ||
20674 | ||
20675 | SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20676 | PyObject *obj; | |
20677 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20678 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj)); | |
20679 | return SWIG_Py_Void(); | |
20680 | } | |
20681 | ||
20682 | SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20683 | return SWIG_Python_InitShadowInstance(args); | |
20684 | } | |
20685 | ||
20686 | SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20687 | PyObject *resultobj = 0; | |
20688 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20689 | int arg2 = (int) -1 ; | |
20690 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20691 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20692 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20693 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20694 | long arg5 = (long) 0 ; | |
20695 | wxString const &arg6_defvalue = wxPyNotebookNameStr ; | |
20696 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20697 | wxNotebook *result = 0 ; | |
20698 | void *argp1 = 0 ; | |
20699 | int res1 = 0 ; | |
20700 | int val2 ; | |
20701 | int ecode2 = 0 ; | |
20702 | wxPoint temp3 ; | |
20703 | wxSize temp4 ; | |
20704 | long val5 ; | |
20705 | int ecode5 = 0 ; | |
20706 | bool temp6 = false ; | |
20707 | PyObject * obj0 = 0 ; | |
20708 | PyObject * obj1 = 0 ; | |
20709 | PyObject * obj2 = 0 ; | |
20710 | PyObject * obj3 = 0 ; | |
20711 | PyObject * obj4 = 0 ; | |
20712 | PyObject * obj5 = 0 ; | |
20713 | char * kwnames[] = { | |
20714 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20715 | }; | |
20716 | ||
20717 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20718 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20719 | if (!SWIG_IsOK(res1)) { | |
20720 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20721 | } | |
20722 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20723 | if (obj1) { | |
20724 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20725 | if (!SWIG_IsOK(ecode2)) { | |
20726 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'"); | |
20727 | } | |
20728 | arg2 = static_cast< int >(val2); | |
20729 | } | |
20730 | if (obj2) { | |
093d3ff1 | 20731 | { |
0085ce49 RD |
20732 | arg3 = &temp3; |
20733 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 20734 | } |
0085ce49 RD |
20735 | } |
20736 | if (obj3) { | |
d14a1e28 | 20737 | { |
0085ce49 RD |
20738 | arg4 = &temp4; |
20739 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 20740 | } |
0085ce49 RD |
20741 | } |
20742 | if (obj4) { | |
20743 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
20744 | if (!SWIG_IsOK(ecode5)) { | |
20745 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'"); | |
20746 | } | |
20747 | arg5 = static_cast< long >(val5); | |
20748 | } | |
20749 | if (obj5) { | |
093d3ff1 | 20750 | { |
0085ce49 RD |
20751 | arg6 = wxString_in_helper(obj5); |
20752 | if (arg6 == NULL) SWIG_fail; | |
20753 | temp6 = true; | |
093d3ff1 | 20754 | } |
0085ce49 RD |
20755 | } |
20756 | { | |
20757 | if (!wxPyCheckForApp()) SWIG_fail; | |
20758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20759 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20760 | wxPyEndAllowThreads(__tstate); | |
20761 | if (PyErr_Occurred()) SWIG_fail; | |
20762 | } | |
20763 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 ); | |
20764 | { | |
20765 | if (temp6) | |
20766 | delete arg6; | |
20767 | } | |
20768 | return resultobj; | |
20769 | fail: | |
20770 | { | |
20771 | if (temp6) | |
20772 | delete arg6; | |
20773 | } | |
20774 | return NULL; | |
d14a1e28 RD |
20775 | } |
20776 | ||
20777 | ||
0085ce49 RD |
20778 | SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20779 | PyObject *resultobj = 0; | |
20780 | wxNotebook *result = 0 ; | |
20781 | ||
20782 | if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail; | |
20783 | { | |
20784 | if (!wxPyCheckForApp()) SWIG_fail; | |
20785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20786 | result = (wxNotebook *)new wxNotebook(); | |
20787 | wxPyEndAllowThreads(__tstate); | |
20788 | if (PyErr_Occurred()) SWIG_fail; | |
20789 | } | |
20790 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 ); | |
20791 | return resultobj; | |
20792 | fail: | |
20793 | return NULL; | |
20794 | } | |
20795 | ||
20796 | ||
20797 | SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20798 | PyObject *resultobj = 0; | |
20799 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20800 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20801 | int arg3 = (int) -1 ; | |
20802 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20803 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20804 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20805 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20806 | long arg6 = (long) 0 ; | |
20807 | wxString const &arg7_defvalue = wxPyNotebookNameStr ; | |
20808 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20809 | bool result; | |
20810 | void *argp1 = 0 ; | |
20811 | int res1 = 0 ; | |
20812 | void *argp2 = 0 ; | |
20813 | int res2 = 0 ; | |
20814 | int val3 ; | |
20815 | int ecode3 = 0 ; | |
20816 | wxPoint temp4 ; | |
20817 | wxSize temp5 ; | |
20818 | long val6 ; | |
20819 | int ecode6 = 0 ; | |
20820 | bool temp7 = false ; | |
20821 | PyObject * obj0 = 0 ; | |
20822 | PyObject * obj1 = 0 ; | |
20823 | PyObject * obj2 = 0 ; | |
20824 | PyObject * obj3 = 0 ; | |
20825 | PyObject * obj4 = 0 ; | |
20826 | PyObject * obj5 = 0 ; | |
20827 | PyObject * obj6 = 0 ; | |
20828 | char * kwnames[] = { | |
20829 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20830 | }; | |
20831 | ||
20832 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20833 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20834 | if (!SWIG_IsOK(res1)) { | |
20835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20836 | } | |
20837 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20838 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20839 | if (!SWIG_IsOK(res2)) { | |
20840 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20841 | } | |
20842 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20843 | if (obj2) { | |
20844 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20845 | if (!SWIG_IsOK(ecode3)) { | |
20846 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
20847 | } | |
20848 | arg3 = static_cast< int >(val3); | |
20849 | } | |
20850 | if (obj3) { | |
093d3ff1 | 20851 | { |
0085ce49 RD |
20852 | arg4 = &temp4; |
20853 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 20854 | } |
0085ce49 RD |
20855 | } |
20856 | if (obj4) { | |
d14a1e28 | 20857 | { |
0085ce49 RD |
20858 | arg5 = &temp5; |
20859 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 20860 | } |
0085ce49 RD |
20861 | } |
20862 | if (obj5) { | |
20863 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20864 | if (!SWIG_IsOK(ecode6)) { | |
20865 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
20866 | } | |
20867 | arg6 = static_cast< long >(val6); | |
20868 | } | |
20869 | if (obj6) { | |
4f89f6a3 | 20870 | { |
0085ce49 RD |
20871 | arg7 = wxString_in_helper(obj6); |
20872 | if (arg7 == NULL) SWIG_fail; | |
20873 | temp7 = true; | |
4f89f6a3 | 20874 | } |
0085ce49 RD |
20875 | } |
20876 | { | |
20877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20878 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20879 | wxPyEndAllowThreads(__tstate); | |
20880 | if (PyErr_Occurred()) SWIG_fail; | |
20881 | } | |
20882 | { | |
20883 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20884 | } | |
20885 | { | |
20886 | if (temp7) | |
20887 | delete arg7; | |
20888 | } | |
20889 | return resultobj; | |
20890 | fail: | |
20891 | { | |
20892 | if (temp7) | |
20893 | delete arg7; | |
20894 | } | |
20895 | return NULL; | |
d14a1e28 RD |
20896 | } |
20897 | ||
20898 | ||
0085ce49 RD |
20899 | SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20900 | PyObject *resultobj = 0; | |
20901 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20902 | int result; | |
20903 | void *argp1 = 0 ; | |
20904 | int res1 = 0 ; | |
20905 | PyObject *swig_obj[1] ; | |
20906 | ||
20907 | if (!args) SWIG_fail; | |
20908 | swig_obj[0] = args; | |
20909 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20910 | if (!SWIG_IsOK(res1)) { | |
20911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'"); | |
20912 | } | |
20913 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20914 | { | |
20915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20916 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
20917 | wxPyEndAllowThreads(__tstate); | |
20918 | if (PyErr_Occurred()) SWIG_fail; | |
20919 | } | |
20920 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20921 | return resultobj; | |
20922 | fail: | |
20923 | return NULL; | |
20924 | } | |
20925 | ||
20926 | ||
20927 | SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20928 | PyObject *resultobj = 0; | |
20929 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20930 | wxSize *arg2 = 0 ; | |
20931 | void *argp1 = 0 ; | |
20932 | int res1 = 0 ; | |
20933 | wxSize temp2 ; | |
20934 | PyObject * obj0 = 0 ; | |
20935 | PyObject * obj1 = 0 ; | |
20936 | char * kwnames[] = { | |
20937 | (char *) "self",(char *) "padding", NULL | |
20938 | }; | |
20939 | ||
20940 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail; | |
20941 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20942 | if (!SWIG_IsOK(res1)) { | |
20943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20944 | } | |
20945 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20946 | { | |
20947 | arg2 = &temp2; | |
20948 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20949 | } | |
20950 | { | |
20951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20952 | (arg1)->SetPadding((wxSize const &)*arg2); | |
20953 | wxPyEndAllowThreads(__tstate); | |
20954 | if (PyErr_Occurred()) SWIG_fail; | |
20955 | } | |
20956 | resultobj = SWIG_Py_Void(); | |
20957 | return resultobj; | |
20958 | fail: | |
20959 | return NULL; | |
20960 | } | |
20961 | ||
20962 | ||
20963 | SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20964 | PyObject *resultobj = 0; | |
20965 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20966 | wxSize *arg2 = 0 ; | |
20967 | void *argp1 = 0 ; | |
20968 | int res1 = 0 ; | |
20969 | wxSize temp2 ; | |
20970 | PyObject * obj0 = 0 ; | |
20971 | PyObject * obj1 = 0 ; | |
20972 | char * kwnames[] = { | |
20973 | (char *) "self",(char *) "sz", NULL | |
20974 | }; | |
20975 | ||
20976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
20977 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20978 | if (!SWIG_IsOK(res1)) { | |
20979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20980 | } | |
20981 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20982 | { | |
20983 | arg2 = &temp2; | |
20984 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20985 | } | |
20986 | { | |
20987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20988 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
20989 | wxPyEndAllowThreads(__tstate); | |
20990 | if (PyErr_Occurred()) SWIG_fail; | |
20991 | } | |
20992 | resultobj = SWIG_Py_Void(); | |
20993 | return resultobj; | |
20994 | fail: | |
20995 | return NULL; | |
20996 | } | |
20997 | ||
20998 | ||
0085ce49 RD |
20999 | SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21000 | PyObject *resultobj = 0; | |
21001 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
21002 | wxColour result; | |
21003 | void *argp1 = 0 ; | |
21004 | int res1 = 0 ; | |
21005 | PyObject *swig_obj[1] ; | |
21006 | ||
21007 | if (!args) SWIG_fail; | |
21008 | swig_obj[0] = args; | |
21009 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
21010 | if (!SWIG_IsOK(res1)) { | |
21011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'"); | |
21012 | } | |
21013 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
21014 | { | |
21015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21016 | result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour(); | |
21017 | wxPyEndAllowThreads(__tstate); | |
21018 | if (PyErr_Occurred()) SWIG_fail; | |
21019 | } | |
21020 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
21021 | return resultobj; | |
21022 | fail: | |
21023 | return NULL; | |
21024 | } | |
21025 | ||
21026 | ||
21027 | SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21028 | PyObject *resultobj = 0; | |
21029 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
21030 | SwigValueWrapper<wxVisualAttributes > result; | |
21031 | int val1 ; | |
21032 | int ecode1 = 0 ; | |
21033 | PyObject * obj0 = 0 ; | |
21034 | char * kwnames[] = { | |
21035 | (char *) "variant", NULL | |
21036 | }; | |
21037 | ||
21038 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
21039 | if (obj0) { | |
21040 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21041 | if (!SWIG_IsOK(ecode1)) { | |
21042 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
21043 | } | |
21044 | arg1 = static_cast< wxWindowVariant >(val1); | |
21045 | } | |
21046 | { | |
21047 | if (!wxPyCheckForApp()) SWIG_fail; | |
21048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21049 | result = wxNotebook::GetClassDefaultAttributes(arg1); | |
21050 | wxPyEndAllowThreads(__tstate); | |
21051 | if (PyErr_Occurred()) SWIG_fail; | |
21052 | } | |
21053 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
21054 | return resultobj; | |
21055 | fail: | |
21056 | return NULL; | |
21057 | } | |
21058 | ||
21059 | ||
b39fe951 RD |
21060 | SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
21061 | PyObject *resultobj = 0; | |
21062 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
21063 | int arg2 ; | |
21064 | bool result; | |
21065 | void *argp1 = 0 ; | |
21066 | int res1 = 0 ; | |
21067 | int val2 ; | |
21068 | int ecode2 = 0 ; | |
21069 | PyObject * obj0 = 0 ; | |
21070 | PyObject * obj1 = 0 ; | |
21071 | char * kwnames[] = { | |
21072 | (char *) "self",(char *) "nPage", NULL | |
21073 | }; | |
21074 | ||
21075 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
21076 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
21077 | if (!SWIG_IsOK(res1)) { | |
21078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
21079 | } | |
21080 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
21081 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21082 | if (!SWIG_IsOK(ecode2)) { | |
21083 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'"); | |
21084 | } | |
21085 | arg2 = static_cast< int >(val2); | |
21086 | { | |
21087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21088 | result = (bool)(arg1)->SendPageChangingEvent(arg2); | |
21089 | wxPyEndAllowThreads(__tstate); | |
21090 | if (PyErr_Occurred()) SWIG_fail; | |
21091 | } | |
21092 | { | |
21093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21094 | } | |
21095 | return resultobj; | |
21096 | fail: | |
21097 | return NULL; | |
21098 | } | |
21099 | ||
21100 | ||
21101 | SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21102 | PyObject *resultobj = 0; | |
21103 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
21104 | int arg2 ; | |
21105 | int arg3 = (int) -1 ; | |
21106 | void *argp1 = 0 ; | |
21107 | int res1 = 0 ; | |
21108 | int val2 ; | |
21109 | int ecode2 = 0 ; | |
21110 | int val3 ; | |
21111 | int ecode3 = 0 ; | |
21112 | PyObject * obj0 = 0 ; | |
21113 | PyObject * obj1 = 0 ; | |
21114 | PyObject * obj2 = 0 ; | |
21115 | char * kwnames[] = { | |
21116 | (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL | |
21117 | }; | |
21118 | ||
21119 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21120 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
21121 | if (!SWIG_IsOK(res1)) { | |
21122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
21123 | } | |
21124 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
21125 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21126 | if (!SWIG_IsOK(ecode2)) { | |
21127 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'"); | |
21128 | } | |
21129 | arg2 = static_cast< int >(val2); | |
21130 | if (obj2) { | |
21131 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21132 | if (!SWIG_IsOK(ecode3)) { | |
21133 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'"); | |
21134 | } | |
21135 | arg3 = static_cast< int >(val3); | |
21136 | } | |
21137 | { | |
21138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21139 | (arg1)->SendPageChangedEvent(arg2,arg3); | |
21140 | wxPyEndAllowThreads(__tstate); | |
21141 | if (PyErr_Occurred()) SWIG_fail; | |
21142 | } | |
21143 | resultobj = SWIG_Py_Void(); | |
21144 | return resultobj; | |
21145 | fail: | |
21146 | return NULL; | |
21147 | } | |
21148 | ||
21149 | ||
0085ce49 RD |
21150 | SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21151 | PyObject *obj; | |
21152 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21153 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj)); | |
21154 | return SWIG_Py_Void(); | |
21155 | } | |
21156 | ||
21157 | SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21158 | return SWIG_Python_InitShadowInstance(args); | |
21159 | } | |
21160 | ||
21161 | SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21162 | PyObject *resultobj = 0; | |
21163 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21164 | int arg2 = (int) 0 ; | |
21165 | int arg3 = (int) -1 ; | |
21166 | int arg4 = (int) -1 ; | |
21167 | wxNotebookEvent *result = 0 ; | |
21168 | int val1 ; | |
21169 | int ecode1 = 0 ; | |
21170 | int val2 ; | |
21171 | int ecode2 = 0 ; | |
21172 | int val3 ; | |
21173 | int ecode3 = 0 ; | |
21174 | int val4 ; | |
21175 | int ecode4 = 0 ; | |
21176 | PyObject * obj0 = 0 ; | |
21177 | PyObject * obj1 = 0 ; | |
21178 | PyObject * obj2 = 0 ; | |
21179 | PyObject * obj3 = 0 ; | |
21180 | char * kwnames[] = { | |
21181 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
21182 | }; | |
21183 | ||
21184 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21185 | if (obj0) { | |
21186 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21187 | if (!SWIG_IsOK(ecode1)) { | |
21188 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
21189 | } | |
21190 | arg1 = static_cast< wxEventType >(val1); | |
21191 | } | |
21192 | if (obj1) { | |
21193 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21194 | if (!SWIG_IsOK(ecode2)) { | |
21195 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
21196 | } | |
21197 | arg2 = static_cast< int >(val2); | |
21198 | } | |
21199 | if (obj2) { | |
21200 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21201 | if (!SWIG_IsOK(ecode3)) { | |
21202 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
21203 | } | |
21204 | arg3 = static_cast< int >(val3); | |
21205 | } | |
21206 | if (obj3) { | |
21207 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21208 | if (!SWIG_IsOK(ecode4)) { | |
21209 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
21210 | } | |
21211 | arg4 = static_cast< int >(val4); | |
21212 | } | |
21213 | { | |
21214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21215 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
21216 | wxPyEndAllowThreads(__tstate); | |
21217 | if (PyErr_Occurred()) SWIG_fail; | |
21218 | } | |
21219 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 ); | |
21220 | return resultobj; | |
21221 | fail: | |
21222 | return NULL; | |
21223 | } | |
21224 | ||
21225 | ||
21226 | SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21227 | PyObject *obj; | |
21228 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21229 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj)); | |
21230 | return SWIG_Py_Void(); | |
21231 | } | |
21232 | ||
21233 | SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21234 | return SWIG_Python_InitShadowInstance(args); | |
21235 | } | |
21236 | ||
21237 | SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21238 | PyObject *resultobj = 0; | |
21239 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21240 | int arg2 = (int) -1 ; | |
21241 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21242 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21243 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21244 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21245 | long arg5 = (long) 0 ; | |
21246 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
21247 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21248 | wxListbook *result = 0 ; | |
21249 | void *argp1 = 0 ; | |
21250 | int res1 = 0 ; | |
21251 | int val2 ; | |
21252 | int ecode2 = 0 ; | |
21253 | wxPoint temp3 ; | |
21254 | wxSize temp4 ; | |
21255 | long val5 ; | |
21256 | int ecode5 = 0 ; | |
21257 | bool temp6 = false ; | |
21258 | PyObject * obj0 = 0 ; | |
21259 | PyObject * obj1 = 0 ; | |
21260 | PyObject * obj2 = 0 ; | |
21261 | PyObject * obj3 = 0 ; | |
21262 | PyObject * obj4 = 0 ; | |
21263 | PyObject * obj5 = 0 ; | |
21264 | char * kwnames[] = { | |
21265 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21266 | }; | |
21267 | ||
21268 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21269 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21270 | if (!SWIG_IsOK(res1)) { | |
21271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21272 | } | |
21273 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21274 | if (obj1) { | |
21275 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21276 | if (!SWIG_IsOK(ecode2)) { | |
21277 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'"); | |
21278 | } | |
21279 | arg2 = static_cast< int >(val2); | |
21280 | } | |
21281 | if (obj2) { | |
093d3ff1 | 21282 | { |
0085ce49 RD |
21283 | arg3 = &temp3; |
21284 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 21285 | } |
0085ce49 RD |
21286 | } |
21287 | if (obj3) { | |
093d3ff1 | 21288 | { |
0085ce49 RD |
21289 | arg4 = &temp4; |
21290 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 21291 | } |
0085ce49 RD |
21292 | } |
21293 | if (obj4) { | |
21294 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21295 | if (!SWIG_IsOK(ecode5)) { | |
21296 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'"); | |
21297 | } | |
21298 | arg5 = static_cast< long >(val5); | |
21299 | } | |
21300 | if (obj5) { | |
d14a1e28 | 21301 | { |
0085ce49 RD |
21302 | arg6 = wxString_in_helper(obj5); |
21303 | if (arg6 == NULL) SWIG_fail; | |
21304 | temp6 = true; | |
d14a1e28 | 21305 | } |
0085ce49 RD |
21306 | } |
21307 | { | |
21308 | if (!wxPyCheckForApp()) SWIG_fail; | |
21309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21310 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21311 | wxPyEndAllowThreads(__tstate); | |
21312 | if (PyErr_Occurred()) SWIG_fail; | |
21313 | } | |
21314 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 ); | |
21315 | { | |
21316 | if (temp6) | |
21317 | delete arg6; | |
21318 | } | |
21319 | return resultobj; | |
21320 | fail: | |
21321 | { | |
21322 | if (temp6) | |
21323 | delete arg6; | |
21324 | } | |
21325 | return NULL; | |
d14a1e28 RD |
21326 | } |
21327 | ||
21328 | ||
0085ce49 RD |
21329 | SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21330 | PyObject *resultobj = 0; | |
21331 | wxListbook *result = 0 ; | |
21332 | ||
21333 | if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail; | |
21334 | { | |
21335 | if (!wxPyCheckForApp()) SWIG_fail; | |
21336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21337 | result = (wxListbook *)new wxListbook(); | |
21338 | wxPyEndAllowThreads(__tstate); | |
21339 | if (PyErr_Occurred()) SWIG_fail; | |
21340 | } | |
21341 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 ); | |
21342 | return resultobj; | |
21343 | fail: | |
21344 | return NULL; | |
21345 | } | |
21346 | ||
21347 | ||
21348 | SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21349 | PyObject *resultobj = 0; | |
21350 | wxListbook *arg1 = (wxListbook *) 0 ; | |
21351 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21352 | int arg3 = (int) -1 ; | |
21353 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21354 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21355 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21356 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21357 | long arg6 = (long) 0 ; | |
21358 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
21359 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21360 | bool result; | |
21361 | void *argp1 = 0 ; | |
21362 | int res1 = 0 ; | |
21363 | void *argp2 = 0 ; | |
21364 | int res2 = 0 ; | |
21365 | int val3 ; | |
21366 | int ecode3 = 0 ; | |
21367 | wxPoint temp4 ; | |
21368 | wxSize temp5 ; | |
21369 | long val6 ; | |
21370 | int ecode6 = 0 ; | |
21371 | bool temp7 = false ; | |
21372 | PyObject * obj0 = 0 ; | |
21373 | PyObject * obj1 = 0 ; | |
21374 | PyObject * obj2 = 0 ; | |
21375 | PyObject * obj3 = 0 ; | |
21376 | PyObject * obj4 = 0 ; | |
21377 | PyObject * obj5 = 0 ; | |
21378 | PyObject * obj6 = 0 ; | |
21379 | char * kwnames[] = { | |
21380 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21381 | }; | |
21382 | ||
21383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21384 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 ); | |
21385 | if (!SWIG_IsOK(res1)) { | |
21386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'"); | |
21387 | } | |
21388 | arg1 = reinterpret_cast< wxListbook * >(argp1); | |
21389 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21390 | if (!SWIG_IsOK(res2)) { | |
21391 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21392 | } | |
21393 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21394 | if (obj2) { | |
21395 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21396 | if (!SWIG_IsOK(ecode3)) { | |
21397 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'"); | |
21398 | } | |
21399 | arg3 = static_cast< int >(val3); | |
21400 | } | |
21401 | if (obj3) { | |
22bfe96c | 21402 | { |
0085ce49 RD |
21403 | arg4 = &temp4; |
21404 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22bfe96c | 21405 | } |
0085ce49 RD |
21406 | } |
21407 | if (obj4) { | |
22bfe96c | 21408 | { |
0085ce49 RD |
21409 | arg5 = &temp5; |
21410 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22bfe96c | 21411 | } |
0085ce49 RD |
21412 | } |
21413 | if (obj5) { | |
21414 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21415 | if (!SWIG_IsOK(ecode6)) { | |
21416 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'"); | |
21417 | } | |
21418 | arg6 = static_cast< long >(val6); | |
21419 | } | |
21420 | if (obj6) { | |
b2dc1044 | 21421 | { |
0085ce49 RD |
21422 | arg7 = wxString_in_helper(obj6); |
21423 | if (arg7 == NULL) SWIG_fail; | |
21424 | temp7 = true; | |
b2dc1044 | 21425 | } |
0085ce49 RD |
21426 | } |
21427 | { | |
21428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21429 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21430 | wxPyEndAllowThreads(__tstate); | |
21431 | if (PyErr_Occurred()) SWIG_fail; | |
21432 | } | |
21433 | { | |
21434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21435 | } | |
21436 | { | |
21437 | if (temp7) | |
21438 | delete arg7; | |
21439 | } | |
21440 | return resultobj; | |
21441 | fail: | |
21442 | { | |
21443 | if (temp7) | |
21444 | delete arg7; | |
21445 | } | |
21446 | return NULL; | |
b2dc1044 RD |
21447 | } |
21448 | ||
21449 | ||
0085ce49 RD |
21450 | SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21451 | PyObject *resultobj = 0; | |
21452 | wxListbook *arg1 = (wxListbook *) 0 ; | |
21453 | wxListView *result = 0 ; | |
21454 | void *argp1 = 0 ; | |
21455 | int res1 = 0 ; | |
21456 | PyObject *swig_obj[1] ; | |
21457 | ||
21458 | if (!args) SWIG_fail; | |
21459 | swig_obj[0] = args; | |
21460 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 ); | |
21461 | if (!SWIG_IsOK(res1)) { | |
21462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'"); | |
21463 | } | |
21464 | arg1 = reinterpret_cast< wxListbook * >(argp1); | |
21465 | { | |
21466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21467 | result = (wxListView *)(arg1)->GetListView(); | |
21468 | wxPyEndAllowThreads(__tstate); | |
21469 | if (PyErr_Occurred()) SWIG_fail; | |
21470 | } | |
21471 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 ); | |
21472 | return resultobj; | |
21473 | fail: | |
21474 | return NULL; | |
21475 | } | |
21476 | ||
21477 | ||
21478 | SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21479 | PyObject *obj; | |
21480 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21481 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj)); | |
21482 | return SWIG_Py_Void(); | |
21483 | } | |
21484 | ||
21485 | SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21486 | return SWIG_Python_InitShadowInstance(args); | |
21487 | } | |
21488 | ||
21489 | SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21490 | PyObject *resultobj = 0; | |
21491 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21492 | int arg2 = (int) 0 ; | |
21493 | int arg3 = (int) -1 ; | |
21494 | int arg4 = (int) -1 ; | |
21495 | wxListbookEvent *result = 0 ; | |
21496 | int val1 ; | |
21497 | int ecode1 = 0 ; | |
21498 | int val2 ; | |
21499 | int ecode2 = 0 ; | |
21500 | int val3 ; | |
21501 | int ecode3 = 0 ; | |
21502 | int val4 ; | |
21503 | int ecode4 = 0 ; | |
21504 | PyObject * obj0 = 0 ; | |
21505 | PyObject * obj1 = 0 ; | |
21506 | PyObject * obj2 = 0 ; | |
21507 | PyObject * obj3 = 0 ; | |
21508 | char * kwnames[] = { | |
21509 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
21510 | }; | |
21511 | ||
21512 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21513 | if (obj0) { | |
21514 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21515 | if (!SWIG_IsOK(ecode1)) { | |
21516 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
21517 | } | |
21518 | arg1 = static_cast< wxEventType >(val1); | |
21519 | } | |
21520 | if (obj1) { | |
21521 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21522 | if (!SWIG_IsOK(ecode2)) { | |
21523 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'"); | |
21524 | } | |
21525 | arg2 = static_cast< int >(val2); | |
21526 | } | |
21527 | if (obj2) { | |
21528 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21529 | if (!SWIG_IsOK(ecode3)) { | |
21530 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'"); | |
21531 | } | |
21532 | arg3 = static_cast< int >(val3); | |
21533 | } | |
21534 | if (obj3) { | |
21535 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21536 | if (!SWIG_IsOK(ecode4)) { | |
21537 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'"); | |
21538 | } | |
21539 | arg4 = static_cast< int >(val4); | |
21540 | } | |
21541 | { | |
21542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21543 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
21544 | wxPyEndAllowThreads(__tstate); | |
21545 | if (PyErr_Occurred()) SWIG_fail; | |
21546 | } | |
21547 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 ); | |
21548 | return resultobj; | |
21549 | fail: | |
21550 | return NULL; | |
21551 | } | |
21552 | ||
21553 | ||
21554 | SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21555 | PyObject *obj; | |
21556 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21557 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj)); | |
21558 | return SWIG_Py_Void(); | |
21559 | } | |
21560 | ||
21561 | SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21562 | return SWIG_Python_InitShadowInstance(args); | |
21563 | } | |
21564 | ||
21565 | SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21566 | PyObject *resultobj = 0; | |
21567 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21568 | int arg2 ; | |
21569 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21570 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21571 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21572 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21573 | long arg5 = (long) 0 ; | |
21574 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
21575 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21576 | wxChoicebook *result = 0 ; | |
21577 | void *argp1 = 0 ; | |
21578 | int res1 = 0 ; | |
21579 | int val2 ; | |
21580 | int ecode2 = 0 ; | |
21581 | wxPoint temp3 ; | |
21582 | wxSize temp4 ; | |
21583 | long val5 ; | |
21584 | int ecode5 = 0 ; | |
21585 | bool temp6 = false ; | |
21586 | PyObject * obj0 = 0 ; | |
21587 | PyObject * obj1 = 0 ; | |
21588 | PyObject * obj2 = 0 ; | |
21589 | PyObject * obj3 = 0 ; | |
21590 | PyObject * obj4 = 0 ; | |
21591 | PyObject * obj5 = 0 ; | |
21592 | char * kwnames[] = { | |
21593 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21594 | }; | |
21595 | ||
21596 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21597 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21598 | if (!SWIG_IsOK(res1)) { | |
21599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21600 | } | |
21601 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21602 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21603 | if (!SWIG_IsOK(ecode2)) { | |
21604 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'"); | |
21605 | } | |
21606 | arg2 = static_cast< int >(val2); | |
21607 | if (obj2) { | |
d14a1e28 | 21608 | { |
0085ce49 RD |
21609 | arg3 = &temp3; |
21610 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 21611 | } |
0085ce49 RD |
21612 | } |
21613 | if (obj3) { | |
d14a1e28 | 21614 | { |
0085ce49 RD |
21615 | arg4 = &temp4; |
21616 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 21617 | } |
0085ce49 RD |
21618 | } |
21619 | if (obj4) { | |
21620 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21621 | if (!SWIG_IsOK(ecode5)) { | |
21622 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'"); | |
21623 | } | |
21624 | arg5 = static_cast< long >(val5); | |
21625 | } | |
21626 | if (obj5) { | |
d14a1e28 | 21627 | { |
0085ce49 RD |
21628 | arg6 = wxString_in_helper(obj5); |
21629 | if (arg6 == NULL) SWIG_fail; | |
21630 | temp6 = true; | |
d14a1e28 | 21631 | } |
0085ce49 RD |
21632 | } |
21633 | { | |
21634 | if (!wxPyCheckForApp()) SWIG_fail; | |
21635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21636 | result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21637 | wxPyEndAllowThreads(__tstate); | |
21638 | if (PyErr_Occurred()) SWIG_fail; | |
21639 | } | |
21640 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 ); | |
21641 | { | |
21642 | if (temp6) | |
21643 | delete arg6; | |
21644 | } | |
21645 | return resultobj; | |
21646 | fail: | |
21647 | { | |
21648 | if (temp6) | |
21649 | delete arg6; | |
21650 | } | |
21651 | return NULL; | |
d14a1e28 RD |
21652 | } |
21653 | ||
21654 | ||
0085ce49 RD |
21655 | SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21656 | PyObject *resultobj = 0; | |
21657 | wxChoicebook *result = 0 ; | |
21658 | ||
21659 | if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail; | |
21660 | { | |
21661 | if (!wxPyCheckForApp()) SWIG_fail; | |
21662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21663 | result = (wxChoicebook *)new wxChoicebook(); | |
21664 | wxPyEndAllowThreads(__tstate); | |
21665 | if (PyErr_Occurred()) SWIG_fail; | |
21666 | } | |
21667 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 ); | |
21668 | return resultobj; | |
21669 | fail: | |
21670 | return NULL; | |
21671 | } | |
21672 | ||
21673 | ||
21674 | SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21675 | PyObject *resultobj = 0; | |
21676 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
21677 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21678 | int arg3 ; | |
21679 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21680 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21681 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21682 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21683 | long arg6 = (long) 0 ; | |
21684 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
21685 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21686 | bool result; | |
21687 | void *argp1 = 0 ; | |
21688 | int res1 = 0 ; | |
21689 | void *argp2 = 0 ; | |
21690 | int res2 = 0 ; | |
21691 | int val3 ; | |
21692 | int ecode3 = 0 ; | |
21693 | wxPoint temp4 ; | |
21694 | wxSize temp5 ; | |
21695 | long val6 ; | |
21696 | int ecode6 = 0 ; | |
21697 | bool temp7 = false ; | |
21698 | PyObject * obj0 = 0 ; | |
21699 | PyObject * obj1 = 0 ; | |
21700 | PyObject * obj2 = 0 ; | |
21701 | PyObject * obj3 = 0 ; | |
21702 | PyObject * obj4 = 0 ; | |
21703 | PyObject * obj5 = 0 ; | |
21704 | PyObject * obj6 = 0 ; | |
21705 | char * kwnames[] = { | |
21706 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21707 | }; | |
21708 | ||
21709 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21710 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 ); | |
21711 | if (!SWIG_IsOK(res1)) { | |
21712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'"); | |
21713 | } | |
21714 | arg1 = reinterpret_cast< wxChoicebook * >(argp1); | |
21715 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21716 | if (!SWIG_IsOK(res2)) { | |
21717 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21718 | } | |
21719 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21720 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21721 | if (!SWIG_IsOK(ecode3)) { | |
21722 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
21723 | } | |
21724 | arg3 = static_cast< int >(val3); | |
21725 | if (obj3) { | |
4f89f6a3 | 21726 | { |
0085ce49 RD |
21727 | arg4 = &temp4; |
21728 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 21729 | } |
0085ce49 RD |
21730 | } |
21731 | if (obj4) { | |
d14a1e28 | 21732 | { |
0085ce49 RD |
21733 | arg5 = &temp5; |
21734 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 21735 | } |
0085ce49 RD |
21736 | } |
21737 | if (obj5) { | |
21738 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21739 | if (!SWIG_IsOK(ecode6)) { | |
21740 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
21741 | } | |
21742 | arg6 = static_cast< long >(val6); | |
21743 | } | |
21744 | if (obj6) { | |
d14a1e28 | 21745 | { |
0085ce49 RD |
21746 | arg7 = wxString_in_helper(obj6); |
21747 | if (arg7 == NULL) SWIG_fail; | |
21748 | temp7 = true; | |
d14a1e28 | 21749 | } |
0085ce49 RD |
21750 | } |
21751 | { | |
21752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21753 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21754 | wxPyEndAllowThreads(__tstate); | |
21755 | if (PyErr_Occurred()) SWIG_fail; | |
21756 | } | |
21757 | { | |
21758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21759 | } | |
21760 | { | |
21761 | if (temp7) | |
21762 | delete arg7; | |
21763 | } | |
21764 | return resultobj; | |
21765 | fail: | |
21766 | { | |
21767 | if (temp7) | |
21768 | delete arg7; | |
21769 | } | |
21770 | return NULL; | |
d14a1e28 RD |
21771 | } |
21772 | ||
21773 | ||
0085ce49 RD |
21774 | SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21775 | PyObject *resultobj = 0; | |
21776 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
21777 | wxChoice *result = 0 ; | |
21778 | void *argp1 = 0 ; | |
21779 | int res1 = 0 ; | |
21780 | PyObject *swig_obj[1] ; | |
21781 | ||
21782 | if (!args) SWIG_fail; | |
21783 | swig_obj[0] = args; | |
21784 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 ); | |
21785 | if (!SWIG_IsOK(res1)) { | |
21786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'"); | |
21787 | } | |
21788 | arg1 = reinterpret_cast< wxChoicebook * >(argp1); | |
21789 | { | |
21790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21791 | result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl(); | |
21792 | wxPyEndAllowThreads(__tstate); | |
21793 | if (PyErr_Occurred()) SWIG_fail; | |
21794 | } | |
21795 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 ); | |
21796 | return resultobj; | |
21797 | fail: | |
21798 | return NULL; | |
21799 | } | |
21800 | ||
21801 | ||
21802 | SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21803 | PyObject *obj; | |
21804 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21805 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj)); | |
21806 | return SWIG_Py_Void(); | |
21807 | } | |
21808 | ||
21809 | SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21810 | return SWIG_Python_InitShadowInstance(args); | |
21811 | } | |
21812 | ||
21813 | SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21814 | PyObject *resultobj = 0; | |
21815 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21816 | int arg2 = (int) 0 ; | |
21817 | int arg3 = (int) -1 ; | |
21818 | int arg4 = (int) -1 ; | |
21819 | wxChoicebookEvent *result = 0 ; | |
21820 | int val1 ; | |
21821 | int ecode1 = 0 ; | |
21822 | int val2 ; | |
21823 | int ecode2 = 0 ; | |
21824 | int val3 ; | |
21825 | int ecode3 = 0 ; | |
21826 | int val4 ; | |
21827 | int ecode4 = 0 ; | |
21828 | PyObject * obj0 = 0 ; | |
21829 | PyObject * obj1 = 0 ; | |
21830 | PyObject * obj2 = 0 ; | |
21831 | PyObject * obj3 = 0 ; | |
21832 | char * kwnames[] = { | |
21833 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
21834 | }; | |
21835 | ||
21836 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21837 | if (obj0) { | |
21838 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21839 | if (!SWIG_IsOK(ecode1)) { | |
21840 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
21841 | } | |
21842 | arg1 = static_cast< wxEventType >(val1); | |
21843 | } | |
21844 | if (obj1) { | |
21845 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21846 | if (!SWIG_IsOK(ecode2)) { | |
21847 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
21848 | } | |
21849 | arg2 = static_cast< int >(val2); | |
21850 | } | |
21851 | if (obj2) { | |
21852 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21853 | if (!SWIG_IsOK(ecode3)) { | |
21854 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
21855 | } | |
21856 | arg3 = static_cast< int >(val3); | |
21857 | } | |
21858 | if (obj3) { | |
21859 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21860 | if (!SWIG_IsOK(ecode4)) { | |
21861 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
21862 | } | |
21863 | arg4 = static_cast< int >(val4); | |
21864 | } | |
21865 | { | |
21866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21867 | result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4); | |
21868 | wxPyEndAllowThreads(__tstate); | |
21869 | if (PyErr_Occurred()) SWIG_fail; | |
21870 | } | |
21871 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 ); | |
21872 | return resultobj; | |
21873 | fail: | |
21874 | return NULL; | |
21875 | } | |
21876 | ||
21877 | ||
21878 | SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21879 | PyObject *obj; | |
21880 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21881 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj)); | |
21882 | return SWIG_Py_Void(); | |
21883 | } | |
21884 | ||
21885 | SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21886 | return SWIG_Python_InitShadowInstance(args); | |
21887 | } | |
21888 | ||
21889 | SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21890 | PyObject *resultobj = 0; | |
21891 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21892 | int arg2 ; | |
21893 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21894 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21895 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21896 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21897 | long arg5 = (long) wxBK_DEFAULT ; | |
21898 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
21899 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21900 | wxTreebook *result = 0 ; | |
21901 | void *argp1 = 0 ; | |
21902 | int res1 = 0 ; | |
21903 | int val2 ; | |
21904 | int ecode2 = 0 ; | |
21905 | wxPoint temp3 ; | |
21906 | wxSize temp4 ; | |
21907 | long val5 ; | |
21908 | int ecode5 = 0 ; | |
21909 | bool temp6 = false ; | |
21910 | PyObject * obj0 = 0 ; | |
21911 | PyObject * obj1 = 0 ; | |
21912 | PyObject * obj2 = 0 ; | |
21913 | PyObject * obj3 = 0 ; | |
21914 | PyObject * obj4 = 0 ; | |
21915 | PyObject * obj5 = 0 ; | |
21916 | char * kwnames[] = { | |
21917 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21918 | }; | |
21919 | ||
21920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21921 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21922 | if (!SWIG_IsOK(res1)) { | |
21923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21924 | } | |
21925 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21926 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21927 | if (!SWIG_IsOK(ecode2)) { | |
21928 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'"); | |
21929 | } | |
21930 | arg2 = static_cast< int >(val2); | |
21931 | if (obj2) { | |
093d3ff1 | 21932 | { |
0085ce49 RD |
21933 | arg3 = &temp3; |
21934 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 21935 | } |
0085ce49 RD |
21936 | } |
21937 | if (obj3) { | |
d14a1e28 | 21938 | { |
0085ce49 RD |
21939 | arg4 = &temp4; |
21940 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 21941 | } |
0085ce49 RD |
21942 | } |
21943 | if (obj4) { | |
21944 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21945 | if (!SWIG_IsOK(ecode5)) { | |
21946 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'"); | |
21947 | } | |
21948 | arg5 = static_cast< long >(val5); | |
21949 | } | |
21950 | if (obj5) { | |
093d3ff1 | 21951 | { |
0085ce49 RD |
21952 | arg6 = wxString_in_helper(obj5); |
21953 | if (arg6 == NULL) SWIG_fail; | |
21954 | temp6 = true; | |
093d3ff1 | 21955 | } |
0085ce49 RD |
21956 | } |
21957 | { | |
21958 | if (!wxPyCheckForApp()) SWIG_fail; | |
21959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21960 | result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21961 | wxPyEndAllowThreads(__tstate); | |
21962 | if (PyErr_Occurred()) SWIG_fail; | |
21963 | } | |
21964 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 ); | |
21965 | { | |
21966 | if (temp6) | |
21967 | delete arg6; | |
21968 | } | |
21969 | return resultobj; | |
21970 | fail: | |
21971 | { | |
21972 | if (temp6) | |
21973 | delete arg6; | |
21974 | } | |
21975 | return NULL; | |
d14a1e28 RD |
21976 | } |
21977 | ||
21978 | ||
0085ce49 RD |
21979 | SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21980 | PyObject *resultobj = 0; | |
21981 | wxTreebook *result = 0 ; | |
21982 | ||
21983 | if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail; | |
21984 | { | |
21985 | if (!wxPyCheckForApp()) SWIG_fail; | |
21986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21987 | result = (wxTreebook *)new wxTreebook(); | |
21988 | wxPyEndAllowThreads(__tstate); | |
21989 | if (PyErr_Occurred()) SWIG_fail; | |
21990 | } | |
21991 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 ); | |
21992 | return resultobj; | |
21993 | fail: | |
21994 | return NULL; | |
21995 | } | |
21996 | ||
21997 | ||
21998 | SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21999 | PyObject *resultobj = 0; | |
22000 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22001 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22002 | int arg3 ; | |
22003 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22004 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22005 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22006 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22007 | long arg6 = (long) wxBK_DEFAULT ; | |
22008 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
22009 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22010 | bool result; | |
22011 | void *argp1 = 0 ; | |
22012 | int res1 = 0 ; | |
22013 | void *argp2 = 0 ; | |
22014 | int res2 = 0 ; | |
22015 | int val3 ; | |
22016 | int ecode3 = 0 ; | |
22017 | wxPoint temp4 ; | |
22018 | wxSize temp5 ; | |
22019 | long val6 ; | |
22020 | int ecode6 = 0 ; | |
22021 | bool temp7 = false ; | |
22022 | PyObject * obj0 = 0 ; | |
22023 | PyObject * obj1 = 0 ; | |
22024 | PyObject * obj2 = 0 ; | |
22025 | PyObject * obj3 = 0 ; | |
22026 | PyObject * obj4 = 0 ; | |
22027 | PyObject * obj5 = 0 ; | |
22028 | PyObject * obj6 = 0 ; | |
22029 | char * kwnames[] = { | |
22030 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22031 | }; | |
22032 | ||
22033 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
22034 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22035 | if (!SWIG_IsOK(res1)) { | |
22036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22037 | } | |
22038 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22039 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22040 | if (!SWIG_IsOK(res2)) { | |
22041 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
22042 | } | |
22043 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
22044 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22045 | if (!SWIG_IsOK(ecode3)) { | |
22046 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
22047 | } | |
22048 | arg3 = static_cast< int >(val3); | |
22049 | if (obj3) { | |
d14a1e28 | 22050 | { |
0085ce49 RD |
22051 | arg4 = &temp4; |
22052 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 22053 | } |
0085ce49 RD |
22054 | } |
22055 | if (obj4) { | |
093d3ff1 | 22056 | { |
0085ce49 RD |
22057 | arg5 = &temp5; |
22058 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 22059 | } |
0085ce49 RD |
22060 | } |
22061 | if (obj5) { | |
22062 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
22063 | if (!SWIG_IsOK(ecode6)) { | |
22064 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
22065 | } | |
22066 | arg6 = static_cast< long >(val6); | |
22067 | } | |
22068 | if (obj6) { | |
093d3ff1 | 22069 | { |
0085ce49 RD |
22070 | arg7 = wxString_in_helper(obj6); |
22071 | if (arg7 == NULL) SWIG_fail; | |
22072 | temp7 = true; | |
093d3ff1 | 22073 | } |
0085ce49 RD |
22074 | } |
22075 | { | |
22076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22077 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22078 | wxPyEndAllowThreads(__tstate); | |
22079 | if (PyErr_Occurred()) SWIG_fail; | |
22080 | } | |
22081 | { | |
22082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22083 | } | |
22084 | { | |
22085 | if (temp7) | |
22086 | delete arg7; | |
22087 | } | |
22088 | return resultobj; | |
22089 | fail: | |
22090 | { | |
22091 | if (temp7) | |
22092 | delete arg7; | |
22093 | } | |
22094 | return NULL; | |
22095 | } | |
22096 | ||
22097 | ||
22098 | SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22099 | PyObject *resultobj = 0; | |
22100 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22101 | size_t arg2 ; | |
22102 | wxWindow *arg3 = (wxWindow *) 0 ; | |
22103 | wxString *arg4 = 0 ; | |
22104 | bool arg5 = (bool) false ; | |
22105 | int arg6 = (int) wxNOT_FOUND ; | |
22106 | bool result; | |
22107 | void *argp1 = 0 ; | |
22108 | int res1 = 0 ; | |
22109 | size_t val2 ; | |
22110 | int ecode2 = 0 ; | |
22111 | void *argp3 = 0 ; | |
22112 | int res3 = 0 ; | |
22113 | bool temp4 = false ; | |
22114 | bool val5 ; | |
22115 | int ecode5 = 0 ; | |
22116 | int val6 ; | |
22117 | int ecode6 = 0 ; | |
22118 | PyObject * obj0 = 0 ; | |
22119 | PyObject * obj1 = 0 ; | |
22120 | PyObject * obj2 = 0 ; | |
22121 | PyObject * obj3 = 0 ; | |
22122 | PyObject * obj4 = 0 ; | |
22123 | PyObject * obj5 = 0 ; | |
22124 | char * kwnames[] = { | |
22125 | (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
22126 | }; | |
22127 | ||
22128 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22129 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22130 | if (!SWIG_IsOK(res1)) { | |
22131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22132 | } | |
22133 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22134 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22135 | if (!SWIG_IsOK(ecode2)) { | |
22136 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'"); | |
22137 | } | |
22138 | arg2 = static_cast< size_t >(val2); | |
22139 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22140 | if (!SWIG_IsOK(res3)) { | |
22141 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
22142 | } | |
22143 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
22144 | { | |
22145 | arg4 = wxString_in_helper(obj3); | |
22146 | if (arg4 == NULL) SWIG_fail; | |
22147 | temp4 = true; | |
22148 | } | |
22149 | if (obj4) { | |
22150 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
22151 | if (!SWIG_IsOK(ecode5)) { | |
22152 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'"); | |
22153 | } | |
22154 | arg5 = static_cast< bool >(val5); | |
22155 | } | |
22156 | if (obj5) { | |
22157 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
22158 | if (!SWIG_IsOK(ecode6)) { | |
22159 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'"); | |
22160 | } | |
22161 | arg6 = static_cast< int >(val6); | |
22162 | } | |
22163 | { | |
22164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22165 | result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
22166 | wxPyEndAllowThreads(__tstate); | |
22167 | if (PyErr_Occurred()) SWIG_fail; | |
22168 | } | |
22169 | { | |
22170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22171 | } | |
22172 | { | |
22173 | if (temp4) | |
22174 | delete arg4; | |
22175 | } | |
22176 | return resultobj; | |
22177 | fail: | |
22178 | { | |
22179 | if (temp4) | |
22180 | delete arg4; | |
22181 | } | |
22182 | return NULL; | |
22183 | } | |
22184 | ||
22185 | ||
22186 | SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22187 | PyObject *resultobj = 0; | |
22188 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22189 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22190 | wxString *arg3 = 0 ; | |
22191 | bool arg4 = (bool) false ; | |
22192 | int arg5 = (int) wxNOT_FOUND ; | |
22193 | bool result; | |
22194 | void *argp1 = 0 ; | |
22195 | int res1 = 0 ; | |
22196 | void *argp2 = 0 ; | |
22197 | int res2 = 0 ; | |
22198 | bool temp3 = false ; | |
22199 | bool val4 ; | |
22200 | int ecode4 = 0 ; | |
22201 | int val5 ; | |
22202 | int ecode5 = 0 ; | |
22203 | PyObject * obj0 = 0 ; | |
22204 | PyObject * obj1 = 0 ; | |
22205 | PyObject * obj2 = 0 ; | |
22206 | PyObject * obj3 = 0 ; | |
22207 | PyObject * obj4 = 0 ; | |
22208 | char * kwnames[] = { | |
22209 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
22210 | }; | |
22211 | ||
22212 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
22213 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22214 | if (!SWIG_IsOK(res1)) { | |
22215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22216 | } | |
22217 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22218 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22219 | if (!SWIG_IsOK(res2)) { | |
22220 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
22221 | } | |
22222 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
22223 | { | |
22224 | arg3 = wxString_in_helper(obj2); | |
22225 | if (arg3 == NULL) SWIG_fail; | |
22226 | temp3 = true; | |
22227 | } | |
22228 | if (obj3) { | |
22229 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
22230 | if (!SWIG_IsOK(ecode4)) { | |
22231 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'"); | |
22232 | } | |
22233 | arg4 = static_cast< bool >(val4); | |
22234 | } | |
22235 | if (obj4) { | |
22236 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22237 | if (!SWIG_IsOK(ecode5)) { | |
22238 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'"); | |
22239 | } | |
22240 | arg5 = static_cast< int >(val5); | |
22241 | } | |
22242 | { | |
22243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22244 | result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
22245 | wxPyEndAllowThreads(__tstate); | |
22246 | if (PyErr_Occurred()) SWIG_fail; | |
22247 | } | |
22248 | { | |
22249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22250 | } | |
22251 | { | |
22252 | if (temp3) | |
22253 | delete arg3; | |
22254 | } | |
22255 | return resultobj; | |
22256 | fail: | |
22257 | { | |
22258 | if (temp3) | |
22259 | delete arg3; | |
22260 | } | |
22261 | return NULL; | |
22262 | } | |
22263 | ||
22264 | ||
22265 | SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22266 | PyObject *resultobj = 0; | |
22267 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22268 | size_t arg2 ; | |
22269 | bool result; | |
22270 | void *argp1 = 0 ; | |
22271 | int res1 = 0 ; | |
22272 | size_t val2 ; | |
22273 | int ecode2 = 0 ; | |
22274 | PyObject * obj0 = 0 ; | |
22275 | PyObject * obj1 = 0 ; | |
22276 | char * kwnames[] = { | |
22277 | (char *) "self",(char *) "pos", NULL | |
22278 | }; | |
22279 | ||
22280 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail; | |
22281 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22282 | if (!SWIG_IsOK(res1)) { | |
22283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
22284 | } | |
22285 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22286 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22287 | if (!SWIG_IsOK(ecode2)) { | |
22288 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'"); | |
22289 | } | |
22290 | arg2 = static_cast< size_t >(val2); | |
22291 | { | |
22292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22293 | result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2); | |
22294 | wxPyEndAllowThreads(__tstate); | |
22295 | if (PyErr_Occurred()) SWIG_fail; | |
22296 | } | |
22297 | { | |
22298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22299 | } | |
22300 | return resultobj; | |
22301 | fail: | |
22302 | return NULL; | |
22303 | } | |
22304 | ||
22305 | ||
22306 | SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22307 | PyObject *resultobj = 0; | |
22308 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22309 | size_t arg2 ; | |
22310 | bool arg3 = (bool) true ; | |
22311 | bool result; | |
22312 | void *argp1 = 0 ; | |
22313 | int res1 = 0 ; | |
22314 | size_t val2 ; | |
22315 | int ecode2 = 0 ; | |
22316 | bool val3 ; | |
22317 | int ecode3 = 0 ; | |
22318 | PyObject * obj0 = 0 ; | |
22319 | PyObject * obj1 = 0 ; | |
22320 | PyObject * obj2 = 0 ; | |
22321 | char * kwnames[] = { | |
22322 | (char *) "self",(char *) "pos",(char *) "expand", NULL | |
22323 | }; | |
22324 | ||
22325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22326 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22327 | if (!SWIG_IsOK(res1)) { | |
22328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22329 | } | |
22330 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22331 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22332 | if (!SWIG_IsOK(ecode2)) { | |
22333 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'"); | |
22334 | } | |
22335 | arg2 = static_cast< size_t >(val2); | |
22336 | if (obj2) { | |
22337 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
22338 | if (!SWIG_IsOK(ecode3)) { | |
22339 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'"); | |
22340 | } | |
22341 | arg3 = static_cast< bool >(val3); | |
22342 | } | |
22343 | { | |
22344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22345 | result = (bool)(arg1)->ExpandNode(arg2,arg3); | |
22346 | wxPyEndAllowThreads(__tstate); | |
22347 | if (PyErr_Occurred()) SWIG_fail; | |
22348 | } | |
22349 | { | |
22350 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22351 | } | |
22352 | return resultobj; | |
22353 | fail: | |
22354 | return NULL; | |
22355 | } | |
22356 | ||
22357 | ||
22358 | SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22359 | PyObject *resultobj = 0; | |
22360 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22361 | size_t arg2 ; | |
22362 | bool result; | |
22363 | void *argp1 = 0 ; | |
22364 | int res1 = 0 ; | |
22365 | size_t val2 ; | |
22366 | int ecode2 = 0 ; | |
22367 | PyObject * obj0 = 0 ; | |
22368 | PyObject * obj1 = 0 ; | |
22369 | char * kwnames[] = { | |
22370 | (char *) "self",(char *) "pos", NULL | |
22371 | }; | |
22372 | ||
22373 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail; | |
22374 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22375 | if (!SWIG_IsOK(res1)) { | |
22376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22377 | } | |
22378 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22379 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22380 | if (!SWIG_IsOK(ecode2)) { | |
22381 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'"); | |
22382 | } | |
22383 | arg2 = static_cast< size_t >(val2); | |
22384 | { | |
22385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22386 | result = (bool)(arg1)->CollapseNode(arg2); | |
22387 | wxPyEndAllowThreads(__tstate); | |
22388 | if (PyErr_Occurred()) SWIG_fail; | |
22389 | } | |
22390 | { | |
22391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22392 | } | |
22393 | return resultobj; | |
22394 | fail: | |
22395 | return NULL; | |
22396 | } | |
22397 | ||
22398 | ||
22399 | SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22400 | PyObject *resultobj = 0; | |
22401 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22402 | size_t arg2 ; | |
22403 | int result; | |
22404 | void *argp1 = 0 ; | |
22405 | int res1 = 0 ; | |
22406 | size_t val2 ; | |
22407 | int ecode2 = 0 ; | |
22408 | PyObject * obj0 = 0 ; | |
22409 | PyObject * obj1 = 0 ; | |
22410 | char * kwnames[] = { | |
22411 | (char *) "self",(char *) "pos", NULL | |
22412 | }; | |
22413 | ||
22414 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
22415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22416 | if (!SWIG_IsOK(res1)) { | |
22417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
22418 | } | |
22419 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22420 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22421 | if (!SWIG_IsOK(ecode2)) { | |
22422 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'"); | |
22423 | } | |
22424 | arg2 = static_cast< size_t >(val2); | |
22425 | { | |
22426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22427 | result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2); | |
22428 | wxPyEndAllowThreads(__tstate); | |
22429 | if (PyErr_Occurred()) SWIG_fail; | |
22430 | } | |
22431 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22432 | return resultobj; | |
22433 | fail: | |
22434 | return NULL; | |
d14a1e28 RD |
22435 | } |
22436 | ||
22437 | ||
0085ce49 RD |
22438 | SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22439 | PyObject *resultobj = 0; | |
22440 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
10044bf1 | 22441 | wxPyTreeCtrl *result = 0 ; |
0085ce49 RD |
22442 | void *argp1 = 0 ; |
22443 | int res1 = 0 ; | |
22444 | PyObject *swig_obj[1] ; | |
22445 | ||
22446 | if (!args) SWIG_fail; | |
22447 | swig_obj[0] = args; | |
22448 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22449 | if (!SWIG_IsOK(res1)) { | |
22450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
22451 | } | |
22452 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22453 | { | |
22454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10044bf1 | 22455 | result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl(); |
0085ce49 RD |
22456 | wxPyEndAllowThreads(__tstate); |
22457 | if (PyErr_Occurred()) SWIG_fail; | |
22458 | } | |
10044bf1 RD |
22459 | { |
22460 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
22461 | } | |
0085ce49 RD |
22462 | return resultobj; |
22463 | fail: | |
22464 | return NULL; | |
22465 | } | |
22466 | ||
22467 | ||
22468 | SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22469 | PyObject *obj; | |
22470 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22471 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj)); | |
22472 | return SWIG_Py_Void(); | |
22473 | } | |
22474 | ||
22475 | SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22476 | return SWIG_Python_InitShadowInstance(args); | |
22477 | } | |
22478 | ||
22479 | SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22480 | PyObject *resultobj = 0; | |
22481 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22482 | int arg2 = (int) 0 ; | |
22483 | int arg3 = (int) wxNOT_FOUND ; | |
22484 | int arg4 = (int) wxNOT_FOUND ; | |
22485 | wxTreebookEvent *result = 0 ; | |
22486 | int val1 ; | |
22487 | int ecode1 = 0 ; | |
22488 | int val2 ; | |
22489 | int ecode2 = 0 ; | |
22490 | int val3 ; | |
22491 | int ecode3 = 0 ; | |
22492 | int val4 ; | |
22493 | int ecode4 = 0 ; | |
22494 | PyObject * obj0 = 0 ; | |
22495 | PyObject * obj1 = 0 ; | |
22496 | PyObject * obj2 = 0 ; | |
22497 | PyObject * obj3 = 0 ; | |
22498 | char * kwnames[] = { | |
22499 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
22500 | }; | |
22501 | ||
22502 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22503 | if (obj0) { | |
22504 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
22505 | if (!SWIG_IsOK(ecode1)) { | |
22506 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
22507 | } | |
22508 | arg1 = static_cast< wxEventType >(val1); | |
22509 | } | |
22510 | if (obj1) { | |
22511 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22512 | if (!SWIG_IsOK(ecode2)) { | |
22513 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
22514 | } | |
22515 | arg2 = static_cast< int >(val2); | |
22516 | } | |
22517 | if (obj2) { | |
22518 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22519 | if (!SWIG_IsOK(ecode3)) { | |
22520 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
22521 | } | |
22522 | arg3 = static_cast< int >(val3); | |
22523 | } | |
22524 | if (obj3) { | |
22525 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22526 | if (!SWIG_IsOK(ecode4)) { | |
22527 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
22528 | } | |
22529 | arg4 = static_cast< int >(val4); | |
22530 | } | |
22531 | { | |
22532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22533 | result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4); | |
22534 | wxPyEndAllowThreads(__tstate); | |
22535 | if (PyErr_Occurred()) SWIG_fail; | |
22536 | } | |
22537 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 ); | |
22538 | return resultobj; | |
22539 | fail: | |
22540 | return NULL; | |
22541 | } | |
22542 | ||
22543 | ||
22544 | SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22545 | PyObject *obj; | |
22546 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22547 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj)); | |
22548 | return SWIG_Py_Void(); | |
22549 | } | |
22550 | ||
22551 | SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22552 | return SWIG_Python_InitShadowInstance(args); | |
22553 | } | |
22554 | ||
22555 | SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22556 | PyObject *resultobj = 0; | |
22557 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22558 | int arg2 ; | |
22559 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22560 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22561 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22562 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22563 | long arg5 = (long) wxBK_DEFAULT ; | |
22564 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
22565 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22566 | wxToolbook *result = 0 ; | |
22567 | void *argp1 = 0 ; | |
22568 | int res1 = 0 ; | |
22569 | int val2 ; | |
22570 | int ecode2 = 0 ; | |
22571 | wxPoint temp3 ; | |
22572 | wxSize temp4 ; | |
22573 | long val5 ; | |
22574 | int ecode5 = 0 ; | |
22575 | bool temp6 = false ; | |
22576 | PyObject * obj0 = 0 ; | |
22577 | PyObject * obj1 = 0 ; | |
22578 | PyObject * obj2 = 0 ; | |
22579 | PyObject * obj3 = 0 ; | |
22580 | PyObject * obj4 = 0 ; | |
22581 | PyObject * obj5 = 0 ; | |
22582 | char * kwnames[] = { | |
22583 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22584 | }; | |
22585 | ||
22586 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22587 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22588 | if (!SWIG_IsOK(res1)) { | |
22589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
22590 | } | |
22591 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
22592 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22593 | if (!SWIG_IsOK(ecode2)) { | |
22594 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'"); | |
22595 | } | |
22596 | arg2 = static_cast< int >(val2); | |
22597 | if (obj2) { | |
d14a1e28 | 22598 | { |
0085ce49 RD |
22599 | arg3 = &temp3; |
22600 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 22601 | } |
0085ce49 RD |
22602 | } |
22603 | if (obj3) { | |
093d3ff1 | 22604 | { |
0085ce49 RD |
22605 | arg4 = &temp4; |
22606 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 22607 | } |
0085ce49 RD |
22608 | } |
22609 | if (obj4) { | |
22610 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
22611 | if (!SWIG_IsOK(ecode5)) { | |
22612 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'"); | |
22613 | } | |
22614 | arg5 = static_cast< long >(val5); | |
22615 | } | |
22616 | if (obj5) { | |
d14a1e28 | 22617 | { |
0085ce49 RD |
22618 | arg6 = wxString_in_helper(obj5); |
22619 | if (arg6 == NULL) SWIG_fail; | |
22620 | temp6 = true; | |
d14a1e28 | 22621 | } |
0085ce49 RD |
22622 | } |
22623 | { | |
22624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22625 | result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22626 | wxPyEndAllowThreads(__tstate); | |
22627 | if (PyErr_Occurred()) SWIG_fail; | |
22628 | } | |
22629 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 ); | |
22630 | { | |
22631 | if (temp6) | |
22632 | delete arg6; | |
22633 | } | |
22634 | return resultobj; | |
22635 | fail: | |
22636 | { | |
22637 | if (temp6) | |
22638 | delete arg6; | |
22639 | } | |
22640 | return NULL; | |
d14a1e28 RD |
22641 | } |
22642 | ||
22643 | ||
0085ce49 RD |
22644 | SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22645 | PyObject *resultobj = 0; | |
22646 | wxToolbook *result = 0 ; | |
22647 | ||
22648 | if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail; | |
22649 | { | |
22650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22651 | result = (wxToolbook *)new wxToolbook(); | |
22652 | wxPyEndAllowThreads(__tstate); | |
22653 | if (PyErr_Occurred()) SWIG_fail; | |
22654 | } | |
22655 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 ); | |
22656 | return resultobj; | |
22657 | fail: | |
22658 | return NULL; | |
22659 | } | |
22660 | ||
22661 | ||
22662 | SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22663 | PyObject *resultobj = 0; | |
22664 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
22665 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22666 | int arg3 ; | |
22667 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22668 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22669 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22670 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22671 | long arg6 = (long) 0 ; | |
22672 | wxString const &arg7_defvalue = wxEmptyString ; | |
22673 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22674 | bool result; | |
22675 | void *argp1 = 0 ; | |
22676 | int res1 = 0 ; | |
22677 | void *argp2 = 0 ; | |
22678 | int res2 = 0 ; | |
22679 | int val3 ; | |
22680 | int ecode3 = 0 ; | |
22681 | wxPoint temp4 ; | |
22682 | wxSize temp5 ; | |
22683 | long val6 ; | |
22684 | int ecode6 = 0 ; | |
22685 | bool temp7 = false ; | |
22686 | PyObject * obj0 = 0 ; | |
22687 | PyObject * obj1 = 0 ; | |
22688 | PyObject * obj2 = 0 ; | |
22689 | PyObject * obj3 = 0 ; | |
22690 | PyObject * obj4 = 0 ; | |
22691 | PyObject * obj5 = 0 ; | |
22692 | PyObject * obj6 = 0 ; | |
22693 | char * kwnames[] = { | |
22694 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22695 | }; | |
22696 | ||
22697 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
22698 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
22699 | if (!SWIG_IsOK(res1)) { | |
22700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'"); | |
22701 | } | |
22702 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
22703 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22704 | if (!SWIG_IsOK(res2)) { | |
22705 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
22706 | } | |
22707 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
22708 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22709 | if (!SWIG_IsOK(ecode3)) { | |
22710 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'"); | |
22711 | } | |
22712 | arg3 = static_cast< int >(val3); | |
22713 | if (obj3) { | |
093d3ff1 | 22714 | { |
0085ce49 RD |
22715 | arg4 = &temp4; |
22716 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 22717 | } |
0085ce49 RD |
22718 | } |
22719 | if (obj4) { | |
093d3ff1 | 22720 | { |
0085ce49 RD |
22721 | arg5 = &temp5; |
22722 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 22723 | } |
0085ce49 RD |
22724 | } |
22725 | if (obj5) { | |
22726 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
22727 | if (!SWIG_IsOK(ecode6)) { | |
22728 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'"); | |
22729 | } | |
22730 | arg6 = static_cast< long >(val6); | |
22731 | } | |
22732 | if (obj6) { | |
994141e6 | 22733 | { |
0085ce49 RD |
22734 | arg7 = wxString_in_helper(obj6); |
22735 | if (arg7 == NULL) SWIG_fail; | |
22736 | temp7 = true; | |
d14a1e28 | 22737 | } |
0085ce49 RD |
22738 | } |
22739 | { | |
22740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22741 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22742 | wxPyEndAllowThreads(__tstate); | |
22743 | if (PyErr_Occurred()) SWIG_fail; | |
22744 | } | |
22745 | { | |
22746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22747 | } | |
22748 | { | |
22749 | if (temp7) | |
22750 | delete arg7; | |
22751 | } | |
22752 | return resultobj; | |
22753 | fail: | |
22754 | { | |
22755 | if (temp7) | |
22756 | delete arg7; | |
22757 | } | |
22758 | return NULL; | |
22bfe96c RD |
22759 | } |
22760 | ||
22761 | ||
0085ce49 RD |
22762 | SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22763 | PyObject *resultobj = 0; | |
22764 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
22765 | wxToolBarBase *result = 0 ; | |
22766 | void *argp1 = 0 ; | |
22767 | int res1 = 0 ; | |
22768 | PyObject *swig_obj[1] ; | |
22769 | ||
22770 | if (!args) SWIG_fail; | |
22771 | swig_obj[0] = args; | |
22772 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
22773 | if (!SWIG_IsOK(res1)) { | |
22774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'"); | |
22775 | } | |
22776 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
22777 | { | |
22778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22779 | result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar(); | |
22780 | wxPyEndAllowThreads(__tstate); | |
22781 | if (PyErr_Occurred()) SWIG_fail; | |
22782 | } | |
22783 | { | |
22784 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
22785 | } | |
22786 | return resultobj; | |
22787 | fail: | |
22788 | return NULL; | |
d14a1e28 RD |
22789 | } |
22790 | ||
22791 | ||
0085ce49 RD |
22792 | SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22793 | PyObject *resultobj = 0; | |
22794 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
22795 | void *argp1 = 0 ; | |
22796 | int res1 = 0 ; | |
22797 | PyObject *swig_obj[1] ; | |
22798 | ||
22799 | if (!args) SWIG_fail; | |
22800 | swig_obj[0] = args; | |
22801 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
22802 | if (!SWIG_IsOK(res1)) { | |
22803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'"); | |
22804 | } | |
22805 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
22806 | { | |
22807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22808 | (arg1)->Realize(); | |
22809 | wxPyEndAllowThreads(__tstate); | |
22810 | if (PyErr_Occurred()) SWIG_fail; | |
22811 | } | |
22812 | resultobj = SWIG_Py_Void(); | |
22813 | return resultobj; | |
22814 | fail: | |
22815 | return NULL; | |
22816 | } | |
22817 | ||
22818 | ||
22819 | SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22820 | PyObject *obj; | |
22821 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22822 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj)); | |
22823 | return SWIG_Py_Void(); | |
22824 | } | |
22825 | ||
22826 | SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22827 | return SWIG_Python_InitShadowInstance(args); | |
22828 | } | |
22829 | ||
22830 | SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22831 | PyObject *resultobj = 0; | |
22832 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22833 | int arg2 = (int) 0 ; | |
22834 | int arg3 = (int) wxNOT_FOUND ; | |
22835 | int arg4 = (int) wxNOT_FOUND ; | |
22836 | wxToolbookEvent *result = 0 ; | |
22837 | int val1 ; | |
22838 | int ecode1 = 0 ; | |
22839 | int val2 ; | |
22840 | int ecode2 = 0 ; | |
22841 | int val3 ; | |
22842 | int ecode3 = 0 ; | |
22843 | int val4 ; | |
22844 | int ecode4 = 0 ; | |
22845 | PyObject * obj0 = 0 ; | |
22846 | PyObject * obj1 = 0 ; | |
22847 | PyObject * obj2 = 0 ; | |
22848 | PyObject * obj3 = 0 ; | |
22849 | char * kwnames[] = { | |
22850 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
22851 | }; | |
22852 | ||
22853 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22854 | if (obj0) { | |
22855 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
22856 | if (!SWIG_IsOK(ecode1)) { | |
22857 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
22858 | } | |
22859 | arg1 = static_cast< wxEventType >(val1); | |
22860 | } | |
22861 | if (obj1) { | |
22862 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22863 | if (!SWIG_IsOK(ecode2)) { | |
22864 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'"); | |
22865 | } | |
22866 | arg2 = static_cast< int >(val2); | |
22867 | } | |
22868 | if (obj2) { | |
22869 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22870 | if (!SWIG_IsOK(ecode3)) { | |
22871 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'"); | |
22872 | } | |
22873 | arg3 = static_cast< int >(val3); | |
22874 | } | |
22875 | if (obj3) { | |
22876 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22877 | if (!SWIG_IsOK(ecode4)) { | |
22878 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'"); | |
22879 | } | |
22880 | arg4 = static_cast< int >(val4); | |
22881 | } | |
22882 | { | |
22883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22884 | result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4); | |
22885 | wxPyEndAllowThreads(__tstate); | |
22886 | if (PyErr_Occurred()) SWIG_fail; | |
22887 | } | |
22888 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 ); | |
22889 | return resultobj; | |
22890 | fail: | |
22891 | return NULL; | |
d14a1e28 RD |
22892 | } |
22893 | ||
22894 | ||
0085ce49 RD |
22895 | SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22896 | PyObject *obj; | |
22897 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22898 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj)); | |
22899 | return SWIG_Py_Void(); | |
d14a1e28 RD |
22900 | } |
22901 | ||
0085ce49 RD |
22902 | SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22903 | return SWIG_Python_InitShadowInstance(args); | |
22904 | } | |
d14a1e28 | 22905 | |
0085ce49 RD |
22906 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22907 | PyObject *resultobj = 0; | |
22908 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22909 | int result; | |
22910 | void *argp1 = 0 ; | |
22911 | int res1 = 0 ; | |
22912 | PyObject *swig_obj[1] ; | |
22913 | ||
22914 | if (!args) SWIG_fail; | |
22915 | swig_obj[0] = args; | |
22916 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22917 | if (!SWIG_IsOK(res1)) { | |
22918 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22919 | } | |
22920 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22921 | { | |
22922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22923 | result = (int)(arg1)->GetId(); | |
22924 | wxPyEndAllowThreads(__tstate); | |
22925 | if (PyErr_Occurred()) SWIG_fail; | |
22926 | } | |
22927 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22928 | return resultobj; | |
22929 | fail: | |
22930 | return NULL; | |
d14a1e28 RD |
22931 | } |
22932 | ||
22933 | ||
0085ce49 RD |
22934 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22935 | PyObject *resultobj = 0; | |
22936 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22937 | wxControl *result = 0 ; | |
22938 | void *argp1 = 0 ; | |
22939 | int res1 = 0 ; | |
22940 | PyObject *swig_obj[1] ; | |
22941 | ||
22942 | if (!args) SWIG_fail; | |
22943 | swig_obj[0] = args; | |
22944 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22945 | if (!SWIG_IsOK(res1)) { | |
22946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22947 | } | |
22948 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22949 | { | |
22950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22951 | result = (wxControl *)(arg1)->GetControl(); | |
22952 | wxPyEndAllowThreads(__tstate); | |
22953 | if (PyErr_Occurred()) SWIG_fail; | |
22954 | } | |
22955 | { | |
22956 | resultobj = wxPyMake_wxObject(result, 0); | |
22957 | } | |
22958 | return resultobj; | |
22959 | fail: | |
22960 | return NULL; | |
d14a1e28 RD |
22961 | } |
22962 | ||
22963 | ||
0085ce49 RD |
22964 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22965 | PyObject *resultobj = 0; | |
22966 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22967 | wxToolBarBase *result = 0 ; | |
22968 | void *argp1 = 0 ; | |
22969 | int res1 = 0 ; | |
22970 | PyObject *swig_obj[1] ; | |
22971 | ||
22972 | if (!args) SWIG_fail; | |
22973 | swig_obj[0] = args; | |
22974 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22975 | if (!SWIG_IsOK(res1)) { | |
22976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22977 | } | |
22978 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22979 | { | |
22980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22981 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
22982 | wxPyEndAllowThreads(__tstate); | |
22983 | if (PyErr_Occurred()) SWIG_fail; | |
22984 | } | |
22985 | { | |
22986 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
22987 | } | |
22988 | return resultobj; | |
22989 | fail: | |
22990 | return NULL; | |
d14a1e28 RD |
22991 | } |
22992 | ||
22993 | ||
0085ce49 RD |
22994 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22995 | PyObject *resultobj = 0; | |
22996 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22997 | int result; | |
22998 | void *argp1 = 0 ; | |
22999 | int res1 = 0 ; | |
23000 | PyObject *swig_obj[1] ; | |
23001 | ||
23002 | if (!args) SWIG_fail; | |
23003 | swig_obj[0] = args; | |
23004 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23005 | if (!SWIG_IsOK(res1)) { | |
23006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23007 | } | |
23008 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23009 | { | |
23010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23011 | result = (int)(arg1)->IsButton(); | |
23012 | wxPyEndAllowThreads(__tstate); | |
23013 | if (PyErr_Occurred()) SWIG_fail; | |
23014 | } | |
23015 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23016 | return resultobj; | |
23017 | fail: | |
23018 | return NULL; | |
d14a1e28 RD |
23019 | } |
23020 | ||
23021 | ||
0085ce49 RD |
23022 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23023 | PyObject *resultobj = 0; | |
23024 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23025 | int result; | |
23026 | void *argp1 = 0 ; | |
23027 | int res1 = 0 ; | |
23028 | PyObject *swig_obj[1] ; | |
23029 | ||
23030 | if (!args) SWIG_fail; | |
23031 | swig_obj[0] = args; | |
23032 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23033 | if (!SWIG_IsOK(res1)) { | |
23034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23035 | } | |
23036 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23037 | { | |
23038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23039 | result = (int)(arg1)->IsControl(); | |
23040 | wxPyEndAllowThreads(__tstate); | |
23041 | if (PyErr_Occurred()) SWIG_fail; | |
23042 | } | |
23043 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23044 | return resultobj; | |
23045 | fail: | |
23046 | return NULL; | |
d14a1e28 RD |
23047 | } |
23048 | ||
23049 | ||
0085ce49 RD |
23050 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23051 | PyObject *resultobj = 0; | |
23052 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23053 | int result; | |
23054 | void *argp1 = 0 ; | |
23055 | int res1 = 0 ; | |
23056 | PyObject *swig_obj[1] ; | |
23057 | ||
23058 | if (!args) SWIG_fail; | |
23059 | swig_obj[0] = args; | |
23060 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23061 | if (!SWIG_IsOK(res1)) { | |
23062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23063 | } | |
23064 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23065 | { | |
23066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23067 | result = (int)(arg1)->IsSeparator(); | |
23068 | wxPyEndAllowThreads(__tstate); | |
23069 | if (PyErr_Occurred()) SWIG_fail; | |
23070 | } | |
23071 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23072 | return resultobj; | |
23073 | fail: | |
23074 | return NULL; | |
d14a1e28 RD |
23075 | } |
23076 | ||
23077 | ||
0085ce49 RD |
23078 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23079 | PyObject *resultobj = 0; | |
23080 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23081 | int result; | |
23082 | void *argp1 = 0 ; | |
23083 | int res1 = 0 ; | |
23084 | PyObject *swig_obj[1] ; | |
23085 | ||
23086 | if (!args) SWIG_fail; | |
23087 | swig_obj[0] = args; | |
23088 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23089 | if (!SWIG_IsOK(res1)) { | |
23090 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23091 | } | |
23092 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23093 | { | |
23094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23095 | result = (int)(arg1)->GetStyle(); | |
23096 | wxPyEndAllowThreads(__tstate); | |
23097 | if (PyErr_Occurred()) SWIG_fail; | |
23098 | } | |
23099 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23100 | return resultobj; | |
23101 | fail: | |
23102 | return NULL; | |
d14a1e28 RD |
23103 | } |
23104 | ||
23105 | ||
0085ce49 RD |
23106 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23107 | PyObject *resultobj = 0; | |
23108 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23109 | wxItemKind result; | |
23110 | void *argp1 = 0 ; | |
23111 | int res1 = 0 ; | |
23112 | PyObject *swig_obj[1] ; | |
23113 | ||
23114 | if (!args) SWIG_fail; | |
23115 | swig_obj[0] = args; | |
23116 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23117 | if (!SWIG_IsOK(res1)) { | |
23118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23119 | } | |
23120 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23121 | { | |
23122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23123 | result = (wxItemKind)(arg1)->GetKind(); | |
23124 | wxPyEndAllowThreads(__tstate); | |
23125 | if (PyErr_Occurred()) SWIG_fail; | |
23126 | } | |
23127 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23128 | return resultobj; | |
23129 | fail: | |
23130 | return NULL; | |
d14a1e28 RD |
23131 | } |
23132 | ||
23133 | ||
0085ce49 RD |
23134 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23135 | PyObject *resultobj = 0; | |
23136 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23137 | bool result; | |
23138 | void *argp1 = 0 ; | |
23139 | int res1 = 0 ; | |
23140 | PyObject *swig_obj[1] ; | |
23141 | ||
23142 | if (!args) SWIG_fail; | |
23143 | swig_obj[0] = args; | |
23144 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23145 | if (!SWIG_IsOK(res1)) { | |
23146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23147 | } | |
23148 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23149 | { | |
23150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23151 | result = (bool)(arg1)->IsEnabled(); | |
23152 | wxPyEndAllowThreads(__tstate); | |
23153 | if (PyErr_Occurred()) SWIG_fail; | |
23154 | } | |
23155 | { | |
23156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23157 | } | |
23158 | return resultobj; | |
23159 | fail: | |
23160 | return NULL; | |
d14a1e28 RD |
23161 | } |
23162 | ||
23163 | ||
0085ce49 RD |
23164 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23165 | PyObject *resultobj = 0; | |
23166 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23167 | bool result; | |
23168 | void *argp1 = 0 ; | |
23169 | int res1 = 0 ; | |
23170 | PyObject *swig_obj[1] ; | |
23171 | ||
23172 | if (!args) SWIG_fail; | |
23173 | swig_obj[0] = args; | |
23174 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23175 | if (!SWIG_IsOK(res1)) { | |
23176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23177 | } | |
23178 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23179 | { | |
23180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23181 | result = (bool)(arg1)->IsToggled(); | |
23182 | wxPyEndAllowThreads(__tstate); | |
23183 | if (PyErr_Occurred()) SWIG_fail; | |
23184 | } | |
23185 | { | |
23186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23187 | } | |
23188 | return resultobj; | |
23189 | fail: | |
23190 | return NULL; | |
22bfe96c RD |
23191 | } |
23192 | ||
23193 | ||
0085ce49 RD |
23194 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23195 | PyObject *resultobj = 0; | |
23196 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23197 | bool result; | |
23198 | void *argp1 = 0 ; | |
23199 | int res1 = 0 ; | |
23200 | PyObject *swig_obj[1] ; | |
23201 | ||
23202 | if (!args) SWIG_fail; | |
23203 | swig_obj[0] = args; | |
23204 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23205 | if (!SWIG_IsOK(res1)) { | |
23206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23207 | } | |
23208 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23209 | { | |
23210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23211 | result = (bool)(arg1)->CanBeToggled(); | |
23212 | wxPyEndAllowThreads(__tstate); | |
23213 | if (PyErr_Occurred()) SWIG_fail; | |
23214 | } | |
23215 | { | |
23216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23217 | } | |
23218 | return resultobj; | |
23219 | fail: | |
23220 | return NULL; | |
d1e20054 RD |
23221 | } |
23222 | ||
23223 | ||
0085ce49 RD |
23224 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23225 | PyObject *resultobj = 0; | |
23226 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23227 | wxBitmap *result = 0 ; | |
23228 | void *argp1 = 0 ; | |
23229 | int res1 = 0 ; | |
23230 | PyObject *swig_obj[1] ; | |
23231 | ||
23232 | if (!args) SWIG_fail; | |
23233 | swig_obj[0] = args; | |
23234 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23235 | if (!SWIG_IsOK(res1)) { | |
23236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23237 | } | |
23238 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23239 | { | |
23240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 23241 | { |
0085ce49 RD |
23242 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); |
23243 | result = (wxBitmap *) &_result_ref; | |
093d3ff1 | 23244 | } |
0085ce49 RD |
23245 | wxPyEndAllowThreads(__tstate); |
23246 | if (PyErr_Occurred()) SWIG_fail; | |
23247 | } | |
23248 | { | |
23249 | wxBitmap* resultptr = new wxBitmap(*result); | |
23250 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
23251 | } | |
23252 | return resultobj; | |
23253 | fail: | |
23254 | return NULL; | |
d1e20054 RD |
23255 | } |
23256 | ||
23257 | ||
0085ce49 RD |
23258 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23259 | PyObject *resultobj = 0; | |
23260 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23261 | wxBitmap *result = 0 ; | |
23262 | void *argp1 = 0 ; | |
23263 | int res1 = 0 ; | |
23264 | PyObject *swig_obj[1] ; | |
23265 | ||
23266 | if (!args) SWIG_fail; | |
23267 | swig_obj[0] = args; | |
23268 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23269 | if (!SWIG_IsOK(res1)) { | |
23270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23271 | } | |
23272 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23273 | { | |
23274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d1e20054 | 23275 | { |
0085ce49 RD |
23276 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); |
23277 | result = (wxBitmap *) &_result_ref; | |
d1e20054 | 23278 | } |
0085ce49 RD |
23279 | wxPyEndAllowThreads(__tstate); |
23280 | if (PyErr_Occurred()) SWIG_fail; | |
23281 | } | |
23282 | { | |
23283 | wxBitmap* resultptr = new wxBitmap(*result); | |
23284 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
23285 | } | |
23286 | return resultobj; | |
23287 | fail: | |
23288 | return NULL; | |
d1e20054 RD |
23289 | } |
23290 | ||
23291 | ||
0085ce49 RD |
23292 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23293 | PyObject *resultobj = 0; | |
23294 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23295 | wxBitmap result; | |
23296 | void *argp1 = 0 ; | |
23297 | int res1 = 0 ; | |
23298 | PyObject *swig_obj[1] ; | |
23299 | ||
23300 | if (!args) SWIG_fail; | |
23301 | swig_obj[0] = args; | |
23302 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23303 | if (!SWIG_IsOK(res1)) { | |
23304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23305 | } | |
23306 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23307 | { | |
23308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23309 | result = (arg1)->GetBitmap(); | |
23310 | wxPyEndAllowThreads(__tstate); | |
23311 | if (PyErr_Occurred()) SWIG_fail; | |
23312 | } | |
23313 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
23314 | return resultobj; | |
23315 | fail: | |
23316 | return NULL; | |
b2dc1044 RD |
23317 | } |
23318 | ||
23319 | ||
0085ce49 RD |
23320 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23321 | PyObject *resultobj = 0; | |
23322 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23323 | wxString result; | |
23324 | void *argp1 = 0 ; | |
23325 | int res1 = 0 ; | |
23326 | PyObject *swig_obj[1] ; | |
23327 | ||
23328 | if (!args) SWIG_fail; | |
23329 | swig_obj[0] = args; | |
23330 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23331 | if (!SWIG_IsOK(res1)) { | |
23332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23333 | } | |
23334 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23335 | { | |
23336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23337 | result = (arg1)->GetLabel(); | |
23338 | wxPyEndAllowThreads(__tstate); | |
23339 | if (PyErr_Occurred()) SWIG_fail; | |
23340 | } | |
23341 | { | |
b2dc1044 | 23342 | #if wxUSE_UNICODE |
0085ce49 | 23343 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 23344 | #else |
0085ce49 | 23345 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 23346 | #endif |
0085ce49 RD |
23347 | } |
23348 | return resultobj; | |
23349 | fail: | |
23350 | return NULL; | |
b2dc1044 RD |
23351 | } |
23352 | ||
23353 | ||
0085ce49 RD |
23354 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23355 | PyObject *resultobj = 0; | |
23356 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23357 | wxString result; | |
23358 | void *argp1 = 0 ; | |
23359 | int res1 = 0 ; | |
23360 | PyObject *swig_obj[1] ; | |
23361 | ||
23362 | if (!args) SWIG_fail; | |
23363 | swig_obj[0] = args; | |
23364 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23365 | if (!SWIG_IsOK(res1)) { | |
23366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23367 | } | |
23368 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23369 | { | |
23370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23371 | result = (arg1)->GetShortHelp(); | |
23372 | wxPyEndAllowThreads(__tstate); | |
23373 | if (PyErr_Occurred()) SWIG_fail; | |
23374 | } | |
23375 | { | |
b2dc1044 | 23376 | #if wxUSE_UNICODE |
0085ce49 | 23377 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 23378 | #else |
0085ce49 | 23379 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 23380 | #endif |
0085ce49 RD |
23381 | } |
23382 | return resultobj; | |
23383 | fail: | |
23384 | return NULL; | |
d14a1e28 RD |
23385 | } |
23386 | ||
23387 | ||
0085ce49 RD |
23388 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23389 | PyObject *resultobj = 0; | |
23390 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23391 | wxString result; | |
23392 | void *argp1 = 0 ; | |
23393 | int res1 = 0 ; | |
23394 | PyObject *swig_obj[1] ; | |
23395 | ||
23396 | if (!args) SWIG_fail; | |
23397 | swig_obj[0] = args; | |
23398 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23399 | if (!SWIG_IsOK(res1)) { | |
23400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23401 | } | |
23402 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23403 | { | |
23404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23405 | result = (arg1)->GetLongHelp(); | |
23406 | wxPyEndAllowThreads(__tstate); | |
23407 | if (PyErr_Occurred()) SWIG_fail; | |
23408 | } | |
23409 | { | |
23410 | #if wxUSE_UNICODE | |
23411 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23412 | #else | |
23413 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23414 | #endif | |
23415 | } | |
23416 | return resultobj; | |
23417 | fail: | |
23418 | return NULL; | |
23419 | } | |
23420 | ||
23421 | ||
23422 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23423 | PyObject *resultobj = 0; | |
23424 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23425 | bool arg2 ; | |
23426 | bool result; | |
23427 | void *argp1 = 0 ; | |
23428 | int res1 = 0 ; | |
23429 | bool val2 ; | |
23430 | int ecode2 = 0 ; | |
23431 | PyObject * obj0 = 0 ; | |
23432 | PyObject * obj1 = 0 ; | |
23433 | char * kwnames[] = { | |
23434 | (char *) "self",(char *) "enable", NULL | |
23435 | }; | |
23436 | ||
23437 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail; | |
23438 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23439 | if (!SWIG_IsOK(res1)) { | |
23440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23441 | } | |
23442 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23443 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23444 | if (!SWIG_IsOK(ecode2)) { | |
23445 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'"); | |
23446 | } | |
23447 | arg2 = static_cast< bool >(val2); | |
23448 | { | |
23449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23450 | result = (bool)(arg1)->Enable(arg2); | |
23451 | wxPyEndAllowThreads(__tstate); | |
23452 | if (PyErr_Occurred()) SWIG_fail; | |
23453 | } | |
23454 | { | |
23455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23456 | } | |
23457 | return resultobj; | |
23458 | fail: | |
23459 | return NULL; | |
d14a1e28 RD |
23460 | } |
23461 | ||
23462 | ||
0085ce49 RD |
23463 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23464 | PyObject *resultobj = 0; | |
23465 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23466 | void *argp1 = 0 ; | |
23467 | int res1 = 0 ; | |
23468 | PyObject *swig_obj[1] ; | |
23469 | ||
23470 | if (!args) SWIG_fail; | |
23471 | swig_obj[0] = args; | |
23472 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23473 | if (!SWIG_IsOK(res1)) { | |
23474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23475 | } | |
23476 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23477 | { | |
23478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23479 | (arg1)->Toggle(); | |
23480 | wxPyEndAllowThreads(__tstate); | |
23481 | if (PyErr_Occurred()) SWIG_fail; | |
23482 | } | |
23483 | resultobj = SWIG_Py_Void(); | |
23484 | return resultobj; | |
23485 | fail: | |
23486 | return NULL; | |
23487 | } | |
23488 | ||
23489 | ||
23490 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23491 | PyObject *resultobj = 0; | |
23492 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23493 | bool arg2 ; | |
23494 | bool result; | |
23495 | void *argp1 = 0 ; | |
23496 | int res1 = 0 ; | |
23497 | bool val2 ; | |
23498 | int ecode2 = 0 ; | |
23499 | PyObject * obj0 = 0 ; | |
23500 | PyObject * obj1 = 0 ; | |
23501 | char * kwnames[] = { | |
23502 | (char *) "self",(char *) "toggle", NULL | |
23503 | }; | |
23504 | ||
23505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
23506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23507 | if (!SWIG_IsOK(res1)) { | |
23508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23509 | } | |
23510 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23511 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23512 | if (!SWIG_IsOK(ecode2)) { | |
23513 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'"); | |
23514 | } | |
23515 | arg2 = static_cast< bool >(val2); | |
23516 | { | |
23517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23518 | result = (bool)(arg1)->SetToggle(arg2); | |
23519 | wxPyEndAllowThreads(__tstate); | |
23520 | if (PyErr_Occurred()) SWIG_fail; | |
23521 | } | |
23522 | { | |
23523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23524 | } | |
23525 | return resultobj; | |
23526 | fail: | |
23527 | return NULL; | |
23528 | } | |
23529 | ||
23530 | ||
23531 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23532 | PyObject *resultobj = 0; | |
23533 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23534 | wxString *arg2 = 0 ; | |
23535 | bool result; | |
23536 | void *argp1 = 0 ; | |
23537 | int res1 = 0 ; | |
23538 | bool temp2 = false ; | |
23539 | PyObject * obj0 = 0 ; | |
23540 | PyObject * obj1 = 0 ; | |
23541 | char * kwnames[] = { | |
23542 | (char *) "self",(char *) "help", NULL | |
23543 | }; | |
23544 | ||
23545 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
23546 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23547 | if (!SWIG_IsOK(res1)) { | |
23548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23549 | } | |
23550 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23551 | { | |
23552 | arg2 = wxString_in_helper(obj1); | |
23553 | if (arg2 == NULL) SWIG_fail; | |
23554 | temp2 = true; | |
23555 | } | |
23556 | { | |
23557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23558 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
23559 | wxPyEndAllowThreads(__tstate); | |
23560 | if (PyErr_Occurred()) SWIG_fail; | |
23561 | } | |
23562 | { | |
23563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23564 | } | |
23565 | { | |
23566 | if (temp2) | |
23567 | delete arg2; | |
23568 | } | |
23569 | return resultobj; | |
23570 | fail: | |
23571 | { | |
23572 | if (temp2) | |
23573 | delete arg2; | |
23574 | } | |
23575 | return NULL; | |
23576 | } | |
23577 | ||
23578 | ||
23579 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23580 | PyObject *resultobj = 0; | |
23581 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23582 | wxString *arg2 = 0 ; | |
23583 | bool result; | |
23584 | void *argp1 = 0 ; | |
23585 | int res1 = 0 ; | |
23586 | bool temp2 = false ; | |
23587 | PyObject * obj0 = 0 ; | |
23588 | PyObject * obj1 = 0 ; | |
23589 | char * kwnames[] = { | |
23590 | (char *) "self",(char *) "help", NULL | |
23591 | }; | |
23592 | ||
23593 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
23594 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23595 | if (!SWIG_IsOK(res1)) { | |
23596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23597 | } | |
23598 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23599 | { | |
23600 | arg2 = wxString_in_helper(obj1); | |
23601 | if (arg2 == NULL) SWIG_fail; | |
23602 | temp2 = true; | |
23603 | } | |
23604 | { | |
23605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23606 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
23607 | wxPyEndAllowThreads(__tstate); | |
23608 | if (PyErr_Occurred()) SWIG_fail; | |
23609 | } | |
23610 | { | |
23611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23612 | } | |
23613 | { | |
23614 | if (temp2) | |
23615 | delete arg2; | |
23616 | } | |
23617 | return resultobj; | |
23618 | fail: | |
23619 | { | |
23620 | if (temp2) | |
23621 | delete arg2; | |
23622 | } | |
23623 | return NULL; | |
23624 | } | |
23625 | ||
23626 | ||
23627 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23628 | PyObject *resultobj = 0; | |
23629 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23630 | wxBitmap *arg2 = 0 ; | |
23631 | void *argp1 = 0 ; | |
23632 | int res1 = 0 ; | |
23633 | void *argp2 = 0 ; | |
23634 | int res2 = 0 ; | |
23635 | PyObject * obj0 = 0 ; | |
23636 | PyObject * obj1 = 0 ; | |
23637 | char * kwnames[] = { | |
23638 | (char *) "self",(char *) "bmp", NULL | |
23639 | }; | |
23640 | ||
23641 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
23642 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23643 | if (!SWIG_IsOK(res1)) { | |
23644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23645 | } | |
23646 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23647 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23648 | if (!SWIG_IsOK(res2)) { | |
23649 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23650 | } | |
23651 | if (!argp2) { | |
23652 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23653 | } | |
23654 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
23655 | { | |
23656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23657 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
23658 | wxPyEndAllowThreads(__tstate); | |
23659 | if (PyErr_Occurred()) SWIG_fail; | |
23660 | } | |
23661 | resultobj = SWIG_Py_Void(); | |
23662 | return resultobj; | |
23663 | fail: | |
23664 | return NULL; | |
23665 | } | |
23666 | ||
23667 | ||
23668 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23669 | PyObject *resultobj = 0; | |
23670 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23671 | wxBitmap *arg2 = 0 ; | |
23672 | void *argp1 = 0 ; | |
23673 | int res1 = 0 ; | |
23674 | void *argp2 = 0 ; | |
23675 | int res2 = 0 ; | |
23676 | PyObject * obj0 = 0 ; | |
23677 | PyObject * obj1 = 0 ; | |
23678 | char * kwnames[] = { | |
23679 | (char *) "self",(char *) "bmp", NULL | |
23680 | }; | |
23681 | ||
23682 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
23683 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23684 | if (!SWIG_IsOK(res1)) { | |
23685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23686 | } | |
23687 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23688 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23689 | if (!SWIG_IsOK(res2)) { | |
23690 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23691 | } | |
23692 | if (!argp2) { | |
23693 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23694 | } | |
23695 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
23696 | { | |
23697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23698 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
23699 | wxPyEndAllowThreads(__tstate); | |
23700 | if (PyErr_Occurred()) SWIG_fail; | |
23701 | } | |
23702 | resultobj = SWIG_Py_Void(); | |
23703 | return resultobj; | |
23704 | fail: | |
23705 | return NULL; | |
23706 | } | |
23707 | ||
23708 | ||
23709 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23710 | PyObject *resultobj = 0; | |
23711 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23712 | wxString *arg2 = 0 ; | |
23713 | void *argp1 = 0 ; | |
23714 | int res1 = 0 ; | |
23715 | bool temp2 = false ; | |
23716 | PyObject * obj0 = 0 ; | |
23717 | PyObject * obj1 = 0 ; | |
23718 | char * kwnames[] = { | |
23719 | (char *) "self",(char *) "label", NULL | |
23720 | }; | |
23721 | ||
23722 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
23723 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23724 | if (!SWIG_IsOK(res1)) { | |
23725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23726 | } | |
23727 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23728 | { | |
23729 | arg2 = wxString_in_helper(obj1); | |
23730 | if (arg2 == NULL) SWIG_fail; | |
23731 | temp2 = true; | |
23732 | } | |
23733 | { | |
23734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23735 | (arg1)->SetLabel((wxString const &)*arg2); | |
23736 | wxPyEndAllowThreads(__tstate); | |
23737 | if (PyErr_Occurred()) SWIG_fail; | |
23738 | } | |
23739 | resultobj = SWIG_Py_Void(); | |
23740 | { | |
23741 | if (temp2) | |
23742 | delete arg2; | |
23743 | } | |
23744 | return resultobj; | |
23745 | fail: | |
23746 | { | |
23747 | if (temp2) | |
23748 | delete arg2; | |
23749 | } | |
23750 | return NULL; | |
d14a1e28 RD |
23751 | } |
23752 | ||
23753 | ||
0085ce49 RD |
23754 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23755 | PyObject *resultobj = 0; | |
23756 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23757 | void *argp1 = 0 ; | |
23758 | int res1 = 0 ; | |
23759 | PyObject *swig_obj[1] ; | |
23760 | ||
23761 | if (!args) SWIG_fail; | |
23762 | swig_obj[0] = args; | |
23763 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23764 | if (!SWIG_IsOK(res1)) { | |
23765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23766 | } | |
23767 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23768 | { | |
23769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23770 | (arg1)->Detach(); | |
23771 | wxPyEndAllowThreads(__tstate); | |
23772 | if (PyErr_Occurred()) SWIG_fail; | |
23773 | } | |
23774 | resultobj = SWIG_Py_Void(); | |
23775 | return resultobj; | |
23776 | fail: | |
23777 | return NULL; | |
23778 | } | |
23779 | ||
23780 | ||
23781 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23782 | PyObject *resultobj = 0; | |
23783 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23784 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
23785 | void *argp1 = 0 ; | |
23786 | int res1 = 0 ; | |
23787 | void *argp2 = 0 ; | |
23788 | int res2 = 0 ; | |
23789 | PyObject * obj0 = 0 ; | |
23790 | PyObject * obj1 = 0 ; | |
23791 | char * kwnames[] = { | |
23792 | (char *) "self",(char *) "tbar", NULL | |
23793 | }; | |
23794 | ||
23795 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail; | |
23796 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23797 | if (!SWIG_IsOK(res1)) { | |
23798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23799 | } | |
23800 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23801 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23802 | if (!SWIG_IsOK(res2)) { | |
23803 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'"); | |
23804 | } | |
23805 | arg2 = reinterpret_cast< wxToolBarBase * >(argp2); | |
23806 | { | |
23807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23808 | (arg1)->Attach(arg2); | |
23809 | wxPyEndAllowThreads(__tstate); | |
23810 | if (PyErr_Occurred()) SWIG_fail; | |
23811 | } | |
23812 | resultobj = SWIG_Py_Void(); | |
23813 | return resultobj; | |
23814 | fail: | |
23815 | return NULL; | |
d14a1e28 RD |
23816 | } |
23817 | ||
23818 | ||
0085ce49 RD |
23819 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23820 | PyObject *resultobj = 0; | |
23821 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23822 | PyObject *result = 0 ; | |
23823 | void *argp1 = 0 ; | |
23824 | int res1 = 0 ; | |
23825 | PyObject *swig_obj[1] ; | |
23826 | ||
23827 | if (!args) SWIG_fail; | |
23828 | swig_obj[0] = args; | |
23829 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23830 | if (!SWIG_IsOK(res1)) { | |
23831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23832 | } | |
23833 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23834 | { | |
23835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23836 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
23837 | wxPyEndAllowThreads(__tstate); | |
23838 | if (PyErr_Occurred()) SWIG_fail; | |
23839 | } | |
23840 | resultobj = result; | |
23841 | return resultobj; | |
23842 | fail: | |
23843 | return NULL; | |
23844 | } | |
23845 | ||
23846 | ||
23847 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23848 | PyObject *resultobj = 0; | |
23849 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23850 | PyObject *arg2 = (PyObject *) 0 ; | |
23851 | void *argp1 = 0 ; | |
23852 | int res1 = 0 ; | |
23853 | PyObject * obj0 = 0 ; | |
23854 | PyObject * obj1 = 0 ; | |
23855 | char * kwnames[] = { | |
23856 | (char *) "self",(char *) "clientData", NULL | |
23857 | }; | |
23858 | ||
23859 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail; | |
23860 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23861 | if (!SWIG_IsOK(res1)) { | |
23862 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23863 | } | |
23864 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23865 | arg2 = obj1; | |
23866 | { | |
23867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23868 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
23869 | wxPyEndAllowThreads(__tstate); | |
23870 | if (PyErr_Occurred()) SWIG_fail; | |
23871 | } | |
23872 | resultobj = SWIG_Py_Void(); | |
23873 | return resultobj; | |
23874 | fail: | |
23875 | return NULL; | |
23876 | } | |
23877 | ||
23878 | ||
23879 | SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23880 | PyObject *obj; | |
23881 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23882 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj)); | |
23883 | return SWIG_Py_Void(); | |
23884 | } | |
23885 | ||
23886 | SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23887 | PyObject *resultobj = 0; | |
23888 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23889 | int arg2 ; | |
23890 | wxString *arg3 = 0 ; | |
23891 | wxBitmap *arg4 = 0 ; | |
23892 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
23893 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
23894 | wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ; | |
23895 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
23896 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23897 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
23898 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23899 | PyObject *arg9 = (PyObject *) NULL ; | |
23900 | wxToolBarToolBase *result = 0 ; | |
23901 | void *argp1 = 0 ; | |
23902 | int res1 = 0 ; | |
23903 | int val2 ; | |
23904 | int ecode2 = 0 ; | |
23905 | bool temp3 = false ; | |
23906 | void *argp4 = 0 ; | |
23907 | int res4 = 0 ; | |
23908 | void *argp5 = 0 ; | |
23909 | int res5 = 0 ; | |
23910 | int val6 ; | |
23911 | int ecode6 = 0 ; | |
23912 | bool temp7 = false ; | |
23913 | bool temp8 = false ; | |
23914 | PyObject * obj0 = 0 ; | |
23915 | PyObject * obj1 = 0 ; | |
23916 | PyObject * obj2 = 0 ; | |
23917 | PyObject * obj3 = 0 ; | |
23918 | PyObject * obj4 = 0 ; | |
23919 | PyObject * obj5 = 0 ; | |
23920 | PyObject * obj6 = 0 ; | |
23921 | PyObject * obj7 = 0 ; | |
23922 | PyObject * obj8 = 0 ; | |
23923 | char * kwnames[] = { | |
23924 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
23925 | }; | |
23926 | ||
23927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
23928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23929 | if (!SWIG_IsOK(res1)) { | |
23930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23931 | } | |
23932 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23933 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23934 | if (!SWIG_IsOK(ecode2)) { | |
23935 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'"); | |
23936 | } | |
23937 | arg2 = static_cast< int >(val2); | |
23938 | { | |
23939 | arg3 = wxString_in_helper(obj2); | |
23940 | if (arg3 == NULL) SWIG_fail; | |
23941 | temp3 = true; | |
23942 | } | |
23943 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23944 | if (!SWIG_IsOK(res4)) { | |
23945 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
23946 | } | |
23947 | if (!argp4) { | |
23948 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
23949 | } | |
23950 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
23951 | if (obj4) { | |
23952 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23953 | if (!SWIG_IsOK(res5)) { | |
23954 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
d14a1e28 | 23955 | } |
0085ce49 RD |
23956 | if (!argp5) { |
23957 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
d14a1e28 | 23958 | } |
0085ce49 RD |
23959 | arg5 = reinterpret_cast< wxBitmap * >(argp5); |
23960 | } | |
23961 | if (obj5) { | |
23962 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
23963 | if (!SWIG_IsOK(ecode6)) { | |
23964 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'"); | |
23965 | } | |
23966 | arg6 = static_cast< wxItemKind >(val6); | |
23967 | } | |
23968 | if (obj6) { | |
093d3ff1 | 23969 | { |
0085ce49 RD |
23970 | arg7 = wxString_in_helper(obj6); |
23971 | if (arg7 == NULL) SWIG_fail; | |
23972 | temp7 = true; | |
093d3ff1 | 23973 | } |
0085ce49 RD |
23974 | } |
23975 | if (obj7) { | |
d14a1e28 | 23976 | { |
0085ce49 RD |
23977 | arg8 = wxString_in_helper(obj7); |
23978 | if (arg8 == NULL) SWIG_fail; | |
23979 | temp8 = true; | |
d14a1e28 | 23980 | } |
0085ce49 RD |
23981 | } |
23982 | if (obj8) { | |
23983 | arg9 = obj8; | |
23984 | } | |
23985 | { | |
23986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23987 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
23988 | wxPyEndAllowThreads(__tstate); | |
23989 | if (PyErr_Occurred()) SWIG_fail; | |
23990 | } | |
23991 | { | |
23992 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23993 | } | |
23994 | { | |
23995 | if (temp3) | |
23996 | delete arg3; | |
23997 | } | |
23998 | { | |
23999 | if (temp7) | |
24000 | delete arg7; | |
24001 | } | |
24002 | { | |
24003 | if (temp8) | |
24004 | delete arg8; | |
24005 | } | |
24006 | return resultobj; | |
24007 | fail: | |
24008 | { | |
24009 | if (temp3) | |
24010 | delete arg3; | |
24011 | } | |
24012 | { | |
24013 | if (temp7) | |
24014 | delete arg7; | |
24015 | } | |
24016 | { | |
24017 | if (temp8) | |
24018 | delete arg8; | |
24019 | } | |
24020 | return NULL; | |
24021 | } | |
24022 | ||
24023 | ||
24024 | SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24025 | PyObject *resultobj = 0; | |
24026 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24027 | size_t arg2 ; | |
24028 | int arg3 ; | |
24029 | wxString *arg4 = 0 ; | |
24030 | wxBitmap *arg5 = 0 ; | |
24031 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
24032 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
24033 | wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ; | |
24034 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
24035 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
24036 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
24037 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
24038 | PyObject *arg10 = (PyObject *) NULL ; | |
24039 | wxToolBarToolBase *result = 0 ; | |
24040 | void *argp1 = 0 ; | |
24041 | int res1 = 0 ; | |
24042 | size_t val2 ; | |
24043 | int ecode2 = 0 ; | |
24044 | int val3 ; | |
24045 | int ecode3 = 0 ; | |
24046 | bool temp4 = false ; | |
24047 | void *argp5 = 0 ; | |
24048 | int res5 = 0 ; | |
24049 | void *argp6 = 0 ; | |
24050 | int res6 = 0 ; | |
24051 | int val7 ; | |
24052 | int ecode7 = 0 ; | |
24053 | bool temp8 = false ; | |
24054 | bool temp9 = false ; | |
24055 | PyObject * obj0 = 0 ; | |
24056 | PyObject * obj1 = 0 ; | |
24057 | PyObject * obj2 = 0 ; | |
24058 | PyObject * obj3 = 0 ; | |
24059 | PyObject * obj4 = 0 ; | |
24060 | PyObject * obj5 = 0 ; | |
24061 | PyObject * obj6 = 0 ; | |
24062 | PyObject * obj7 = 0 ; | |
24063 | PyObject * obj8 = 0 ; | |
24064 | PyObject * obj9 = 0 ; | |
24065 | char * kwnames[] = { | |
24066 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
24067 | }; | |
24068 | ||
24069 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
24070 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24071 | if (!SWIG_IsOK(res1)) { | |
24072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24073 | } | |
24074 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24075 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24076 | if (!SWIG_IsOK(ecode2)) { | |
24077 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'"); | |
24078 | } | |
24079 | arg2 = static_cast< size_t >(val2); | |
24080 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24081 | if (!SWIG_IsOK(ecode3)) { | |
24082 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'"); | |
24083 | } | |
24084 | arg3 = static_cast< int >(val3); | |
24085 | { | |
24086 | arg4 = wxString_in_helper(obj3); | |
24087 | if (arg4 == NULL) SWIG_fail; | |
24088 | temp4 = true; | |
24089 | } | |
24090 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24091 | if (!SWIG_IsOK(res5)) { | |
24092 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
24093 | } | |
24094 | if (!argp5) { | |
24095 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
24096 | } | |
24097 | arg5 = reinterpret_cast< wxBitmap * >(argp5); | |
24098 | if (obj5) { | |
24099 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24100 | if (!SWIG_IsOK(res6)) { | |
24101 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'"); | |
d14a1e28 | 24102 | } |
0085ce49 RD |
24103 | if (!argp6) { |
24104 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 24105 | } |
0085ce49 RD |
24106 | arg6 = reinterpret_cast< wxBitmap * >(argp6); |
24107 | } | |
24108 | if (obj6) { | |
24109 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
24110 | if (!SWIG_IsOK(ecode7)) { | |
24111 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'"); | |
24112 | } | |
24113 | arg7 = static_cast< wxItemKind >(val7); | |
24114 | } | |
24115 | if (obj7) { | |
d14a1e28 | 24116 | { |
0085ce49 RD |
24117 | arg8 = wxString_in_helper(obj7); |
24118 | if (arg8 == NULL) SWIG_fail; | |
24119 | temp8 = true; | |
d14a1e28 | 24120 | } |
0085ce49 RD |
24121 | } |
24122 | if (obj8) { | |
d14a1e28 | 24123 | { |
0085ce49 RD |
24124 | arg9 = wxString_in_helper(obj8); |
24125 | if (arg9 == NULL) SWIG_fail; | |
24126 | temp9 = true; | |
d14a1e28 | 24127 | } |
0085ce49 RD |
24128 | } |
24129 | if (obj9) { | |
24130 | arg10 = obj9; | |
24131 | } | |
24132 | { | |
24133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24134 | result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10); | |
24135 | wxPyEndAllowThreads(__tstate); | |
24136 | if (PyErr_Occurred()) SWIG_fail; | |
24137 | } | |
24138 | { | |
24139 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24140 | } | |
24141 | { | |
24142 | if (temp4) | |
24143 | delete arg4; | |
24144 | } | |
24145 | { | |
24146 | if (temp8) | |
24147 | delete arg8; | |
24148 | } | |
24149 | { | |
24150 | if (temp9) | |
24151 | delete arg9; | |
24152 | } | |
24153 | return resultobj; | |
24154 | fail: | |
24155 | { | |
24156 | if (temp4) | |
24157 | delete arg4; | |
24158 | } | |
24159 | { | |
24160 | if (temp8) | |
24161 | delete arg8; | |
24162 | } | |
24163 | { | |
24164 | if (temp9) | |
24165 | delete arg9; | |
24166 | } | |
24167 | return NULL; | |
24168 | } | |
24169 | ||
24170 | ||
24171 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24172 | PyObject *resultobj = 0; | |
24173 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24174 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
24175 | wxToolBarToolBase *result = 0 ; | |
24176 | void *argp1 = 0 ; | |
24177 | int res1 = 0 ; | |
24178 | void *argp2 = 0 ; | |
24179 | int res2 = 0 ; | |
24180 | PyObject * obj0 = 0 ; | |
24181 | PyObject * obj1 = 0 ; | |
24182 | char * kwnames[] = { | |
24183 | (char *) "self",(char *) "tool", NULL | |
24184 | }; | |
24185 | ||
24186 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
24187 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24188 | if (!SWIG_IsOK(res1)) { | |
24189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24190 | } | |
24191 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24192 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
24193 | if (!SWIG_IsOK(res2)) { | |
24194 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'"); | |
24195 | } | |
24196 | arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2); | |
24197 | { | |
24198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24199 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
24200 | wxPyEndAllowThreads(__tstate); | |
24201 | if (PyErr_Occurred()) SWIG_fail; | |
24202 | } | |
24203 | { | |
24204 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24205 | } | |
24206 | return resultobj; | |
24207 | fail: | |
24208 | return NULL; | |
24209 | } | |
24210 | ||
24211 | ||
24212 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24213 | PyObject *resultobj = 0; | |
24214 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24215 | size_t arg2 ; | |
24216 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
24217 | wxToolBarToolBase *result = 0 ; | |
24218 | void *argp1 = 0 ; | |
24219 | int res1 = 0 ; | |
24220 | size_t val2 ; | |
24221 | int ecode2 = 0 ; | |
24222 | void *argp3 = 0 ; | |
24223 | int res3 = 0 ; | |
24224 | PyObject * obj0 = 0 ; | |
24225 | PyObject * obj1 = 0 ; | |
24226 | PyObject * obj2 = 0 ; | |
24227 | char * kwnames[] = { | |
24228 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
24229 | }; | |
24230 | ||
24231 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24232 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24233 | if (!SWIG_IsOK(res1)) { | |
24234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24235 | } | |
24236 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24237 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24238 | if (!SWIG_IsOK(ecode2)) { | |
24239 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'"); | |
24240 | } | |
24241 | arg2 = static_cast< size_t >(val2); | |
24242 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
24243 | if (!SWIG_IsOK(res3)) { | |
24244 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'"); | |
24245 | } | |
24246 | arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3); | |
24247 | { | |
24248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24249 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
24250 | wxPyEndAllowThreads(__tstate); | |
24251 | if (PyErr_Occurred()) SWIG_fail; | |
24252 | } | |
24253 | { | |
24254 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24255 | } | |
24256 | return resultobj; | |
24257 | fail: | |
24258 | return NULL; | |
24259 | } | |
24260 | ||
24261 | ||
24262 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24263 | PyObject *resultobj = 0; | |
24264 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24265 | wxControl *arg2 = (wxControl *) 0 ; | |
24266 | wxToolBarToolBase *result = 0 ; | |
24267 | void *argp1 = 0 ; | |
24268 | int res1 = 0 ; | |
24269 | void *argp2 = 0 ; | |
24270 | int res2 = 0 ; | |
24271 | PyObject * obj0 = 0 ; | |
24272 | PyObject * obj1 = 0 ; | |
24273 | char * kwnames[] = { | |
24274 | (char *) "self",(char *) "control", NULL | |
24275 | }; | |
24276 | ||
24277 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
24278 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24279 | if (!SWIG_IsOK(res1)) { | |
24280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24281 | } | |
24282 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24283 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 ); | |
24284 | if (!SWIG_IsOK(res2)) { | |
24285 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'"); | |
24286 | } | |
24287 | arg2 = reinterpret_cast< wxControl * >(argp2); | |
24288 | { | |
24289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24290 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
24291 | wxPyEndAllowThreads(__tstate); | |
24292 | if (PyErr_Occurred()) SWIG_fail; | |
24293 | } | |
24294 | { | |
24295 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24296 | } | |
24297 | return resultobj; | |
24298 | fail: | |
24299 | return NULL; | |
24300 | } | |
24301 | ||
24302 | ||
24303 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24304 | PyObject *resultobj = 0; | |
24305 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24306 | size_t arg2 ; | |
24307 | wxControl *arg3 = (wxControl *) 0 ; | |
24308 | wxToolBarToolBase *result = 0 ; | |
24309 | void *argp1 = 0 ; | |
24310 | int res1 = 0 ; | |
24311 | size_t val2 ; | |
24312 | int ecode2 = 0 ; | |
24313 | void *argp3 = 0 ; | |
24314 | int res3 = 0 ; | |
24315 | PyObject * obj0 = 0 ; | |
24316 | PyObject * obj1 = 0 ; | |
24317 | PyObject * obj2 = 0 ; | |
24318 | char * kwnames[] = { | |
24319 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
24320 | }; | |
24321 | ||
24322 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24323 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24324 | if (!SWIG_IsOK(res1)) { | |
24325 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24326 | } | |
24327 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24328 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24329 | if (!SWIG_IsOK(ecode2)) { | |
24330 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'"); | |
24331 | } | |
24332 | arg2 = static_cast< size_t >(val2); | |
24333 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 ); | |
24334 | if (!SWIG_IsOK(res3)) { | |
24335 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'"); | |
24336 | } | |
24337 | arg3 = reinterpret_cast< wxControl * >(argp3); | |
24338 | { | |
24339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24340 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
24341 | wxPyEndAllowThreads(__tstate); | |
24342 | if (PyErr_Occurred()) SWIG_fail; | |
24343 | } | |
24344 | { | |
24345 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24346 | } | |
24347 | return resultobj; | |
24348 | fail: | |
24349 | return NULL; | |
24350 | } | |
24351 | ||
24352 | ||
24353 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24354 | PyObject *resultobj = 0; | |
24355 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24356 | int arg2 ; | |
24357 | wxControl *result = 0 ; | |
24358 | void *argp1 = 0 ; | |
24359 | int res1 = 0 ; | |
24360 | int val2 ; | |
24361 | int ecode2 = 0 ; | |
24362 | PyObject * obj0 = 0 ; | |
24363 | PyObject * obj1 = 0 ; | |
24364 | char * kwnames[] = { | |
24365 | (char *) "self",(char *) "id", NULL | |
24366 | }; | |
24367 | ||
24368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
24369 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24370 | if (!SWIG_IsOK(res1)) { | |
24371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24372 | } | |
24373 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24374 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24375 | if (!SWIG_IsOK(ecode2)) { | |
24376 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'"); | |
24377 | } | |
24378 | arg2 = static_cast< int >(val2); | |
24379 | { | |
24380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24381 | result = (wxControl *)(arg1)->FindControl(arg2); | |
24382 | wxPyEndAllowThreads(__tstate); | |
24383 | if (PyErr_Occurred()) SWIG_fail; | |
24384 | } | |
24385 | { | |
24386 | resultobj = wxPyMake_wxObject(result, 0); | |
24387 | } | |
24388 | return resultobj; | |
24389 | fail: | |
24390 | return NULL; | |
d14a1e28 RD |
24391 | } |
24392 | ||
24393 | ||
0085ce49 RD |
24394 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24395 | PyObject *resultobj = 0; | |
24396 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24397 | wxToolBarToolBase *result = 0 ; | |
24398 | void *argp1 = 0 ; | |
24399 | int res1 = 0 ; | |
24400 | PyObject *swig_obj[1] ; | |
24401 | ||
24402 | if (!args) SWIG_fail; | |
24403 | swig_obj[0] = args; | |
24404 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24405 | if (!SWIG_IsOK(res1)) { | |
24406 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24407 | } | |
24408 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24409 | { | |
24410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24411 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
24412 | wxPyEndAllowThreads(__tstate); | |
24413 | if (PyErr_Occurred()) SWIG_fail; | |
24414 | } | |
24415 | { | |
24416 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24417 | } | |
24418 | return resultobj; | |
24419 | fail: | |
24420 | return NULL; | |
24421 | } | |
24422 | ||
24423 | ||
24424 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24425 | PyObject *resultobj = 0; | |
24426 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24427 | size_t arg2 ; | |
24428 | wxToolBarToolBase *result = 0 ; | |
24429 | void *argp1 = 0 ; | |
24430 | int res1 = 0 ; | |
24431 | size_t val2 ; | |
24432 | int ecode2 = 0 ; | |
24433 | PyObject * obj0 = 0 ; | |
24434 | PyObject * obj1 = 0 ; | |
24435 | char * kwnames[] = { | |
24436 | (char *) "self",(char *) "pos", NULL | |
24437 | }; | |
24438 | ||
24439 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail; | |
24440 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24441 | if (!SWIG_IsOK(res1)) { | |
24442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24443 | } | |
24444 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24445 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24446 | if (!SWIG_IsOK(ecode2)) { | |
24447 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'"); | |
24448 | } | |
24449 | arg2 = static_cast< size_t >(val2); | |
24450 | { | |
24451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24452 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
24453 | wxPyEndAllowThreads(__tstate); | |
24454 | if (PyErr_Occurred()) SWIG_fail; | |
24455 | } | |
24456 | { | |
24457 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24458 | } | |
24459 | return resultobj; | |
24460 | fail: | |
24461 | return NULL; | |
24462 | } | |
24463 | ||
24464 | ||
24465 | SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24466 | PyObject *resultobj = 0; | |
24467 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24468 | int arg2 ; | |
24469 | wxToolBarToolBase *result = 0 ; | |
24470 | void *argp1 = 0 ; | |
24471 | int res1 = 0 ; | |
24472 | int val2 ; | |
24473 | int ecode2 = 0 ; | |
24474 | PyObject * obj0 = 0 ; | |
24475 | PyObject * obj1 = 0 ; | |
24476 | char * kwnames[] = { | |
24477 | (char *) "self",(char *) "id", NULL | |
24478 | }; | |
24479 | ||
24480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail; | |
24481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24482 | if (!SWIG_IsOK(res1)) { | |
24483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24484 | } | |
24485 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24486 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24487 | if (!SWIG_IsOK(ecode2)) { | |
24488 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'"); | |
24489 | } | |
24490 | arg2 = static_cast< int >(val2); | |
24491 | { | |
24492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24493 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
24494 | wxPyEndAllowThreads(__tstate); | |
24495 | if (PyErr_Occurred()) SWIG_fail; | |
24496 | } | |
24497 | { | |
24498 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24499 | } | |
24500 | return resultobj; | |
24501 | fail: | |
24502 | return NULL; | |
24503 | } | |
24504 | ||
24505 | ||
24506 | SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24507 | PyObject *resultobj = 0; | |
24508 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24509 | size_t arg2 ; | |
24510 | bool result; | |
24511 | void *argp1 = 0 ; | |
24512 | int res1 = 0 ; | |
24513 | size_t val2 ; | |
24514 | int ecode2 = 0 ; | |
24515 | PyObject * obj0 = 0 ; | |
24516 | PyObject * obj1 = 0 ; | |
24517 | char * kwnames[] = { | |
24518 | (char *) "self",(char *) "pos", NULL | |
24519 | }; | |
24520 | ||
24521 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
24522 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24523 | if (!SWIG_IsOK(res1)) { | |
24524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24525 | } | |
24526 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24527 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24528 | if (!SWIG_IsOK(ecode2)) { | |
24529 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'"); | |
24530 | } | |
24531 | arg2 = static_cast< size_t >(val2); | |
24532 | { | |
24533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24534 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
24535 | wxPyEndAllowThreads(__tstate); | |
24536 | if (PyErr_Occurred()) SWIG_fail; | |
24537 | } | |
24538 | { | |
24539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24540 | } | |
24541 | return resultobj; | |
24542 | fail: | |
24543 | return NULL; | |
24544 | } | |
24545 | ||
24546 | ||
24547 | SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24548 | PyObject *resultobj = 0; | |
24549 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24550 | int arg2 ; | |
24551 | bool result; | |
24552 | void *argp1 = 0 ; | |
24553 | int res1 = 0 ; | |
24554 | int val2 ; | |
24555 | int ecode2 = 0 ; | |
24556 | PyObject * obj0 = 0 ; | |
24557 | PyObject * obj1 = 0 ; | |
24558 | char * kwnames[] = { | |
24559 | (char *) "self",(char *) "id", NULL | |
24560 | }; | |
24561 | ||
24562 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail; | |
24563 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24564 | if (!SWIG_IsOK(res1)) { | |
24565 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24566 | } | |
24567 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24568 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24569 | if (!SWIG_IsOK(ecode2)) { | |
24570 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'"); | |
24571 | } | |
24572 | arg2 = static_cast< int >(val2); | |
24573 | { | |
24574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24575 | result = (bool)(arg1)->DeleteTool(arg2); | |
24576 | wxPyEndAllowThreads(__tstate); | |
24577 | if (PyErr_Occurred()) SWIG_fail; | |
24578 | } | |
24579 | { | |
24580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24581 | } | |
24582 | return resultobj; | |
24583 | fail: | |
24584 | return NULL; | |
d14a1e28 RD |
24585 | } |
24586 | ||
24587 | ||
0085ce49 RD |
24588 | SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24589 | PyObject *resultobj = 0; | |
24590 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24591 | void *argp1 = 0 ; | |
24592 | int res1 = 0 ; | |
24593 | PyObject *swig_obj[1] ; | |
24594 | ||
24595 | if (!args) SWIG_fail; | |
24596 | swig_obj[0] = args; | |
24597 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24598 | if (!SWIG_IsOK(res1)) { | |
24599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24600 | } | |
24601 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24602 | { | |
24603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24604 | (arg1)->ClearTools(); | |
24605 | wxPyEndAllowThreads(__tstate); | |
24606 | if (PyErr_Occurred()) SWIG_fail; | |
24607 | } | |
24608 | resultobj = SWIG_Py_Void(); | |
24609 | return resultobj; | |
24610 | fail: | |
24611 | return NULL; | |
d14a1e28 RD |
24612 | } |
24613 | ||
24614 | ||
0085ce49 RD |
24615 | SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24616 | PyObject *resultobj = 0; | |
24617 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24618 | bool result; | |
24619 | void *argp1 = 0 ; | |
24620 | int res1 = 0 ; | |
24621 | PyObject *swig_obj[1] ; | |
24622 | ||
24623 | if (!args) SWIG_fail; | |
24624 | swig_obj[0] = args; | |
24625 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24626 | if (!SWIG_IsOK(res1)) { | |
24627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24628 | } | |
24629 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24630 | { | |
24631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24632 | result = (bool)(arg1)->Realize(); | |
24633 | wxPyEndAllowThreads(__tstate); | |
24634 | if (PyErr_Occurred()) SWIG_fail; | |
24635 | } | |
24636 | { | |
24637 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24638 | } | |
24639 | return resultobj; | |
24640 | fail: | |
24641 | return NULL; | |
24642 | } | |
24643 | ||
24644 | ||
24645 | SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24646 | PyObject *resultobj = 0; | |
24647 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24648 | int arg2 ; | |
24649 | bool arg3 ; | |
24650 | void *argp1 = 0 ; | |
24651 | int res1 = 0 ; | |
24652 | int val2 ; | |
24653 | int ecode2 = 0 ; | |
24654 | bool val3 ; | |
24655 | int ecode3 = 0 ; | |
24656 | PyObject * obj0 = 0 ; | |
24657 | PyObject * obj1 = 0 ; | |
24658 | PyObject * obj2 = 0 ; | |
24659 | char * kwnames[] = { | |
24660 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
24661 | }; | |
24662 | ||
24663 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24664 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24665 | if (!SWIG_IsOK(res1)) { | |
24666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24667 | } | |
24668 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24669 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24670 | if (!SWIG_IsOK(ecode2)) { | |
24671 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'"); | |
24672 | } | |
24673 | arg2 = static_cast< int >(val2); | |
24674 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24675 | if (!SWIG_IsOK(ecode3)) { | |
24676 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'"); | |
24677 | } | |
24678 | arg3 = static_cast< bool >(val3); | |
24679 | { | |
24680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24681 | (arg1)->EnableTool(arg2,arg3); | |
24682 | wxPyEndAllowThreads(__tstate); | |
24683 | if (PyErr_Occurred()) SWIG_fail; | |
24684 | } | |
24685 | resultobj = SWIG_Py_Void(); | |
24686 | return resultobj; | |
24687 | fail: | |
24688 | return NULL; | |
24689 | } | |
24690 | ||
24691 | ||
24692 | SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24693 | PyObject *resultobj = 0; | |
24694 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24695 | int arg2 ; | |
24696 | bool arg3 ; | |
24697 | void *argp1 = 0 ; | |
24698 | int res1 = 0 ; | |
24699 | int val2 ; | |
24700 | int ecode2 = 0 ; | |
24701 | bool val3 ; | |
24702 | int ecode3 = 0 ; | |
24703 | PyObject * obj0 = 0 ; | |
24704 | PyObject * obj1 = 0 ; | |
24705 | PyObject * obj2 = 0 ; | |
24706 | char * kwnames[] = { | |
24707 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
24708 | }; | |
24709 | ||
24710 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24711 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24712 | if (!SWIG_IsOK(res1)) { | |
24713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24714 | } | |
24715 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24716 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24717 | if (!SWIG_IsOK(ecode2)) { | |
24718 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'"); | |
24719 | } | |
24720 | arg2 = static_cast< int >(val2); | |
24721 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24722 | if (!SWIG_IsOK(ecode3)) { | |
24723 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'"); | |
24724 | } | |
24725 | arg3 = static_cast< bool >(val3); | |
24726 | { | |
24727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24728 | (arg1)->ToggleTool(arg2,arg3); | |
24729 | wxPyEndAllowThreads(__tstate); | |
24730 | if (PyErr_Occurred()) SWIG_fail; | |
24731 | } | |
24732 | resultobj = SWIG_Py_Void(); | |
24733 | return resultobj; | |
24734 | fail: | |
24735 | return NULL; | |
24736 | } | |
24737 | ||
24738 | ||
24739 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24740 | PyObject *resultobj = 0; | |
24741 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24742 | int arg2 ; | |
24743 | bool arg3 ; | |
24744 | void *argp1 = 0 ; | |
24745 | int res1 = 0 ; | |
24746 | int val2 ; | |
24747 | int ecode2 = 0 ; | |
24748 | bool val3 ; | |
24749 | int ecode3 = 0 ; | |
24750 | PyObject * obj0 = 0 ; | |
24751 | PyObject * obj1 = 0 ; | |
24752 | PyObject * obj2 = 0 ; | |
24753 | char * kwnames[] = { | |
24754 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
24755 | }; | |
24756 | ||
24757 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24758 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24759 | if (!SWIG_IsOK(res1)) { | |
24760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24761 | } | |
24762 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24763 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24764 | if (!SWIG_IsOK(ecode2)) { | |
24765 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'"); | |
24766 | } | |
24767 | arg2 = static_cast< int >(val2); | |
24768 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24769 | if (!SWIG_IsOK(ecode3)) { | |
24770 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'"); | |
24771 | } | |
24772 | arg3 = static_cast< bool >(val3); | |
24773 | { | |
24774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24775 | (arg1)->SetToggle(arg2,arg3); | |
24776 | wxPyEndAllowThreads(__tstate); | |
24777 | if (PyErr_Occurred()) SWIG_fail; | |
24778 | } | |
24779 | resultobj = SWIG_Py_Void(); | |
24780 | return resultobj; | |
24781 | fail: | |
24782 | return NULL; | |
24783 | } | |
24784 | ||
24785 | ||
24786 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24787 | PyObject *resultobj = 0; | |
24788 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24789 | int arg2 ; | |
24790 | PyObject *result = 0 ; | |
24791 | void *argp1 = 0 ; | |
24792 | int res1 = 0 ; | |
24793 | int val2 ; | |
24794 | int ecode2 = 0 ; | |
24795 | PyObject * obj0 = 0 ; | |
24796 | PyObject * obj1 = 0 ; | |
24797 | char * kwnames[] = { | |
24798 | (char *) "self",(char *) "id", NULL | |
24799 | }; | |
24800 | ||
24801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24802 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24803 | if (!SWIG_IsOK(res1)) { | |
24804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24805 | } | |
24806 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24807 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24808 | if (!SWIG_IsOK(ecode2)) { | |
24809 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'"); | |
24810 | } | |
24811 | arg2 = static_cast< int >(val2); | |
24812 | { | |
24813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24814 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
24815 | wxPyEndAllowThreads(__tstate); | |
24816 | if (PyErr_Occurred()) SWIG_fail; | |
24817 | } | |
24818 | resultobj = result; | |
24819 | return resultobj; | |
24820 | fail: | |
24821 | return NULL; | |
24822 | } | |
24823 | ||
24824 | ||
24825 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24826 | PyObject *resultobj = 0; | |
24827 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24828 | int arg2 ; | |
24829 | PyObject *arg3 = (PyObject *) 0 ; | |
24830 | void *argp1 = 0 ; | |
24831 | int res1 = 0 ; | |
24832 | int val2 ; | |
24833 | int ecode2 = 0 ; | |
24834 | PyObject * obj0 = 0 ; | |
24835 | PyObject * obj1 = 0 ; | |
24836 | PyObject * obj2 = 0 ; | |
24837 | char * kwnames[] = { | |
24838 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
24839 | }; | |
24840 | ||
24841 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24842 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24843 | if (!SWIG_IsOK(res1)) { | |
24844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24845 | } | |
24846 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24847 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24848 | if (!SWIG_IsOK(ecode2)) { | |
24849 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'"); | |
24850 | } | |
24851 | arg2 = static_cast< int >(val2); | |
24852 | arg3 = obj2; | |
24853 | { | |
24854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24855 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
24856 | wxPyEndAllowThreads(__tstate); | |
24857 | if (PyErr_Occurred()) SWIG_fail; | |
24858 | } | |
24859 | resultobj = SWIG_Py_Void(); | |
24860 | return resultobj; | |
24861 | fail: | |
24862 | return NULL; | |
24863 | } | |
24864 | ||
24865 | ||
24866 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24867 | PyObject *resultobj = 0; | |
24868 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24869 | int arg2 ; | |
24870 | int result; | |
24871 | void *argp1 = 0 ; | |
24872 | int res1 = 0 ; | |
24873 | int val2 ; | |
24874 | int ecode2 = 0 ; | |
24875 | PyObject * obj0 = 0 ; | |
24876 | PyObject * obj1 = 0 ; | |
24877 | char * kwnames[] = { | |
24878 | (char *) "self",(char *) "id", NULL | |
24879 | }; | |
24880 | ||
24881 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
24882 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24883 | if (!SWIG_IsOK(res1)) { | |
24884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
24885 | } | |
24886 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24887 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24888 | if (!SWIG_IsOK(ecode2)) { | |
24889 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'"); | |
24890 | } | |
24891 | arg2 = static_cast< int >(val2); | |
24892 | { | |
24893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24894 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
24895 | wxPyEndAllowThreads(__tstate); | |
24896 | if (PyErr_Occurred()) SWIG_fail; | |
24897 | } | |
24898 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24899 | return resultobj; | |
24900 | fail: | |
24901 | return NULL; | |
24902 | } | |
24903 | ||
24904 | ||
24905 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24906 | PyObject *resultobj = 0; | |
24907 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24908 | int arg2 ; | |
24909 | bool result; | |
24910 | void *argp1 = 0 ; | |
24911 | int res1 = 0 ; | |
24912 | int val2 ; | |
24913 | int ecode2 = 0 ; | |
24914 | PyObject * obj0 = 0 ; | |
24915 | PyObject * obj1 = 0 ; | |
24916 | char * kwnames[] = { | |
24917 | (char *) "self",(char *) "id", NULL | |
24918 | }; | |
24919 | ||
24920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail; | |
24921 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24922 | if (!SWIG_IsOK(res1)) { | |
24923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24924 | } | |
24925 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24926 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24927 | if (!SWIG_IsOK(ecode2)) { | |
24928 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'"); | |
24929 | } | |
24930 | arg2 = static_cast< int >(val2); | |
24931 | { | |
24932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24933 | result = (bool)(arg1)->GetToolState(arg2); | |
24934 | wxPyEndAllowThreads(__tstate); | |
24935 | if (PyErr_Occurred()) SWIG_fail; | |
24936 | } | |
24937 | { | |
24938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24939 | } | |
24940 | return resultobj; | |
24941 | fail: | |
24942 | return NULL; | |
24943 | } | |
24944 | ||
24945 | ||
24946 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24947 | PyObject *resultobj = 0; | |
24948 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24949 | int arg2 ; | |
24950 | bool result; | |
24951 | void *argp1 = 0 ; | |
24952 | int res1 = 0 ; | |
24953 | int val2 ; | |
24954 | int ecode2 = 0 ; | |
24955 | PyObject * obj0 = 0 ; | |
24956 | PyObject * obj1 = 0 ; | |
24957 | char * kwnames[] = { | |
24958 | (char *) "self",(char *) "id", NULL | |
24959 | }; | |
24960 | ||
24961 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
24962 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24963 | if (!SWIG_IsOK(res1)) { | |
24964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24965 | } | |
24966 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24967 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24968 | if (!SWIG_IsOK(ecode2)) { | |
24969 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'"); | |
24970 | } | |
24971 | arg2 = static_cast< int >(val2); | |
24972 | { | |
24973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24974 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
24975 | wxPyEndAllowThreads(__tstate); | |
24976 | if (PyErr_Occurred()) SWIG_fail; | |
24977 | } | |
24978 | { | |
24979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24980 | } | |
24981 | return resultobj; | |
24982 | fail: | |
24983 | return NULL; | |
24984 | } | |
24985 | ||
24986 | ||
24987 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24988 | PyObject *resultobj = 0; | |
24989 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24990 | int arg2 ; | |
24991 | wxString *arg3 = 0 ; | |
24992 | void *argp1 = 0 ; | |
24993 | int res1 = 0 ; | |
24994 | int val2 ; | |
24995 | int ecode2 = 0 ; | |
24996 | bool temp3 = false ; | |
24997 | PyObject * obj0 = 0 ; | |
24998 | PyObject * obj1 = 0 ; | |
24999 | PyObject * obj2 = 0 ; | |
25000 | char * kwnames[] = { | |
25001 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
25002 | }; | |
25003 | ||
25004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25005 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25006 | if (!SWIG_IsOK(res1)) { | |
25007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25008 | } | |
25009 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25010 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25011 | if (!SWIG_IsOK(ecode2)) { | |
25012 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'"); | |
25013 | } | |
25014 | arg2 = static_cast< int >(val2); | |
25015 | { | |
25016 | arg3 = wxString_in_helper(obj2); | |
25017 | if (arg3 == NULL) SWIG_fail; | |
25018 | temp3 = true; | |
25019 | } | |
25020 | { | |
25021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25022 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
25023 | wxPyEndAllowThreads(__tstate); | |
25024 | if (PyErr_Occurred()) SWIG_fail; | |
25025 | } | |
25026 | resultobj = SWIG_Py_Void(); | |
25027 | { | |
25028 | if (temp3) | |
25029 | delete arg3; | |
25030 | } | |
25031 | return resultobj; | |
25032 | fail: | |
25033 | { | |
25034 | if (temp3) | |
25035 | delete arg3; | |
25036 | } | |
25037 | return NULL; | |
25038 | } | |
25039 | ||
25040 | ||
25041 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25042 | PyObject *resultobj = 0; | |
25043 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25044 | int arg2 ; | |
25045 | wxString result; | |
25046 | void *argp1 = 0 ; | |
25047 | int res1 = 0 ; | |
25048 | int val2 ; | |
25049 | int ecode2 = 0 ; | |
25050 | PyObject * obj0 = 0 ; | |
25051 | PyObject * obj1 = 0 ; | |
25052 | char * kwnames[] = { | |
25053 | (char *) "self",(char *) "id", NULL | |
25054 | }; | |
25055 | ||
25056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
25057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25058 | if (!SWIG_IsOK(res1)) { | |
25059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25060 | } | |
25061 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25062 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25063 | if (!SWIG_IsOK(ecode2)) { | |
25064 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'"); | |
25065 | } | |
25066 | arg2 = static_cast< int >(val2); | |
25067 | { | |
25068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25069 | result = (arg1)->GetToolShortHelp(arg2); | |
25070 | wxPyEndAllowThreads(__tstate); | |
25071 | if (PyErr_Occurred()) SWIG_fail; | |
25072 | } | |
25073 | { | |
25074 | #if wxUSE_UNICODE | |
25075 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25076 | #else | |
25077 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25078 | #endif | |
25079 | } | |
25080 | return resultobj; | |
25081 | fail: | |
25082 | return NULL; | |
25083 | } | |
25084 | ||
25085 | ||
25086 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25087 | PyObject *resultobj = 0; | |
25088 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25089 | int arg2 ; | |
25090 | wxString *arg3 = 0 ; | |
25091 | void *argp1 = 0 ; | |
25092 | int res1 = 0 ; | |
25093 | int val2 ; | |
25094 | int ecode2 = 0 ; | |
25095 | bool temp3 = false ; | |
25096 | PyObject * obj0 = 0 ; | |
25097 | PyObject * obj1 = 0 ; | |
25098 | PyObject * obj2 = 0 ; | |
25099 | char * kwnames[] = { | |
25100 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
25101 | }; | |
25102 | ||
25103 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25104 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25105 | if (!SWIG_IsOK(res1)) { | |
25106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25107 | } | |
25108 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25109 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25110 | if (!SWIG_IsOK(ecode2)) { | |
25111 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'"); | |
25112 | } | |
25113 | arg2 = static_cast< int >(val2); | |
25114 | { | |
25115 | arg3 = wxString_in_helper(obj2); | |
25116 | if (arg3 == NULL) SWIG_fail; | |
25117 | temp3 = true; | |
25118 | } | |
25119 | { | |
25120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25121 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
25122 | wxPyEndAllowThreads(__tstate); | |
25123 | if (PyErr_Occurred()) SWIG_fail; | |
25124 | } | |
25125 | resultobj = SWIG_Py_Void(); | |
25126 | { | |
25127 | if (temp3) | |
25128 | delete arg3; | |
25129 | } | |
25130 | return resultobj; | |
25131 | fail: | |
25132 | { | |
25133 | if (temp3) | |
25134 | delete arg3; | |
25135 | } | |
25136 | return NULL; | |
25137 | } | |
25138 | ||
25139 | ||
25140 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25141 | PyObject *resultobj = 0; | |
25142 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25143 | int arg2 ; | |
25144 | wxString result; | |
25145 | void *argp1 = 0 ; | |
25146 | int res1 = 0 ; | |
25147 | int val2 ; | |
25148 | int ecode2 = 0 ; | |
25149 | PyObject * obj0 = 0 ; | |
25150 | PyObject * obj1 = 0 ; | |
25151 | char * kwnames[] = { | |
25152 | (char *) "self",(char *) "id", NULL | |
25153 | }; | |
25154 | ||
25155 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
25156 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25157 | if (!SWIG_IsOK(res1)) { | |
25158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25159 | } | |
25160 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25161 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25162 | if (!SWIG_IsOK(ecode2)) { | |
25163 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'"); | |
25164 | } | |
25165 | arg2 = static_cast< int >(val2); | |
25166 | { | |
25167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25168 | result = (arg1)->GetToolLongHelp(arg2); | |
25169 | wxPyEndAllowThreads(__tstate); | |
25170 | if (PyErr_Occurred()) SWIG_fail; | |
25171 | } | |
25172 | { | |
25173 | #if wxUSE_UNICODE | |
25174 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25175 | #else | |
25176 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25177 | #endif | |
25178 | } | |
25179 | return resultobj; | |
25180 | fail: | |
25181 | return NULL; | |
25182 | } | |
25183 | ||
25184 | ||
25185 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25186 | PyObject *resultobj = 0; | |
25187 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25188 | int arg2 ; | |
25189 | int arg3 ; | |
25190 | void *argp1 = 0 ; | |
25191 | int res1 = 0 ; | |
25192 | int val2 ; | |
25193 | int ecode2 = 0 ; | |
25194 | int val3 ; | |
25195 | int ecode3 = 0 ; | |
25196 | PyObject * obj0 = 0 ; | |
25197 | PyObject * obj1 = 0 ; | |
25198 | PyObject * obj2 = 0 ; | |
25199 | char * kwnames[] = { | |
25200 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25201 | }; | |
25202 | ||
25203 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25204 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25205 | if (!SWIG_IsOK(res1)) { | |
25206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25207 | } | |
25208 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25209 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25210 | if (!SWIG_IsOK(ecode2)) { | |
25211 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'"); | |
25212 | } | |
25213 | arg2 = static_cast< int >(val2); | |
25214 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25215 | if (!SWIG_IsOK(ecode3)) { | |
25216 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'"); | |
25217 | } | |
25218 | arg3 = static_cast< int >(val3); | |
25219 | { | |
25220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25221 | (arg1)->SetMargins(arg2,arg3); | |
25222 | wxPyEndAllowThreads(__tstate); | |
25223 | if (PyErr_Occurred()) SWIG_fail; | |
25224 | } | |
25225 | resultobj = SWIG_Py_Void(); | |
25226 | return resultobj; | |
25227 | fail: | |
25228 | return NULL; | |
25229 | } | |
25230 | ||
25231 | ||
25232 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25233 | PyObject *resultobj = 0; | |
25234 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25235 | wxSize *arg2 = 0 ; | |
25236 | void *argp1 = 0 ; | |
25237 | int res1 = 0 ; | |
25238 | wxSize temp2 ; | |
25239 | PyObject * obj0 = 0 ; | |
25240 | PyObject * obj1 = 0 ; | |
25241 | char * kwnames[] = { | |
25242 | (char *) "self",(char *) "size", NULL | |
25243 | }; | |
25244 | ||
25245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
25246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25247 | if (!SWIG_IsOK(res1)) { | |
25248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25249 | } | |
25250 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25251 | { | |
25252 | arg2 = &temp2; | |
25253 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25254 | } | |
25255 | { | |
25256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25257 | (arg1)->SetMargins((wxSize const &)*arg2); | |
25258 | wxPyEndAllowThreads(__tstate); | |
25259 | if (PyErr_Occurred()) SWIG_fail; | |
25260 | } | |
25261 | resultobj = SWIG_Py_Void(); | |
25262 | return resultobj; | |
25263 | fail: | |
25264 | return NULL; | |
25265 | } | |
25266 | ||
25267 | ||
25268 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25269 | PyObject *resultobj = 0; | |
25270 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25271 | int arg2 ; | |
25272 | void *argp1 = 0 ; | |
25273 | int res1 = 0 ; | |
25274 | int val2 ; | |
25275 | int ecode2 = 0 ; | |
25276 | PyObject * obj0 = 0 ; | |
25277 | PyObject * obj1 = 0 ; | |
25278 | char * kwnames[] = { | |
25279 | (char *) "self",(char *) "packing", NULL | |
25280 | }; | |
25281 | ||
25282 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail; | |
25283 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25284 | if (!SWIG_IsOK(res1)) { | |
25285 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25286 | } | |
25287 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25288 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25289 | if (!SWIG_IsOK(ecode2)) { | |
25290 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'"); | |
25291 | } | |
25292 | arg2 = static_cast< int >(val2); | |
25293 | { | |
25294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25295 | (arg1)->SetToolPacking(arg2); | |
25296 | wxPyEndAllowThreads(__tstate); | |
25297 | if (PyErr_Occurred()) SWIG_fail; | |
25298 | } | |
25299 | resultobj = SWIG_Py_Void(); | |
25300 | return resultobj; | |
25301 | fail: | |
25302 | return NULL; | |
25303 | } | |
25304 | ||
25305 | ||
25306 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25307 | PyObject *resultobj = 0; | |
25308 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25309 | int arg2 ; | |
25310 | void *argp1 = 0 ; | |
25311 | int res1 = 0 ; | |
25312 | int val2 ; | |
25313 | int ecode2 = 0 ; | |
25314 | PyObject * obj0 = 0 ; | |
25315 | PyObject * obj1 = 0 ; | |
25316 | char * kwnames[] = { | |
25317 | (char *) "self",(char *) "separation", NULL | |
25318 | }; | |
25319 | ||
25320 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail; | |
25321 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25322 | if (!SWIG_IsOK(res1)) { | |
25323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25324 | } | |
25325 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25326 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25327 | if (!SWIG_IsOK(ecode2)) { | |
25328 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'"); | |
25329 | } | |
25330 | arg2 = static_cast< int >(val2); | |
25331 | { | |
25332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25333 | (arg1)->SetToolSeparation(arg2); | |
25334 | wxPyEndAllowThreads(__tstate); | |
25335 | if (PyErr_Occurred()) SWIG_fail; | |
25336 | } | |
25337 | resultobj = SWIG_Py_Void(); | |
25338 | return resultobj; | |
25339 | fail: | |
25340 | return NULL; | |
d14a1e28 RD |
25341 | } |
25342 | ||
25343 | ||
0085ce49 RD |
25344 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25345 | PyObject *resultobj = 0; | |
25346 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25347 | wxSize result; | |
25348 | void *argp1 = 0 ; | |
25349 | int res1 = 0 ; | |
25350 | PyObject *swig_obj[1] ; | |
25351 | ||
25352 | if (!args) SWIG_fail; | |
25353 | swig_obj[0] = args; | |
25354 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25355 | if (!SWIG_IsOK(res1)) { | |
25356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25357 | } | |
25358 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25359 | { | |
25360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25361 | result = (arg1)->GetToolMargins(); | |
25362 | wxPyEndAllowThreads(__tstate); | |
25363 | if (PyErr_Occurred()) SWIG_fail; | |
25364 | } | |
25365 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25366 | return resultobj; | |
25367 | fail: | |
25368 | return NULL; | |
d14a1e28 RD |
25369 | } |
25370 | ||
25371 | ||
0085ce49 RD |
25372 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25373 | PyObject *resultobj = 0; | |
25374 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25375 | wxSize result; | |
25376 | void *argp1 = 0 ; | |
25377 | int res1 = 0 ; | |
25378 | PyObject *swig_obj[1] ; | |
25379 | ||
25380 | if (!args) SWIG_fail; | |
25381 | swig_obj[0] = args; | |
25382 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25383 | if (!SWIG_IsOK(res1)) { | |
25384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25385 | } | |
25386 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25387 | { | |
25388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25389 | result = (arg1)->GetMargins(); | |
25390 | wxPyEndAllowThreads(__tstate); | |
25391 | if (PyErr_Occurred()) SWIG_fail; | |
25392 | } | |
25393 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25394 | return resultobj; | |
25395 | fail: | |
25396 | return NULL; | |
d14a1e28 RD |
25397 | } |
25398 | ||
25399 | ||
0085ce49 RD |
25400 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25401 | PyObject *resultobj = 0; | |
25402 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25403 | int result; | |
25404 | void *argp1 = 0 ; | |
25405 | int res1 = 0 ; | |
25406 | PyObject *swig_obj[1] ; | |
25407 | ||
25408 | if (!args) SWIG_fail; | |
25409 | swig_obj[0] = args; | |
25410 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25411 | if (!SWIG_IsOK(res1)) { | |
25412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25413 | } | |
25414 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25415 | { | |
25416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25417 | result = (int)(arg1)->GetToolPacking(); | |
25418 | wxPyEndAllowThreads(__tstate); | |
25419 | if (PyErr_Occurred()) SWIG_fail; | |
25420 | } | |
25421 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25422 | return resultobj; | |
25423 | fail: | |
25424 | return NULL; | |
d14a1e28 RD |
25425 | } |
25426 | ||
25427 | ||
0085ce49 RD |
25428 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25429 | PyObject *resultobj = 0; | |
25430 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25431 | int result; | |
25432 | void *argp1 = 0 ; | |
25433 | int res1 = 0 ; | |
25434 | PyObject *swig_obj[1] ; | |
25435 | ||
25436 | if (!args) SWIG_fail; | |
25437 | swig_obj[0] = args; | |
25438 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25439 | if (!SWIG_IsOK(res1)) { | |
25440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25441 | } | |
25442 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25443 | { | |
25444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25445 | result = (int)(arg1)->GetToolSeparation(); | |
25446 | wxPyEndAllowThreads(__tstate); | |
25447 | if (PyErr_Occurred()) SWIG_fail; | |
25448 | } | |
25449 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25450 | return resultobj; | |
25451 | fail: | |
25452 | return NULL; | |
25453 | } | |
25454 | ||
25455 | ||
25456 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25457 | PyObject *resultobj = 0; | |
25458 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25459 | int arg2 ; | |
25460 | void *argp1 = 0 ; | |
25461 | int res1 = 0 ; | |
25462 | int val2 ; | |
25463 | int ecode2 = 0 ; | |
25464 | PyObject * obj0 = 0 ; | |
25465 | PyObject * obj1 = 0 ; | |
25466 | char * kwnames[] = { | |
25467 | (char *) "self",(char *) "nRows", NULL | |
25468 | }; | |
25469 | ||
25470 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail; | |
25471 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25472 | if (!SWIG_IsOK(res1)) { | |
25473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25474 | } | |
25475 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25476 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25477 | if (!SWIG_IsOK(ecode2)) { | |
25478 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'"); | |
25479 | } | |
25480 | arg2 = static_cast< int >(val2); | |
25481 | { | |
25482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25483 | (arg1)->SetRows(arg2); | |
25484 | wxPyEndAllowThreads(__tstate); | |
25485 | if (PyErr_Occurred()) SWIG_fail; | |
25486 | } | |
25487 | resultobj = SWIG_Py_Void(); | |
25488 | return resultobj; | |
25489 | fail: | |
25490 | return NULL; | |
25491 | } | |
25492 | ||
25493 | ||
25494 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25495 | PyObject *resultobj = 0; | |
25496 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25497 | int arg2 ; | |
25498 | int arg3 ; | |
25499 | void *argp1 = 0 ; | |
25500 | int res1 = 0 ; | |
25501 | int val2 ; | |
25502 | int ecode2 = 0 ; | |
25503 | int val3 ; | |
25504 | int ecode3 = 0 ; | |
25505 | PyObject * obj0 = 0 ; | |
25506 | PyObject * obj1 = 0 ; | |
25507 | PyObject * obj2 = 0 ; | |
25508 | char * kwnames[] = { | |
25509 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
25510 | }; | |
25511 | ||
25512 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25513 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25514 | if (!SWIG_IsOK(res1)) { | |
25515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25516 | } | |
25517 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25518 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25519 | if (!SWIG_IsOK(ecode2)) { | |
25520 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'"); | |
25521 | } | |
25522 | arg2 = static_cast< int >(val2); | |
25523 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25524 | if (!SWIG_IsOK(ecode3)) { | |
25525 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'"); | |
25526 | } | |
25527 | arg3 = static_cast< int >(val3); | |
25528 | { | |
25529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25530 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
25531 | wxPyEndAllowThreads(__tstate); | |
25532 | if (PyErr_Occurred()) SWIG_fail; | |
25533 | } | |
25534 | resultobj = SWIG_Py_Void(); | |
25535 | return resultobj; | |
25536 | fail: | |
25537 | return NULL; | |
22bfe96c RD |
25538 | } |
25539 | ||
25540 | ||
0085ce49 RD |
25541 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25542 | PyObject *resultobj = 0; | |
25543 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25544 | int result; | |
25545 | void *argp1 = 0 ; | |
25546 | int res1 = 0 ; | |
25547 | PyObject *swig_obj[1] ; | |
25548 | ||
25549 | if (!args) SWIG_fail; | |
25550 | swig_obj[0] = args; | |
25551 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25552 | if (!SWIG_IsOK(res1)) { | |
25553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25554 | } | |
25555 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25556 | { | |
25557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25558 | result = (int)(arg1)->GetMaxRows(); | |
25559 | wxPyEndAllowThreads(__tstate); | |
25560 | if (PyErr_Occurred()) SWIG_fail; | |
25561 | } | |
25562 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25563 | return resultobj; | |
25564 | fail: | |
25565 | return NULL; | |
d14a1e28 RD |
25566 | } |
25567 | ||
25568 | ||
0085ce49 RD |
25569 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25570 | PyObject *resultobj = 0; | |
25571 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25572 | int result; | |
25573 | void *argp1 = 0 ; | |
25574 | int res1 = 0 ; | |
25575 | PyObject *swig_obj[1] ; | |
25576 | ||
25577 | if (!args) SWIG_fail; | |
25578 | swig_obj[0] = args; | |
25579 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25580 | if (!SWIG_IsOK(res1)) { | |
25581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25582 | } | |
25583 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25584 | { | |
25585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25586 | result = (int)(arg1)->GetMaxCols(); | |
25587 | wxPyEndAllowThreads(__tstate); | |
25588 | if (PyErr_Occurred()) SWIG_fail; | |
25589 | } | |
25590 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25591 | return resultobj; | |
25592 | fail: | |
25593 | return NULL; | |
25594 | } | |
25595 | ||
25596 | ||
25597 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25598 | PyObject *resultobj = 0; | |
25599 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25600 | wxSize *arg2 = 0 ; | |
25601 | void *argp1 = 0 ; | |
25602 | int res1 = 0 ; | |
25603 | wxSize temp2 ; | |
25604 | PyObject * obj0 = 0 ; | |
25605 | PyObject * obj1 = 0 ; | |
25606 | char * kwnames[] = { | |
25607 | (char *) "self",(char *) "size", NULL | |
25608 | }; | |
25609 | ||
25610 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
25611 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25612 | if (!SWIG_IsOK(res1)) { | |
25613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25614 | } | |
25615 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25616 | { | |
25617 | arg2 = &temp2; | |
25618 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25619 | } | |
25620 | { | |
25621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25622 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
25623 | wxPyEndAllowThreads(__tstate); | |
25624 | if (PyErr_Occurred()) SWIG_fail; | |
25625 | } | |
25626 | resultobj = SWIG_Py_Void(); | |
25627 | return resultobj; | |
25628 | fail: | |
25629 | return NULL; | |
d14a1e28 RD |
25630 | } |
25631 | ||
25632 | ||
0085ce49 RD |
25633 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25634 | PyObject *resultobj = 0; | |
25635 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25636 | wxSize result; | |
25637 | void *argp1 = 0 ; | |
25638 | int res1 = 0 ; | |
25639 | PyObject *swig_obj[1] ; | |
25640 | ||
25641 | if (!args) SWIG_fail; | |
25642 | swig_obj[0] = args; | |
25643 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25644 | if (!SWIG_IsOK(res1)) { | |
25645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25646 | } | |
25647 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25648 | { | |
25649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25650 | result = (arg1)->GetToolBitmapSize(); | |
25651 | wxPyEndAllowThreads(__tstate); | |
25652 | if (PyErr_Occurred()) SWIG_fail; | |
25653 | } | |
25654 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25655 | return resultobj; | |
25656 | fail: | |
25657 | return NULL; | |
d14a1e28 RD |
25658 | } |
25659 | ||
25660 | ||
0085ce49 RD |
25661 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25662 | PyObject *resultobj = 0; | |
25663 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25664 | wxSize result; | |
25665 | void *argp1 = 0 ; | |
25666 | int res1 = 0 ; | |
25667 | PyObject *swig_obj[1] ; | |
25668 | ||
25669 | if (!args) SWIG_fail; | |
25670 | swig_obj[0] = args; | |
25671 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25672 | if (!SWIG_IsOK(res1)) { | |
25673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25674 | } | |
25675 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25676 | { | |
25677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25678 | result = (arg1)->GetToolSize(); | |
25679 | wxPyEndAllowThreads(__tstate); | |
25680 | if (PyErr_Occurred()) SWIG_fail; | |
25681 | } | |
25682 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25683 | return resultobj; | |
25684 | fail: | |
25685 | return NULL; | |
25686 | } | |
25687 | ||
25688 | ||
25689 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25690 | PyObject *resultobj = 0; | |
25691 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25692 | int arg2 ; | |
25693 | int arg3 ; | |
25694 | wxToolBarToolBase *result = 0 ; | |
25695 | void *argp1 = 0 ; | |
25696 | int res1 = 0 ; | |
25697 | int val2 ; | |
25698 | int ecode2 = 0 ; | |
25699 | int val3 ; | |
25700 | int ecode3 = 0 ; | |
25701 | PyObject * obj0 = 0 ; | |
25702 | PyObject * obj1 = 0 ; | |
25703 | PyObject * obj2 = 0 ; | |
25704 | char * kwnames[] = { | |
25705 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25706 | }; | |
25707 | ||
25708 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25709 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25710 | if (!SWIG_IsOK(res1)) { | |
25711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25712 | } | |
25713 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25714 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25715 | if (!SWIG_IsOK(ecode2)) { | |
25716 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'"); | |
25717 | } | |
25718 | arg2 = static_cast< int >(val2); | |
25719 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25720 | if (!SWIG_IsOK(ecode3)) { | |
25721 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'"); | |
25722 | } | |
25723 | arg3 = static_cast< int >(val3); | |
25724 | { | |
25725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25726 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
25727 | wxPyEndAllowThreads(__tstate); | |
25728 | if (PyErr_Occurred()) SWIG_fail; | |
25729 | } | |
25730 | { | |
25731 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
25732 | } | |
25733 | return resultobj; | |
25734 | fail: | |
25735 | return NULL; | |
25736 | } | |
25737 | ||
25738 | ||
25739 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25740 | PyObject *resultobj = 0; | |
25741 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25742 | int arg2 ; | |
25743 | wxToolBarToolBase *result = 0 ; | |
25744 | void *argp1 = 0 ; | |
25745 | int res1 = 0 ; | |
25746 | int val2 ; | |
25747 | int ecode2 = 0 ; | |
25748 | PyObject * obj0 = 0 ; | |
25749 | PyObject * obj1 = 0 ; | |
25750 | char * kwnames[] = { | |
25751 | (char *) "self",(char *) "toolid", NULL | |
25752 | }; | |
25753 | ||
25754 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail; | |
25755 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25756 | if (!SWIG_IsOK(res1)) { | |
25757 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
25758 | } | |
25759 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25760 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25761 | if (!SWIG_IsOK(ecode2)) { | |
25762 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'"); | |
25763 | } | |
25764 | arg2 = static_cast< int >(val2); | |
25765 | { | |
25766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25767 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
25768 | wxPyEndAllowThreads(__tstate); | |
25769 | if (PyErr_Occurred()) SWIG_fail; | |
25770 | } | |
25771 | { | |
25772 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
25773 | } | |
25774 | return resultobj; | |
25775 | fail: | |
25776 | return NULL; | |
d14a1e28 RD |
25777 | } |
25778 | ||
25779 | ||
0085ce49 RD |
25780 | SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25781 | PyObject *resultobj = 0; | |
25782 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25783 | bool result; | |
25784 | void *argp1 = 0 ; | |
25785 | int res1 = 0 ; | |
25786 | PyObject *swig_obj[1] ; | |
25787 | ||
25788 | if (!args) SWIG_fail; | |
25789 | swig_obj[0] = args; | |
25790 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25791 | if (!SWIG_IsOK(res1)) { | |
25792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25793 | } | |
25794 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25795 | { | |
25796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25797 | result = (bool)(arg1)->IsVertical(); | |
25798 | wxPyEndAllowThreads(__tstate); | |
25799 | if (PyErr_Occurred()) SWIG_fail; | |
25800 | } | |
25801 | { | |
25802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25803 | } | |
25804 | return resultobj; | |
25805 | fail: | |
25806 | return NULL; | |
25807 | } | |
25808 | ||
25809 | ||
25810 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25811 | PyObject *resultobj = 0; | |
25812 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25813 | size_t result; | |
25814 | void *argp1 = 0 ; | |
25815 | int res1 = 0 ; | |
25816 | PyObject *swig_obj[1] ; | |
25817 | ||
25818 | if (!args) SWIG_fail; | |
25819 | swig_obj[0] = args; | |
25820 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25821 | if (!SWIG_IsOK(res1)) { | |
25822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
25823 | } | |
25824 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25825 | { | |
25826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25827 | result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount(); | |
25828 | wxPyEndAllowThreads(__tstate); | |
25829 | if (PyErr_Occurred()) SWIG_fail; | |
25830 | } | |
25831 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
25832 | return resultobj; | |
25833 | fail: | |
25834 | return NULL; | |
25835 | } | |
25836 | ||
25837 | ||
25838 | SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25839 | PyObject *obj; | |
25840 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25841 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj)); | |
25842 | return SWIG_Py_Void(); | |
25843 | } | |
25844 | ||
25845 | SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25846 | PyObject *resultobj = 0; | |
25847 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25848 | int arg2 = (int) -1 ; | |
25849 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
25850 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25851 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25852 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25853 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
25854 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
25855 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
25856 | wxToolBar *result = 0 ; | |
25857 | void *argp1 = 0 ; | |
25858 | int res1 = 0 ; | |
25859 | int val2 ; | |
25860 | int ecode2 = 0 ; | |
25861 | wxPoint temp3 ; | |
25862 | wxSize temp4 ; | |
25863 | long val5 ; | |
25864 | int ecode5 = 0 ; | |
25865 | bool temp6 = false ; | |
25866 | PyObject * obj0 = 0 ; | |
25867 | PyObject * obj1 = 0 ; | |
25868 | PyObject * obj2 = 0 ; | |
25869 | PyObject * obj3 = 0 ; | |
25870 | PyObject * obj4 = 0 ; | |
25871 | PyObject * obj5 = 0 ; | |
25872 | char * kwnames[] = { | |
25873 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
25874 | }; | |
25875 | ||
25876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
25877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25878 | if (!SWIG_IsOK(res1)) { | |
25879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25880 | } | |
25881 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25882 | if (obj1) { | |
25883 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25884 | if (!SWIG_IsOK(ecode2)) { | |
25885 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'"); | |
25886 | } | |
25887 | arg2 = static_cast< int >(val2); | |
25888 | } | |
25889 | if (obj2) { | |
25890 | { | |
25891 | arg3 = &temp3; | |
25892 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25893 | } | |
25894 | } | |
25895 | if (obj3) { | |
093d3ff1 | 25896 | { |
0085ce49 RD |
25897 | arg4 = &temp4; |
25898 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 25899 | } |
0085ce49 RD |
25900 | } |
25901 | if (obj4) { | |
25902 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
25903 | if (!SWIG_IsOK(ecode5)) { | |
25904 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'"); | |
25905 | } | |
25906 | arg5 = static_cast< long >(val5); | |
25907 | } | |
25908 | if (obj5) { | |
d14a1e28 | 25909 | { |
0085ce49 RD |
25910 | arg6 = wxString_in_helper(obj5); |
25911 | if (arg6 == NULL) SWIG_fail; | |
25912 | temp6 = true; | |
d14a1e28 | 25913 | } |
0085ce49 RD |
25914 | } |
25915 | { | |
25916 | if (!wxPyCheckForApp()) SWIG_fail; | |
25917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25918 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
25919 | wxPyEndAllowThreads(__tstate); | |
25920 | if (PyErr_Occurred()) SWIG_fail; | |
25921 | } | |
25922 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 ); | |
25923 | { | |
25924 | if (temp6) | |
25925 | delete arg6; | |
25926 | } | |
25927 | return resultobj; | |
25928 | fail: | |
25929 | { | |
25930 | if (temp6) | |
25931 | delete arg6; | |
25932 | } | |
25933 | return NULL; | |
d14a1e28 RD |
25934 | } |
25935 | ||
25936 | ||
0085ce49 RD |
25937 | SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25938 | PyObject *resultobj = 0; | |
25939 | wxToolBar *result = 0 ; | |
25940 | ||
25941 | if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail; | |
25942 | { | |
25943 | if (!wxPyCheckForApp()) SWIG_fail; | |
25944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25945 | result = (wxToolBar *)new wxToolBar(); | |
25946 | wxPyEndAllowThreads(__tstate); | |
25947 | if (PyErr_Occurred()) SWIG_fail; | |
25948 | } | |
25949 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 ); | |
25950 | return resultobj; | |
25951 | fail: | |
25952 | return NULL; | |
25953 | } | |
25954 | ||
25955 | ||
25956 | SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25957 | PyObject *resultobj = 0; | |
25958 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
25959 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25960 | int arg3 = (int) -1 ; | |
25961 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
25962 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25963 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25964 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25965 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
25966 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
25967 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
25968 | bool result; | |
25969 | void *argp1 = 0 ; | |
25970 | int res1 = 0 ; | |
25971 | void *argp2 = 0 ; | |
25972 | int res2 = 0 ; | |
25973 | int val3 ; | |
25974 | int ecode3 = 0 ; | |
25975 | wxPoint temp4 ; | |
25976 | wxSize temp5 ; | |
25977 | long val6 ; | |
25978 | int ecode6 = 0 ; | |
25979 | bool temp7 = false ; | |
25980 | PyObject * obj0 = 0 ; | |
25981 | PyObject * obj1 = 0 ; | |
25982 | PyObject * obj2 = 0 ; | |
25983 | PyObject * obj3 = 0 ; | |
25984 | PyObject * obj4 = 0 ; | |
25985 | PyObject * obj5 = 0 ; | |
25986 | PyObject * obj6 = 0 ; | |
25987 | char * kwnames[] = { | |
25988 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
25989 | }; | |
25990 | ||
25991 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
25992 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
25993 | if (!SWIG_IsOK(res1)) { | |
25994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'"); | |
25995 | } | |
25996 | arg1 = reinterpret_cast< wxToolBar * >(argp1); | |
25997 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25998 | if (!SWIG_IsOK(res2)) { | |
25999 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
26000 | } | |
26001 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
26002 | if (obj2) { | |
26003 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
26004 | if (!SWIG_IsOK(ecode3)) { | |
26005 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
26006 | } | |
26007 | arg3 = static_cast< int >(val3); | |
26008 | } | |
26009 | if (obj3) { | |
26010 | { | |
26011 | arg4 = &temp4; | |
26012 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22bfe96c | 26013 | } |
0085ce49 RD |
26014 | } |
26015 | if (obj4) { | |
22bfe96c | 26016 | { |
0085ce49 RD |
26017 | arg5 = &temp5; |
26018 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22bfe96c | 26019 | } |
0085ce49 RD |
26020 | } |
26021 | if (obj5) { | |
26022 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
26023 | if (!SWIG_IsOK(ecode6)) { | |
26024 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'"); | |
26025 | } | |
26026 | arg6 = static_cast< long >(val6); | |
26027 | } | |
26028 | if (obj6) { | |
22bfe96c | 26029 | { |
0085ce49 RD |
26030 | arg7 = wxString_in_helper(obj6); |
26031 | if (arg7 == NULL) SWIG_fail; | |
26032 | temp7 = true; | |
22bfe96c | 26033 | } |
0085ce49 RD |
26034 | } |
26035 | { | |
26036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26037 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
26038 | wxPyEndAllowThreads(__tstate); | |
26039 | if (PyErr_Occurred()) SWIG_fail; | |
26040 | } | |
26041 | { | |
26042 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26043 | } | |
26044 | { | |
26045 | if (temp7) | |
26046 | delete arg7; | |
26047 | } | |
26048 | return resultobj; | |
26049 | fail: | |
26050 | { | |
26051 | if (temp7) | |
26052 | delete arg7; | |
26053 | } | |
26054 | return NULL; | |
26055 | } | |
26056 | ||
26057 | ||
4976f996 RD |
26058 | SWIGINTERN PyObject *_wrap_ToolBar_SetToolNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26059 | PyObject *resultobj = 0; | |
26060 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
26061 | int arg2 ; | |
26062 | wxBitmap *arg3 = 0 ; | |
26063 | void *argp1 = 0 ; | |
26064 | int res1 = 0 ; | |
26065 | int val2 ; | |
26066 | int ecode2 = 0 ; | |
26067 | void *argp3 = 0 ; | |
26068 | int res3 = 0 ; | |
26069 | PyObject * obj0 = 0 ; | |
26070 | PyObject * obj1 = 0 ; | |
26071 | PyObject * obj2 = 0 ; | |
26072 | char * kwnames[] = { | |
26073 | (char *) "self",(char *) "id",(char *) "bitmap", NULL | |
26074 | }; | |
26075 | ||
26076 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_SetToolNormalBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26077 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
26078 | if (!SWIG_IsOK(res1)) { | |
26079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "1"" of type '" "wxToolBar *""'"); | |
26080 | } | |
26081 | arg1 = reinterpret_cast< wxToolBar * >(argp1); | |
26082 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26083 | if (!SWIG_IsOK(ecode2)) { | |
26084 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "2"" of type '" "int""'"); | |
26085 | } | |
26086 | arg2 = static_cast< int >(val2); | |
26087 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
26088 | if (!SWIG_IsOK(res3)) { | |
26089 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
26090 | } | |
26091 | if (!argp3) { | |
26092 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
26093 | } | |
26094 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
26095 | { | |
26096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26097 | (arg1)->SetToolNormalBitmap(arg2,(wxBitmap const &)*arg3); | |
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_ToolBar_SetToolDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26109 | PyObject *resultobj = 0; | |
26110 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
26111 | int arg2 ; | |
26112 | wxBitmap *arg3 = 0 ; | |
26113 | void *argp1 = 0 ; | |
26114 | int res1 = 0 ; | |
26115 | int val2 ; | |
26116 | int ecode2 = 0 ; | |
26117 | void *argp3 = 0 ; | |
26118 | int res3 = 0 ; | |
26119 | PyObject * obj0 = 0 ; | |
26120 | PyObject * obj1 = 0 ; | |
26121 | PyObject * obj2 = 0 ; | |
26122 | char * kwnames[] = { | |
26123 | (char *) "self",(char *) "id",(char *) "bitmap", NULL | |
26124 | }; | |
26125 | ||
26126 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_SetToolDisabledBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26127 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
26128 | if (!SWIG_IsOK(res1)) { | |
26129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBar *""'"); | |
26130 | } | |
26131 | arg1 = reinterpret_cast< wxToolBar * >(argp1); | |
26132 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26133 | if (!SWIG_IsOK(ecode2)) { | |
26134 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "2"" of type '" "int""'"); | |
26135 | } | |
26136 | arg2 = static_cast< int >(val2); | |
26137 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
26138 | if (!SWIG_IsOK(res3)) { | |
26139 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
26140 | } | |
26141 | if (!argp3) { | |
26142 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
26143 | } | |
26144 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
26145 | { | |
26146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26147 | (arg1)->SetToolDisabledBitmap(arg2,(wxBitmap const &)*arg3); | |
26148 | wxPyEndAllowThreads(__tstate); | |
26149 | if (PyErr_Occurred()) SWIG_fail; | |
26150 | } | |
26151 | resultobj = SWIG_Py_Void(); | |
26152 | return resultobj; | |
26153 | fail: | |
26154 | return NULL; | |
26155 | } | |
26156 | ||
26157 | ||
0085ce49 RD |
26158 | SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26159 | PyObject *resultobj = 0; | |
26160 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
26161 | SwigValueWrapper<wxVisualAttributes > result; | |
26162 | int val1 ; | |
26163 | int ecode1 = 0 ; | |
26164 | PyObject * obj0 = 0 ; | |
26165 | char * kwnames[] = { | |
26166 | (char *) "variant", NULL | |
26167 | }; | |
26168 | ||
26169 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
26170 | if (obj0) { | |
26171 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
26172 | if (!SWIG_IsOK(ecode1)) { | |
26173 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
26174 | } | |
26175 | arg1 = static_cast< wxWindowVariant >(val1); | |
26176 | } | |
26177 | { | |
26178 | if (!wxPyCheckForApp()) SWIG_fail; | |
26179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26180 | result = wxToolBar::GetClassDefaultAttributes(arg1); | |
26181 | wxPyEndAllowThreads(__tstate); | |
26182 | if (PyErr_Occurred()) SWIG_fail; | |
26183 | } | |
26184 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
26185 | return resultobj; | |
26186 | fail: | |
26187 | return NULL; | |
22bfe96c RD |
26188 | } |
26189 | ||
26190 | ||
0085ce49 RD |
26191 | SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26192 | PyObject *obj; | |
26193 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26194 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj)); | |
26195 | return SWIG_Py_Void(); | |
d14a1e28 | 26196 | } |
0085ce49 RD |
26197 | |
26198 | SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26199 | return SWIG_Python_InitShadowInstance(args); | |
b2dc1044 RD |
26200 | } |
26201 | ||
0085ce49 RD |
26202 | SWIGINTERN int ListCtrlNameStr_set(PyObject *) { |
26203 | SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only."); | |
26204 | return 1; | |
26205 | } | |
b2dc1044 | 26206 | |
0085ce49 RD |
26207 | |
26208 | SWIGINTERN PyObject *ListCtrlNameStr_get(void) { | |
26209 | PyObject *pyobj = 0; | |
26210 | ||
26211 | { | |
b2dc1044 | 26212 | #if wxUSE_UNICODE |
0085ce49 | 26213 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); |
b2dc1044 | 26214 | #else |
0085ce49 | 26215 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); |
b2dc1044 | 26216 | #endif |
0085ce49 RD |
26217 | } |
26218 | return pyobj; | |
26219 | } | |
26220 | ||
26221 | ||
26222 | SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26223 | PyObject *resultobj = 0; | |
26224 | wxColour const &arg1_defvalue = wxNullColour ; | |
26225 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
26226 | wxColour const &arg2_defvalue = wxNullColour ; | |
26227 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
26228 | wxFont const &arg3_defvalue = wxNullFont ; | |
26229 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
26230 | wxListItemAttr *result = 0 ; | |
26231 | wxColour temp1 ; | |
26232 | wxColour temp2 ; | |
26233 | void *argp3 = 0 ; | |
26234 | int res3 = 0 ; | |
26235 | PyObject * obj0 = 0 ; | |
26236 | PyObject * obj1 = 0 ; | |
26237 | PyObject * obj2 = 0 ; | |
26238 | char * kwnames[] = { | |
26239 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
26240 | }; | |
26241 | ||
26242 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26243 | if (obj0) { | |
d14a1e28 | 26244 | { |
0085ce49 RD |
26245 | arg1 = &temp1; |
26246 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
d14a1e28 | 26247 | } |
0085ce49 RD |
26248 | } |
26249 | if (obj1) { | |
d14a1e28 | 26250 | { |
0085ce49 RD |
26251 | arg2 = &temp2; |
26252 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 26253 | } |
0085ce49 RD |
26254 | } |
26255 | if (obj2) { | |
26256 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
26257 | if (!SWIG_IsOK(res3)) { | |
26258 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d14a1e28 | 26259 | } |
0085ce49 RD |
26260 | if (!argp3) { |
26261 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d14a1e28 | 26262 | } |
0085ce49 RD |
26263 | arg3 = reinterpret_cast< wxFont * >(argp3); |
26264 | } | |
26265 | { | |
26266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26267 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
26268 | wxPyEndAllowThreads(__tstate); | |
26269 | if (PyErr_Occurred()) SWIG_fail; | |
26270 | } | |
26271 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 ); | |
26272 | return resultobj; | |
26273 | fail: | |
26274 | return NULL; | |
d14a1e28 RD |
26275 | } |
26276 | ||
26277 | ||
0085ce49 RD |
26278 | SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26279 | PyObject *resultobj = 0; | |
26280 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26281 | void *argp1 = 0 ; | |
26282 | int res1 = 0 ; | |
26283 | PyObject *swig_obj[1] ; | |
26284 | ||
26285 | if (!args) SWIG_fail; | |
26286 | swig_obj[0] = args; | |
26287 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 ); | |
26288 | if (!SWIG_IsOK(res1)) { | |
26289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26290 | } | |
26291 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26292 | { | |
26293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26294 | delete arg1; | |
d14a1e28 | 26295 | |
0085ce49 RD |
26296 | wxPyEndAllowThreads(__tstate); |
26297 | if (PyErr_Occurred()) SWIG_fail; | |
26298 | } | |
26299 | resultobj = SWIG_Py_Void(); | |
26300 | return resultobj; | |
26301 | fail: | |
26302 | return NULL; | |
26303 | } | |
26304 | ||
26305 | ||
26306 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26307 | PyObject *resultobj = 0; | |
26308 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26309 | wxColour *arg2 = 0 ; | |
26310 | void *argp1 = 0 ; | |
26311 | int res1 = 0 ; | |
26312 | wxColour temp2 ; | |
26313 | PyObject * obj0 = 0 ; | |
26314 | PyObject * obj1 = 0 ; | |
26315 | char * kwnames[] = { | |
26316 | (char *) "self",(char *) "colText", NULL | |
26317 | }; | |
26318 | ||
26319 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
26320 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26321 | if (!SWIG_IsOK(res1)) { | |
26322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26323 | } | |
26324 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26325 | { | |
26326 | arg2 = &temp2; | |
26327 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26328 | } | |
26329 | { | |
26330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26331 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
26332 | wxPyEndAllowThreads(__tstate); | |
26333 | if (PyErr_Occurred()) SWIG_fail; | |
26334 | } | |
26335 | resultobj = SWIG_Py_Void(); | |
26336 | return resultobj; | |
26337 | fail: | |
26338 | return NULL; | |
26339 | } | |
26340 | ||
26341 | ||
26342 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26343 | PyObject *resultobj = 0; | |
26344 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26345 | wxColour *arg2 = 0 ; | |
26346 | void *argp1 = 0 ; | |
26347 | int res1 = 0 ; | |
26348 | wxColour temp2 ; | |
26349 | PyObject * obj0 = 0 ; | |
26350 | PyObject * obj1 = 0 ; | |
26351 | char * kwnames[] = { | |
26352 | (char *) "self",(char *) "colBack", NULL | |
26353 | }; | |
26354 | ||
26355 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
26356 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26357 | if (!SWIG_IsOK(res1)) { | |
26358 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26359 | } | |
26360 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26361 | { | |
26362 | arg2 = &temp2; | |
26363 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26364 | } | |
26365 | { | |
26366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26367 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26368 | wxPyEndAllowThreads(__tstate); | |
26369 | if (PyErr_Occurred()) SWIG_fail; | |
26370 | } | |
26371 | resultobj = SWIG_Py_Void(); | |
26372 | return resultobj; | |
26373 | fail: | |
26374 | return NULL; | |
26375 | } | |
26376 | ||
26377 | ||
26378 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26379 | PyObject *resultobj = 0; | |
26380 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26381 | wxFont *arg2 = 0 ; | |
26382 | void *argp1 = 0 ; | |
26383 | int res1 = 0 ; | |
26384 | void *argp2 = 0 ; | |
26385 | int res2 = 0 ; | |
26386 | PyObject * obj0 = 0 ; | |
26387 | PyObject * obj1 = 0 ; | |
26388 | char * kwnames[] = { | |
26389 | (char *) "self",(char *) "font", NULL | |
26390 | }; | |
26391 | ||
26392 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
26393 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26394 | if (!SWIG_IsOK(res1)) { | |
26395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26396 | } | |
26397 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26398 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
26399 | if (!SWIG_IsOK(res2)) { | |
26400 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
26401 | } | |
26402 | if (!argp2) { | |
26403 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
26404 | } | |
26405 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
26406 | { | |
26407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26408 | (arg1)->SetFont((wxFont const &)*arg2); | |
26409 | wxPyEndAllowThreads(__tstate); | |
26410 | if (PyErr_Occurred()) SWIG_fail; | |
26411 | } | |
26412 | resultobj = SWIG_Py_Void(); | |
26413 | return resultobj; | |
26414 | fail: | |
26415 | return NULL; | |
d14a1e28 RD |
26416 | } |
26417 | ||
26418 | ||
0085ce49 RD |
26419 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26420 | PyObject *resultobj = 0; | |
26421 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26422 | bool result; | |
26423 | void *argp1 = 0 ; | |
26424 | int res1 = 0 ; | |
26425 | PyObject *swig_obj[1] ; | |
26426 | ||
26427 | if (!args) SWIG_fail; | |
26428 | swig_obj[0] = args; | |
26429 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26430 | if (!SWIG_IsOK(res1)) { | |
26431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26432 | } | |
26433 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26434 | { | |
26435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26436 | result = (bool)(arg1)->HasTextColour(); | |
26437 | wxPyEndAllowThreads(__tstate); | |
26438 | if (PyErr_Occurred()) SWIG_fail; | |
26439 | } | |
26440 | { | |
26441 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26442 | } | |
26443 | return resultobj; | |
26444 | fail: | |
26445 | return NULL; | |
d14a1e28 RD |
26446 | } |
26447 | ||
26448 | ||
0085ce49 RD |
26449 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26450 | PyObject *resultobj = 0; | |
26451 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26452 | bool result; | |
26453 | void *argp1 = 0 ; | |
26454 | int res1 = 0 ; | |
26455 | PyObject *swig_obj[1] ; | |
26456 | ||
26457 | if (!args) SWIG_fail; | |
26458 | swig_obj[0] = args; | |
26459 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26460 | if (!SWIG_IsOK(res1)) { | |
26461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26462 | } | |
26463 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26464 | { | |
26465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26466 | result = (bool)(arg1)->HasBackgroundColour(); | |
26467 | wxPyEndAllowThreads(__tstate); | |
26468 | if (PyErr_Occurred()) SWIG_fail; | |
26469 | } | |
26470 | { | |
26471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26472 | } | |
26473 | return resultobj; | |
26474 | fail: | |
26475 | return NULL; | |
d14a1e28 RD |
26476 | } |
26477 | ||
26478 | ||
0085ce49 RD |
26479 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26480 | PyObject *resultobj = 0; | |
26481 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26482 | bool result; | |
26483 | void *argp1 = 0 ; | |
26484 | int res1 = 0 ; | |
26485 | PyObject *swig_obj[1] ; | |
26486 | ||
26487 | if (!args) SWIG_fail; | |
26488 | swig_obj[0] = args; | |
26489 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26490 | if (!SWIG_IsOK(res1)) { | |
26491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26492 | } | |
26493 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26494 | { | |
26495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26496 | result = (bool)(arg1)->HasFont(); | |
26497 | wxPyEndAllowThreads(__tstate); | |
26498 | if (PyErr_Occurred()) SWIG_fail; | |
26499 | } | |
26500 | { | |
26501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26502 | } | |
26503 | return resultobj; | |
26504 | fail: | |
26505 | return NULL; | |
d14a1e28 RD |
26506 | } |
26507 | ||
26508 | ||
0085ce49 RD |
26509 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26510 | PyObject *resultobj = 0; | |
26511 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26512 | wxColour result; | |
26513 | void *argp1 = 0 ; | |
26514 | int res1 = 0 ; | |
26515 | PyObject *swig_obj[1] ; | |
26516 | ||
26517 | if (!args) SWIG_fail; | |
26518 | swig_obj[0] = args; | |
26519 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26520 | if (!SWIG_IsOK(res1)) { | |
26521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26522 | } | |
26523 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26524 | { | |
26525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26526 | result = (arg1)->GetTextColour(); | |
26527 | wxPyEndAllowThreads(__tstate); | |
26528 | if (PyErr_Occurred()) SWIG_fail; | |
26529 | } | |
26530 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
26531 | return resultobj; | |
26532 | fail: | |
26533 | return NULL; | |
d14a1e28 RD |
26534 | } |
26535 | ||
26536 | ||
0085ce49 RD |
26537 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26538 | PyObject *resultobj = 0; | |
26539 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26540 | wxColour result; | |
26541 | void *argp1 = 0 ; | |
26542 | int res1 = 0 ; | |
26543 | PyObject *swig_obj[1] ; | |
26544 | ||
26545 | if (!args) SWIG_fail; | |
26546 | swig_obj[0] = args; | |
26547 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26548 | if (!SWIG_IsOK(res1)) { | |
26549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26550 | } | |
26551 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26552 | { | |
26553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26554 | result = (arg1)->GetBackgroundColour(); | |
26555 | wxPyEndAllowThreads(__tstate); | |
26556 | if (PyErr_Occurred()) SWIG_fail; | |
26557 | } | |
26558 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
26559 | return resultobj; | |
26560 | fail: | |
26561 | return NULL; | |
d14a1e28 RD |
26562 | } |
26563 | ||
26564 | ||
0085ce49 RD |
26565 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26566 | PyObject *resultobj = 0; | |
26567 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26568 | wxFont result; | |
26569 | void *argp1 = 0 ; | |
26570 | int res1 = 0 ; | |
26571 | PyObject *swig_obj[1] ; | |
26572 | ||
26573 | if (!args) SWIG_fail; | |
26574 | swig_obj[0] = args; | |
26575 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26576 | if (!SWIG_IsOK(res1)) { | |
26577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26578 | } | |
26579 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26580 | { | |
26581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26582 | result = (arg1)->GetFont(); | |
26583 | wxPyEndAllowThreads(__tstate); | |
26584 | if (PyErr_Occurred()) SWIG_fail; | |
26585 | } | |
26586 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
26587 | return resultobj; | |
26588 | fail: | |
26589 | return NULL; | |
26590 | } | |
26591 | ||
26592 | ||
26593 | SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26594 | PyObject *resultobj = 0; | |
26595 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26596 | wxListItemAttr *arg2 = 0 ; | |
26597 | void *argp1 = 0 ; | |
26598 | int res1 = 0 ; | |
26599 | void *argp2 = 0 ; | |
26600 | int res2 = 0 ; | |
26601 | PyObject * obj0 = 0 ; | |
26602 | PyObject * obj1 = 0 ; | |
26603 | char * kwnames[] = { | |
26604 | (char *) "self",(char *) "source", NULL | |
26605 | }; | |
26606 | ||
26607 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail; | |
26608 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26609 | if (!SWIG_IsOK(res1)) { | |
26610 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26611 | } | |
26612 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26613 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0); | |
26614 | if (!SWIG_IsOK(res2)) { | |
26615 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'"); | |
26616 | } | |
26617 | if (!argp2) { | |
26618 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'"); | |
26619 | } | |
26620 | arg2 = reinterpret_cast< wxListItemAttr * >(argp2); | |
26621 | { | |
26622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26623 | (arg1)->AssignFrom((wxListItemAttr const &)*arg2); | |
26624 | wxPyEndAllowThreads(__tstate); | |
26625 | if (PyErr_Occurred()) SWIG_fail; | |
26626 | } | |
26627 | resultobj = SWIG_Py_Void(); | |
26628 | return resultobj; | |
26629 | fail: | |
26630 | return NULL; | |
d14a1e28 RD |
26631 | } |
26632 | ||
26633 | ||
0085ce49 RD |
26634 | SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26635 | PyObject *resultobj = 0; | |
26636 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26637 | void *argp1 = 0 ; | |
26638 | int res1 = 0 ; | |
26639 | PyObject *swig_obj[1] ; | |
26640 | ||
26641 | if (!args) SWIG_fail; | |
26642 | swig_obj[0] = args; | |
26643 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26644 | if (!SWIG_IsOK(res1)) { | |
26645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26646 | } | |
26647 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26648 | { | |
26649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26650 | wxListItemAttr_Destroy(arg1); | |
26651 | wxPyEndAllowThreads(__tstate); | |
26652 | if (PyErr_Occurred()) SWIG_fail; | |
26653 | } | |
26654 | resultobj = SWIG_Py_Void(); | |
26655 | return resultobj; | |
26656 | fail: | |
26657 | return NULL; | |
d14a1e28 RD |
26658 | } |
26659 | ||
26660 | ||
0085ce49 RD |
26661 | SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26662 | PyObject *obj; | |
26663 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26664 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj)); | |
26665 | return SWIG_Py_Void(); | |
d14a1e28 RD |
26666 | } |
26667 | ||
0085ce49 RD |
26668 | SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26669 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
26670 | } |
26671 | ||
0085ce49 RD |
26672 | SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26673 | PyObject *resultobj = 0; | |
26674 | wxListItem *result = 0 ; | |
26675 | ||
26676 | if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail; | |
26677 | { | |
26678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26679 | result = (wxListItem *)new wxListItem(); | |
26680 | wxPyEndAllowThreads(__tstate); | |
26681 | if (PyErr_Occurred()) SWIG_fail; | |
26682 | } | |
3ecece7e | 26683 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 ); |
0085ce49 RD |
26684 | return resultobj; |
26685 | fail: | |
26686 | return NULL; | |
d14a1e28 RD |
26687 | } |
26688 | ||
26689 | ||
0085ce49 RD |
26690 | SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26691 | PyObject *resultobj = 0; | |
26692 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26693 | void *argp1 = 0 ; | |
26694 | int res1 = 0 ; | |
26695 | PyObject *swig_obj[1] ; | |
26696 | ||
26697 | if (!args) SWIG_fail; | |
26698 | swig_obj[0] = args; | |
26699 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 ); | |
26700 | if (!SWIG_IsOK(res1)) { | |
26701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26702 | } | |
26703 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26704 | { | |
26705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26706 | delete arg1; | |
d14a1e28 | 26707 | |
0085ce49 RD |
26708 | wxPyEndAllowThreads(__tstate); |
26709 | if (PyErr_Occurred()) SWIG_fail; | |
26710 | } | |
26711 | resultobj = SWIG_Py_Void(); | |
26712 | return resultobj; | |
26713 | fail: | |
26714 | return NULL; | |
d14a1e28 RD |
26715 | } |
26716 | ||
26717 | ||
0085ce49 RD |
26718 | SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26719 | PyObject *resultobj = 0; | |
26720 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26721 | void *argp1 = 0 ; | |
26722 | int res1 = 0 ; | |
26723 | PyObject *swig_obj[1] ; | |
26724 | ||
26725 | if (!args) SWIG_fail; | |
26726 | swig_obj[0] = args; | |
26727 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26728 | if (!SWIG_IsOK(res1)) { | |
26729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26730 | } | |
26731 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26732 | { | |
26733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26734 | (arg1)->Clear(); | |
26735 | wxPyEndAllowThreads(__tstate); | |
26736 | if (PyErr_Occurred()) SWIG_fail; | |
26737 | } | |
26738 | resultobj = SWIG_Py_Void(); | |
26739 | return resultobj; | |
26740 | fail: | |
26741 | return NULL; | |
d14a1e28 RD |
26742 | } |
26743 | ||
26744 | ||
0085ce49 RD |
26745 | SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26746 | PyObject *resultobj = 0; | |
26747 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26748 | void *argp1 = 0 ; | |
26749 | int res1 = 0 ; | |
26750 | PyObject *swig_obj[1] ; | |
26751 | ||
26752 | if (!args) SWIG_fail; | |
26753 | swig_obj[0] = args; | |
26754 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26755 | if (!SWIG_IsOK(res1)) { | |
26756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26757 | } | |
26758 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26759 | { | |
26760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26761 | (arg1)->ClearAttributes(); | |
26762 | wxPyEndAllowThreads(__tstate); | |
26763 | if (PyErr_Occurred()) SWIG_fail; | |
26764 | } | |
26765 | resultobj = SWIG_Py_Void(); | |
26766 | return resultobj; | |
26767 | fail: | |
26768 | return NULL; | |
26769 | } | |
26770 | ||
26771 | ||
26772 | SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26773 | PyObject *resultobj = 0; | |
26774 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26775 | long arg2 ; | |
26776 | void *argp1 = 0 ; | |
26777 | int res1 = 0 ; | |
26778 | long val2 ; | |
26779 | int ecode2 = 0 ; | |
26780 | PyObject * obj0 = 0 ; | |
26781 | PyObject * obj1 = 0 ; | |
26782 | char * kwnames[] = { | |
26783 | (char *) "self",(char *) "mask", NULL | |
26784 | }; | |
26785 | ||
26786 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
26787 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26788 | if (!SWIG_IsOK(res1)) { | |
26789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26790 | } | |
26791 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26792 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26793 | if (!SWIG_IsOK(ecode2)) { | |
26794 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'"); | |
26795 | } | |
26796 | arg2 = static_cast< long >(val2); | |
26797 | { | |
26798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26799 | (arg1)->SetMask(arg2); | |
26800 | wxPyEndAllowThreads(__tstate); | |
26801 | if (PyErr_Occurred()) SWIG_fail; | |
26802 | } | |
26803 | resultobj = SWIG_Py_Void(); | |
26804 | return resultobj; | |
26805 | fail: | |
26806 | return NULL; | |
26807 | } | |
26808 | ||
26809 | ||
26810 | SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26811 | PyObject *resultobj = 0; | |
26812 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26813 | long arg2 ; | |
26814 | void *argp1 = 0 ; | |
26815 | int res1 = 0 ; | |
26816 | long val2 ; | |
26817 | int ecode2 = 0 ; | |
26818 | PyObject * obj0 = 0 ; | |
26819 | PyObject * obj1 = 0 ; | |
26820 | char * kwnames[] = { | |
26821 | (char *) "self",(char *) "id", NULL | |
26822 | }; | |
26823 | ||
26824 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
26825 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26826 | if (!SWIG_IsOK(res1)) { | |
26827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26828 | } | |
26829 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26830 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26831 | if (!SWIG_IsOK(ecode2)) { | |
26832 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'"); | |
26833 | } | |
26834 | arg2 = static_cast< long >(val2); | |
26835 | { | |
26836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26837 | (arg1)->SetId(arg2); | |
26838 | wxPyEndAllowThreads(__tstate); | |
26839 | if (PyErr_Occurred()) SWIG_fail; | |
26840 | } | |
26841 | resultobj = SWIG_Py_Void(); | |
26842 | return resultobj; | |
26843 | fail: | |
26844 | return NULL; | |
26845 | } | |
26846 | ||
26847 | ||
26848 | SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26849 | PyObject *resultobj = 0; | |
26850 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26851 | int arg2 ; | |
26852 | void *argp1 = 0 ; | |
26853 | int res1 = 0 ; | |
26854 | int val2 ; | |
26855 | int ecode2 = 0 ; | |
26856 | PyObject * obj0 = 0 ; | |
26857 | PyObject * obj1 = 0 ; | |
26858 | char * kwnames[] = { | |
26859 | (char *) "self",(char *) "col", NULL | |
26860 | }; | |
26861 | ||
26862 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
26863 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26864 | if (!SWIG_IsOK(res1)) { | |
26865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26866 | } | |
26867 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26868 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26869 | if (!SWIG_IsOK(ecode2)) { | |
26870 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'"); | |
26871 | } | |
26872 | arg2 = static_cast< int >(val2); | |
26873 | { | |
26874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26875 | (arg1)->SetColumn(arg2); | |
26876 | wxPyEndAllowThreads(__tstate); | |
26877 | if (PyErr_Occurred()) SWIG_fail; | |
26878 | } | |
26879 | resultobj = SWIG_Py_Void(); | |
26880 | return resultobj; | |
26881 | fail: | |
26882 | return NULL; | |
26883 | } | |
26884 | ||
26885 | ||
26886 | SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26887 | PyObject *resultobj = 0; | |
26888 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26889 | long arg2 ; | |
26890 | void *argp1 = 0 ; | |
26891 | int res1 = 0 ; | |
26892 | long val2 ; | |
26893 | int ecode2 = 0 ; | |
26894 | PyObject * obj0 = 0 ; | |
26895 | PyObject * obj1 = 0 ; | |
26896 | char * kwnames[] = { | |
26897 | (char *) "self",(char *) "state", NULL | |
26898 | }; | |
26899 | ||
26900 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail; | |
26901 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26902 | if (!SWIG_IsOK(res1)) { | |
26903 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26904 | } | |
26905 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26906 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26907 | if (!SWIG_IsOK(ecode2)) { | |
26908 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'"); | |
26909 | } | |
26910 | arg2 = static_cast< long >(val2); | |
26911 | { | |
26912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26913 | (arg1)->SetState(arg2); | |
26914 | wxPyEndAllowThreads(__tstate); | |
26915 | if (PyErr_Occurred()) SWIG_fail; | |
26916 | } | |
26917 | resultobj = SWIG_Py_Void(); | |
26918 | return resultobj; | |
26919 | fail: | |
26920 | return NULL; | |
26921 | } | |
26922 | ||
26923 | ||
26924 | SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26925 | PyObject *resultobj = 0; | |
26926 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26927 | long arg2 ; | |
26928 | void *argp1 = 0 ; | |
26929 | int res1 = 0 ; | |
26930 | long val2 ; | |
26931 | int ecode2 = 0 ; | |
26932 | PyObject * obj0 = 0 ; | |
26933 | PyObject * obj1 = 0 ; | |
26934 | char * kwnames[] = { | |
26935 | (char *) "self",(char *) "stateMask", NULL | |
26936 | }; | |
26937 | ||
26938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
26939 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26940 | if (!SWIG_IsOK(res1)) { | |
26941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26942 | } | |
26943 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26944 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26945 | if (!SWIG_IsOK(ecode2)) { | |
26946 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'"); | |
26947 | } | |
26948 | arg2 = static_cast< long >(val2); | |
26949 | { | |
26950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26951 | (arg1)->SetStateMask(arg2); | |
26952 | wxPyEndAllowThreads(__tstate); | |
26953 | if (PyErr_Occurred()) SWIG_fail; | |
26954 | } | |
26955 | resultobj = SWIG_Py_Void(); | |
26956 | return resultobj; | |
26957 | fail: | |
26958 | return NULL; | |
26959 | } | |
26960 | ||
26961 | ||
26962 | SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26963 | PyObject *resultobj = 0; | |
26964 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26965 | wxString *arg2 = 0 ; | |
26966 | void *argp1 = 0 ; | |
26967 | int res1 = 0 ; | |
26968 | bool temp2 = false ; | |
26969 | PyObject * obj0 = 0 ; | |
26970 | PyObject * obj1 = 0 ; | |
26971 | char * kwnames[] = { | |
26972 | (char *) "self",(char *) "text", NULL | |
26973 | }; | |
26974 | ||
26975 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail; | |
26976 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26977 | if (!SWIG_IsOK(res1)) { | |
26978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26979 | } | |
26980 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26981 | { | |
26982 | arg2 = wxString_in_helper(obj1); | |
26983 | if (arg2 == NULL) SWIG_fail; | |
26984 | temp2 = true; | |
26985 | } | |
26986 | { | |
26987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26988 | (arg1)->SetText((wxString const &)*arg2); | |
26989 | wxPyEndAllowThreads(__tstate); | |
26990 | if (PyErr_Occurred()) SWIG_fail; | |
26991 | } | |
26992 | resultobj = SWIG_Py_Void(); | |
26993 | { | |
26994 | if (temp2) | |
26995 | delete arg2; | |
26996 | } | |
26997 | return resultobj; | |
26998 | fail: | |
26999 | { | |
27000 | if (temp2) | |
27001 | delete arg2; | |
27002 | } | |
27003 | return NULL; | |
27004 | } | |
27005 | ||
27006 | ||
27007 | SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27008 | PyObject *resultobj = 0; | |
27009 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27010 | int arg2 ; | |
27011 | void *argp1 = 0 ; | |
27012 | int res1 = 0 ; | |
27013 | int val2 ; | |
27014 | int ecode2 = 0 ; | |
27015 | PyObject * obj0 = 0 ; | |
27016 | PyObject * obj1 = 0 ; | |
27017 | char * kwnames[] = { | |
27018 | (char *) "self",(char *) "image", NULL | |
27019 | }; | |
27020 | ||
27021 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
27022 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27023 | if (!SWIG_IsOK(res1)) { | |
27024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27025 | } | |
27026 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27027 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27028 | if (!SWIG_IsOK(ecode2)) { | |
27029 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'"); | |
27030 | } | |
27031 | arg2 = static_cast< int >(val2); | |
27032 | { | |
27033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27034 | (arg1)->SetImage(arg2); | |
27035 | wxPyEndAllowThreads(__tstate); | |
27036 | if (PyErr_Occurred()) SWIG_fail; | |
27037 | } | |
27038 | resultobj = SWIG_Py_Void(); | |
27039 | return resultobj; | |
27040 | fail: | |
27041 | return NULL; | |
27042 | } | |
27043 | ||
27044 | ||
27045 | SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27046 | PyObject *resultobj = 0; | |
27047 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27048 | long arg2 ; | |
27049 | void *argp1 = 0 ; | |
27050 | int res1 = 0 ; | |
27051 | long val2 ; | |
27052 | int ecode2 = 0 ; | |
27053 | PyObject * obj0 = 0 ; | |
27054 | PyObject * obj1 = 0 ; | |
27055 | char * kwnames[] = { | |
27056 | (char *) "self",(char *) "data", NULL | |
27057 | }; | |
27058 | ||
27059 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
27060 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27061 | if (!SWIG_IsOK(res1)) { | |
27062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27063 | } | |
27064 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27065 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
27066 | if (!SWIG_IsOK(ecode2)) { | |
27067 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'"); | |
27068 | } | |
27069 | arg2 = static_cast< long >(val2); | |
27070 | { | |
27071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27072 | (arg1)->SetData(arg2); | |
27073 | wxPyEndAllowThreads(__tstate); | |
27074 | if (PyErr_Occurred()) SWIG_fail; | |
27075 | } | |
27076 | resultobj = SWIG_Py_Void(); | |
27077 | return resultobj; | |
27078 | fail: | |
27079 | return NULL; | |
27080 | } | |
27081 | ||
27082 | ||
27083 | SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27084 | PyObject *resultobj = 0; | |
27085 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27086 | int arg2 ; | |
27087 | void *argp1 = 0 ; | |
27088 | int res1 = 0 ; | |
27089 | int val2 ; | |
27090 | int ecode2 = 0 ; | |
27091 | PyObject * obj0 = 0 ; | |
27092 | PyObject * obj1 = 0 ; | |
27093 | char * kwnames[] = { | |
27094 | (char *) "self",(char *) "width", NULL | |
27095 | }; | |
27096 | ||
27097 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
27098 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27099 | if (!SWIG_IsOK(res1)) { | |
27100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27101 | } | |
27102 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27103 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27104 | if (!SWIG_IsOK(ecode2)) { | |
27105 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
27106 | } | |
27107 | arg2 = static_cast< int >(val2); | |
27108 | { | |
27109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27110 | (arg1)->SetWidth(arg2); | |
27111 | wxPyEndAllowThreads(__tstate); | |
27112 | if (PyErr_Occurred()) SWIG_fail; | |
27113 | } | |
27114 | resultobj = SWIG_Py_Void(); | |
27115 | return resultobj; | |
27116 | fail: | |
27117 | return NULL; | |
27118 | } | |
27119 | ||
27120 | ||
27121 | SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27122 | PyObject *resultobj = 0; | |
27123 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27124 | wxListColumnFormat arg2 ; | |
27125 | void *argp1 = 0 ; | |
27126 | int res1 = 0 ; | |
27127 | int val2 ; | |
27128 | int ecode2 = 0 ; | |
27129 | PyObject * obj0 = 0 ; | |
27130 | PyObject * obj1 = 0 ; | |
27131 | char * kwnames[] = { | |
27132 | (char *) "self",(char *) "align", NULL | |
27133 | }; | |
27134 | ||
27135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail; | |
27136 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27137 | if (!SWIG_IsOK(res1)) { | |
27138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27139 | } | |
27140 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27141 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27142 | if (!SWIG_IsOK(ecode2)) { | |
27143 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'"); | |
27144 | } | |
27145 | arg2 = static_cast< wxListColumnFormat >(val2); | |
27146 | { | |
27147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27148 | (arg1)->SetAlign(arg2); | |
27149 | wxPyEndAllowThreads(__tstate); | |
27150 | if (PyErr_Occurred()) SWIG_fail; | |
27151 | } | |
27152 | resultobj = SWIG_Py_Void(); | |
27153 | return resultobj; | |
27154 | fail: | |
27155 | return NULL; | |
27156 | } | |
27157 | ||
27158 | ||
27159 | SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27160 | PyObject *resultobj = 0; | |
27161 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27162 | wxColour *arg2 = 0 ; | |
27163 | void *argp1 = 0 ; | |
27164 | int res1 = 0 ; | |
27165 | wxColour temp2 ; | |
27166 | PyObject * obj0 = 0 ; | |
27167 | PyObject * obj1 = 0 ; | |
27168 | char * kwnames[] = { | |
27169 | (char *) "self",(char *) "colText", NULL | |
27170 | }; | |
27171 | ||
27172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
27173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27174 | if (!SWIG_IsOK(res1)) { | |
27175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27176 | } | |
27177 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27178 | { | |
27179 | arg2 = &temp2; | |
27180 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
27181 | } | |
27182 | { | |
27183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27184 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
27185 | wxPyEndAllowThreads(__tstate); | |
27186 | if (PyErr_Occurred()) SWIG_fail; | |
27187 | } | |
27188 | resultobj = SWIG_Py_Void(); | |
27189 | return resultobj; | |
27190 | fail: | |
27191 | return NULL; | |
27192 | } | |
27193 | ||
27194 | ||
27195 | SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27196 | PyObject *resultobj = 0; | |
27197 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27198 | wxColour *arg2 = 0 ; | |
27199 | void *argp1 = 0 ; | |
27200 | int res1 = 0 ; | |
27201 | wxColour temp2 ; | |
27202 | PyObject * obj0 = 0 ; | |
27203 | PyObject * obj1 = 0 ; | |
27204 | char * kwnames[] = { | |
27205 | (char *) "self",(char *) "colBack", NULL | |
27206 | }; | |
27207 | ||
27208 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
27209 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27210 | if (!SWIG_IsOK(res1)) { | |
27211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27212 | } | |
27213 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27214 | { | |
27215 | arg2 = &temp2; | |
27216 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
27217 | } | |
27218 | { | |
27219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27220 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
27221 | wxPyEndAllowThreads(__tstate); | |
27222 | if (PyErr_Occurred()) SWIG_fail; | |
27223 | } | |
27224 | resultobj = SWIG_Py_Void(); | |
27225 | return resultobj; | |
27226 | fail: | |
27227 | return NULL; | |
27228 | } | |
27229 | ||
27230 | ||
27231 | SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27232 | PyObject *resultobj = 0; | |
27233 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27234 | wxFont *arg2 = 0 ; | |
27235 | void *argp1 = 0 ; | |
27236 | int res1 = 0 ; | |
27237 | void *argp2 = 0 ; | |
27238 | int res2 = 0 ; | |
27239 | PyObject * obj0 = 0 ; | |
27240 | PyObject * obj1 = 0 ; | |
27241 | char * kwnames[] = { | |
27242 | (char *) "self",(char *) "font", NULL | |
27243 | }; | |
27244 | ||
27245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
27246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27247 | if (!SWIG_IsOK(res1)) { | |
27248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27249 | } | |
27250 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27251 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
27252 | if (!SWIG_IsOK(res2)) { | |
27253 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
27254 | } | |
27255 | if (!argp2) { | |
27256 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
27257 | } | |
27258 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
27259 | { | |
27260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27261 | (arg1)->SetFont((wxFont const &)*arg2); | |
27262 | wxPyEndAllowThreads(__tstate); | |
27263 | if (PyErr_Occurred()) SWIG_fail; | |
27264 | } | |
27265 | resultobj = SWIG_Py_Void(); | |
27266 | return resultobj; | |
27267 | fail: | |
27268 | return NULL; | |
d14a1e28 RD |
27269 | } |
27270 | ||
27271 | ||
0085ce49 RD |
27272 | SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27273 | PyObject *resultobj = 0; | |
27274 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27275 | long result; | |
27276 | void *argp1 = 0 ; | |
27277 | int res1 = 0 ; | |
27278 | PyObject *swig_obj[1] ; | |
27279 | ||
27280 | if (!args) SWIG_fail; | |
27281 | swig_obj[0] = args; | |
27282 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27283 | if (!SWIG_IsOK(res1)) { | |
27284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27285 | } | |
27286 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27287 | { | |
27288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27289 | result = (long)(arg1)->GetMask(); | |
27290 | wxPyEndAllowThreads(__tstate); | |
27291 | if (PyErr_Occurred()) SWIG_fail; | |
27292 | } | |
27293 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27294 | return resultobj; | |
27295 | fail: | |
27296 | return NULL; | |
d14a1e28 RD |
27297 | } |
27298 | ||
27299 | ||
0085ce49 RD |
27300 | SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27301 | PyObject *resultobj = 0; | |
27302 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27303 | long result; | |
27304 | void *argp1 = 0 ; | |
27305 | int res1 = 0 ; | |
27306 | PyObject *swig_obj[1] ; | |
27307 | ||
27308 | if (!args) SWIG_fail; | |
27309 | swig_obj[0] = args; | |
27310 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27311 | if (!SWIG_IsOK(res1)) { | |
27312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27313 | } | |
27314 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27315 | { | |
27316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27317 | result = (long)(arg1)->GetId(); | |
27318 | wxPyEndAllowThreads(__tstate); | |
27319 | if (PyErr_Occurred()) SWIG_fail; | |
27320 | } | |
27321 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27322 | return resultobj; | |
27323 | fail: | |
27324 | return NULL; | |
d14a1e28 RD |
27325 | } |
27326 | ||
27327 | ||
0085ce49 RD |
27328 | SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27329 | PyObject *resultobj = 0; | |
27330 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27331 | int result; | |
27332 | void *argp1 = 0 ; | |
27333 | int res1 = 0 ; | |
27334 | PyObject *swig_obj[1] ; | |
27335 | ||
27336 | if (!args) SWIG_fail; | |
27337 | swig_obj[0] = args; | |
27338 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27339 | if (!SWIG_IsOK(res1)) { | |
27340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27341 | } | |
27342 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27343 | { | |
27344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27345 | result = (int)(arg1)->GetColumn(); | |
27346 | wxPyEndAllowThreads(__tstate); | |
27347 | if (PyErr_Occurred()) SWIG_fail; | |
27348 | } | |
27349 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27350 | return resultobj; | |
27351 | fail: | |
27352 | return NULL; | |
22bfe96c RD |
27353 | } |
27354 | ||
27355 | ||
0085ce49 RD |
27356 | SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27357 | PyObject *resultobj = 0; | |
27358 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27359 | long result; | |
27360 | void *argp1 = 0 ; | |
27361 | int res1 = 0 ; | |
27362 | PyObject *swig_obj[1] ; | |
27363 | ||
27364 | if (!args) SWIG_fail; | |
27365 | swig_obj[0] = args; | |
27366 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27367 | if (!SWIG_IsOK(res1)) { | |
27368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27369 | } | |
27370 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27371 | { | |
27372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27373 | result = (long)(arg1)->GetState(); | |
27374 | wxPyEndAllowThreads(__tstate); | |
27375 | if (PyErr_Occurred()) SWIG_fail; | |
27376 | } | |
27377 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27378 | return resultobj; | |
27379 | fail: | |
27380 | return NULL; | |
b2dc1044 RD |
27381 | } |
27382 | ||
27383 | ||
0085ce49 RD |
27384 | SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27385 | PyObject *resultobj = 0; | |
27386 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27387 | wxString *result = 0 ; | |
27388 | void *argp1 = 0 ; | |
27389 | int res1 = 0 ; | |
27390 | PyObject *swig_obj[1] ; | |
27391 | ||
27392 | if (!args) SWIG_fail; | |
27393 | swig_obj[0] = args; | |
27394 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27395 | if (!SWIG_IsOK(res1)) { | |
27396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27397 | } | |
27398 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27399 | { | |
27400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 27401 | { |
0085ce49 RD |
27402 | wxString const &_result_ref = (arg1)->GetText(); |
27403 | result = (wxString *) &_result_ref; | |
27404 | } | |
27405 | wxPyEndAllowThreads(__tstate); | |
27406 | if (PyErr_Occurred()) SWIG_fail; | |
27407 | } | |
27408 | { | |
b2dc1044 | 27409 | #if wxUSE_UNICODE |
0085ce49 | 27410 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
b2dc1044 | 27411 | #else |
0085ce49 | 27412 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
b2dc1044 | 27413 | #endif |
0085ce49 RD |
27414 | } |
27415 | return resultobj; | |
27416 | fail: | |
27417 | return NULL; | |
d14a1e28 RD |
27418 | } |
27419 | ||
27420 | ||
0085ce49 RD |
27421 | SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27422 | PyObject *resultobj = 0; | |
27423 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27424 | int result; | |
27425 | void *argp1 = 0 ; | |
27426 | int res1 = 0 ; | |
27427 | PyObject *swig_obj[1] ; | |
27428 | ||
27429 | if (!args) SWIG_fail; | |
27430 | swig_obj[0] = args; | |
27431 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27432 | if (!SWIG_IsOK(res1)) { | |
27433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27434 | } | |
27435 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27436 | { | |
27437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27438 | result = (int)(arg1)->GetImage(); | |
27439 | wxPyEndAllowThreads(__tstate); | |
27440 | if (PyErr_Occurred()) SWIG_fail; | |
27441 | } | |
27442 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27443 | return resultobj; | |
27444 | fail: | |
27445 | return NULL; | |
d14a1e28 RD |
27446 | } |
27447 | ||
27448 | ||
0085ce49 RD |
27449 | SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27450 | PyObject *resultobj = 0; | |
27451 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27452 | long result; | |
27453 | void *argp1 = 0 ; | |
27454 | int res1 = 0 ; | |
27455 | PyObject *swig_obj[1] ; | |
27456 | ||
27457 | if (!args) SWIG_fail; | |
27458 | swig_obj[0] = args; | |
27459 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27460 | if (!SWIG_IsOK(res1)) { | |
27461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27462 | } | |
27463 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27464 | { | |
27465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27466 | result = (long)(arg1)->GetData(); | |
27467 | wxPyEndAllowThreads(__tstate); | |
27468 | if (PyErr_Occurred()) SWIG_fail; | |
27469 | } | |
27470 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27471 | return resultobj; | |
27472 | fail: | |
27473 | return NULL; | |
d14a1e28 RD |
27474 | } |
27475 | ||
27476 | ||
0085ce49 RD |
27477 | SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27478 | PyObject *resultobj = 0; | |
27479 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27480 | int result; | |
27481 | void *argp1 = 0 ; | |
27482 | int res1 = 0 ; | |
27483 | PyObject *swig_obj[1] ; | |
27484 | ||
27485 | if (!args) SWIG_fail; | |
27486 | swig_obj[0] = args; | |
27487 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27488 | if (!SWIG_IsOK(res1)) { | |
27489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27490 | } | |
27491 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27492 | { | |
27493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27494 | result = (int)(arg1)->GetWidth(); | |
27495 | wxPyEndAllowThreads(__tstate); | |
27496 | if (PyErr_Occurred()) SWIG_fail; | |
27497 | } | |
27498 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27499 | return resultobj; | |
27500 | fail: | |
27501 | return NULL; | |
d14a1e28 RD |
27502 | } |
27503 | ||
27504 | ||
0085ce49 RD |
27505 | SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27506 | PyObject *resultobj = 0; | |
27507 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27508 | wxListColumnFormat result; | |
27509 | void *argp1 = 0 ; | |
27510 | int res1 = 0 ; | |
27511 | PyObject *swig_obj[1] ; | |
27512 | ||
27513 | if (!args) SWIG_fail; | |
27514 | swig_obj[0] = args; | |
27515 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27516 | if (!SWIG_IsOK(res1)) { | |
27517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27518 | } | |
27519 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27520 | { | |
27521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27522 | result = (wxListColumnFormat)(arg1)->GetAlign(); | |
27523 | wxPyEndAllowThreads(__tstate); | |
27524 | if (PyErr_Occurred()) SWIG_fail; | |
27525 | } | |
27526 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27527 | return resultobj; | |
27528 | fail: | |
27529 | return NULL; | |
d14a1e28 RD |
27530 | } |
27531 | ||
27532 | ||
0085ce49 RD |
27533 | SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27534 | PyObject *resultobj = 0; | |
27535 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27536 | wxListItemAttr *result = 0 ; | |
27537 | void *argp1 = 0 ; | |
27538 | int res1 = 0 ; | |
27539 | PyObject *swig_obj[1] ; | |
27540 | ||
27541 | if (!args) SWIG_fail; | |
27542 | swig_obj[0] = args; | |
27543 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27544 | if (!SWIG_IsOK(res1)) { | |
27545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27546 | } | |
27547 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27548 | { | |
27549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27550 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
27551 | wxPyEndAllowThreads(__tstate); | |
27552 | if (PyErr_Occurred()) SWIG_fail; | |
27553 | } | |
27554 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
27555 | return resultobj; | |
27556 | fail: | |
27557 | return NULL; | |
d14a1e28 RD |
27558 | } |
27559 | ||
27560 | ||
0085ce49 RD |
27561 | SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27562 | PyObject *resultobj = 0; | |
27563 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27564 | bool result; | |
27565 | void *argp1 = 0 ; | |
27566 | int res1 = 0 ; | |
27567 | PyObject *swig_obj[1] ; | |
27568 | ||
27569 | if (!args) SWIG_fail; | |
27570 | swig_obj[0] = args; | |
27571 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27572 | if (!SWIG_IsOK(res1)) { | |
27573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27574 | } | |
27575 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27576 | { | |
27577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27578 | result = (bool)(arg1)->HasAttributes(); | |
27579 | wxPyEndAllowThreads(__tstate); | |
27580 | if (PyErr_Occurred()) SWIG_fail; | |
27581 | } | |
27582 | { | |
27583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27584 | } | |
27585 | return resultobj; | |
27586 | fail: | |
27587 | return NULL; | |
22bfe96c RD |
27588 | } |
27589 | ||
27590 | ||
0085ce49 RD |
27591 | SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27592 | PyObject *resultobj = 0; | |
27593 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27594 | wxColour result; | |
27595 | void *argp1 = 0 ; | |
27596 | int res1 = 0 ; | |
27597 | PyObject *swig_obj[1] ; | |
27598 | ||
27599 | if (!args) SWIG_fail; | |
27600 | swig_obj[0] = args; | |
27601 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27602 | if (!SWIG_IsOK(res1)) { | |
27603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
27604 | } | |
27605 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27606 | { | |
27607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27608 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
27609 | wxPyEndAllowThreads(__tstate); | |
27610 | if (PyErr_Occurred()) SWIG_fail; | |
27611 | } | |
27612 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
27613 | return resultobj; | |
27614 | fail: | |
27615 | return NULL; | |
d14a1e28 | 27616 | } |
0085ce49 RD |
27617 | |
27618 | ||
27619 | SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27620 | PyObject *resultobj = 0; | |
27621 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27622 | wxColour result; | |
27623 | void *argp1 = 0 ; | |
27624 | int res1 = 0 ; | |
27625 | PyObject *swig_obj[1] ; | |
27626 | ||
27627 | if (!args) SWIG_fail; | |
27628 | swig_obj[0] = args; | |
27629 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27630 | if (!SWIG_IsOK(res1)) { | |
27631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
27632 | } | |
27633 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27634 | { | |
27635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27636 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
27637 | wxPyEndAllowThreads(__tstate); | |
27638 | if (PyErr_Occurred()) SWIG_fail; | |
27639 | } | |
27640 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
27641 | return resultobj; | |
27642 | fail: | |
27643 | return NULL; | |
b2dc1044 RD |
27644 | } |
27645 | ||
27646 | ||
0085ce49 RD |
27647 | SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27648 | PyObject *resultobj = 0; | |
27649 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27650 | wxFont result; | |
27651 | void *argp1 = 0 ; | |
27652 | int res1 = 0 ; | |
27653 | PyObject *swig_obj[1] ; | |
27654 | ||
27655 | if (!args) SWIG_fail; | |
27656 | swig_obj[0] = args; | |
27657 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27658 | if (!SWIG_IsOK(res1)) { | |
27659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
27660 | } | |
27661 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27662 | { | |
27663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27664 | result = ((wxListItem const *)arg1)->GetFont(); | |
27665 | wxPyEndAllowThreads(__tstate); | |
27666 | if (PyErr_Occurred()) SWIG_fail; | |
27667 | } | |
27668 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
27669 | return resultobj; | |
27670 | fail: | |
27671 | return NULL; | |
27672 | } | |
27673 | ||
27674 | ||
27675 | SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27676 | PyObject *resultobj = 0; | |
27677 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27678 | long arg2 ; | |
27679 | void *argp1 = 0 ; | |
27680 | int res1 = 0 ; | |
27681 | long val2 ; | |
27682 | int ecode2 = 0 ; | |
27683 | PyObject *swig_obj[2] ; | |
27684 | ||
27685 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail; | |
27686 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27687 | if (!SWIG_IsOK(res1)) { | |
27688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27689 | } | |
27690 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27691 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27692 | if (!SWIG_IsOK(ecode2)) { | |
27693 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'"); | |
27694 | } | |
27695 | arg2 = static_cast< long >(val2); | |
27696 | if (arg1) (arg1)->m_mask = arg2; | |
27697 | ||
27698 | resultobj = SWIG_Py_Void(); | |
27699 | return resultobj; | |
27700 | fail: | |
27701 | return NULL; | |
b2dc1044 RD |
27702 | } |
27703 | ||
27704 | ||
0085ce49 RD |
27705 | SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27706 | PyObject *resultobj = 0; | |
27707 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27708 | long result; | |
27709 | void *argp1 = 0 ; | |
27710 | int res1 = 0 ; | |
27711 | PyObject *swig_obj[1] ; | |
27712 | ||
27713 | if (!args) SWIG_fail; | |
27714 | swig_obj[0] = args; | |
27715 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27716 | if (!SWIG_IsOK(res1)) { | |
27717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27718 | } | |
27719 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27720 | result = (long) ((arg1)->m_mask); | |
27721 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27722 | return resultobj; | |
27723 | fail: | |
27724 | return NULL; | |
27725 | } | |
27726 | ||
27727 | ||
27728 | SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27729 | PyObject *resultobj = 0; | |
27730 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27731 | long arg2 ; | |
27732 | void *argp1 = 0 ; | |
27733 | int res1 = 0 ; | |
27734 | long val2 ; | |
27735 | int ecode2 = 0 ; | |
27736 | PyObject *swig_obj[2] ; | |
27737 | ||
27738 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail; | |
27739 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27740 | if (!SWIG_IsOK(res1)) { | |
27741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27742 | } | |
27743 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27744 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27745 | if (!SWIG_IsOK(ecode2)) { | |
27746 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'"); | |
27747 | } | |
27748 | arg2 = static_cast< long >(val2); | |
27749 | if (arg1) (arg1)->m_itemId = arg2; | |
27750 | ||
27751 | resultobj = SWIG_Py_Void(); | |
27752 | return resultobj; | |
27753 | fail: | |
27754 | return NULL; | |
d14a1e28 RD |
27755 | } |
27756 | ||
27757 | ||
0085ce49 RD |
27758 | SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27759 | PyObject *resultobj = 0; | |
27760 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27761 | long result; | |
27762 | void *argp1 = 0 ; | |
27763 | int res1 = 0 ; | |
27764 | PyObject *swig_obj[1] ; | |
27765 | ||
27766 | if (!args) SWIG_fail; | |
27767 | swig_obj[0] = args; | |
27768 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27769 | if (!SWIG_IsOK(res1)) { | |
27770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27771 | } | |
27772 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27773 | result = (long) ((arg1)->m_itemId); | |
27774 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27775 | return resultobj; | |
27776 | fail: | |
27777 | return NULL; | |
27778 | } | |
27779 | ||
27780 | ||
27781 | SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27782 | PyObject *resultobj = 0; | |
27783 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27784 | int arg2 ; | |
27785 | void *argp1 = 0 ; | |
27786 | int res1 = 0 ; | |
27787 | int val2 ; | |
27788 | int ecode2 = 0 ; | |
27789 | PyObject *swig_obj[2] ; | |
27790 | ||
27791 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail; | |
27792 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27793 | if (!SWIG_IsOK(res1)) { | |
27794 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27795 | } | |
27796 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27797 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27798 | if (!SWIG_IsOK(ecode2)) { | |
27799 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'"); | |
27800 | } | |
27801 | arg2 = static_cast< int >(val2); | |
27802 | if (arg1) (arg1)->m_col = arg2; | |
27803 | ||
27804 | resultobj = SWIG_Py_Void(); | |
27805 | return resultobj; | |
27806 | fail: | |
27807 | return NULL; | |
d14a1e28 RD |
27808 | } |
27809 | ||
27810 | ||
0085ce49 RD |
27811 | SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27812 | PyObject *resultobj = 0; | |
27813 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27814 | int result; | |
27815 | void *argp1 = 0 ; | |
27816 | int res1 = 0 ; | |
27817 | PyObject *swig_obj[1] ; | |
27818 | ||
27819 | if (!args) SWIG_fail; | |
27820 | swig_obj[0] = args; | |
27821 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27822 | if (!SWIG_IsOK(res1)) { | |
27823 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27824 | } | |
27825 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27826 | result = (int) ((arg1)->m_col); | |
27827 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27828 | return resultobj; | |
27829 | fail: | |
27830 | return NULL; | |
27831 | } | |
27832 | ||
27833 | ||
27834 | SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27835 | PyObject *resultobj = 0; | |
27836 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27837 | long arg2 ; | |
27838 | void *argp1 = 0 ; | |
27839 | int res1 = 0 ; | |
27840 | long val2 ; | |
27841 | int ecode2 = 0 ; | |
27842 | PyObject *swig_obj[2] ; | |
27843 | ||
27844 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail; | |
27845 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27846 | if (!SWIG_IsOK(res1)) { | |
27847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27848 | } | |
27849 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27850 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27851 | if (!SWIG_IsOK(ecode2)) { | |
27852 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'"); | |
27853 | } | |
27854 | arg2 = static_cast< long >(val2); | |
27855 | if (arg1) (arg1)->m_state = arg2; | |
27856 | ||
27857 | resultobj = SWIG_Py_Void(); | |
27858 | return resultobj; | |
27859 | fail: | |
27860 | return NULL; | |
8fb0e70a RD |
27861 | } |
27862 | ||
27863 | ||
0085ce49 RD |
27864 | SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27865 | PyObject *resultobj = 0; | |
27866 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27867 | long result; | |
27868 | void *argp1 = 0 ; | |
27869 | int res1 = 0 ; | |
27870 | PyObject *swig_obj[1] ; | |
27871 | ||
27872 | if (!args) SWIG_fail; | |
27873 | swig_obj[0] = args; | |
27874 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27875 | if (!SWIG_IsOK(res1)) { | |
27876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27877 | } | |
27878 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27879 | result = (long) ((arg1)->m_state); | |
27880 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27881 | return resultobj; | |
27882 | fail: | |
27883 | return NULL; | |
27884 | } | |
27885 | ||
27886 | ||
27887 | SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27888 | PyObject *resultobj = 0; | |
27889 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27890 | long arg2 ; | |
27891 | void *argp1 = 0 ; | |
27892 | int res1 = 0 ; | |
27893 | long val2 ; | |
27894 | int ecode2 = 0 ; | |
27895 | PyObject *swig_obj[2] ; | |
27896 | ||
27897 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail; | |
27898 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27899 | if (!SWIG_IsOK(res1)) { | |
27900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27901 | } | |
27902 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27903 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27904 | if (!SWIG_IsOK(ecode2)) { | |
27905 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'"); | |
27906 | } | |
27907 | arg2 = static_cast< long >(val2); | |
27908 | if (arg1) (arg1)->m_stateMask = arg2; | |
27909 | ||
27910 | resultobj = SWIG_Py_Void(); | |
27911 | return resultobj; | |
27912 | fail: | |
27913 | return NULL; | |
d14a1e28 RD |
27914 | } |
27915 | ||
27916 | ||
0085ce49 RD |
27917 | SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27918 | PyObject *resultobj = 0; | |
27919 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27920 | long result; | |
27921 | void *argp1 = 0 ; | |
27922 | int res1 = 0 ; | |
27923 | PyObject *swig_obj[1] ; | |
27924 | ||
27925 | if (!args) SWIG_fail; | |
27926 | swig_obj[0] = args; | |
27927 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27928 | if (!SWIG_IsOK(res1)) { | |
27929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27930 | } | |
27931 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27932 | result = (long) ((arg1)->m_stateMask); | |
27933 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27934 | return resultobj; | |
27935 | fail: | |
27936 | return NULL; | |
27937 | } | |
27938 | ||
27939 | ||
27940 | SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27941 | PyObject *resultobj = 0; | |
27942 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27943 | wxString *arg2 = (wxString *) 0 ; | |
27944 | void *argp1 = 0 ; | |
27945 | int res1 = 0 ; | |
27946 | bool temp2 = false ; | |
27947 | PyObject *swig_obj[2] ; | |
27948 | ||
27949 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail; | |
27950 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27951 | if (!SWIG_IsOK(res1)) { | |
27952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27953 | } | |
27954 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27955 | { | |
27956 | arg2 = wxString_in_helper(swig_obj[1]); | |
27957 | if (arg2 == NULL) SWIG_fail; | |
27958 | temp2 = true; | |
27959 | } | |
27960 | if (arg1) (arg1)->m_text = *arg2; | |
27961 | ||
27962 | resultobj = SWIG_Py_Void(); | |
27963 | { | |
27964 | if (temp2) | |
27965 | delete arg2; | |
27966 | } | |
27967 | return resultobj; | |
27968 | fail: | |
27969 | { | |
27970 | if (temp2) | |
27971 | delete arg2; | |
27972 | } | |
27973 | return NULL; | |
d14a1e28 RD |
27974 | } |
27975 | ||
27976 | ||
0085ce49 RD |
27977 | SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27978 | PyObject *resultobj = 0; | |
27979 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27980 | wxString *result = 0 ; | |
27981 | void *argp1 = 0 ; | |
27982 | int res1 = 0 ; | |
27983 | PyObject *swig_obj[1] ; | |
27984 | ||
27985 | if (!args) SWIG_fail; | |
27986 | swig_obj[0] = args; | |
27987 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27988 | if (!SWIG_IsOK(res1)) { | |
27989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27990 | } | |
27991 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27992 | result = (wxString *)& ((arg1)->m_text); | |
27993 | { | |
d14a1e28 | 27994 | #if wxUSE_UNICODE |
0085ce49 | 27995 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 27996 | #else |
0085ce49 | 27997 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 | 27998 | #endif |
0085ce49 RD |
27999 | } |
28000 | return resultobj; | |
28001 | fail: | |
28002 | return NULL; | |
d14a1e28 RD |
28003 | } |
28004 | ||
28005 | ||
0085ce49 RD |
28006 | SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28007 | PyObject *resultobj = 0; | |
28008 | wxListItem *arg1 = (wxListItem *) 0 ; | |
28009 | int arg2 ; | |
28010 | void *argp1 = 0 ; | |
28011 | int res1 = 0 ; | |
28012 | int val2 ; | |
28013 | int ecode2 = 0 ; | |
28014 | PyObject *swig_obj[2] ; | |
28015 | ||
28016 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail; | |
28017 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28018 | if (!SWIG_IsOK(res1)) { | |
28019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
28020 | } | |
28021 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
28022 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
28023 | if (!SWIG_IsOK(ecode2)) { | |
28024 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'"); | |
28025 | } | |
28026 | arg2 = static_cast< int >(val2); | |
28027 | if (arg1) (arg1)->m_image = arg2; | |
28028 | ||
28029 | resultobj = SWIG_Py_Void(); | |
28030 | return resultobj; | |
28031 | fail: | |
28032 | return NULL; | |
d14a1e28 RD |
28033 | } |
28034 | ||
28035 | ||
0085ce49 RD |
28036 | SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28037 | PyObject *resultobj = 0; | |
28038 | wxListItem *arg1 = (wxListItem *) 0 ; | |
28039 | int 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_wxListItem, 0 | 0 ); | |
28047 | if (!SWIG_IsOK(res1)) { | |
28048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
28049 | } | |
28050 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
28051 | result = (int) ((arg1)->m_image); | |
28052 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28053 | return resultobj; | |
28054 | fail: | |
28055 | return NULL; | |
28056 | } | |
28057 | ||
28058 | ||
28059 | SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28060 | PyObject *resultobj = 0; | |
28061 | wxListItem *arg1 = (wxListItem *) 0 ; | |
28062 | long arg2 ; | |
28063 | void *argp1 = 0 ; | |
28064 | int res1 = 0 ; | |
28065 | long val2 ; | |
28066 | int ecode2 = 0 ; | |
28067 | PyObject *swig_obj[2] ; | |
28068 | ||
28069 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail; | |
28070 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28071 | if (!SWIG_IsOK(res1)) { | |
28072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
28073 | } | |
28074 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
28075 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
28076 | if (!SWIG_IsOK(ecode2)) { | |
28077 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'"); | |
28078 | } | |
28079 | arg2 = static_cast< long >(val2); | |
28080 | if (arg1) (arg1)->m_data = arg2; | |
28081 | ||
28082 | resultobj = SWIG_Py_Void(); | |
28083 | return resultobj; | |
28084 | fail: | |
28085 | return NULL; | |
d14a1e28 RD |
28086 | } |
28087 | ||
28088 | ||
0085ce49 RD |
28089 | SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28090 | PyObject *resultobj = 0; | |
28091 | wxListItem *arg1 = (wxListItem *) 0 ; | |
28092 | long result; | |
28093 | void *argp1 = 0 ; | |
28094 | int res1 = 0 ; | |
28095 | PyObject *swig_obj[1] ; | |
28096 | ||
28097 | if (!args) SWIG_fail; | |
28098 | swig_obj[0] = args; | |
28099 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28100 | if (!SWIG_IsOK(res1)) { | |
28101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
28102 | } | |
28103 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
28104 | result = (long) ((arg1)->m_data); | |
28105 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28106 | return resultobj; | |
28107 | fail: | |
28108 | return NULL; | |
28109 | } | |
28110 | ||
28111 | ||
28112 | SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28113 | PyObject *resultobj = 0; | |
28114 | wxListItem *arg1 = (wxListItem *) 0 ; | |
28115 | int arg2 ; | |
28116 | void *argp1 = 0 ; | |
28117 | int res1 = 0 ; | |
28118 | int val2 ; | |
28119 | int ecode2 = 0 ; | |
28120 | PyObject *swig_obj[2] ; | |
28121 | ||
28122 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail; | |
28123 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28124 | if (!SWIG_IsOK(res1)) { | |
28125 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
28126 | } | |
28127 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
28128 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
28129 | if (!SWIG_IsOK(ecode2)) { | |
28130 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'"); | |
28131 | } | |
28132 | arg2 = static_cast< int >(val2); | |
28133 | if (arg1) (arg1)->m_format = arg2; | |
28134 | ||
28135 | resultobj = SWIG_Py_Void(); | |
28136 | return resultobj; | |
28137 | fail: | |
28138 | return NULL; | |
d14a1e28 RD |
28139 | } |
28140 | ||
28141 | ||
0085ce49 RD |
28142 | SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28143 | PyObject *resultobj = 0; | |
28144 | wxListItem *arg1 = (wxListItem *) 0 ; | |
28145 | int result; | |
28146 | void *argp1 = 0 ; | |
28147 | int res1 = 0 ; | |
28148 | PyObject *swig_obj[1] ; | |
28149 | ||
28150 | if (!args) SWIG_fail; | |
28151 | swig_obj[0] = args; | |
28152 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28153 | if (!SWIG_IsOK(res1)) { | |
28154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
28155 | } | |
28156 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
28157 | result = (int) ((arg1)->m_format); | |
28158 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28159 | return resultobj; | |
28160 | fail: | |
28161 | return NULL; | |
28162 | } | |
28163 | ||
28164 | ||
28165 | SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28166 | PyObject *resultobj = 0; | |
28167 | wxListItem *arg1 = (wxListItem *) 0 ; | |
28168 | int arg2 ; | |
28169 | void *argp1 = 0 ; | |
28170 | int res1 = 0 ; | |
28171 | int val2 ; | |
28172 | int ecode2 = 0 ; | |
28173 | PyObject *swig_obj[2] ; | |
28174 | ||
28175 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail; | |
28176 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28177 | if (!SWIG_IsOK(res1)) { | |
28178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
28179 | } | |
28180 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
28181 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
28182 | if (!SWIG_IsOK(ecode2)) { | |
28183 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'"); | |
28184 | } | |
28185 | arg2 = static_cast< int >(val2); | |
28186 | if (arg1) (arg1)->m_width = arg2; | |
28187 | ||
28188 | resultobj = SWIG_Py_Void(); | |
28189 | return resultobj; | |
28190 | fail: | |
28191 | return NULL; | |
d14a1e28 RD |
28192 | } |
28193 | ||
28194 | ||
0085ce49 RD |
28195 | SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28196 | PyObject *resultobj = 0; | |
28197 | wxListItem *arg1 = (wxListItem *) 0 ; | |
28198 | int result; | |
28199 | void *argp1 = 0 ; | |
28200 | int res1 = 0 ; | |
28201 | PyObject *swig_obj[1] ; | |
28202 | ||
28203 | if (!args) SWIG_fail; | |
28204 | swig_obj[0] = args; | |
28205 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28206 | if (!SWIG_IsOK(res1)) { | |
28207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
28208 | } | |
28209 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
28210 | result = (int) ((arg1)->m_width); | |
28211 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28212 | return resultobj; | |
28213 | fail: | |
28214 | return NULL; | |
28215 | } | |
28216 | ||
28217 | ||
28218 | SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28219 | PyObject *obj; | |
28220 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28221 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj)); | |
28222 | return SWIG_Py_Void(); | |
28223 | } | |
28224 | ||
28225 | SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28226 | return SWIG_Python_InitShadowInstance(args); | |
28227 | } | |
28228 | ||
28229 | SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28230 | PyObject *resultobj = 0; | |
28231 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
28232 | int arg2 = (int) 0 ; | |
28233 | wxListEvent *result = 0 ; | |
28234 | int val1 ; | |
28235 | int ecode1 = 0 ; | |
28236 | int val2 ; | |
28237 | int ecode2 = 0 ; | |
28238 | PyObject * obj0 = 0 ; | |
28239 | PyObject * obj1 = 0 ; | |
28240 | char * kwnames[] = { | |
28241 | (char *) "commandType",(char *) "id", NULL | |
28242 | }; | |
28243 | ||
28244 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
28245 | if (obj0) { | |
28246 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
28247 | if (!SWIG_IsOK(ecode1)) { | |
28248 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
28249 | } | |
28250 | arg1 = static_cast< wxEventType >(val1); | |
28251 | } | |
28252 | if (obj1) { | |
28253 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28254 | if (!SWIG_IsOK(ecode2)) { | |
28255 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'"); | |
28256 | } | |
28257 | arg2 = static_cast< int >(val2); | |
28258 | } | |
28259 | { | |
28260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28261 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
28262 | wxPyEndAllowThreads(__tstate); | |
28263 | if (PyErr_Occurred()) SWIG_fail; | |
28264 | } | |
28265 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 ); | |
28266 | return resultobj; | |
28267 | fail: | |
28268 | return NULL; | |
28269 | } | |
28270 | ||
28271 | ||
28272 | SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28273 | PyObject *resultobj = 0; | |
28274 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28275 | int arg2 ; | |
28276 | void *argp1 = 0 ; | |
28277 | int res1 = 0 ; | |
28278 | int val2 ; | |
28279 | int ecode2 = 0 ; | |
28280 | PyObject *swig_obj[2] ; | |
28281 | ||
28282 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail; | |
28283 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28284 | if (!SWIG_IsOK(res1)) { | |
28285 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28286 | } | |
28287 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28288 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
28289 | if (!SWIG_IsOK(ecode2)) { | |
28290 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'"); | |
28291 | } | |
28292 | arg2 = static_cast< int >(val2); | |
28293 | if (arg1) (arg1)->m_code = arg2; | |
28294 | ||
28295 | resultobj = SWIG_Py_Void(); | |
28296 | return resultobj; | |
28297 | fail: | |
28298 | return NULL; | |
d14a1e28 RD |
28299 | } |
28300 | ||
28301 | ||
0085ce49 RD |
28302 | SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28303 | PyObject *resultobj = 0; | |
28304 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28305 | int result; | |
28306 | void *argp1 = 0 ; | |
28307 | int res1 = 0 ; | |
28308 | PyObject *swig_obj[1] ; | |
28309 | ||
28310 | if (!args) SWIG_fail; | |
28311 | swig_obj[0] = args; | |
28312 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28313 | if (!SWIG_IsOK(res1)) { | |
28314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28315 | } | |
28316 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28317 | result = (int) ((arg1)->m_code); | |
28318 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28319 | return resultobj; | |
28320 | fail: | |
28321 | return NULL; | |
28322 | } | |
28323 | ||
28324 | ||
28325 | SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28326 | PyObject *resultobj = 0; | |
28327 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28328 | long arg2 ; | |
28329 | void *argp1 = 0 ; | |
28330 | int res1 = 0 ; | |
28331 | long val2 ; | |
28332 | int ecode2 = 0 ; | |
28333 | PyObject *swig_obj[2] ; | |
28334 | ||
28335 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail; | |
28336 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28337 | if (!SWIG_IsOK(res1)) { | |
28338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28339 | } | |
28340 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28341 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
28342 | if (!SWIG_IsOK(ecode2)) { | |
28343 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'"); | |
28344 | } | |
28345 | arg2 = static_cast< long >(val2); | |
28346 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
28347 | ||
28348 | resultobj = SWIG_Py_Void(); | |
28349 | return resultobj; | |
28350 | fail: | |
28351 | return NULL; | |
d14a1e28 RD |
28352 | } |
28353 | ||
28354 | ||
0085ce49 RD |
28355 | SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28356 | PyObject *resultobj = 0; | |
28357 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28358 | long result; | |
28359 | void *argp1 = 0 ; | |
28360 | int res1 = 0 ; | |
28361 | PyObject *swig_obj[1] ; | |
28362 | ||
28363 | if (!args) SWIG_fail; | |
28364 | swig_obj[0] = args; | |
28365 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28366 | if (!SWIG_IsOK(res1)) { | |
28367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28368 | } | |
28369 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28370 | result = (long) ((arg1)->m_oldItemIndex); | |
28371 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28372 | return resultobj; | |
28373 | fail: | |
28374 | return NULL; | |
28375 | } | |
28376 | ||
28377 | ||
28378 | SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28379 | PyObject *resultobj = 0; | |
28380 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28381 | long arg2 ; | |
28382 | void *argp1 = 0 ; | |
28383 | int res1 = 0 ; | |
28384 | long val2 ; | |
28385 | int ecode2 = 0 ; | |
28386 | PyObject *swig_obj[2] ; | |
28387 | ||
28388 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail; | |
28389 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28390 | if (!SWIG_IsOK(res1)) { | |
28391 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28392 | } | |
28393 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28394 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
28395 | if (!SWIG_IsOK(ecode2)) { | |
28396 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'"); | |
28397 | } | |
28398 | arg2 = static_cast< long >(val2); | |
28399 | if (arg1) (arg1)->m_itemIndex = arg2; | |
28400 | ||
28401 | resultobj = SWIG_Py_Void(); | |
28402 | return resultobj; | |
28403 | fail: | |
28404 | return NULL; | |
d14a1e28 RD |
28405 | } |
28406 | ||
28407 | ||
0085ce49 RD |
28408 | SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28409 | PyObject *resultobj = 0; | |
28410 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28411 | long result; | |
28412 | void *argp1 = 0 ; | |
28413 | int res1 = 0 ; | |
28414 | PyObject *swig_obj[1] ; | |
28415 | ||
28416 | if (!args) SWIG_fail; | |
28417 | swig_obj[0] = args; | |
28418 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28419 | if (!SWIG_IsOK(res1)) { | |
28420 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28421 | } | |
28422 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28423 | result = (long) ((arg1)->m_itemIndex); | |
28424 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28425 | return resultobj; | |
28426 | fail: | |
28427 | return NULL; | |
28428 | } | |
28429 | ||
28430 | ||
28431 | SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28432 | PyObject *resultobj = 0; | |
28433 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28434 | int arg2 ; | |
28435 | void *argp1 = 0 ; | |
28436 | int res1 = 0 ; | |
28437 | int val2 ; | |
28438 | int ecode2 = 0 ; | |
28439 | PyObject *swig_obj[2] ; | |
28440 | ||
28441 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail; | |
28442 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28443 | if (!SWIG_IsOK(res1)) { | |
28444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28445 | } | |
28446 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28447 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
28448 | if (!SWIG_IsOK(ecode2)) { | |
28449 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'"); | |
28450 | } | |
28451 | arg2 = static_cast< int >(val2); | |
28452 | if (arg1) (arg1)->m_col = arg2; | |
28453 | ||
28454 | resultobj = SWIG_Py_Void(); | |
28455 | return resultobj; | |
28456 | fail: | |
28457 | return NULL; | |
7e08d4ef RD |
28458 | } |
28459 | ||
28460 | ||
0085ce49 RD |
28461 | SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28462 | PyObject *resultobj = 0; | |
28463 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28464 | int result; | |
28465 | void *argp1 = 0 ; | |
28466 | int res1 = 0 ; | |
28467 | PyObject *swig_obj[1] ; | |
28468 | ||
28469 | if (!args) SWIG_fail; | |
28470 | swig_obj[0] = args; | |
28471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28472 | if (!SWIG_IsOK(res1)) { | |
28473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28474 | } | |
28475 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28476 | result = (int) ((arg1)->m_col); | |
28477 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28478 | return resultobj; | |
28479 | fail: | |
28480 | return NULL; | |
28481 | } | |
28482 | ||
28483 | ||
28484 | SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28485 | PyObject *resultobj = 0; | |
28486 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28487 | wxPoint *arg2 = (wxPoint *) 0 ; | |
28488 | void *argp1 = 0 ; | |
28489 | int res1 = 0 ; | |
28490 | void *argp2 = 0 ; | |
28491 | int res2 = 0 ; | |
28492 | PyObject *swig_obj[2] ; | |
28493 | ||
28494 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail; | |
28495 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28496 | if (!SWIG_IsOK(res1)) { | |
28497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28498 | } | |
28499 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28500 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 ); | |
28501 | if (!SWIG_IsOK(res2)) { | |
28502 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'"); | |
28503 | } | |
28504 | arg2 = reinterpret_cast< wxPoint * >(argp2); | |
28505 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
28506 | ||
28507 | resultobj = SWIG_Py_Void(); | |
28508 | return resultobj; | |
28509 | fail: | |
28510 | return NULL; | |
7e08d4ef RD |
28511 | } |
28512 | ||
28513 | ||
0085ce49 RD |
28514 | SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28515 | PyObject *resultobj = 0; | |
28516 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28517 | wxPoint *result = 0 ; | |
28518 | void *argp1 = 0 ; | |
28519 | int res1 = 0 ; | |
28520 | PyObject *swig_obj[1] ; | |
28521 | ||
28522 | if (!args) SWIG_fail; | |
28523 | swig_obj[0] = args; | |
28524 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28525 | if (!SWIG_IsOK(res1)) { | |
28526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28527 | } | |
28528 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28529 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
28530 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 ); | |
28531 | return resultobj; | |
28532 | fail: | |
28533 | return NULL; | |
28534 | } | |
28535 | ||
28536 | ||
28537 | SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28538 | PyObject *resultobj = 0; | |
28539 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28540 | wxListItem *result = 0 ; | |
28541 | void *argp1 = 0 ; | |
28542 | int res1 = 0 ; | |
28543 | PyObject *swig_obj[1] ; | |
28544 | ||
28545 | if (!args) SWIG_fail; | |
28546 | swig_obj[0] = args; | |
28547 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28548 | if (!SWIG_IsOK(res1)) { | |
28549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28550 | } | |
28551 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28552 | result = (wxListItem *)& ((arg1)->m_item); | |
28553 | { | |
3ecece7e | 28554 | resultobj = wxPyMake_wxObject(result, 0); |
0085ce49 RD |
28555 | } |
28556 | return resultobj; | |
28557 | fail: | |
28558 | return NULL; | |
7e08d4ef RD |
28559 | } |
28560 | ||
28561 | ||
0085ce49 RD |
28562 | SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28563 | PyObject *resultobj = 0; | |
28564 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28565 | int result; | |
28566 | void *argp1 = 0 ; | |
28567 | int res1 = 0 ; | |
28568 | PyObject *swig_obj[1] ; | |
28569 | ||
28570 | if (!args) SWIG_fail; | |
28571 | swig_obj[0] = args; | |
28572 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28573 | if (!SWIG_IsOK(res1)) { | |
28574 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28575 | } | |
28576 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28577 | { | |
28578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28579 | result = (int)(arg1)->GetKeyCode(); | |
28580 | wxPyEndAllowThreads(__tstate); | |
28581 | if (PyErr_Occurred()) SWIG_fail; | |
28582 | } | |
28583 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28584 | return resultobj; | |
28585 | fail: | |
28586 | return NULL; | |
7e08d4ef RD |
28587 | } |
28588 | ||
28589 | ||
0085ce49 RD |
28590 | SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28591 | PyObject *resultobj = 0; | |
28592 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28593 | long result; | |
28594 | void *argp1 = 0 ; | |
28595 | int res1 = 0 ; | |
28596 | PyObject *swig_obj[1] ; | |
28597 | ||
28598 | if (!args) SWIG_fail; | |
28599 | swig_obj[0] = args; | |
28600 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28601 | if (!SWIG_IsOK(res1)) { | |
28602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28603 | } | |
28604 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28605 | { | |
28606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28607 | result = (long)(arg1)->GetIndex(); | |
28608 | wxPyEndAllowThreads(__tstate); | |
28609 | if (PyErr_Occurred()) SWIG_fail; | |
28610 | } | |
28611 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28612 | return resultobj; | |
28613 | fail: | |
28614 | return NULL; | |
7e08d4ef RD |
28615 | } |
28616 | ||
28617 | ||
0085ce49 RD |
28618 | SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28619 | PyObject *resultobj = 0; | |
28620 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28621 | int result; | |
28622 | void *argp1 = 0 ; | |
28623 | int res1 = 0 ; | |
28624 | PyObject *swig_obj[1] ; | |
28625 | ||
28626 | if (!args) SWIG_fail; | |
28627 | swig_obj[0] = args; | |
28628 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28629 | if (!SWIG_IsOK(res1)) { | |
28630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28631 | } | |
28632 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28633 | { | |
28634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28635 | result = (int)(arg1)->GetColumn(); | |
28636 | wxPyEndAllowThreads(__tstate); | |
28637 | if (PyErr_Occurred()) SWIG_fail; | |
28638 | } | |
28639 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28640 | return resultobj; | |
28641 | fail: | |
28642 | return NULL; | |
d14a1e28 RD |
28643 | } |
28644 | ||
28645 | ||
0085ce49 RD |
28646 | SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28647 | PyObject *resultobj = 0; | |
28648 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28649 | wxPoint result; | |
28650 | void *argp1 = 0 ; | |
28651 | int res1 = 0 ; | |
28652 | PyObject *swig_obj[1] ; | |
28653 | ||
28654 | if (!args) SWIG_fail; | |
28655 | swig_obj[0] = args; | |
28656 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28657 | if (!SWIG_IsOK(res1)) { | |
28658 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28659 | } | |
28660 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28661 | { | |
28662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28663 | result = (arg1)->GetPoint(); | |
28664 | wxPyEndAllowThreads(__tstate); | |
28665 | if (PyErr_Occurred()) SWIG_fail; | |
28666 | } | |
28667 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
28668 | return resultobj; | |
28669 | fail: | |
28670 | return NULL; | |
d14a1e28 RD |
28671 | } |
28672 | ||
28673 | ||
0085ce49 RD |
28674 | SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28675 | PyObject *resultobj = 0; | |
28676 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28677 | wxString *result = 0 ; | |
28678 | void *argp1 = 0 ; | |
28679 | int res1 = 0 ; | |
28680 | PyObject *swig_obj[1] ; | |
28681 | ||
28682 | if (!args) SWIG_fail; | |
28683 | swig_obj[0] = args; | |
28684 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28685 | if (!SWIG_IsOK(res1)) { | |
28686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28687 | } | |
28688 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28689 | { | |
28690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 28691 | { |
0085ce49 RD |
28692 | wxString const &_result_ref = (arg1)->GetLabel(); |
28693 | result = (wxString *) &_result_ref; | |
4f89f6a3 | 28694 | } |
0085ce49 RD |
28695 | wxPyEndAllowThreads(__tstate); |
28696 | if (PyErr_Occurred()) SWIG_fail; | |
28697 | } | |
28698 | { | |
28699 | #if wxUSE_UNICODE | |
28700 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28701 | #else | |
28702 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28703 | #endif | |
28704 | } | |
28705 | return resultobj; | |
28706 | fail: | |
28707 | return NULL; | |
d14a1e28 RD |
28708 | } |
28709 | ||
28710 | ||
0085ce49 RD |
28711 | SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28712 | PyObject *resultobj = 0; | |
28713 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28714 | wxString *result = 0 ; | |
28715 | void *argp1 = 0 ; | |
28716 | int res1 = 0 ; | |
28717 | PyObject *swig_obj[1] ; | |
28718 | ||
28719 | if (!args) SWIG_fail; | |
28720 | swig_obj[0] = args; | |
28721 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28722 | if (!SWIG_IsOK(res1)) { | |
28723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28724 | } | |
28725 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28726 | { | |
28727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 28728 | { |
0085ce49 RD |
28729 | wxString const &_result_ref = (arg1)->GetText(); |
28730 | result = (wxString *) &_result_ref; | |
d14a1e28 | 28731 | } |
0085ce49 RD |
28732 | wxPyEndAllowThreads(__tstate); |
28733 | if (PyErr_Occurred()) SWIG_fail; | |
28734 | } | |
28735 | { | |
28736 | #if wxUSE_UNICODE | |
28737 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28738 | #else | |
28739 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28740 | #endif | |
28741 | } | |
28742 | return resultobj; | |
28743 | fail: | |
28744 | return NULL; | |
d14a1e28 RD |
28745 | } |
28746 | ||
28747 | ||
0085ce49 RD |
28748 | SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28749 | PyObject *resultobj = 0; | |
28750 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28751 | int result; | |
28752 | void *argp1 = 0 ; | |
28753 | int res1 = 0 ; | |
28754 | PyObject *swig_obj[1] ; | |
28755 | ||
28756 | if (!args) SWIG_fail; | |
28757 | swig_obj[0] = args; | |
28758 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28759 | if (!SWIG_IsOK(res1)) { | |
28760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28761 | } | |
28762 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28763 | { | |
28764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28765 | result = (int)(arg1)->GetImage(); | |
28766 | wxPyEndAllowThreads(__tstate); | |
28767 | if (PyErr_Occurred()) SWIG_fail; | |
28768 | } | |
28769 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28770 | return resultobj; | |
28771 | fail: | |
28772 | return NULL; | |
d14a1e28 RD |
28773 | } |
28774 | ||
28775 | ||
0085ce49 RD |
28776 | SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28777 | PyObject *resultobj = 0; | |
28778 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28779 | long result; | |
28780 | void *argp1 = 0 ; | |
28781 | int res1 = 0 ; | |
28782 | PyObject *swig_obj[1] ; | |
28783 | ||
28784 | if (!args) SWIG_fail; | |
28785 | swig_obj[0] = args; | |
28786 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28787 | if (!SWIG_IsOK(res1)) { | |
28788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28789 | } | |
28790 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28791 | { | |
28792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28793 | result = (long)(arg1)->GetData(); | |
28794 | wxPyEndAllowThreads(__tstate); | |
28795 | if (PyErr_Occurred()) SWIG_fail; | |
28796 | } | |
28797 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28798 | return resultobj; | |
28799 | fail: | |
28800 | return NULL; | |
d14a1e28 RD |
28801 | } |
28802 | ||
28803 | ||
0085ce49 RD |
28804 | SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28805 | PyObject *resultobj = 0; | |
28806 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28807 | long result; | |
28808 | void *argp1 = 0 ; | |
28809 | int res1 = 0 ; | |
28810 | PyObject *swig_obj[1] ; | |
28811 | ||
28812 | if (!args) SWIG_fail; | |
28813 | swig_obj[0] = args; | |
28814 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28815 | if (!SWIG_IsOK(res1)) { | |
28816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28817 | } | |
28818 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28819 | { | |
28820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28821 | result = (long)(arg1)->GetMask(); | |
28822 | wxPyEndAllowThreads(__tstate); | |
28823 | if (PyErr_Occurred()) SWIG_fail; | |
28824 | } | |
28825 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28826 | return resultobj; | |
28827 | fail: | |
28828 | return NULL; | |
d14a1e28 RD |
28829 | } |
28830 | ||
28831 | ||
0085ce49 RD |
28832 | SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28833 | PyObject *resultobj = 0; | |
28834 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28835 | wxListItem *result = 0 ; | |
28836 | void *argp1 = 0 ; | |
28837 | int res1 = 0 ; | |
28838 | PyObject *swig_obj[1] ; | |
28839 | ||
28840 | if (!args) SWIG_fail; | |
28841 | swig_obj[0] = args; | |
28842 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28843 | if (!SWIG_IsOK(res1)) { | |
28844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28845 | } | |
28846 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28847 | { | |
28848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22bfe96c | 28849 | { |
0085ce49 RD |
28850 | wxListItem const &_result_ref = (arg1)->GetItem(); |
28851 | result = (wxListItem *) &_result_ref; | |
22bfe96c | 28852 | } |
0085ce49 RD |
28853 | wxPyEndAllowThreads(__tstate); |
28854 | if (PyErr_Occurred()) SWIG_fail; | |
28855 | } | |
28856 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28857 | return resultobj; | |
28858 | fail: | |
28859 | return NULL; | |
22bfe96c RD |
28860 | } |
28861 | ||
28862 | ||
0085ce49 RD |
28863 | SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28864 | PyObject *resultobj = 0; | |
28865 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28866 | long result; | |
28867 | void *argp1 = 0 ; | |
28868 | int res1 = 0 ; | |
28869 | PyObject *swig_obj[1] ; | |
28870 | ||
28871 | if (!args) SWIG_fail; | |
28872 | swig_obj[0] = args; | |
28873 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28874 | if (!SWIG_IsOK(res1)) { | |
28875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28876 | } | |
28877 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28878 | { | |
28879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28880 | result = (long)(arg1)->GetCacheFrom(); | |
28881 | wxPyEndAllowThreads(__tstate); | |
28882 | if (PyErr_Occurred()) SWIG_fail; | |
28883 | } | |
28884 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28885 | return resultobj; | |
28886 | fail: | |
28887 | return NULL; | |
d14a1e28 RD |
28888 | } |
28889 | ||
28890 | ||
0085ce49 RD |
28891 | SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28892 | PyObject *resultobj = 0; | |
28893 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28894 | long result; | |
28895 | void *argp1 = 0 ; | |
28896 | int res1 = 0 ; | |
28897 | PyObject *swig_obj[1] ; | |
28898 | ||
28899 | if (!args) SWIG_fail; | |
28900 | swig_obj[0] = args; | |
28901 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28902 | if (!SWIG_IsOK(res1)) { | |
28903 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28904 | } | |
28905 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28906 | { | |
28907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28908 | result = (long)(arg1)->GetCacheTo(); | |
28909 | wxPyEndAllowThreads(__tstate); | |
28910 | if (PyErr_Occurred()) SWIG_fail; | |
28911 | } | |
28912 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28913 | return resultobj; | |
28914 | fail: | |
28915 | return NULL; | |
d14a1e28 RD |
28916 | } |
28917 | ||
28918 | ||
0085ce49 RD |
28919 | SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28920 | PyObject *resultobj = 0; | |
28921 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28922 | bool result; | |
28923 | void *argp1 = 0 ; | |
28924 | int res1 = 0 ; | |
28925 | PyObject *swig_obj[1] ; | |
28926 | ||
28927 | if (!args) SWIG_fail; | |
28928 | swig_obj[0] = args; | |
28929 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28930 | if (!SWIG_IsOK(res1)) { | |
28931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'"); | |
28932 | } | |
28933 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28934 | { | |
28935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28936 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
28937 | wxPyEndAllowThreads(__tstate); | |
28938 | if (PyErr_Occurred()) SWIG_fail; | |
28939 | } | |
28940 | { | |
28941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28942 | } | |
28943 | return resultobj; | |
28944 | fail: | |
28945 | return NULL; | |
28946 | } | |
28947 | ||
28948 | ||
28949 | SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28950 | PyObject *resultobj = 0; | |
28951 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28952 | bool arg2 ; | |
28953 | void *argp1 = 0 ; | |
28954 | int res1 = 0 ; | |
28955 | bool val2 ; | |
28956 | int ecode2 = 0 ; | |
28957 | PyObject * obj0 = 0 ; | |
28958 | PyObject * obj1 = 0 ; | |
28959 | char * kwnames[] = { | |
28960 | (char *) "self",(char *) "editCancelled", NULL | |
28961 | }; | |
28962 | ||
28963 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail; | |
28964 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28965 | if (!SWIG_IsOK(res1)) { | |
28966 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28967 | } | |
28968 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28969 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
28970 | if (!SWIG_IsOK(ecode2)) { | |
28971 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'"); | |
28972 | } | |
28973 | arg2 = static_cast< bool >(val2); | |
28974 | { | |
28975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28976 | (arg1)->SetEditCanceled(arg2); | |
28977 | wxPyEndAllowThreads(__tstate); | |
28978 | if (PyErr_Occurred()) SWIG_fail; | |
28979 | } | |
28980 | resultobj = SWIG_Py_Void(); | |
28981 | return resultobj; | |
28982 | fail: | |
28983 | return NULL; | |
28984 | } | |
28985 | ||
28986 | ||
28987 | SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28988 | PyObject *obj; | |
28989 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28990 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj)); | |
28991 | return SWIG_Py_Void(); | |
28992 | } | |
28993 | ||
28994 | SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28995 | return SWIG_Python_InitShadowInstance(args); | |
28996 | } | |
28997 | ||
28998 | SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28999 | PyObject *resultobj = 0; | |
29000 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29001 | int arg2 = (int) -1 ; | |
29002 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
29003 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29004 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29005 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29006 | long arg5 = (long) wxLC_ICON ; | |
29007 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
29008 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
29009 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
29010 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29011 | wxPyListCtrl *result = 0 ; | |
29012 | void *argp1 = 0 ; | |
29013 | int res1 = 0 ; | |
29014 | int val2 ; | |
29015 | int ecode2 = 0 ; | |
29016 | wxPoint temp3 ; | |
29017 | wxSize temp4 ; | |
29018 | long val5 ; | |
29019 | int ecode5 = 0 ; | |
29020 | void *argp6 = 0 ; | |
29021 | int res6 = 0 ; | |
29022 | bool temp7 = false ; | |
29023 | PyObject * obj0 = 0 ; | |
29024 | PyObject * obj1 = 0 ; | |
29025 | PyObject * obj2 = 0 ; | |
29026 | PyObject * obj3 = 0 ; | |
29027 | PyObject * obj4 = 0 ; | |
29028 | PyObject * obj5 = 0 ; | |
29029 | PyObject * obj6 = 0 ; | |
29030 | char * kwnames[] = { | |
29031 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29032 | }; | |
29033 | ||
29034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
29035 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
29036 | if (!SWIG_IsOK(res1)) { | |
29037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
29038 | } | |
29039 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
29040 | if (obj1) { | |
29041 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29042 | if (!SWIG_IsOK(ecode2)) { | |
29043 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'"); | |
29044 | } | |
29045 | arg2 = static_cast< int >(val2); | |
29046 | } | |
29047 | if (obj2) { | |
093d3ff1 | 29048 | { |
0085ce49 RD |
29049 | arg3 = &temp3; |
29050 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 29051 | } |
0085ce49 RD |
29052 | } |
29053 | if (obj3) { | |
d14a1e28 | 29054 | { |
0085ce49 RD |
29055 | arg4 = &temp4; |
29056 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 29057 | } |
0085ce49 RD |
29058 | } |
29059 | if (obj4) { | |
29060 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
29061 | if (!SWIG_IsOK(ecode5)) { | |
29062 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'"); | |
29063 | } | |
29064 | arg5 = static_cast< long >(val5); | |
29065 | } | |
29066 | if (obj5) { | |
29067 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
29068 | if (!SWIG_IsOK(res6)) { | |
29069 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 29070 | } |
0085ce49 RD |
29071 | if (!argp6) { |
29072 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
29073 | } | |
29074 | arg6 = reinterpret_cast< wxValidator * >(argp6); | |
29075 | } | |
29076 | if (obj6) { | |
093d3ff1 | 29077 | { |
0085ce49 RD |
29078 | arg7 = wxString_in_helper(obj6); |
29079 | if (arg7 == NULL) SWIG_fail; | |
29080 | temp7 = true; | |
093d3ff1 | 29081 | } |
0085ce49 RD |
29082 | } |
29083 | { | |
29084 | if (!wxPyCheckForApp()) SWIG_fail; | |
29085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29086 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
29087 | wxPyEndAllowThreads(__tstate); | |
29088 | if (PyErr_Occurred()) SWIG_fail; | |
29089 | } | |
29090 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 ); | |
29091 | { | |
29092 | if (temp7) | |
29093 | delete arg7; | |
29094 | } | |
29095 | return resultobj; | |
29096 | fail: | |
29097 | { | |
29098 | if (temp7) | |
29099 | delete arg7; | |
29100 | } | |
29101 | return NULL; | |
d14a1e28 RD |
29102 | } |
29103 | ||
29104 | ||
0085ce49 RD |
29105 | SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29106 | PyObject *resultobj = 0; | |
29107 | wxPyListCtrl *result = 0 ; | |
29108 | ||
29109 | if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail; | |
29110 | { | |
29111 | if (!wxPyCheckForApp()) SWIG_fail; | |
29112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29113 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
29114 | wxPyEndAllowThreads(__tstate); | |
29115 | if (PyErr_Occurred()) SWIG_fail; | |
29116 | } | |
29117 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 ); | |
29118 | return resultobj; | |
29119 | fail: | |
29120 | return NULL; | |
29121 | } | |
29122 | ||
29123 | ||
29124 | SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29125 | PyObject *resultobj = 0; | |
29126 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29127 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29128 | int arg3 = (int) -1 ; | |
29129 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
29130 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
29131 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
29132 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
29133 | long arg6 = (long) wxLC_ICON ; | |
29134 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
29135 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
29136 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
29137 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
29138 | bool result; | |
29139 | void *argp1 = 0 ; | |
29140 | int res1 = 0 ; | |
29141 | void *argp2 = 0 ; | |
29142 | int res2 = 0 ; | |
29143 | int val3 ; | |
29144 | int ecode3 = 0 ; | |
29145 | wxPoint temp4 ; | |
29146 | wxSize temp5 ; | |
29147 | long val6 ; | |
29148 | int ecode6 = 0 ; | |
29149 | void *argp7 = 0 ; | |
29150 | int res7 = 0 ; | |
29151 | bool temp8 = false ; | |
29152 | PyObject * obj0 = 0 ; | |
29153 | PyObject * obj1 = 0 ; | |
29154 | PyObject * obj2 = 0 ; | |
29155 | PyObject * obj3 = 0 ; | |
29156 | PyObject * obj4 = 0 ; | |
29157 | PyObject * obj5 = 0 ; | |
29158 | PyObject * obj6 = 0 ; | |
29159 | PyObject * obj7 = 0 ; | |
29160 | char * kwnames[] = { | |
29161 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29162 | }; | |
29163 | ||
29164 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
29165 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29166 | if (!SWIG_IsOK(res1)) { | |
29167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29168 | } | |
29169 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29170 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
29171 | if (!SWIG_IsOK(res2)) { | |
29172 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
29173 | } | |
29174 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
29175 | if (obj2) { | |
29176 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29177 | if (!SWIG_IsOK(ecode3)) { | |
29178 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
29179 | } | |
29180 | arg3 = static_cast< int >(val3); | |
29181 | } | |
29182 | if (obj3) { | |
093d3ff1 | 29183 | { |
0085ce49 RD |
29184 | arg4 = &temp4; |
29185 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 29186 | } |
0085ce49 RD |
29187 | } |
29188 | if (obj4) { | |
d14a1e28 | 29189 | { |
0085ce49 RD |
29190 | arg5 = &temp5; |
29191 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 29192 | } |
0085ce49 RD |
29193 | } |
29194 | if (obj5) { | |
29195 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
29196 | if (!SWIG_IsOK(ecode6)) { | |
29197 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
29198 | } | |
29199 | arg6 = static_cast< long >(val6); | |
29200 | } | |
29201 | if (obj6) { | |
29202 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
29203 | if (!SWIG_IsOK(res7)) { | |
29204 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 29205 | } |
0085ce49 RD |
29206 | if (!argp7) { |
29207 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 29208 | } |
0085ce49 RD |
29209 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
29210 | } | |
29211 | if (obj7) { | |
d14a1e28 | 29212 | { |
0085ce49 RD |
29213 | arg8 = wxString_in_helper(obj7); |
29214 | if (arg8 == NULL) SWIG_fail; | |
29215 | temp8 = true; | |
d14a1e28 | 29216 | } |
0085ce49 RD |
29217 | } |
29218 | { | |
29219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29220 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
29221 | wxPyEndAllowThreads(__tstate); | |
29222 | if (PyErr_Occurred()) SWIG_fail; | |
29223 | } | |
29224 | { | |
29225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29226 | } | |
29227 | { | |
29228 | if (temp8) | |
29229 | delete arg8; | |
29230 | } | |
29231 | return resultobj; | |
29232 | fail: | |
29233 | { | |
29234 | if (temp8) | |
29235 | delete arg8; | |
29236 | } | |
29237 | return NULL; | |
29238 | } | |
29239 | ||
29240 | ||
29241 | SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29242 | PyObject *resultobj = 0; | |
29243 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29244 | PyObject *arg2 = (PyObject *) 0 ; | |
29245 | PyObject *arg3 = (PyObject *) 0 ; | |
29246 | void *argp1 = 0 ; | |
29247 | int res1 = 0 ; | |
29248 | PyObject * obj0 = 0 ; | |
29249 | PyObject * obj1 = 0 ; | |
29250 | PyObject * obj2 = 0 ; | |
29251 | char * kwnames[] = { | |
29252 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29253 | }; | |
29254 | ||
29255 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29256 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29257 | if (!SWIG_IsOK(res1)) { | |
29258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29259 | } | |
29260 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29261 | arg2 = obj1; | |
29262 | arg3 = obj2; | |
29263 | { | |
29264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29265 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29266 | wxPyEndAllowThreads(__tstate); | |
29267 | if (PyErr_Occurred()) SWIG_fail; | |
29268 | } | |
29269 | resultobj = SWIG_Py_Void(); | |
29270 | return resultobj; | |
29271 | fail: | |
29272 | return NULL; | |
29273 | } | |
29274 | ||
29275 | ||
29276 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29277 | PyObject *resultobj = 0; | |
29278 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29279 | int arg2 ; | |
29280 | wxListItem *result = 0 ; | |
29281 | void *argp1 = 0 ; | |
29282 | int res1 = 0 ; | |
29283 | int val2 ; | |
29284 | int ecode2 = 0 ; | |
29285 | PyObject * obj0 = 0 ; | |
29286 | PyObject * obj1 = 0 ; | |
29287 | char * kwnames[] = { | |
29288 | (char *) "self",(char *) "col", NULL | |
29289 | }; | |
29290 | ||
29291 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
29292 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29293 | if (!SWIG_IsOK(res1)) { | |
29294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29295 | } | |
29296 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29297 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29298 | if (!SWIG_IsOK(ecode2)) { | |
29299 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'"); | |
29300 | } | |
29301 | arg2 = static_cast< int >(val2); | |
29302 | { | |
29303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29304 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
29305 | wxPyEndAllowThreads(__tstate); | |
29306 | if (PyErr_Occurred()) SWIG_fail; | |
29307 | } | |
29308 | { | |
3ecece7e | 29309 | resultobj = wxPyMake_wxObject(result, 0); |
0085ce49 RD |
29310 | } |
29311 | return resultobj; | |
29312 | fail: | |
29313 | return NULL; | |
29314 | } | |
29315 | ||
29316 | ||
29317 | SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29318 | PyObject *resultobj = 0; | |
29319 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29320 | int arg2 ; | |
29321 | wxListItem *arg3 = 0 ; | |
29322 | bool result; | |
29323 | void *argp1 = 0 ; | |
29324 | int res1 = 0 ; | |
29325 | int val2 ; | |
29326 | int ecode2 = 0 ; | |
29327 | void *argp3 = 0 ; | |
29328 | int res3 = 0 ; | |
29329 | PyObject * obj0 = 0 ; | |
29330 | PyObject * obj1 = 0 ; | |
29331 | PyObject * obj2 = 0 ; | |
29332 | char * kwnames[] = { | |
29333 | (char *) "self",(char *) "col",(char *) "item", NULL | |
29334 | }; | |
29335 | ||
29336 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29337 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29338 | if (!SWIG_IsOK(res1)) { | |
29339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29340 | } | |
29341 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29342 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29343 | if (!SWIG_IsOK(ecode2)) { | |
29344 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'"); | |
29345 | } | |
29346 | arg2 = static_cast< int >(val2); | |
29347 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 ); | |
29348 | if (!SWIG_IsOK(res3)) { | |
29349 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
29350 | } | |
29351 | if (!argp3) { | |
29352 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
29353 | } | |
29354 | arg3 = reinterpret_cast< wxListItem * >(argp3); | |
29355 | { | |
29356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29357 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
29358 | wxPyEndAllowThreads(__tstate); | |
29359 | if (PyErr_Occurred()) SWIG_fail; | |
29360 | } | |
29361 | { | |
29362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29363 | } | |
29364 | return resultobj; | |
29365 | fail: | |
29366 | return NULL; | |
29367 | } | |
29368 | ||
29369 | ||
29370 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29371 | PyObject *resultobj = 0; | |
29372 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29373 | int arg2 ; | |
29374 | int result; | |
29375 | void *argp1 = 0 ; | |
29376 | int res1 = 0 ; | |
29377 | int val2 ; | |
29378 | int ecode2 = 0 ; | |
29379 | PyObject * obj0 = 0 ; | |
29380 | PyObject * obj1 = 0 ; | |
29381 | char * kwnames[] = { | |
29382 | (char *) "self",(char *) "col", NULL | |
29383 | }; | |
29384 | ||
29385 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
29386 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29387 | if (!SWIG_IsOK(res1)) { | |
29388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29389 | } | |
29390 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29391 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29392 | if (!SWIG_IsOK(ecode2)) { | |
29393 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'"); | |
29394 | } | |
29395 | arg2 = static_cast< int >(val2); | |
29396 | { | |
29397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29398 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
29399 | wxPyEndAllowThreads(__tstate); | |
29400 | if (PyErr_Occurred()) SWIG_fail; | |
29401 | } | |
29402 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29403 | return resultobj; | |
29404 | fail: | |
29405 | return NULL; | |
29406 | } | |
29407 | ||
29408 | ||
29409 | SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29410 | PyObject *resultobj = 0; | |
29411 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29412 | int arg2 ; | |
29413 | int arg3 ; | |
29414 | bool result; | |
29415 | void *argp1 = 0 ; | |
29416 | int res1 = 0 ; | |
29417 | int val2 ; | |
29418 | int ecode2 = 0 ; | |
29419 | int val3 ; | |
29420 | int ecode3 = 0 ; | |
29421 | PyObject * obj0 = 0 ; | |
29422 | PyObject * obj1 = 0 ; | |
29423 | PyObject * obj2 = 0 ; | |
29424 | char * kwnames[] = { | |
29425 | (char *) "self",(char *) "col",(char *) "width", NULL | |
29426 | }; | |
29427 | ||
29428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29430 | if (!SWIG_IsOK(res1)) { | |
29431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29432 | } | |
29433 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29434 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29435 | if (!SWIG_IsOK(ecode2)) { | |
29436 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'"); | |
29437 | } | |
29438 | arg2 = static_cast< int >(val2); | |
29439 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29440 | if (!SWIG_IsOK(ecode3)) { | |
29441 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'"); | |
29442 | } | |
29443 | arg3 = static_cast< int >(val3); | |
29444 | { | |
29445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29446 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
29447 | wxPyEndAllowThreads(__tstate); | |
29448 | if (PyErr_Occurred()) SWIG_fail; | |
29449 | } | |
29450 | { | |
29451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29452 | } | |
29453 | return resultobj; | |
29454 | fail: | |
29455 | return NULL; | |
d14a1e28 RD |
29456 | } |
29457 | ||
29458 | ||
0085ce49 RD |
29459 | SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29460 | PyObject *resultobj = 0; | |
29461 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29462 | int result; | |
29463 | void *argp1 = 0 ; | |
29464 | int res1 = 0 ; | |
29465 | PyObject *swig_obj[1] ; | |
29466 | ||
29467 | if (!args) SWIG_fail; | |
29468 | swig_obj[0] = args; | |
29469 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29470 | if (!SWIG_IsOK(res1)) { | |
29471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29472 | } | |
29473 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29474 | { | |
29475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29476 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
29477 | wxPyEndAllowThreads(__tstate); | |
29478 | if (PyErr_Occurred()) SWIG_fail; | |
29479 | } | |
29480 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29481 | return resultobj; | |
29482 | fail: | |
29483 | return NULL; | |
d14a1e28 RD |
29484 | } |
29485 | ||
29486 | ||
0085ce49 RD |
29487 | SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29488 | PyObject *resultobj = 0; | |
29489 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29490 | wxRect result; | |
29491 | void *argp1 = 0 ; | |
29492 | int res1 = 0 ; | |
29493 | PyObject *swig_obj[1] ; | |
29494 | ||
29495 | if (!args) SWIG_fail; | |
29496 | swig_obj[0] = args; | |
29497 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29498 | if (!SWIG_IsOK(res1)) { | |
29499 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29500 | } | |
29501 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29502 | { | |
29503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29504 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
29505 | wxPyEndAllowThreads(__tstate); | |
29506 | if (PyErr_Occurred()) SWIG_fail; | |
29507 | } | |
29508 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
29509 | return resultobj; | |
29510 | fail: | |
29511 | return NULL; | |
d14a1e28 RD |
29512 | } |
29513 | ||
29514 | ||
0085ce49 RD |
29515 | SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29516 | PyObject *resultobj = 0; | |
29517 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29518 | wxTextCtrl *result = 0 ; | |
29519 | void *argp1 = 0 ; | |
29520 | int res1 = 0 ; | |
29521 | PyObject *swig_obj[1] ; | |
29522 | ||
29523 | if (!args) SWIG_fail; | |
29524 | swig_obj[0] = args; | |
29525 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29526 | if (!SWIG_IsOK(res1)) { | |
29527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29528 | } | |
29529 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29530 | { | |
29531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29532 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
29533 | wxPyEndAllowThreads(__tstate); | |
29534 | if (PyErr_Occurred()) SWIG_fail; | |
29535 | } | |
29536 | { | |
29537 | resultobj = wxPyMake_wxObject(result, 0); | |
29538 | } | |
29539 | return resultobj; | |
29540 | fail: | |
29541 | return NULL; | |
29542 | } | |
29543 | ||
29544 | ||
29545 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29546 | PyObject *resultobj = 0; | |
29547 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29548 | long arg2 ; | |
29549 | int arg3 = (int) 0 ; | |
29550 | wxListItem *result = 0 ; | |
29551 | void *argp1 = 0 ; | |
29552 | int res1 = 0 ; | |
29553 | long val2 ; | |
29554 | int ecode2 = 0 ; | |
29555 | int val3 ; | |
29556 | int ecode3 = 0 ; | |
29557 | PyObject * obj0 = 0 ; | |
29558 | PyObject * obj1 = 0 ; | |
29559 | PyObject * obj2 = 0 ; | |
29560 | char * kwnames[] = { | |
29561 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
29562 | }; | |
29563 | ||
29564 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29565 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29566 | if (!SWIG_IsOK(res1)) { | |
29567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29568 | } | |
29569 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29570 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29571 | if (!SWIG_IsOK(ecode2)) { | |
29572 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'"); | |
29573 | } | |
29574 | arg2 = static_cast< long >(val2); | |
29575 | if (obj2) { | |
29576 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29577 | if (!SWIG_IsOK(ecode3)) { | |
29578 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'"); | |
29579 | } | |
29580 | arg3 = static_cast< int >(val3); | |
29581 | } | |
29582 | { | |
29583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29584 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
29585 | wxPyEndAllowThreads(__tstate); | |
29586 | if (PyErr_Occurred()) SWIG_fail; | |
29587 | } | |
29588 | { | |
3ecece7e | 29589 | resultobj = wxPyMake_wxObject(result, 0); |
0085ce49 RD |
29590 | } |
29591 | return resultobj; | |
29592 | fail: | |
29593 | return NULL; | |
29594 | } | |
29595 | ||
29596 | ||
29597 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29598 | PyObject *resultobj = 0; | |
29599 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29600 | wxListItem *arg2 = 0 ; | |
29601 | bool result; | |
29602 | void *argp1 = 0 ; | |
29603 | int res1 = 0 ; | |
29604 | void *argp2 = 0 ; | |
29605 | int res2 = 0 ; | |
29606 | PyObject * obj0 = 0 ; | |
29607 | PyObject * obj1 = 0 ; | |
29608 | char * kwnames[] = { | |
29609 | (char *) "self",(char *) "info", NULL | |
29610 | }; | |
29611 | ||
29612 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
29613 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29614 | if (!SWIG_IsOK(res1)) { | |
29615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29616 | } | |
29617 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29618 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 ); | |
29619 | if (!SWIG_IsOK(res2)) { | |
29620 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
29621 | } | |
29622 | if (!argp2) { | |
29623 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
29624 | } | |
29625 | arg2 = reinterpret_cast< wxListItem * >(argp2); | |
29626 | { | |
29627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29628 | result = (bool)(arg1)->SetItem(*arg2); | |
29629 | wxPyEndAllowThreads(__tstate); | |
29630 | if (PyErr_Occurred()) SWIG_fail; | |
29631 | } | |
29632 | { | |
29633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29634 | } | |
29635 | return resultobj; | |
29636 | fail: | |
29637 | return NULL; | |
29638 | } | |
29639 | ||
29640 | ||
29641 | SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29642 | PyObject *resultobj = 0; | |
29643 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29644 | long arg2 ; | |
29645 | int arg3 ; | |
29646 | wxString *arg4 = 0 ; | |
29647 | int arg5 = (int) -1 ; | |
29648 | long result; | |
29649 | void *argp1 = 0 ; | |
29650 | int res1 = 0 ; | |
29651 | long val2 ; | |
29652 | int ecode2 = 0 ; | |
29653 | int val3 ; | |
29654 | int ecode3 = 0 ; | |
29655 | bool temp4 = false ; | |
29656 | int val5 ; | |
29657 | int ecode5 = 0 ; | |
29658 | PyObject * obj0 = 0 ; | |
29659 | PyObject * obj1 = 0 ; | |
29660 | PyObject * obj2 = 0 ; | |
29661 | PyObject * obj3 = 0 ; | |
29662 | PyObject * obj4 = 0 ; | |
29663 | char * kwnames[] = { | |
29664 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
29665 | }; | |
29666 | ||
29667 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29668 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29669 | if (!SWIG_IsOK(res1)) { | |
29670 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29671 | } | |
29672 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29673 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29674 | if (!SWIG_IsOK(ecode2)) { | |
29675 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'"); | |
29676 | } | |
29677 | arg2 = static_cast< long >(val2); | |
29678 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29679 | if (!SWIG_IsOK(ecode3)) { | |
29680 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'"); | |
29681 | } | |
29682 | arg3 = static_cast< int >(val3); | |
29683 | { | |
29684 | arg4 = wxString_in_helper(obj3); | |
29685 | if (arg4 == NULL) SWIG_fail; | |
29686 | temp4 = true; | |
29687 | } | |
29688 | if (obj4) { | |
29689 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
29690 | if (!SWIG_IsOK(ecode5)) { | |
29691 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'"); | |
29692 | } | |
29693 | arg5 = static_cast< int >(val5); | |
29694 | } | |
29695 | { | |
29696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29697 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
29698 | wxPyEndAllowThreads(__tstate); | |
29699 | if (PyErr_Occurred()) SWIG_fail; | |
29700 | } | |
29701 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
29702 | { | |
29703 | if (temp4) | |
29704 | delete arg4; | |
29705 | } | |
29706 | return resultobj; | |
29707 | fail: | |
29708 | { | |
29709 | if (temp4) | |
29710 | delete arg4; | |
29711 | } | |
29712 | return NULL; | |
29713 | } | |
29714 | ||
29715 | ||
29716 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29717 | PyObject *resultobj = 0; | |
29718 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29719 | long arg2 ; | |
29720 | long arg3 ; | |
29721 | int result; | |
29722 | void *argp1 = 0 ; | |
29723 | int res1 = 0 ; | |
29724 | long val2 ; | |
29725 | int ecode2 = 0 ; | |
29726 | long val3 ; | |
29727 | int ecode3 = 0 ; | |
29728 | PyObject * obj0 = 0 ; | |
29729 | PyObject * obj1 = 0 ; | |
29730 | PyObject * obj2 = 0 ; | |
29731 | char * kwnames[] = { | |
29732 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
29733 | }; | |
29734 | ||
29735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29737 | if (!SWIG_IsOK(res1)) { | |
29738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29739 | } | |
29740 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29741 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29742 | if (!SWIG_IsOK(ecode2)) { | |
29743 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'"); | |
29744 | } | |
29745 | arg2 = static_cast< long >(val2); | |
29746 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29747 | if (!SWIG_IsOK(ecode3)) { | |
29748 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'"); | |
29749 | } | |
29750 | arg3 = static_cast< long >(val3); | |
29751 | { | |
29752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29753 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
29754 | wxPyEndAllowThreads(__tstate); | |
29755 | if (PyErr_Occurred()) SWIG_fail; | |
29756 | } | |
29757 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29758 | return resultobj; | |
29759 | fail: | |
29760 | return NULL; | |
29761 | } | |
29762 | ||
29763 | ||
29764 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29765 | PyObject *resultobj = 0; | |
29766 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29767 | long arg2 ; | |
29768 | long arg3 ; | |
29769 | long arg4 ; | |
29770 | bool result; | |
29771 | void *argp1 = 0 ; | |
29772 | int res1 = 0 ; | |
29773 | long val2 ; | |
29774 | int ecode2 = 0 ; | |
29775 | long val3 ; | |
29776 | int ecode3 = 0 ; | |
29777 | long val4 ; | |
29778 | int ecode4 = 0 ; | |
29779 | PyObject * obj0 = 0 ; | |
29780 | PyObject * obj1 = 0 ; | |
29781 | PyObject * obj2 = 0 ; | |
29782 | PyObject * obj3 = 0 ; | |
29783 | char * kwnames[] = { | |
29784 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
29785 | }; | |
29786 | ||
29787 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29788 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29789 | if (!SWIG_IsOK(res1)) { | |
29790 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29791 | } | |
29792 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29793 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29794 | if (!SWIG_IsOK(ecode2)) { | |
29795 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'"); | |
29796 | } | |
29797 | arg2 = static_cast< long >(val2); | |
29798 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29799 | if (!SWIG_IsOK(ecode3)) { | |
29800 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'"); | |
29801 | } | |
29802 | arg3 = static_cast< long >(val3); | |
29803 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
29804 | if (!SWIG_IsOK(ecode4)) { | |
29805 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'"); | |
29806 | } | |
29807 | arg4 = static_cast< long >(val4); | |
29808 | { | |
29809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29810 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
29811 | wxPyEndAllowThreads(__tstate); | |
29812 | if (PyErr_Occurred()) SWIG_fail; | |
29813 | } | |
29814 | { | |
29815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29816 | } | |
29817 | return resultobj; | |
29818 | fail: | |
29819 | return NULL; | |
29820 | } | |
29821 | ||
29822 | ||
29823 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29824 | PyObject *resultobj = 0; | |
29825 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29826 | long arg2 ; | |
29827 | int arg3 ; | |
29828 | int arg4 = (int) -1 ; | |
29829 | bool result; | |
29830 | void *argp1 = 0 ; | |
29831 | int res1 = 0 ; | |
29832 | long val2 ; | |
29833 | int ecode2 = 0 ; | |
29834 | int val3 ; | |
29835 | int ecode3 = 0 ; | |
29836 | int val4 ; | |
29837 | int ecode4 = 0 ; | |
29838 | PyObject * obj0 = 0 ; | |
29839 | PyObject * obj1 = 0 ; | |
29840 | PyObject * obj2 = 0 ; | |
29841 | PyObject * obj3 = 0 ; | |
29842 | char * kwnames[] = { | |
29843 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
29844 | }; | |
29845 | ||
29846 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29847 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29848 | if (!SWIG_IsOK(res1)) { | |
29849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29850 | } | |
29851 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29852 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29853 | if (!SWIG_IsOK(ecode2)) { | |
29854 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'"); | |
29855 | } | |
29856 | arg2 = static_cast< long >(val2); | |
29857 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29858 | if (!SWIG_IsOK(ecode3)) { | |
29859 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'"); | |
29860 | } | |
29861 | arg3 = static_cast< int >(val3); | |
29862 | if (obj3) { | |
29863 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29864 | if (!SWIG_IsOK(ecode4)) { | |
29865 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'"); | |
29866 | } | |
29867 | arg4 = static_cast< int >(val4); | |
29868 | } | |
29869 | { | |
29870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29871 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
29872 | wxPyEndAllowThreads(__tstate); | |
29873 | if (PyErr_Occurred()) SWIG_fail; | |
29874 | } | |
29875 | { | |
29876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29877 | } | |
29878 | return resultobj; | |
29879 | fail: | |
29880 | return NULL; | |
29881 | } | |
29882 | ||
29883 | ||
29884 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29885 | PyObject *resultobj = 0; | |
29886 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29887 | long arg2 ; | |
29888 | long arg3 ; | |
29889 | int arg4 ; | |
29890 | bool result; | |
29891 | void *argp1 = 0 ; | |
29892 | int res1 = 0 ; | |
29893 | long val2 ; | |
29894 | int ecode2 = 0 ; | |
29895 | long val3 ; | |
29896 | int ecode3 = 0 ; | |
29897 | int val4 ; | |
29898 | int ecode4 = 0 ; | |
29899 | PyObject * obj0 = 0 ; | |
29900 | PyObject * obj1 = 0 ; | |
29901 | PyObject * obj2 = 0 ; | |
29902 | PyObject * obj3 = 0 ; | |
29903 | char * kwnames[] = { | |
29904 | (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL | |
29905 | }; | |
29906 | ||
29907 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29908 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29909 | if (!SWIG_IsOK(res1)) { | |
29910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29911 | } | |
29912 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29913 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29914 | if (!SWIG_IsOK(ecode2)) { | |
29915 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'"); | |
29916 | } | |
29917 | arg2 = static_cast< long >(val2); | |
29918 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29919 | if (!SWIG_IsOK(ecode3)) { | |
29920 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'"); | |
29921 | } | |
29922 | arg3 = static_cast< long >(val3); | |
29923 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29924 | if (!SWIG_IsOK(ecode4)) { | |
29925 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'"); | |
29926 | } | |
29927 | arg4 = static_cast< int >(val4); | |
29928 | { | |
29929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29930 | result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4); | |
29931 | wxPyEndAllowThreads(__tstate); | |
29932 | if (PyErr_Occurred()) SWIG_fail; | |
29933 | } | |
29934 | { | |
29935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29936 | } | |
29937 | return resultobj; | |
29938 | fail: | |
29939 | return NULL; | |
29940 | } | |
29941 | ||
29942 | ||
29943 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29944 | PyObject *resultobj = 0; | |
29945 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29946 | long arg2 ; | |
29947 | wxString result; | |
29948 | void *argp1 = 0 ; | |
29949 | int res1 = 0 ; | |
29950 | long val2 ; | |
29951 | int ecode2 = 0 ; | |
29952 | PyObject * obj0 = 0 ; | |
29953 | PyObject * obj1 = 0 ; | |
29954 | char * kwnames[] = { | |
29955 | (char *) "self",(char *) "item", NULL | |
29956 | }; | |
29957 | ||
29958 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail; | |
29959 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29960 | if (!SWIG_IsOK(res1)) { | |
29961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29962 | } | |
29963 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29964 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29965 | if (!SWIG_IsOK(ecode2)) { | |
29966 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'"); | |
29967 | } | |
29968 | arg2 = static_cast< long >(val2); | |
29969 | { | |
29970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29971 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
29972 | wxPyEndAllowThreads(__tstate); | |
29973 | if (PyErr_Occurred()) SWIG_fail; | |
29974 | } | |
29975 | { | |
29976 | #if wxUSE_UNICODE | |
29977 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29978 | #else | |
29979 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29980 | #endif | |
29981 | } | |
29982 | return resultobj; | |
29983 | fail: | |
29984 | return NULL; | |
29985 | } | |
29986 | ||
29987 | ||
29988 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29989 | PyObject *resultobj = 0; | |
29990 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29991 | long arg2 ; | |
29992 | wxString *arg3 = 0 ; | |
29993 | void *argp1 = 0 ; | |
29994 | int res1 = 0 ; | |
29995 | long val2 ; | |
29996 | int ecode2 = 0 ; | |
29997 | bool temp3 = false ; | |
29998 | PyObject * obj0 = 0 ; | |
29999 | PyObject * obj1 = 0 ; | |
30000 | PyObject * obj2 = 0 ; | |
30001 | char * kwnames[] = { | |
30002 | (char *) "self",(char *) "item",(char *) "str", NULL | |
30003 | }; | |
30004 | ||
30005 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30006 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30007 | if (!SWIG_IsOK(res1)) { | |
30008 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30009 | } | |
30010 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30011 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30012 | if (!SWIG_IsOK(ecode2)) { | |
30013 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'"); | |
30014 | } | |
30015 | arg2 = static_cast< long >(val2); | |
30016 | { | |
30017 | arg3 = wxString_in_helper(obj2); | |
30018 | if (arg3 == NULL) SWIG_fail; | |
30019 | temp3 = true; | |
30020 | } | |
30021 | { | |
30022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30023 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
30024 | wxPyEndAllowThreads(__tstate); | |
30025 | if (PyErr_Occurred()) SWIG_fail; | |
30026 | } | |
30027 | resultobj = SWIG_Py_Void(); | |
30028 | { | |
30029 | if (temp3) | |
30030 | delete arg3; | |
30031 | } | |
30032 | return resultobj; | |
30033 | fail: | |
30034 | { | |
30035 | if (temp3) | |
30036 | delete arg3; | |
30037 | } | |
30038 | return NULL; | |
30039 | } | |
30040 | ||
30041 | ||
30042 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30043 | PyObject *resultobj = 0; | |
30044 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30045 | long arg2 ; | |
30046 | long result; | |
30047 | void *argp1 = 0 ; | |
30048 | int res1 = 0 ; | |
30049 | long val2 ; | |
30050 | int ecode2 = 0 ; | |
30051 | PyObject * obj0 = 0 ; | |
30052 | PyObject * obj1 = 0 ; | |
30053 | char * kwnames[] = { | |
30054 | (char *) "self",(char *) "item", NULL | |
30055 | }; | |
30056 | ||
30057 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail; | |
30058 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30059 | if (!SWIG_IsOK(res1)) { | |
30060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30061 | } | |
30062 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30063 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30064 | if (!SWIG_IsOK(ecode2)) { | |
30065 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'"); | |
30066 | } | |
30067 | arg2 = static_cast< long >(val2); | |
30068 | { | |
30069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30070 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
30071 | wxPyEndAllowThreads(__tstate); | |
30072 | if (PyErr_Occurred()) SWIG_fail; | |
30073 | } | |
30074 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30075 | return resultobj; | |
30076 | fail: | |
30077 | return NULL; | |
30078 | } | |
30079 | ||
30080 | ||
30081 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30082 | PyObject *resultobj = 0; | |
30083 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30084 | long arg2 ; | |
30085 | long arg3 ; | |
30086 | bool result; | |
30087 | void *argp1 = 0 ; | |
30088 | int res1 = 0 ; | |
30089 | long val2 ; | |
30090 | int ecode2 = 0 ; | |
30091 | long val3 ; | |
30092 | int ecode3 = 0 ; | |
30093 | PyObject * obj0 = 0 ; | |
30094 | PyObject * obj1 = 0 ; | |
30095 | PyObject * obj2 = 0 ; | |
30096 | char * kwnames[] = { | |
30097 | (char *) "self",(char *) "item",(char *) "data", NULL | |
30098 | }; | |
30099 | ||
30100 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30101 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30102 | if (!SWIG_IsOK(res1)) { | |
30103 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30104 | } | |
30105 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30106 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30107 | if (!SWIG_IsOK(ecode2)) { | |
30108 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'"); | |
30109 | } | |
30110 | arg2 = static_cast< long >(val2); | |
30111 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
30112 | if (!SWIG_IsOK(ecode3)) { | |
30113 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'"); | |
30114 | } | |
30115 | arg3 = static_cast< long >(val3); | |
30116 | { | |
30117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30118 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
30119 | wxPyEndAllowThreads(__tstate); | |
30120 | if (PyErr_Occurred()) SWIG_fail; | |
30121 | } | |
30122 | { | |
30123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30124 | } | |
30125 | return resultobj; | |
30126 | fail: | |
30127 | return NULL; | |
30128 | } | |
30129 | ||
30130 | ||
30131 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30132 | PyObject *resultobj = 0; | |
30133 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30134 | long arg2 ; | |
30135 | wxPoint result; | |
30136 | void *argp1 = 0 ; | |
30137 | int res1 = 0 ; | |
30138 | long val2 ; | |
30139 | int ecode2 = 0 ; | |
30140 | PyObject * obj0 = 0 ; | |
30141 | PyObject * obj1 = 0 ; | |
30142 | char * kwnames[] = { | |
30143 | (char *) "self",(char *) "item", NULL | |
30144 | }; | |
30145 | ||
30146 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
30147 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30148 | if (!SWIG_IsOK(res1)) { | |
30149 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30150 | } | |
30151 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30152 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30153 | if (!SWIG_IsOK(ecode2)) { | |
30154 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'"); | |
30155 | } | |
30156 | arg2 = static_cast< long >(val2); | |
30157 | { | |
30158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30159 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
30160 | wxPyEndAllowThreads(__tstate); | |
30161 | if (PyErr_Occurred()) SWIG_fail; | |
30162 | } | |
30163 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
30164 | return resultobj; | |
30165 | fail: | |
30166 | return NULL; | |
30167 | } | |
30168 | ||
30169 | ||
30170 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30171 | PyObject *resultobj = 0; | |
30172 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30173 | long arg2 ; | |
30174 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
30175 | wxRect result; | |
30176 | void *argp1 = 0 ; | |
30177 | int res1 = 0 ; | |
30178 | long val2 ; | |
30179 | int ecode2 = 0 ; | |
30180 | int val3 ; | |
30181 | int ecode3 = 0 ; | |
30182 | PyObject * obj0 = 0 ; | |
30183 | PyObject * obj1 = 0 ; | |
30184 | PyObject * obj2 = 0 ; | |
30185 | char * kwnames[] = { | |
30186 | (char *) "self",(char *) "item",(char *) "code", NULL | |
30187 | }; | |
30188 | ||
30189 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30190 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30191 | if (!SWIG_IsOK(res1)) { | |
30192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30193 | } | |
30194 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30195 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30196 | if (!SWIG_IsOK(ecode2)) { | |
30197 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'"); | |
30198 | } | |
30199 | arg2 = static_cast< long >(val2); | |
30200 | if (obj2) { | |
30201 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30202 | if (!SWIG_IsOK(ecode3)) { | |
30203 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'"); | |
30204 | } | |
30205 | arg3 = static_cast< int >(val3); | |
30206 | } | |
30207 | { | |
30208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30209 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
30210 | wxPyEndAllowThreads(__tstate); | |
30211 | if (PyErr_Occurred()) SWIG_fail; | |
30212 | } | |
30213 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
30214 | return resultobj; | |
30215 | fail: | |
30216 | return NULL; | |
30217 | } | |
30218 | ||
30219 | ||
30220 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30221 | PyObject *resultobj = 0; | |
30222 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30223 | long arg2 ; | |
30224 | wxPoint *arg3 = 0 ; | |
30225 | bool result; | |
30226 | void *argp1 = 0 ; | |
30227 | int res1 = 0 ; | |
30228 | long val2 ; | |
30229 | int ecode2 = 0 ; | |
30230 | wxPoint temp3 ; | |
30231 | PyObject * obj0 = 0 ; | |
30232 | PyObject * obj1 = 0 ; | |
30233 | PyObject * obj2 = 0 ; | |
30234 | char * kwnames[] = { | |
30235 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
30236 | }; | |
30237 | ||
30238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30240 | if (!SWIG_IsOK(res1)) { | |
30241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30242 | } | |
30243 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30244 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30245 | if (!SWIG_IsOK(ecode2)) { | |
30246 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'"); | |
30247 | } | |
30248 | arg2 = static_cast< long >(val2); | |
30249 | { | |
30250 | arg3 = &temp3; | |
30251 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30252 | } | |
30253 | { | |
30254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30255 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
30256 | wxPyEndAllowThreads(__tstate); | |
30257 | if (PyErr_Occurred()) SWIG_fail; | |
30258 | } | |
30259 | { | |
30260 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30261 | } | |
30262 | return resultobj; | |
30263 | fail: | |
30264 | return NULL; | |
d14a1e28 RD |
30265 | } |
30266 | ||
30267 | ||
0085ce49 RD |
30268 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30269 | PyObject *resultobj = 0; | |
30270 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30271 | int result; | |
30272 | void *argp1 = 0 ; | |
30273 | int res1 = 0 ; | |
30274 | PyObject *swig_obj[1] ; | |
30275 | ||
30276 | if (!args) SWIG_fail; | |
30277 | swig_obj[0] = args; | |
30278 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30279 | if (!SWIG_IsOK(res1)) { | |
30280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30281 | } | |
30282 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30283 | { | |
30284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30285 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
30286 | wxPyEndAllowThreads(__tstate); | |
30287 | if (PyErr_Occurred()) SWIG_fail; | |
30288 | } | |
30289 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30290 | return resultobj; | |
30291 | fail: | |
30292 | return NULL; | |
d14a1e28 RD |
30293 | } |
30294 | ||
30295 | ||
0085ce49 RD |
30296 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30297 | PyObject *resultobj = 0; | |
30298 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30299 | int result; | |
30300 | void *argp1 = 0 ; | |
30301 | int res1 = 0 ; | |
30302 | PyObject *swig_obj[1] ; | |
30303 | ||
30304 | if (!args) SWIG_fail; | |
30305 | swig_obj[0] = args; | |
30306 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30307 | if (!SWIG_IsOK(res1)) { | |
30308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30309 | } | |
30310 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30311 | { | |
30312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30313 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
30314 | wxPyEndAllowThreads(__tstate); | |
30315 | if (PyErr_Occurred()) SWIG_fail; | |
30316 | } | |
30317 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30318 | return resultobj; | |
30319 | fail: | |
30320 | return NULL; | |
d14a1e28 RD |
30321 | } |
30322 | ||
30323 | ||
0085ce49 RD |
30324 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30325 | PyObject *resultobj = 0; | |
30326 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30327 | wxSize 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_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30337 | } | |
30338 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30339 | { | |
30340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30341 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
30342 | wxPyEndAllowThreads(__tstate); | |
30343 | if (PyErr_Occurred()) SWIG_fail; | |
30344 | } | |
30345 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
30346 | return resultobj; | |
30347 | fail: | |
30348 | return NULL; | |
30349 | } | |
30350 | ||
30351 | ||
30352 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30353 | PyObject *resultobj = 0; | |
30354 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30355 | int arg2 ; | |
30356 | bool arg3 = (bool) false ; | |
30357 | void *argp1 = 0 ; | |
30358 | int res1 = 0 ; | |
30359 | int val2 ; | |
30360 | int ecode2 = 0 ; | |
30361 | bool val3 ; | |
30362 | int ecode3 = 0 ; | |
30363 | PyObject * obj0 = 0 ; | |
30364 | PyObject * obj1 = 0 ; | |
30365 | PyObject * obj2 = 0 ; | |
30366 | char * kwnames[] = { | |
30367 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
30368 | }; | |
30369 | ||
30370 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30371 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30372 | if (!SWIG_IsOK(res1)) { | |
30373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30374 | } | |
30375 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30376 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30377 | if (!SWIG_IsOK(ecode2)) { | |
30378 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'"); | |
30379 | } | |
30380 | arg2 = static_cast< int >(val2); | |
30381 | if (obj2) { | |
30382 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
30383 | if (!SWIG_IsOK(ecode3)) { | |
30384 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'"); | |
30385 | } | |
30386 | arg3 = static_cast< bool >(val3); | |
30387 | } | |
30388 | { | |
30389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30390 | (arg1)->SetItemSpacing(arg2,arg3); | |
30391 | wxPyEndAllowThreads(__tstate); | |
30392 | if (PyErr_Occurred()) SWIG_fail; | |
30393 | } | |
30394 | resultobj = SWIG_Py_Void(); | |
30395 | return resultobj; | |
30396 | fail: | |
30397 | return NULL; | |
22bfe96c RD |
30398 | } |
30399 | ||
30400 | ||
0085ce49 RD |
30401 | SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30402 | PyObject *resultobj = 0; | |
30403 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30404 | int result; | |
30405 | void *argp1 = 0 ; | |
30406 | int res1 = 0 ; | |
30407 | PyObject *swig_obj[1] ; | |
30408 | ||
30409 | if (!args) SWIG_fail; | |
30410 | swig_obj[0] = args; | |
30411 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30412 | if (!SWIG_IsOK(res1)) { | |
30413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30414 | } | |
30415 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30416 | { | |
30417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30418 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
30419 | wxPyEndAllowThreads(__tstate); | |
30420 | if (PyErr_Occurred()) SWIG_fail; | |
30421 | } | |
30422 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30423 | return resultobj; | |
30424 | fail: | |
30425 | return NULL; | |
d14a1e28 RD |
30426 | } |
30427 | ||
30428 | ||
0085ce49 RD |
30429 | SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30430 | PyObject *resultobj = 0; | |
30431 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30432 | wxColour result; | |
30433 | void *argp1 = 0 ; | |
30434 | int res1 = 0 ; | |
30435 | PyObject *swig_obj[1] ; | |
30436 | ||
30437 | if (!args) SWIG_fail; | |
30438 | swig_obj[0] = args; | |
30439 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30440 | if (!SWIG_IsOK(res1)) { | |
30441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30442 | } | |
30443 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30444 | { | |
30445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30446 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
30447 | wxPyEndAllowThreads(__tstate); | |
30448 | if (PyErr_Occurred()) SWIG_fail; | |
30449 | } | |
30450 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
30451 | return resultobj; | |
30452 | fail: | |
30453 | return NULL; | |
30454 | } | |
30455 | ||
30456 | ||
30457 | SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30458 | PyObject *resultobj = 0; | |
30459 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30460 | wxColour *arg2 = 0 ; | |
30461 | void *argp1 = 0 ; | |
30462 | int res1 = 0 ; | |
30463 | wxColour temp2 ; | |
30464 | PyObject * obj0 = 0 ; | |
30465 | PyObject * obj1 = 0 ; | |
30466 | char * kwnames[] = { | |
30467 | (char *) "self",(char *) "col", NULL | |
30468 | }; | |
30469 | ||
30470 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
30471 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30472 | if (!SWIG_IsOK(res1)) { | |
30473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30474 | } | |
30475 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30476 | { | |
30477 | arg2 = &temp2; | |
30478 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
30479 | } | |
30480 | { | |
30481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30482 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
30483 | wxPyEndAllowThreads(__tstate); | |
30484 | if (PyErr_Occurred()) SWIG_fail; | |
30485 | } | |
30486 | resultobj = SWIG_Py_Void(); | |
30487 | return resultobj; | |
30488 | fail: | |
30489 | return NULL; | |
d14a1e28 RD |
30490 | } |
30491 | ||
30492 | ||
0085ce49 RD |
30493 | SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30494 | PyObject *resultobj = 0; | |
30495 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30496 | long result; | |
30497 | void *argp1 = 0 ; | |
30498 | int res1 = 0 ; | |
30499 | PyObject *swig_obj[1] ; | |
30500 | ||
30501 | if (!args) SWIG_fail; | |
30502 | swig_obj[0] = args; | |
30503 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30504 | if (!SWIG_IsOK(res1)) { | |
30505 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30506 | } | |
30507 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30508 | { | |
30509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30510 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
30511 | wxPyEndAllowThreads(__tstate); | |
30512 | if (PyErr_Occurred()) SWIG_fail; | |
30513 | } | |
30514 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30515 | return resultobj; | |
30516 | fail: | |
30517 | return NULL; | |
30518 | } | |
30519 | ||
30520 | ||
30521 | SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30522 | PyObject *resultobj = 0; | |
30523 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30524 | long arg2 ; | |
30525 | bool arg3 = (bool) true ; | |
30526 | void *argp1 = 0 ; | |
30527 | int res1 = 0 ; | |
30528 | long val2 ; | |
30529 | int ecode2 = 0 ; | |
30530 | bool val3 ; | |
30531 | int ecode3 = 0 ; | |
30532 | PyObject * obj0 = 0 ; | |
30533 | PyObject * obj1 = 0 ; | |
30534 | PyObject * obj2 = 0 ; | |
30535 | char * kwnames[] = { | |
30536 | (char *) "self",(char *) "style",(char *) "add", NULL | |
30537 | }; | |
30538 | ||
30539 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30540 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30541 | if (!SWIG_IsOK(res1)) { | |
30542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30543 | } | |
30544 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30545 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30546 | if (!SWIG_IsOK(ecode2)) { | |
30547 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'"); | |
30548 | } | |
30549 | arg2 = static_cast< long >(val2); | |
30550 | if (obj2) { | |
30551 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
30552 | if (!SWIG_IsOK(ecode3)) { | |
30553 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'"); | |
30554 | } | |
30555 | arg3 = static_cast< bool >(val3); | |
30556 | } | |
30557 | { | |
30558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30559 | (arg1)->SetSingleStyle(arg2,arg3); | |
30560 | wxPyEndAllowThreads(__tstate); | |
30561 | if (PyErr_Occurred()) SWIG_fail; | |
30562 | } | |
30563 | resultobj = SWIG_Py_Void(); | |
30564 | return resultobj; | |
30565 | fail: | |
30566 | return NULL; | |
30567 | } | |
30568 | ||
30569 | ||
30570 | SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30571 | PyObject *resultobj = 0; | |
30572 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30573 | long arg2 ; | |
30574 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
30575 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
30576 | long result; | |
30577 | void *argp1 = 0 ; | |
30578 | int res1 = 0 ; | |
30579 | long val2 ; | |
30580 | int ecode2 = 0 ; | |
30581 | int val3 ; | |
30582 | int ecode3 = 0 ; | |
30583 | int val4 ; | |
30584 | int ecode4 = 0 ; | |
30585 | PyObject * obj0 = 0 ; | |
30586 | PyObject * obj1 = 0 ; | |
30587 | PyObject * obj2 = 0 ; | |
30588 | PyObject * obj3 = 0 ; | |
30589 | char * kwnames[] = { | |
30590 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
30591 | }; | |
30592 | ||
30593 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30594 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30595 | if (!SWIG_IsOK(res1)) { | |
30596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30597 | } | |
30598 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30599 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30600 | if (!SWIG_IsOK(ecode2)) { | |
30601 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'"); | |
30602 | } | |
30603 | arg2 = static_cast< long >(val2); | |
30604 | if (obj2) { | |
30605 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30606 | if (!SWIG_IsOK(ecode3)) { | |
30607 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'"); | |
30608 | } | |
30609 | arg3 = static_cast< int >(val3); | |
30610 | } | |
30611 | if (obj3) { | |
30612 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30613 | if (!SWIG_IsOK(ecode4)) { | |
30614 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'"); | |
30615 | } | |
30616 | arg4 = static_cast< int >(val4); | |
30617 | } | |
30618 | { | |
30619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30620 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
30621 | wxPyEndAllowThreads(__tstate); | |
30622 | if (PyErr_Occurred()) SWIG_fail; | |
30623 | } | |
30624 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30625 | return resultobj; | |
30626 | fail: | |
30627 | return NULL; | |
30628 | } | |
30629 | ||
30630 | ||
30631 | SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30632 | PyObject *resultobj = 0; | |
30633 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30634 | int arg2 ; | |
30635 | wxImageList *result = 0 ; | |
30636 | void *argp1 = 0 ; | |
30637 | int res1 = 0 ; | |
30638 | int val2 ; | |
30639 | int ecode2 = 0 ; | |
30640 | PyObject * obj0 = 0 ; | |
30641 | PyObject * obj1 = 0 ; | |
30642 | char * kwnames[] = { | |
30643 | (char *) "self",(char *) "which", NULL | |
30644 | }; | |
30645 | ||
30646 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
30647 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30648 | if (!SWIG_IsOK(res1)) { | |
30649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30650 | } | |
30651 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30652 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30653 | if (!SWIG_IsOK(ecode2)) { | |
30654 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'"); | |
30655 | } | |
30656 | arg2 = static_cast< int >(val2); | |
30657 | { | |
30658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30659 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
30660 | wxPyEndAllowThreads(__tstate); | |
30661 | if (PyErr_Occurred()) SWIG_fail; | |
30662 | } | |
3ecece7e RD |
30663 | { |
30664 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
30665 | } | |
0085ce49 RD |
30666 | return resultobj; |
30667 | fail: | |
30668 | return NULL; | |
30669 | } | |
30670 | ||
30671 | ||
30672 | SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30673 | PyObject *resultobj = 0; | |
30674 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30675 | wxImageList *arg2 = (wxImageList *) 0 ; | |
30676 | int arg3 ; | |
30677 | void *argp1 = 0 ; | |
30678 | int res1 = 0 ; | |
30679 | void *argp2 = 0 ; | |
30680 | int res2 = 0 ; | |
30681 | int val3 ; | |
30682 | int ecode3 = 0 ; | |
30683 | PyObject * obj0 = 0 ; | |
30684 | PyObject * obj1 = 0 ; | |
30685 | PyObject * obj2 = 0 ; | |
30686 | char * kwnames[] = { | |
30687 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
30688 | }; | |
30689 | ||
30690 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30691 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30692 | if (!SWIG_IsOK(res1)) { | |
30693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30694 | } | |
30695 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30696 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30697 | if (!SWIG_IsOK(res2)) { | |
30698 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
30699 | } | |
30700 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
30701 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30702 | if (!SWIG_IsOK(ecode3)) { | |
30703 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'"); | |
30704 | } | |
30705 | arg3 = static_cast< int >(val3); | |
30706 | { | |
30707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30708 | (arg1)->SetImageList(arg2,arg3); | |
30709 | wxPyEndAllowThreads(__tstate); | |
30710 | if (PyErr_Occurred()) SWIG_fail; | |
30711 | } | |
30712 | resultobj = SWIG_Py_Void(); | |
30713 | return resultobj; | |
30714 | fail: | |
30715 | return NULL; | |
30716 | } | |
30717 | ||
30718 | ||
30719 | SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30720 | PyObject *resultobj = 0; | |
30721 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30722 | wxImageList *arg2 = (wxImageList *) 0 ; | |
30723 | int arg3 ; | |
30724 | void *argp1 = 0 ; | |
30725 | int res1 = 0 ; | |
30726 | int res2 = 0 ; | |
30727 | int val3 ; | |
30728 | int ecode3 = 0 ; | |
30729 | PyObject * obj0 = 0 ; | |
30730 | PyObject * obj1 = 0 ; | |
30731 | PyObject * obj2 = 0 ; | |
30732 | char * kwnames[] = { | |
30733 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
30734 | }; | |
30735 | ||
30736 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30737 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30738 | if (!SWIG_IsOK(res1)) { | |
30739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30740 | } | |
30741 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30742 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
30743 | if (!SWIG_IsOK(res2)) { | |
30744 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
30745 | } | |
30746 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30747 | if (!SWIG_IsOK(ecode3)) { | |
30748 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'"); | |
30749 | } | |
30750 | arg3 = static_cast< int >(val3); | |
30751 | { | |
30752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30753 | (arg1)->AssignImageList(arg2,arg3); | |
30754 | wxPyEndAllowThreads(__tstate); | |
30755 | if (PyErr_Occurred()) SWIG_fail; | |
30756 | } | |
30757 | resultobj = SWIG_Py_Void(); | |
30758 | return resultobj; | |
30759 | fail: | |
30760 | return NULL; | |
d14a1e28 RD |
30761 | } |
30762 | ||
30763 | ||
0085ce49 RD |
30764 | SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30765 | PyObject *resultobj = 0; | |
30766 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30767 | bool result; | |
30768 | void *argp1 = 0 ; | |
30769 | int res1 = 0 ; | |
30770 | PyObject *swig_obj[1] ; | |
30771 | ||
30772 | if (!args) SWIG_fail; | |
30773 | swig_obj[0] = args; | |
30774 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30775 | if (!SWIG_IsOK(res1)) { | |
30776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30777 | } | |
30778 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30779 | { | |
30780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30781 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
30782 | wxPyEndAllowThreads(__tstate); | |
30783 | if (PyErr_Occurred()) SWIG_fail; | |
30784 | } | |
30785 | { | |
30786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30787 | } | |
30788 | return resultobj; | |
30789 | fail: | |
30790 | return NULL; | |
d14a1e28 RD |
30791 | } |
30792 | ||
30793 | ||
0085ce49 RD |
30794 | SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30795 | PyObject *resultobj = 0; | |
30796 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30797 | bool result; | |
30798 | void *argp1 = 0 ; | |
30799 | int res1 = 0 ; | |
30800 | PyObject *swig_obj[1] ; | |
30801 | ||
30802 | if (!args) SWIG_fail; | |
30803 | swig_obj[0] = args; | |
30804 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30805 | if (!SWIG_IsOK(res1)) { | |
30806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30807 | } | |
30808 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30809 | { | |
30810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30811 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
30812 | wxPyEndAllowThreads(__tstate); | |
30813 | if (PyErr_Occurred()) SWIG_fail; | |
30814 | } | |
30815 | { | |
30816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30817 | } | |
30818 | return resultobj; | |
30819 | fail: | |
30820 | return NULL; | |
30821 | } | |
30822 | ||
30823 | ||
30824 | SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30825 | PyObject *resultobj = 0; | |
30826 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30827 | long arg2 ; | |
30828 | void *argp1 = 0 ; | |
30829 | int res1 = 0 ; | |
30830 | long val2 ; | |
30831 | int ecode2 = 0 ; | |
30832 | PyObject * obj0 = 0 ; | |
30833 | PyObject * obj1 = 0 ; | |
30834 | char * kwnames[] = { | |
30835 | (char *) "self",(char *) "item", NULL | |
30836 | }; | |
30837 | ||
30838 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
30839 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30840 | if (!SWIG_IsOK(res1)) { | |
30841 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30842 | } | |
30843 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30844 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30845 | if (!SWIG_IsOK(ecode2)) { | |
30846 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'"); | |
30847 | } | |
30848 | arg2 = static_cast< long >(val2); | |
30849 | { | |
30850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30851 | (arg1)->RefreshItem(arg2); | |
30852 | wxPyEndAllowThreads(__tstate); | |
30853 | if (PyErr_Occurred()) SWIG_fail; | |
30854 | } | |
30855 | resultobj = SWIG_Py_Void(); | |
30856 | return resultobj; | |
30857 | fail: | |
30858 | return NULL; | |
30859 | } | |
30860 | ||
30861 | ||
30862 | SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30863 | PyObject *resultobj = 0; | |
30864 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30865 | long arg2 ; | |
30866 | long arg3 ; | |
30867 | void *argp1 = 0 ; | |
30868 | int res1 = 0 ; | |
30869 | long val2 ; | |
30870 | int ecode2 = 0 ; | |
30871 | long val3 ; | |
30872 | int ecode3 = 0 ; | |
30873 | PyObject * obj0 = 0 ; | |
30874 | PyObject * obj1 = 0 ; | |
30875 | PyObject * obj2 = 0 ; | |
30876 | char * kwnames[] = { | |
30877 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
30878 | }; | |
30879 | ||
30880 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30881 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30882 | if (!SWIG_IsOK(res1)) { | |
30883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30884 | } | |
30885 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30886 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30887 | if (!SWIG_IsOK(ecode2)) { | |
30888 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'"); | |
30889 | } | |
30890 | arg2 = static_cast< long >(val2); | |
30891 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
30892 | if (!SWIG_IsOK(ecode3)) { | |
30893 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'"); | |
30894 | } | |
30895 | arg3 = static_cast< long >(val3); | |
30896 | { | |
30897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30898 | (arg1)->RefreshItems(arg2,arg3); | |
30899 | wxPyEndAllowThreads(__tstate); | |
30900 | if (PyErr_Occurred()) SWIG_fail; | |
30901 | } | |
30902 | resultobj = SWIG_Py_Void(); | |
30903 | return resultobj; | |
30904 | fail: | |
30905 | return NULL; | |
30906 | } | |
30907 | ||
30908 | ||
30909 | SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30910 | PyObject *resultobj = 0; | |
30911 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30912 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
30913 | bool result; | |
30914 | void *argp1 = 0 ; | |
30915 | int res1 = 0 ; | |
30916 | int val2 ; | |
30917 | int ecode2 = 0 ; | |
30918 | PyObject * obj0 = 0 ; | |
30919 | PyObject * obj1 = 0 ; | |
30920 | char * kwnames[] = { | |
30921 | (char *) "self",(char *) "flag", NULL | |
30922 | }; | |
30923 | ||
30924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail; | |
30925 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30926 | if (!SWIG_IsOK(res1)) { | |
30927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30928 | } | |
30929 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30930 | if (obj1) { | |
30931 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30932 | if (!SWIG_IsOK(ecode2)) { | |
30933 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'"); | |
30934 | } | |
30935 | arg2 = static_cast< int >(val2); | |
30936 | } | |
30937 | { | |
30938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30939 | result = (bool)(arg1)->Arrange(arg2); | |
30940 | wxPyEndAllowThreads(__tstate); | |
30941 | if (PyErr_Occurred()) SWIG_fail; | |
30942 | } | |
30943 | { | |
30944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30945 | } | |
30946 | return resultobj; | |
30947 | fail: | |
30948 | return NULL; | |
30949 | } | |
30950 | ||
30951 | ||
30952 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30953 | PyObject *resultobj = 0; | |
30954 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30955 | long arg2 ; | |
30956 | bool result; | |
30957 | void *argp1 = 0 ; | |
30958 | int res1 = 0 ; | |
30959 | long val2 ; | |
30960 | int ecode2 = 0 ; | |
30961 | PyObject * obj0 = 0 ; | |
30962 | PyObject * obj1 = 0 ; | |
30963 | char * kwnames[] = { | |
30964 | (char *) "self",(char *) "item", NULL | |
30965 | }; | |
30966 | ||
30967 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
30968 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30969 | if (!SWIG_IsOK(res1)) { | |
30970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30971 | } | |
30972 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30973 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30974 | if (!SWIG_IsOK(ecode2)) { | |
30975 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'"); | |
30976 | } | |
30977 | arg2 = static_cast< long >(val2); | |
30978 | { | |
30979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30980 | result = (bool)(arg1)->DeleteItem(arg2); | |
30981 | wxPyEndAllowThreads(__tstate); | |
30982 | if (PyErr_Occurred()) SWIG_fail; | |
30983 | } | |
30984 | { | |
30985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30986 | } | |
30987 | return resultobj; | |
30988 | fail: | |
30989 | return NULL; | |
7e08d4ef RD |
30990 | } |
30991 | ||
30992 | ||
0085ce49 RD |
30993 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30994 | PyObject *resultobj = 0; | |
30995 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30996 | bool result; | |
30997 | void *argp1 = 0 ; | |
30998 | int res1 = 0 ; | |
30999 | PyObject *swig_obj[1] ; | |
31000 | ||
31001 | if (!args) SWIG_fail; | |
31002 | swig_obj[0] = args; | |
31003 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31004 | if (!SWIG_IsOK(res1)) { | |
31005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31006 | } | |
31007 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31008 | { | |
31009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31010 | result = (bool)(arg1)->DeleteAllItems(); | |
31011 | wxPyEndAllowThreads(__tstate); | |
31012 | if (PyErr_Occurred()) SWIG_fail; | |
31013 | } | |
31014 | { | |
31015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31016 | } | |
31017 | return resultobj; | |
31018 | fail: | |
31019 | return NULL; | |
31020 | } | |
31021 | ||
31022 | ||
31023 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31024 | PyObject *resultobj = 0; | |
31025 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31026 | int arg2 ; | |
31027 | bool result; | |
31028 | void *argp1 = 0 ; | |
31029 | int res1 = 0 ; | |
31030 | int val2 ; | |
31031 | int ecode2 = 0 ; | |
31032 | PyObject * obj0 = 0 ; | |
31033 | PyObject * obj1 = 0 ; | |
31034 | char * kwnames[] = { | |
31035 | (char *) "self",(char *) "col", NULL | |
31036 | }; | |
31037 | ||
31038 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",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_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31042 | } | |
31043 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31044 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31045 | if (!SWIG_IsOK(ecode2)) { | |
31046 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'"); | |
31047 | } | |
31048 | arg2 = static_cast< int >(val2); | |
31049 | { | |
31050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31051 | result = (bool)(arg1)->DeleteColumn(arg2); | |
31052 | wxPyEndAllowThreads(__tstate); | |
31053 | if (PyErr_Occurred()) SWIG_fail; | |
31054 | } | |
31055 | { | |
31056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31057 | } | |
31058 | return resultobj; | |
31059 | fail: | |
31060 | return NULL; | |
7e08d4ef RD |
31061 | } |
31062 | ||
31063 | ||
0085ce49 RD |
31064 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31065 | PyObject *resultobj = 0; | |
31066 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31067 | bool result; | |
31068 | void *argp1 = 0 ; | |
31069 | int res1 = 0 ; | |
31070 | PyObject *swig_obj[1] ; | |
31071 | ||
31072 | if (!args) SWIG_fail; | |
31073 | swig_obj[0] = args; | |
31074 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31075 | if (!SWIG_IsOK(res1)) { | |
31076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31077 | } | |
31078 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31079 | { | |
31080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31081 | result = (bool)(arg1)->DeleteAllColumns(); | |
31082 | wxPyEndAllowThreads(__tstate); | |
31083 | if (PyErr_Occurred()) SWIG_fail; | |
31084 | } | |
31085 | { | |
31086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31087 | } | |
31088 | return resultobj; | |
31089 | fail: | |
31090 | return NULL; | |
7e08d4ef RD |
31091 | } |
31092 | ||
31093 | ||
0085ce49 RD |
31094 | SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31095 | PyObject *resultobj = 0; | |
31096 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31097 | void *argp1 = 0 ; | |
31098 | int res1 = 0 ; | |
31099 | PyObject *swig_obj[1] ; | |
31100 | ||
31101 | if (!args) SWIG_fail; | |
31102 | swig_obj[0] = args; | |
31103 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31104 | if (!SWIG_IsOK(res1)) { | |
31105 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31106 | } | |
31107 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31108 | { | |
31109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31110 | (arg1)->ClearAll(); | |
31111 | wxPyEndAllowThreads(__tstate); | |
31112 | if (PyErr_Occurred()) SWIG_fail; | |
31113 | } | |
31114 | resultobj = SWIG_Py_Void(); | |
31115 | return resultobj; | |
31116 | fail: | |
31117 | return NULL; | |
31118 | } | |
31119 | ||
31120 | ||
31121 | SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31122 | PyObject *resultobj = 0; | |
31123 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31124 | long arg2 ; | |
31125 | void *argp1 = 0 ; | |
31126 | int res1 = 0 ; | |
31127 | long val2 ; | |
31128 | int ecode2 = 0 ; | |
31129 | PyObject * obj0 = 0 ; | |
31130 | PyObject * obj1 = 0 ; | |
31131 | char * kwnames[] = { | |
31132 | (char *) "self",(char *) "item", NULL | |
31133 | }; | |
31134 | ||
31135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
31136 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31137 | if (!SWIG_IsOK(res1)) { | |
31138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31139 | } | |
31140 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31141 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31142 | if (!SWIG_IsOK(ecode2)) { | |
31143 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'"); | |
31144 | } | |
31145 | arg2 = static_cast< long >(val2); | |
31146 | { | |
31147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31148 | (arg1)->EditLabel(arg2); | |
31149 | wxPyEndAllowThreads(__tstate); | |
31150 | if (PyErr_Occurred()) SWIG_fail; | |
31151 | } | |
31152 | resultobj = SWIG_Py_Void(); | |
31153 | return resultobj; | |
31154 | fail: | |
31155 | return NULL; | |
31156 | } | |
31157 | ||
31158 | ||
31159 | SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31160 | PyObject *resultobj = 0; | |
31161 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31162 | long arg2 ; | |
31163 | bool result; | |
31164 | void *argp1 = 0 ; | |
31165 | int res1 = 0 ; | |
31166 | long val2 ; | |
31167 | int ecode2 = 0 ; | |
31168 | PyObject * obj0 = 0 ; | |
31169 | PyObject * obj1 = 0 ; | |
31170 | char * kwnames[] = { | |
31171 | (char *) "self",(char *) "item", NULL | |
31172 | }; | |
31173 | ||
31174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
31175 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31176 | if (!SWIG_IsOK(res1)) { | |
31177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31178 | } | |
31179 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31180 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31181 | if (!SWIG_IsOK(ecode2)) { | |
31182 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'"); | |
31183 | } | |
31184 | arg2 = static_cast< long >(val2); | |
31185 | { | |
31186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31187 | result = (bool)(arg1)->EnsureVisible(arg2); | |
31188 | wxPyEndAllowThreads(__tstate); | |
31189 | if (PyErr_Occurred()) SWIG_fail; | |
31190 | } | |
31191 | { | |
31192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31193 | } | |
31194 | return resultobj; | |
31195 | fail: | |
31196 | return NULL; | |
31197 | } | |
31198 | ||
31199 | ||
31200 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31201 | PyObject *resultobj = 0; | |
31202 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31203 | long arg2 ; | |
31204 | wxString *arg3 = 0 ; | |
31205 | bool arg4 = (bool) false ; | |
31206 | long result; | |
31207 | void *argp1 = 0 ; | |
31208 | int res1 = 0 ; | |
31209 | long val2 ; | |
31210 | int ecode2 = 0 ; | |
31211 | bool temp3 = false ; | |
31212 | bool val4 ; | |
31213 | int ecode4 = 0 ; | |
31214 | PyObject * obj0 = 0 ; | |
31215 | PyObject * obj1 = 0 ; | |
31216 | PyObject * obj2 = 0 ; | |
31217 | PyObject * obj3 = 0 ; | |
31218 | char * kwnames[] = { | |
31219 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
31220 | }; | |
31221 | ||
31222 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31223 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31224 | if (!SWIG_IsOK(res1)) { | |
31225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31226 | } | |
31227 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31228 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31229 | if (!SWIG_IsOK(ecode2)) { | |
31230 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'"); | |
31231 | } | |
31232 | arg2 = static_cast< long >(val2); | |
31233 | { | |
31234 | arg3 = wxString_in_helper(obj2); | |
31235 | if (arg3 == NULL) SWIG_fail; | |
31236 | temp3 = true; | |
31237 | } | |
31238 | if (obj3) { | |
31239 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
31240 | if (!SWIG_IsOK(ecode4)) { | |
31241 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'"); | |
31242 | } | |
31243 | arg4 = static_cast< bool >(val4); | |
31244 | } | |
31245 | { | |
31246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31247 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
31248 | wxPyEndAllowThreads(__tstate); | |
31249 | if (PyErr_Occurred()) SWIG_fail; | |
31250 | } | |
31251 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31252 | { | |
31253 | if (temp3) | |
31254 | delete arg3; | |
31255 | } | |
31256 | return resultobj; | |
31257 | fail: | |
31258 | { | |
31259 | if (temp3) | |
31260 | delete arg3; | |
31261 | } | |
31262 | return NULL; | |
31263 | } | |
31264 | ||
31265 | ||
31266 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31267 | PyObject *resultobj = 0; | |
31268 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31269 | long arg2 ; | |
31270 | long arg3 ; | |
31271 | long result; | |
31272 | void *argp1 = 0 ; | |
31273 | int res1 = 0 ; | |
31274 | long val2 ; | |
31275 | int ecode2 = 0 ; | |
31276 | long val3 ; | |
31277 | int ecode3 = 0 ; | |
31278 | PyObject * obj0 = 0 ; | |
31279 | PyObject * obj1 = 0 ; | |
31280 | PyObject * obj2 = 0 ; | |
31281 | char * kwnames[] = { | |
31282 | (char *) "self",(char *) "start",(char *) "data", NULL | |
31283 | }; | |
31284 | ||
31285 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31286 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31287 | if (!SWIG_IsOK(res1)) { | |
31288 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31289 | } | |
31290 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31291 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31292 | if (!SWIG_IsOK(ecode2)) { | |
31293 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'"); | |
31294 | } | |
31295 | arg2 = static_cast< long >(val2); | |
31296 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
31297 | if (!SWIG_IsOK(ecode3)) { | |
31298 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'"); | |
31299 | } | |
31300 | arg3 = static_cast< long >(val3); | |
31301 | { | |
31302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31303 | result = (long)(arg1)->FindItem(arg2,arg3); | |
31304 | wxPyEndAllowThreads(__tstate); | |
31305 | if (PyErr_Occurred()) SWIG_fail; | |
31306 | } | |
31307 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31308 | return resultobj; | |
31309 | fail: | |
31310 | return NULL; | |
31311 | } | |
31312 | ||
31313 | ||
31314 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31315 | PyObject *resultobj = 0; | |
31316 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31317 | long arg2 ; | |
31318 | wxPoint *arg3 = 0 ; | |
31319 | int arg4 ; | |
31320 | long result; | |
31321 | void *argp1 = 0 ; | |
31322 | int res1 = 0 ; | |
31323 | long val2 ; | |
31324 | int ecode2 = 0 ; | |
31325 | wxPoint temp3 ; | |
31326 | int val4 ; | |
31327 | int ecode4 = 0 ; | |
31328 | PyObject * obj0 = 0 ; | |
31329 | PyObject * obj1 = 0 ; | |
31330 | PyObject * obj2 = 0 ; | |
31331 | PyObject * obj3 = 0 ; | |
31332 | char * kwnames[] = { | |
31333 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
31334 | }; | |
31335 | ||
31336 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31337 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31338 | if (!SWIG_IsOK(res1)) { | |
31339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31340 | } | |
31341 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31342 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31343 | if (!SWIG_IsOK(ecode2)) { | |
31344 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'"); | |
31345 | } | |
31346 | arg2 = static_cast< long >(val2); | |
31347 | { | |
31348 | arg3 = &temp3; | |
31349 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31350 | } | |
31351 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31352 | if (!SWIG_IsOK(ecode4)) { | |
31353 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'"); | |
31354 | } | |
31355 | arg4 = static_cast< int >(val4); | |
31356 | { | |
31357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31358 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
31359 | wxPyEndAllowThreads(__tstate); | |
31360 | if (PyErr_Occurred()) SWIG_fail; | |
31361 | } | |
31362 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31363 | return resultobj; | |
31364 | fail: | |
31365 | return NULL; | |
31366 | } | |
31367 | ||
31368 | ||
31369 | SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31370 | PyObject *resultobj = 0; | |
31371 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31372 | wxPoint *arg2 = 0 ; | |
31373 | int *arg3 = 0 ; | |
31374 | long result; | |
31375 | void *argp1 = 0 ; | |
31376 | int res1 = 0 ; | |
31377 | wxPoint temp2 ; | |
31378 | int temp3 ; | |
31379 | int res3 = SWIG_TMPOBJ ; | |
31380 | PyObject * obj0 = 0 ; | |
31381 | PyObject * obj1 = 0 ; | |
31382 | char * kwnames[] = { | |
31383 | (char *) "self",(char *) "point", NULL | |
31384 | }; | |
31385 | ||
31386 | arg3 = &temp3; | |
31387 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
31388 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31389 | if (!SWIG_IsOK(res1)) { | |
31390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31391 | } | |
31392 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31393 | { | |
31394 | arg2 = &temp2; | |
31395 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31396 | } | |
31397 | { | |
31398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31399 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
31400 | wxPyEndAllowThreads(__tstate); | |
31401 | if (PyErr_Occurred()) SWIG_fail; | |
31402 | } | |
31403 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31404 | if (SWIG_IsTmpObj(res3)) { | |
31405 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
31406 | } else { | |
31407 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31408 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
31409 | } | |
31410 | return resultobj; | |
31411 | fail: | |
31412 | return NULL; | |
31413 | } | |
31414 | ||
31415 | ||
704eda0c RD |
31416 | SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31417 | PyObject *resultobj = 0; | |
31418 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31419 | wxPoint *arg2 = 0 ; | |
31420 | int *arg3 = 0 ; | |
31421 | long *arg4 = (long *) 0 ; | |
31422 | long result; | |
31423 | void *argp1 = 0 ; | |
31424 | int res1 = 0 ; | |
31425 | wxPoint temp2 ; | |
31426 | int temp3 ; | |
31427 | int res3 = SWIG_TMPOBJ ; | |
31428 | long temp4 ; | |
31429 | int res4 = SWIG_TMPOBJ ; | |
31430 | PyObject * obj0 = 0 ; | |
31431 | PyObject * obj1 = 0 ; | |
31432 | char * kwnames[] = { | |
31433 | (char *) "self",(char *) "point", NULL | |
31434 | }; | |
31435 | ||
31436 | arg3 = &temp3; | |
31437 | arg4 = &temp4; | |
31438 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
31439 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31440 | if (!SWIG_IsOK(res1)) { | |
31441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31442 | } | |
31443 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31444 | { | |
31445 | arg2 = &temp2; | |
31446 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31447 | } | |
31448 | { | |
31449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31450 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4); | |
31451 | wxPyEndAllowThreads(__tstate); | |
31452 | if (PyErr_Occurred()) SWIG_fail; | |
31453 | } | |
31454 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31455 | if (SWIG_IsTmpObj(res3)) { | |
31456 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
31457 | } else { | |
31458 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31459 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
31460 | } | |
31461 | if (SWIG_IsTmpObj(res4)) { | |
31462 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
31463 | } else { | |
31464 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31465 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
31466 | } | |
31467 | return resultobj; | |
31468 | fail: | |
31469 | return NULL; | |
31470 | } | |
31471 | ||
31472 | ||
0085ce49 RD |
31473 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31474 | PyObject *resultobj = 0; | |
31475 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31476 | wxListItem *arg2 = 0 ; | |
31477 | long result; | |
31478 | void *argp1 = 0 ; | |
31479 | int res1 = 0 ; | |
31480 | void *argp2 = 0 ; | |
31481 | int res2 = 0 ; | |
31482 | PyObject * obj0 = 0 ; | |
31483 | PyObject * obj1 = 0 ; | |
31484 | char * kwnames[] = { | |
31485 | (char *) "self",(char *) "info", NULL | |
31486 | }; | |
31487 | ||
31488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
31489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31490 | if (!SWIG_IsOK(res1)) { | |
31491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31492 | } | |
31493 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31494 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 ); | |
31495 | if (!SWIG_IsOK(res2)) { | |
31496 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
31497 | } | |
31498 | if (!argp2) { | |
31499 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
31500 | } | |
31501 | arg2 = reinterpret_cast< wxListItem * >(argp2); | |
31502 | { | |
31503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31504 | result = (long)(arg1)->InsertItem(*arg2); | |
31505 | wxPyEndAllowThreads(__tstate); | |
31506 | if (PyErr_Occurred()) SWIG_fail; | |
31507 | } | |
31508 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31509 | return resultobj; | |
31510 | fail: | |
31511 | return NULL; | |
31512 | } | |
31513 | ||
31514 | ||
31515 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31516 | PyObject *resultobj = 0; | |
31517 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31518 | long arg2 ; | |
31519 | wxString *arg3 = 0 ; | |
31520 | int arg4 = (int) -1 ; | |
31521 | long result; | |
31522 | void *argp1 = 0 ; | |
31523 | int res1 = 0 ; | |
31524 | long val2 ; | |
31525 | int ecode2 = 0 ; | |
31526 | bool temp3 = false ; | |
31527 | int val4 ; | |
31528 | int ecode4 = 0 ; | |
31529 | PyObject * obj0 = 0 ; | |
31530 | PyObject * obj1 = 0 ; | |
31531 | PyObject * obj2 = 0 ; | |
31532 | PyObject * obj3 = 0 ; | |
31533 | char * kwnames[] = { | |
31534 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
31535 | }; | |
31536 | ||
31537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31539 | if (!SWIG_IsOK(res1)) { | |
31540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31541 | } | |
31542 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31543 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31544 | if (!SWIG_IsOK(ecode2)) { | |
31545 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'"); | |
31546 | } | |
31547 | arg2 = static_cast< long >(val2); | |
31548 | { | |
31549 | arg3 = wxString_in_helper(obj2); | |
31550 | if (arg3 == NULL) SWIG_fail; | |
31551 | temp3 = true; | |
31552 | } | |
31553 | if (obj3) { | |
31554 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31555 | if (!SWIG_IsOK(ecode4)) { | |
31556 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'"); | |
31557 | } | |
31558 | arg4 = static_cast< int >(val4); | |
31559 | } | |
31560 | { | |
31561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31562 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
31563 | wxPyEndAllowThreads(__tstate); | |
31564 | if (PyErr_Occurred()) SWIG_fail; | |
31565 | } | |
31566 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31567 | { | |
31568 | if (temp3) | |
31569 | delete arg3; | |
31570 | } | |
31571 | return resultobj; | |
31572 | fail: | |
31573 | { | |
31574 | if (temp3) | |
31575 | delete arg3; | |
31576 | } | |
31577 | return NULL; | |
31578 | } | |
31579 | ||
31580 | ||
31581 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31582 | PyObject *resultobj = 0; | |
31583 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31584 | long arg2 ; | |
31585 | int arg3 ; | |
31586 | long result; | |
31587 | void *argp1 = 0 ; | |
31588 | int res1 = 0 ; | |
31589 | long val2 ; | |
31590 | int ecode2 = 0 ; | |
31591 | int val3 ; | |
31592 | int ecode3 = 0 ; | |
31593 | PyObject * obj0 = 0 ; | |
31594 | PyObject * obj1 = 0 ; | |
31595 | PyObject * obj2 = 0 ; | |
31596 | char * kwnames[] = { | |
31597 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
31598 | }; | |
31599 | ||
31600 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31601 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31602 | if (!SWIG_IsOK(res1)) { | |
31603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31604 | } | |
31605 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31606 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31607 | if (!SWIG_IsOK(ecode2)) { | |
31608 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'"); | |
31609 | } | |
31610 | arg2 = static_cast< long >(val2); | |
31611 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31612 | if (!SWIG_IsOK(ecode3)) { | |
31613 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'"); | |
31614 | } | |
31615 | arg3 = static_cast< int >(val3); | |
31616 | { | |
31617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31618 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
31619 | wxPyEndAllowThreads(__tstate); | |
31620 | if (PyErr_Occurred()) SWIG_fail; | |
31621 | } | |
31622 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31623 | return resultobj; | |
31624 | fail: | |
31625 | return NULL; | |
31626 | } | |
31627 | ||
31628 | ||
31629 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31630 | PyObject *resultobj = 0; | |
31631 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31632 | long arg2 ; | |
31633 | wxString *arg3 = 0 ; | |
31634 | int arg4 ; | |
31635 | long result; | |
31636 | void *argp1 = 0 ; | |
31637 | int res1 = 0 ; | |
31638 | long val2 ; | |
31639 | int ecode2 = 0 ; | |
31640 | bool temp3 = false ; | |
31641 | int val4 ; | |
31642 | int ecode4 = 0 ; | |
31643 | PyObject * obj0 = 0 ; | |
31644 | PyObject * obj1 = 0 ; | |
31645 | PyObject * obj2 = 0 ; | |
31646 | PyObject * obj3 = 0 ; | |
31647 | char * kwnames[] = { | |
31648 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
31649 | }; | |
31650 | ||
31651 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31652 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31653 | if (!SWIG_IsOK(res1)) { | |
31654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31655 | } | |
31656 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31657 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31658 | if (!SWIG_IsOK(ecode2)) { | |
31659 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'"); | |
31660 | } | |
31661 | arg2 = static_cast< long >(val2); | |
31662 | { | |
31663 | arg3 = wxString_in_helper(obj2); | |
31664 | if (arg3 == NULL) SWIG_fail; | |
31665 | temp3 = true; | |
31666 | } | |
31667 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31668 | if (!SWIG_IsOK(ecode4)) { | |
31669 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'"); | |
31670 | } | |
31671 | arg4 = static_cast< int >(val4); | |
31672 | { | |
31673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31674 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
31675 | wxPyEndAllowThreads(__tstate); | |
31676 | if (PyErr_Occurred()) SWIG_fail; | |
31677 | } | |
31678 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31679 | { | |
31680 | if (temp3) | |
31681 | delete arg3; | |
31682 | } | |
31683 | return resultobj; | |
31684 | fail: | |
31685 | { | |
31686 | if (temp3) | |
31687 | delete arg3; | |
31688 | } | |
31689 | return NULL; | |
31690 | } | |
31691 | ||
31692 | ||
31693 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31694 | PyObject *resultobj = 0; | |
31695 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31696 | long arg2 ; | |
31697 | wxListItem *arg3 = 0 ; | |
31698 | long result; | |
31699 | void *argp1 = 0 ; | |
31700 | int res1 = 0 ; | |
31701 | long val2 ; | |
31702 | int ecode2 = 0 ; | |
31703 | void *argp3 = 0 ; | |
31704 | int res3 = 0 ; | |
31705 | PyObject * obj0 = 0 ; | |
31706 | PyObject * obj1 = 0 ; | |
31707 | PyObject * obj2 = 0 ; | |
31708 | char * kwnames[] = { | |
31709 | (char *) "self",(char *) "col",(char *) "info", NULL | |
31710 | }; | |
31711 | ||
31712 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31713 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31714 | if (!SWIG_IsOK(res1)) { | |
31715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31716 | } | |
31717 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31718 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31719 | if (!SWIG_IsOK(ecode2)) { | |
31720 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'"); | |
31721 | } | |
31722 | arg2 = static_cast< long >(val2); | |
31723 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 ); | |
31724 | if (!SWIG_IsOK(res3)) { | |
31725 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
31726 | } | |
31727 | if (!argp3) { | |
31728 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
31729 | } | |
31730 | arg3 = reinterpret_cast< wxListItem * >(argp3); | |
31731 | { | |
31732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31733 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
31734 | wxPyEndAllowThreads(__tstate); | |
31735 | if (PyErr_Occurred()) SWIG_fail; | |
31736 | } | |
31737 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31738 | return resultobj; | |
31739 | fail: | |
31740 | return NULL; | |
31741 | } | |
31742 | ||
31743 | ||
31744 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31745 | PyObject *resultobj = 0; | |
31746 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31747 | long arg2 ; | |
31748 | wxString *arg3 = 0 ; | |
31749 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
31750 | int arg5 = (int) -1 ; | |
31751 | long result; | |
31752 | void *argp1 = 0 ; | |
31753 | int res1 = 0 ; | |
31754 | long val2 ; | |
31755 | int ecode2 = 0 ; | |
31756 | bool temp3 = false ; | |
31757 | int val4 ; | |
31758 | int ecode4 = 0 ; | |
31759 | int val5 ; | |
31760 | int ecode5 = 0 ; | |
31761 | PyObject * obj0 = 0 ; | |
31762 | PyObject * obj1 = 0 ; | |
31763 | PyObject * obj2 = 0 ; | |
31764 | PyObject * obj3 = 0 ; | |
31765 | PyObject * obj4 = 0 ; | |
31766 | char * kwnames[] = { | |
31767 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
31768 | }; | |
31769 | ||
31770 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
31771 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31772 | if (!SWIG_IsOK(res1)) { | |
31773 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31774 | } | |
31775 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31776 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31777 | if (!SWIG_IsOK(ecode2)) { | |
31778 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'"); | |
31779 | } | |
31780 | arg2 = static_cast< long >(val2); | |
31781 | { | |
31782 | arg3 = wxString_in_helper(obj2); | |
31783 | if (arg3 == NULL) SWIG_fail; | |
31784 | temp3 = true; | |
31785 | } | |
31786 | if (obj3) { | |
31787 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31788 | if (!SWIG_IsOK(ecode4)) { | |
31789 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'"); | |
31790 | } | |
31791 | arg4 = static_cast< int >(val4); | |
31792 | } | |
31793 | if (obj4) { | |
31794 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31795 | if (!SWIG_IsOK(ecode5)) { | |
31796 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'"); | |
31797 | } | |
31798 | arg5 = static_cast< int >(val5); | |
31799 | } | |
31800 | { | |
31801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31802 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
31803 | wxPyEndAllowThreads(__tstate); | |
31804 | if (PyErr_Occurred()) SWIG_fail; | |
31805 | } | |
31806 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31807 | { | |
31808 | if (temp3) | |
31809 | delete arg3; | |
31810 | } | |
31811 | return resultobj; | |
31812 | fail: | |
31813 | { | |
31814 | if (temp3) | |
31815 | delete arg3; | |
31816 | } | |
31817 | return NULL; | |
31818 | } | |
31819 | ||
31820 | ||
31821 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31822 | PyObject *resultobj = 0; | |
31823 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31824 | long arg2 ; | |
31825 | void *argp1 = 0 ; | |
31826 | int res1 = 0 ; | |
31827 | long val2 ; | |
31828 | int ecode2 = 0 ; | |
31829 | PyObject * obj0 = 0 ; | |
31830 | PyObject * obj1 = 0 ; | |
31831 | char * kwnames[] = { | |
31832 | (char *) "self",(char *) "count", NULL | |
31833 | }; | |
31834 | ||
31835 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
31836 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31837 | if (!SWIG_IsOK(res1)) { | |
31838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31839 | } | |
31840 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31841 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31842 | if (!SWIG_IsOK(ecode2)) { | |
31843 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'"); | |
31844 | } | |
31845 | arg2 = static_cast< long >(val2); | |
31846 | { | |
31847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31848 | (arg1)->SetItemCount(arg2); | |
31849 | wxPyEndAllowThreads(__tstate); | |
31850 | if (PyErr_Occurred()) SWIG_fail; | |
31851 | } | |
31852 | resultobj = SWIG_Py_Void(); | |
31853 | return resultobj; | |
31854 | fail: | |
31855 | return NULL; | |
31856 | } | |
31857 | ||
31858 | ||
31859 | SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31860 | PyObject *resultobj = 0; | |
31861 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31862 | int arg2 ; | |
31863 | int arg3 ; | |
31864 | bool result; | |
31865 | void *argp1 = 0 ; | |
31866 | int res1 = 0 ; | |
31867 | int val2 ; | |
31868 | int ecode2 = 0 ; | |
31869 | int val3 ; | |
31870 | int ecode3 = 0 ; | |
31871 | PyObject * obj0 = 0 ; | |
31872 | PyObject * obj1 = 0 ; | |
31873 | PyObject * obj2 = 0 ; | |
31874 | char * kwnames[] = { | |
31875 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
31876 | }; | |
31877 | ||
31878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31880 | if (!SWIG_IsOK(res1)) { | |
31881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31882 | } | |
31883 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31884 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31885 | if (!SWIG_IsOK(ecode2)) { | |
31886 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'"); | |
31887 | } | |
31888 | arg2 = static_cast< int >(val2); | |
31889 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31890 | if (!SWIG_IsOK(ecode3)) { | |
31891 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'"); | |
31892 | } | |
31893 | arg3 = static_cast< int >(val3); | |
31894 | { | |
31895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31896 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
31897 | wxPyEndAllowThreads(__tstate); | |
31898 | if (PyErr_Occurred()) SWIG_fail; | |
31899 | } | |
31900 | { | |
31901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31902 | } | |
31903 | return resultobj; | |
31904 | fail: | |
31905 | return NULL; | |
31906 | } | |
31907 | ||
31908 | ||
31909 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31910 | PyObject *resultobj = 0; | |
31911 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31912 | long arg2 ; | |
31913 | wxColour *arg3 = 0 ; | |
31914 | void *argp1 = 0 ; | |
31915 | int res1 = 0 ; | |
31916 | long val2 ; | |
31917 | int ecode2 = 0 ; | |
31918 | wxColour temp3 ; | |
31919 | PyObject * obj0 = 0 ; | |
31920 | PyObject * obj1 = 0 ; | |
31921 | PyObject * obj2 = 0 ; | |
31922 | char * kwnames[] = { | |
31923 | (char *) "self",(char *) "item",(char *) "col", NULL | |
31924 | }; | |
31925 | ||
31926 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31927 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31928 | if (!SWIG_IsOK(res1)) { | |
31929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31930 | } | |
31931 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31932 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31933 | if (!SWIG_IsOK(ecode2)) { | |
31934 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'"); | |
31935 | } | |
31936 | arg2 = static_cast< long >(val2); | |
31937 | { | |
31938 | arg3 = &temp3; | |
31939 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31940 | } | |
31941 | { | |
31942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31943 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
31944 | wxPyEndAllowThreads(__tstate); | |
31945 | if (PyErr_Occurred()) SWIG_fail; | |
31946 | } | |
31947 | resultobj = SWIG_Py_Void(); | |
31948 | return resultobj; | |
31949 | fail: | |
31950 | return NULL; | |
31951 | } | |
31952 | ||
31953 | ||
31954 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31955 | PyObject *resultobj = 0; | |
31956 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31957 | long arg2 ; | |
31958 | wxColour result; | |
31959 | void *argp1 = 0 ; | |
31960 | int res1 = 0 ; | |
31961 | long val2 ; | |
31962 | int ecode2 = 0 ; | |
31963 | PyObject * obj0 = 0 ; | |
31964 | PyObject * obj1 = 0 ; | |
31965 | char * kwnames[] = { | |
31966 | (char *) "self",(char *) "item", NULL | |
31967 | }; | |
31968 | ||
31969 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
31970 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31971 | if (!SWIG_IsOK(res1)) { | |
31972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
31973 | } | |
31974 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31975 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31976 | if (!SWIG_IsOK(ecode2)) { | |
31977 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'"); | |
31978 | } | |
31979 | arg2 = static_cast< long >(val2); | |
31980 | { | |
31981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31982 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
31983 | wxPyEndAllowThreads(__tstate); | |
31984 | if (PyErr_Occurred()) SWIG_fail; | |
31985 | } | |
31986 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
31987 | return resultobj; | |
31988 | fail: | |
31989 | return NULL; | |
31990 | } | |
31991 | ||
31992 | ||
31993 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31994 | PyObject *resultobj = 0; | |
31995 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31996 | long arg2 ; | |
31997 | wxColour *arg3 = 0 ; | |
31998 | void *argp1 = 0 ; | |
31999 | int res1 = 0 ; | |
32000 | long val2 ; | |
32001 | int ecode2 = 0 ; | |
32002 | wxColour temp3 ; | |
32003 | PyObject * obj0 = 0 ; | |
32004 | PyObject * obj1 = 0 ; | |
32005 | PyObject * obj2 = 0 ; | |
32006 | char * kwnames[] = { | |
32007 | (char *) "self",(char *) "item",(char *) "col", NULL | |
32008 | }; | |
32009 | ||
32010 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32011 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
32012 | if (!SWIG_IsOK(res1)) { | |
32013 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
32014 | } | |
32015 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
32016 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32017 | if (!SWIG_IsOK(ecode2)) { | |
32018 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'"); | |
32019 | } | |
32020 | arg2 = static_cast< long >(val2); | |
32021 | { | |
32022 | arg3 = &temp3; | |
32023 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
32024 | } | |
32025 | { | |
32026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32027 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
32028 | wxPyEndAllowThreads(__tstate); | |
32029 | if (PyErr_Occurred()) SWIG_fail; | |
32030 | } | |
32031 | resultobj = SWIG_Py_Void(); | |
32032 | return resultobj; | |
32033 | fail: | |
32034 | return NULL; | |
32035 | } | |
32036 | ||
32037 | ||
32038 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32039 | PyObject *resultobj = 0; | |
32040 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
32041 | long arg2 ; | |
32042 | wxColour result; | |
32043 | void *argp1 = 0 ; | |
32044 | int res1 = 0 ; | |
32045 | long val2 ; | |
32046 | int ecode2 = 0 ; | |
32047 | PyObject * obj0 = 0 ; | |
32048 | PyObject * obj1 = 0 ; | |
32049 | char * kwnames[] = { | |
32050 | (char *) "self",(char *) "item", NULL | |
32051 | }; | |
32052 | ||
32053 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
32054 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
32055 | if (!SWIG_IsOK(res1)) { | |
32056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
32057 | } | |
32058 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
32059 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32060 | if (!SWIG_IsOK(ecode2)) { | |
32061 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'"); | |
32062 | } | |
32063 | arg2 = static_cast< long >(val2); | |
32064 | { | |
32065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32066 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
32067 | wxPyEndAllowThreads(__tstate); | |
32068 | if (PyErr_Occurred()) SWIG_fail; | |
32069 | } | |
32070 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32071 | return resultobj; | |
32072 | fail: | |
32073 | return NULL; | |
32074 | } | |
32075 | ||
32076 | ||
32077 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32078 | PyObject *resultobj = 0; | |
32079 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
32080 | long arg2 ; | |
32081 | wxFont *arg3 = 0 ; | |
32082 | void *argp1 = 0 ; | |
32083 | int res1 = 0 ; | |
32084 | long val2 ; | |
32085 | int ecode2 = 0 ; | |
32086 | void *argp3 = 0 ; | |
32087 | int res3 = 0 ; | |
32088 | PyObject * obj0 = 0 ; | |
32089 | PyObject * obj1 = 0 ; | |
32090 | PyObject * obj2 = 0 ; | |
32091 | char * kwnames[] = { | |
32092 | (char *) "self",(char *) "item",(char *) "f", NULL | |
32093 | }; | |
32094 | ||
32095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32096 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
32097 | if (!SWIG_IsOK(res1)) { | |
32098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
32099 | } | |
32100 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
32101 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32102 | if (!SWIG_IsOK(ecode2)) { | |
32103 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'"); | |
32104 | } | |
32105 | arg2 = static_cast< long >(val2); | |
32106 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
32107 | if (!SWIG_IsOK(res3)) { | |
32108 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
32109 | } | |
32110 | if (!argp3) { | |
32111 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
32112 | } | |
32113 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
32114 | { | |
32115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32116 | (arg1)->SetItemFont(arg2,(wxFont const &)*arg3); | |
32117 | wxPyEndAllowThreads(__tstate); | |
32118 | if (PyErr_Occurred()) SWIG_fail; | |
32119 | } | |
32120 | resultobj = SWIG_Py_Void(); | |
32121 | return resultobj; | |
32122 | fail: | |
32123 | return NULL; | |
32124 | } | |
32125 | ||
32126 | ||
32127 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32128 | PyObject *resultobj = 0; | |
32129 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
32130 | long arg2 ; | |
32131 | wxFont result; | |
32132 | void *argp1 = 0 ; | |
32133 | int res1 = 0 ; | |
32134 | long val2 ; | |
32135 | int ecode2 = 0 ; | |
32136 | PyObject * obj0 = 0 ; | |
32137 | PyObject * obj1 = 0 ; | |
32138 | char * kwnames[] = { | |
32139 | (char *) "self",(char *) "item", NULL | |
32140 | }; | |
32141 | ||
32142 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
32143 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
32144 | if (!SWIG_IsOK(res1)) { | |
32145 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
32146 | } | |
32147 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
32148 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32149 | if (!SWIG_IsOK(ecode2)) { | |
32150 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'"); | |
32151 | } | |
32152 | arg2 = static_cast< long >(val2); | |
32153 | { | |
32154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32155 | result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2); | |
32156 | wxPyEndAllowThreads(__tstate); | |
32157 | if (PyErr_Occurred()) SWIG_fail; | |
32158 | } | |
32159 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
32160 | return resultobj; | |
32161 | fail: | |
32162 | return NULL; | |
32163 | } | |
32164 | ||
32165 | ||
32166 | SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32167 | PyObject *resultobj = 0; | |
32168 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
32169 | PyObject *arg2 = (PyObject *) 0 ; | |
32170 | bool result; | |
32171 | void *argp1 = 0 ; | |
32172 | int res1 = 0 ; | |
32173 | PyObject * obj0 = 0 ; | |
32174 | PyObject * obj1 = 0 ; | |
32175 | char * kwnames[] = { | |
32176 | (char *) "self",(char *) "func", NULL | |
32177 | }; | |
32178 | ||
32179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail; | |
32180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
32181 | if (!SWIG_IsOK(res1)) { | |
32182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
32183 | } | |
32184 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
32185 | arg2 = obj1; | |
32186 | { | |
32187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32188 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
32189 | wxPyEndAllowThreads(__tstate); | |
32190 | if (PyErr_Occurred()) SWIG_fail; | |
32191 | } | |
32192 | { | |
32193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32194 | } | |
32195 | return resultobj; | |
32196 | fail: | |
32197 | return NULL; | |
7e08d4ef RD |
32198 | } |
32199 | ||
32200 | ||
0085ce49 RD |
32201 | SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32202 | PyObject *resultobj = 0; | |
32203 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
32204 | wxWindow *result = 0 ; | |
32205 | void *argp1 = 0 ; | |
32206 | int res1 = 0 ; | |
32207 | PyObject *swig_obj[1] ; | |
32208 | ||
32209 | if (!args) SWIG_fail; | |
32210 | swig_obj[0] = args; | |
32211 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
32212 | if (!SWIG_IsOK(res1)) { | |
32213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
32214 | } | |
32215 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
32216 | { | |
32217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32218 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
32219 | wxPyEndAllowThreads(__tstate); | |
32220 | if (PyErr_Occurred()) SWIG_fail; | |
32221 | } | |
32222 | { | |
32223 | resultobj = wxPyMake_wxObject(result, 0); | |
32224 | } | |
32225 | return resultobj; | |
32226 | fail: | |
32227 | return NULL; | |
32228 | } | |
32229 | ||
32230 | ||
32231 | SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32232 | PyObject *resultobj = 0; | |
32233 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
32234 | SwigValueWrapper<wxVisualAttributes > result; | |
32235 | int val1 ; | |
32236 | int ecode1 = 0 ; | |
32237 | PyObject * obj0 = 0 ; | |
32238 | char * kwnames[] = { | |
32239 | (char *) "variant", NULL | |
32240 | }; | |
32241 | ||
32242 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
32243 | if (obj0) { | |
32244 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32245 | if (!SWIG_IsOK(ecode1)) { | |
32246 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
32247 | } | |
32248 | arg1 = static_cast< wxWindowVariant >(val1); | |
32249 | } | |
32250 | { | |
32251 | if (!wxPyCheckForApp()) SWIG_fail; | |
32252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32253 | result = wxPyListCtrl::GetClassDefaultAttributes(arg1); | |
32254 | wxPyEndAllowThreads(__tstate); | |
32255 | if (PyErr_Occurred()) SWIG_fail; | |
32256 | } | |
32257 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
32258 | return resultobj; | |
32259 | fail: | |
32260 | return NULL; | |
32261 | } | |
32262 | ||
32263 | ||
32264 | SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32265 | PyObject *obj; | |
32266 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32267 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj)); | |
32268 | return SWIG_Py_Void(); | |
32269 | } | |
32270 | ||
32271 | SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32272 | return SWIG_Python_InitShadowInstance(args); | |
32273 | } | |
32274 | ||
32275 | SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32276 | PyObject *resultobj = 0; | |
32277 | wxWindow *arg1 = (wxWindow *) 0 ; | |
32278 | int arg2 = (int) -1 ; | |
32279 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
32280 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32281 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32282 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32283 | long arg5 = (long) wxLC_REPORT ; | |
32284 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32285 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32286 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
32287 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32288 | wxListView *result = 0 ; | |
32289 | void *argp1 = 0 ; | |
32290 | int res1 = 0 ; | |
32291 | int val2 ; | |
32292 | int ecode2 = 0 ; | |
32293 | wxPoint temp3 ; | |
32294 | wxSize temp4 ; | |
32295 | long val5 ; | |
32296 | int ecode5 = 0 ; | |
32297 | void *argp6 = 0 ; | |
32298 | int res6 = 0 ; | |
32299 | bool temp7 = false ; | |
32300 | PyObject * obj0 = 0 ; | |
32301 | PyObject * obj1 = 0 ; | |
32302 | PyObject * obj2 = 0 ; | |
32303 | PyObject * obj3 = 0 ; | |
32304 | PyObject * obj4 = 0 ; | |
32305 | PyObject * obj5 = 0 ; | |
32306 | PyObject * obj6 = 0 ; | |
32307 | char * kwnames[] = { | |
32308 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32309 | }; | |
32310 | ||
32311 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
32312 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
32313 | if (!SWIG_IsOK(res1)) { | |
32314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
32315 | } | |
32316 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
32317 | if (obj1) { | |
32318 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32319 | if (!SWIG_IsOK(ecode2)) { | |
32320 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'"); | |
32321 | } | |
32322 | arg2 = static_cast< int >(val2); | |
32323 | } | |
32324 | if (obj2) { | |
7e08d4ef | 32325 | { |
0085ce49 RD |
32326 | arg3 = &temp3; |
32327 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7e08d4ef | 32328 | } |
0085ce49 RD |
32329 | } |
32330 | if (obj3) { | |
7e08d4ef | 32331 | { |
0085ce49 RD |
32332 | arg4 = &temp4; |
32333 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7e08d4ef | 32334 | } |
0085ce49 RD |
32335 | } |
32336 | if (obj4) { | |
32337 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
32338 | if (!SWIG_IsOK(ecode5)) { | |
32339 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'"); | |
32340 | } | |
32341 | arg5 = static_cast< long >(val5); | |
32342 | } | |
32343 | if (obj5) { | |
32344 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
32345 | if (!SWIG_IsOK(res6)) { | |
32346 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 32347 | } |
0085ce49 RD |
32348 | if (!argp6) { |
32349 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 32350 | } |
0085ce49 RD |
32351 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
32352 | } | |
32353 | if (obj6) { | |
7e08d4ef | 32354 | { |
0085ce49 RD |
32355 | arg7 = wxString_in_helper(obj6); |
32356 | if (arg7 == NULL) SWIG_fail; | |
32357 | temp7 = true; | |
7e08d4ef | 32358 | } |
0085ce49 RD |
32359 | } |
32360 | { | |
32361 | if (!wxPyCheckForApp()) SWIG_fail; | |
32362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32363 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
32364 | wxPyEndAllowThreads(__tstate); | |
32365 | if (PyErr_Occurred()) SWIG_fail; | |
32366 | } | |
32367 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 ); | |
32368 | { | |
32369 | if (temp7) | |
32370 | delete arg7; | |
32371 | } | |
32372 | return resultobj; | |
32373 | fail: | |
32374 | { | |
32375 | if (temp7) | |
32376 | delete arg7; | |
32377 | } | |
32378 | return NULL; | |
7e08d4ef RD |
32379 | } |
32380 | ||
32381 | ||
0085ce49 RD |
32382 | SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32383 | PyObject *resultobj = 0; | |
32384 | wxListView *result = 0 ; | |
32385 | ||
32386 | if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail; | |
32387 | { | |
32388 | if (!wxPyCheckForApp()) SWIG_fail; | |
32389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32390 | result = (wxListView *)new wxListView(); | |
32391 | wxPyEndAllowThreads(__tstate); | |
32392 | if (PyErr_Occurred()) SWIG_fail; | |
32393 | } | |
32394 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 ); | |
32395 | return resultobj; | |
32396 | fail: | |
32397 | return NULL; | |
32398 | } | |
32399 | ||
32400 | ||
32401 | SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32402 | PyObject *resultobj = 0; | |
32403 | wxListView *arg1 = (wxListView *) 0 ; | |
32404 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32405 | int arg3 = (int) -1 ; | |
32406 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
32407 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
32408 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
32409 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
32410 | long arg6 = (long) wxLC_REPORT ; | |
32411 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
32412 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
32413 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
32414 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
32415 | bool result; | |
32416 | void *argp1 = 0 ; | |
32417 | int res1 = 0 ; | |
32418 | void *argp2 = 0 ; | |
32419 | int res2 = 0 ; | |
32420 | int val3 ; | |
32421 | int ecode3 = 0 ; | |
32422 | wxPoint temp4 ; | |
32423 | wxSize temp5 ; | |
32424 | long val6 ; | |
32425 | int ecode6 = 0 ; | |
32426 | void *argp7 = 0 ; | |
32427 | int res7 = 0 ; | |
32428 | bool temp8 = false ; | |
32429 | PyObject * obj0 = 0 ; | |
32430 | PyObject * obj1 = 0 ; | |
32431 | PyObject * obj2 = 0 ; | |
32432 | PyObject * obj3 = 0 ; | |
32433 | PyObject * obj4 = 0 ; | |
32434 | PyObject * obj5 = 0 ; | |
32435 | PyObject * obj6 = 0 ; | |
32436 | PyObject * obj7 = 0 ; | |
32437 | char * kwnames[] = { | |
32438 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32439 | }; | |
32440 | ||
32441 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
32442 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32443 | if (!SWIG_IsOK(res1)) { | |
32444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32445 | } | |
32446 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32447 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
32448 | if (!SWIG_IsOK(res2)) { | |
32449 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
32450 | } | |
32451 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
32452 | if (obj2) { | |
32453 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32454 | if (!SWIG_IsOK(ecode3)) { | |
32455 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'"); | |
32456 | } | |
32457 | arg3 = static_cast< int >(val3); | |
32458 | } | |
32459 | if (obj3) { | |
7e08d4ef | 32460 | { |
0085ce49 RD |
32461 | arg4 = &temp4; |
32462 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7e08d4ef | 32463 | } |
0085ce49 RD |
32464 | } |
32465 | if (obj4) { | |
7e08d4ef | 32466 | { |
0085ce49 RD |
32467 | arg5 = &temp5; |
32468 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7e08d4ef | 32469 | } |
0085ce49 RD |
32470 | } |
32471 | if (obj5) { | |
32472 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
32473 | if (!SWIG_IsOK(ecode6)) { | |
32474 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'"); | |
32475 | } | |
32476 | arg6 = static_cast< long >(val6); | |
32477 | } | |
32478 | if (obj6) { | |
32479 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
32480 | if (!SWIG_IsOK(res7)) { | |
32481 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 32482 | } |
0085ce49 RD |
32483 | if (!argp7) { |
32484 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 32485 | } |
0085ce49 RD |
32486 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
32487 | } | |
32488 | if (obj7) { | |
7e08d4ef | 32489 | { |
0085ce49 RD |
32490 | arg8 = wxString_in_helper(obj7); |
32491 | if (arg8 == NULL) SWIG_fail; | |
32492 | temp8 = true; | |
7e08d4ef | 32493 | } |
0085ce49 RD |
32494 | } |
32495 | { | |
32496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32497 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
32498 | wxPyEndAllowThreads(__tstate); | |
32499 | if (PyErr_Occurred()) SWIG_fail; | |
32500 | } | |
32501 | { | |
32502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32503 | } | |
32504 | { | |
32505 | if (temp8) | |
32506 | delete arg8; | |
32507 | } | |
32508 | return resultobj; | |
32509 | fail: | |
32510 | { | |
32511 | if (temp8) | |
32512 | delete arg8; | |
32513 | } | |
32514 | return NULL; | |
32515 | } | |
32516 | ||
32517 | ||
32518 | SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32519 | PyObject *resultobj = 0; | |
32520 | wxListView *arg1 = (wxListView *) 0 ; | |
32521 | long arg2 ; | |
32522 | bool arg3 = (bool) true ; | |
32523 | void *argp1 = 0 ; | |
32524 | int res1 = 0 ; | |
32525 | long val2 ; | |
32526 | int ecode2 = 0 ; | |
32527 | bool val3 ; | |
32528 | int ecode3 = 0 ; | |
32529 | PyObject * obj0 = 0 ; | |
32530 | PyObject * obj1 = 0 ; | |
32531 | PyObject * obj2 = 0 ; | |
32532 | char * kwnames[] = { | |
32533 | (char *) "self",(char *) "n",(char *) "on", NULL | |
32534 | }; | |
32535 | ||
32536 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32537 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32538 | if (!SWIG_IsOK(res1)) { | |
32539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32540 | } | |
32541 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32542 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32543 | if (!SWIG_IsOK(ecode2)) { | |
32544 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'"); | |
32545 | } | |
32546 | arg2 = static_cast< long >(val2); | |
32547 | if (obj2) { | |
32548 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
32549 | if (!SWIG_IsOK(ecode3)) { | |
32550 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'"); | |
32551 | } | |
32552 | arg3 = static_cast< bool >(val3); | |
32553 | } | |
32554 | { | |
32555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32556 | (arg1)->Select(arg2,arg3); | |
32557 | wxPyEndAllowThreads(__tstate); | |
32558 | if (PyErr_Occurred()) SWIG_fail; | |
32559 | } | |
32560 | resultobj = SWIG_Py_Void(); | |
32561 | return resultobj; | |
32562 | fail: | |
32563 | return NULL; | |
32564 | } | |
32565 | ||
32566 | ||
32567 | SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32568 | PyObject *resultobj = 0; | |
32569 | wxListView *arg1 = (wxListView *) 0 ; | |
32570 | long arg2 ; | |
32571 | void *argp1 = 0 ; | |
32572 | int res1 = 0 ; | |
32573 | long val2 ; | |
32574 | int ecode2 = 0 ; | |
32575 | PyObject * obj0 = 0 ; | |
32576 | PyObject * obj1 = 0 ; | |
32577 | char * kwnames[] = { | |
32578 | (char *) "self",(char *) "index", NULL | |
32579 | }; | |
32580 | ||
32581 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail; | |
32582 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32583 | if (!SWIG_IsOK(res1)) { | |
32584 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32585 | } | |
32586 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32587 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32588 | if (!SWIG_IsOK(ecode2)) { | |
32589 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'"); | |
32590 | } | |
32591 | arg2 = static_cast< long >(val2); | |
32592 | { | |
32593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32594 | (arg1)->Focus(arg2); | |
32595 | wxPyEndAllowThreads(__tstate); | |
32596 | if (PyErr_Occurred()) SWIG_fail; | |
32597 | } | |
32598 | resultobj = SWIG_Py_Void(); | |
32599 | return resultobj; | |
32600 | fail: | |
32601 | return NULL; | |
7e08d4ef RD |
32602 | } |
32603 | ||
32604 | ||
0085ce49 RD |
32605 | SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32606 | PyObject *resultobj = 0; | |
32607 | wxListView *arg1 = (wxListView *) 0 ; | |
32608 | long result; | |
32609 | void *argp1 = 0 ; | |
32610 | int res1 = 0 ; | |
32611 | PyObject *swig_obj[1] ; | |
32612 | ||
32613 | if (!args) SWIG_fail; | |
32614 | swig_obj[0] = args; | |
32615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32616 | if (!SWIG_IsOK(res1)) { | |
32617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
32618 | } | |
32619 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32620 | { | |
32621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32622 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
32623 | wxPyEndAllowThreads(__tstate); | |
32624 | if (PyErr_Occurred()) SWIG_fail; | |
32625 | } | |
32626 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
32627 | return resultobj; | |
32628 | fail: | |
32629 | return NULL; | |
32630 | } | |
32631 | ||
32632 | ||
32633 | SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32634 | PyObject *resultobj = 0; | |
32635 | wxListView *arg1 = (wxListView *) 0 ; | |
32636 | long arg2 ; | |
32637 | long result; | |
32638 | void *argp1 = 0 ; | |
32639 | int res1 = 0 ; | |
32640 | long val2 ; | |
32641 | int ecode2 = 0 ; | |
32642 | PyObject * obj0 = 0 ; | |
32643 | PyObject * obj1 = 0 ; | |
32644 | char * kwnames[] = { | |
32645 | (char *) "self",(char *) "item", NULL | |
32646 | }; | |
32647 | ||
32648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
32649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32650 | if (!SWIG_IsOK(res1)) { | |
32651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
32652 | } | |
32653 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32654 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32655 | if (!SWIG_IsOK(ecode2)) { | |
32656 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'"); | |
32657 | } | |
32658 | arg2 = static_cast< long >(val2); | |
32659 | { | |
32660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32661 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
32662 | wxPyEndAllowThreads(__tstate); | |
32663 | if (PyErr_Occurred()) SWIG_fail; | |
32664 | } | |
32665 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
32666 | return resultobj; | |
32667 | fail: | |
32668 | return NULL; | |
7e08d4ef RD |
32669 | } |
32670 | ||
32671 | ||
0085ce49 RD |
32672 | SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32673 | PyObject *resultobj = 0; | |
32674 | wxListView *arg1 = (wxListView *) 0 ; | |
32675 | long result; | |
32676 | void *argp1 = 0 ; | |
32677 | int res1 = 0 ; | |
32678 | PyObject *swig_obj[1] ; | |
32679 | ||
32680 | if (!args) SWIG_fail; | |
32681 | swig_obj[0] = args; | |
32682 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32683 | if (!SWIG_IsOK(res1)) { | |
32684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
32685 | } | |
32686 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32687 | { | |
32688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32689 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
32690 | wxPyEndAllowThreads(__tstate); | |
32691 | if (PyErr_Occurred()) SWIG_fail; | |
32692 | } | |
32693 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
32694 | return resultobj; | |
32695 | fail: | |
32696 | return NULL; | |
32697 | } | |
32698 | ||
32699 | ||
32700 | SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32701 | PyObject *resultobj = 0; | |
32702 | wxListView *arg1 = (wxListView *) 0 ; | |
32703 | long arg2 ; | |
32704 | bool result; | |
32705 | void *argp1 = 0 ; | |
32706 | int res1 = 0 ; | |
32707 | long val2 ; | |
32708 | int ecode2 = 0 ; | |
32709 | PyObject * obj0 = 0 ; | |
32710 | PyObject * obj1 = 0 ; | |
32711 | char * kwnames[] = { | |
32712 | (char *) "self",(char *) "index", NULL | |
32713 | }; | |
32714 | ||
32715 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
32716 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32717 | if (!SWIG_IsOK(res1)) { | |
32718 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32719 | } | |
32720 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32721 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32722 | if (!SWIG_IsOK(ecode2)) { | |
32723 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'"); | |
32724 | } | |
32725 | arg2 = static_cast< long >(val2); | |
32726 | { | |
32727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32728 | result = (bool)(arg1)->IsSelected(arg2); | |
32729 | wxPyEndAllowThreads(__tstate); | |
32730 | if (PyErr_Occurred()) SWIG_fail; | |
32731 | } | |
32732 | { | |
32733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32734 | } | |
32735 | return resultobj; | |
32736 | fail: | |
32737 | return NULL; | |
32738 | } | |
32739 | ||
32740 | ||
32741 | SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32742 | PyObject *resultobj = 0; | |
32743 | wxListView *arg1 = (wxListView *) 0 ; | |
32744 | int arg2 ; | |
32745 | int arg3 ; | |
32746 | void *argp1 = 0 ; | |
32747 | int res1 = 0 ; | |
32748 | int val2 ; | |
32749 | int ecode2 = 0 ; | |
32750 | int val3 ; | |
32751 | int ecode3 = 0 ; | |
32752 | PyObject * obj0 = 0 ; | |
32753 | PyObject * obj1 = 0 ; | |
32754 | PyObject * obj2 = 0 ; | |
32755 | char * kwnames[] = { | |
32756 | (char *) "self",(char *) "col",(char *) "image", NULL | |
32757 | }; | |
32758 | ||
32759 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32760 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32761 | if (!SWIG_IsOK(res1)) { | |
32762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32763 | } | |
32764 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32765 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32766 | if (!SWIG_IsOK(ecode2)) { | |
32767 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'"); | |
32768 | } | |
32769 | arg2 = static_cast< int >(val2); | |
32770 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32771 | if (!SWIG_IsOK(ecode3)) { | |
32772 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'"); | |
32773 | } | |
32774 | arg3 = static_cast< int >(val3); | |
32775 | { | |
32776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32777 | (arg1)->SetColumnImage(arg2,arg3); | |
32778 | wxPyEndAllowThreads(__tstate); | |
32779 | if (PyErr_Occurred()) SWIG_fail; | |
32780 | } | |
32781 | resultobj = SWIG_Py_Void(); | |
32782 | return resultobj; | |
32783 | fail: | |
32784 | return NULL; | |
32785 | } | |
32786 | ||
32787 | ||
32788 | SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32789 | PyObject *resultobj = 0; | |
32790 | wxListView *arg1 = (wxListView *) 0 ; | |
32791 | int arg2 ; | |
32792 | void *argp1 = 0 ; | |
32793 | int res1 = 0 ; | |
32794 | int val2 ; | |
32795 | int ecode2 = 0 ; | |
32796 | PyObject * obj0 = 0 ; | |
32797 | PyObject * obj1 = 0 ; | |
32798 | char * kwnames[] = { | |
32799 | (char *) "self",(char *) "col", NULL | |
32800 | }; | |
32801 | ||
32802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
32803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32804 | if (!SWIG_IsOK(res1)) { | |
32805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32806 | } | |
32807 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32808 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32809 | if (!SWIG_IsOK(ecode2)) { | |
32810 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'"); | |
32811 | } | |
32812 | arg2 = static_cast< int >(val2); | |
32813 | { | |
32814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32815 | (arg1)->ClearColumnImage(arg2); | |
32816 | wxPyEndAllowThreads(__tstate); | |
32817 | if (PyErr_Occurred()) SWIG_fail; | |
32818 | } | |
32819 | resultobj = SWIG_Py_Void(); | |
32820 | return resultobj; | |
32821 | fail: | |
32822 | return NULL; | |
7e08d4ef RD |
32823 | } |
32824 | ||
32825 | ||
0085ce49 RD |
32826 | SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32827 | PyObject *obj; | |
32828 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32829 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj)); | |
32830 | return SWIG_Py_Void(); | |
7e08d4ef RD |
32831 | } |
32832 | ||
0085ce49 RD |
32833 | SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32834 | return SWIG_Python_InitShadowInstance(args); | |
32835 | } | |
7e08d4ef | 32836 | |
0085ce49 RD |
32837 | SWIGINTERN int TreeCtrlNameStr_set(PyObject *) { |
32838 | SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only."); | |
32839 | return 1; | |
7e08d4ef RD |
32840 | } |
32841 | ||
32842 | ||
0085ce49 RD |
32843 | SWIGINTERN PyObject *TreeCtrlNameStr_get(void) { |
32844 | PyObject *pyobj = 0; | |
32845 | ||
32846 | { | |
32847 | #if wxUSE_UNICODE | |
32848 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
32849 | #else | |
32850 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
32851 | #endif | |
32852 | } | |
32853 | return pyobj; | |
7e08d4ef RD |
32854 | } |
32855 | ||
32856 | ||
0085ce49 RD |
32857 | SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32858 | PyObject *resultobj = 0; | |
32859 | wxTreeItemId *result = 0 ; | |
32860 | ||
32861 | if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail; | |
32862 | { | |
32863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32864 | result = (wxTreeItemId *)new wxTreeItemId(); | |
32865 | wxPyEndAllowThreads(__tstate); | |
32866 | if (PyErr_Occurred()) SWIG_fail; | |
32867 | } | |
32868 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 ); | |
32869 | return resultobj; | |
32870 | fail: | |
32871 | return NULL; | |
d14a1e28 RD |
32872 | } |
32873 | ||
32874 | ||
0085ce49 RD |
32875 | SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32876 | PyObject *resultobj = 0; | |
32877 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32878 | void *argp1 = 0 ; | |
32879 | int res1 = 0 ; | |
32880 | PyObject *swig_obj[1] ; | |
32881 | ||
32882 | if (!args) SWIG_fail; | |
32883 | swig_obj[0] = args; | |
32884 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 ); | |
32885 | if (!SWIG_IsOK(res1)) { | |
32886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32887 | } | |
32888 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32889 | { | |
32890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32891 | delete arg1; | |
7e08d4ef | 32892 | |
0085ce49 RD |
32893 | wxPyEndAllowThreads(__tstate); |
32894 | if (PyErr_Occurred()) SWIG_fail; | |
32895 | } | |
32896 | resultobj = SWIG_Py_Void(); | |
32897 | return resultobj; | |
32898 | fail: | |
32899 | return NULL; | |
7e08d4ef RD |
32900 | } |
32901 | ||
32902 | ||
0085ce49 RD |
32903 | SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32904 | PyObject *resultobj = 0; | |
32905 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32906 | bool result; | |
32907 | void *argp1 = 0 ; | |
32908 | int res1 = 0 ; | |
32909 | PyObject *swig_obj[1] ; | |
32910 | ||
32911 | if (!args) SWIG_fail; | |
32912 | swig_obj[0] = args; | |
32913 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32914 | if (!SWIG_IsOK(res1)) { | |
32915 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'"); | |
32916 | } | |
32917 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32918 | { | |
32919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32920 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
32921 | wxPyEndAllowThreads(__tstate); | |
32922 | if (PyErr_Occurred()) SWIG_fail; | |
32923 | } | |
32924 | { | |
32925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32926 | } | |
32927 | return resultobj; | |
32928 | fail: | |
32929 | return NULL; | |
32930 | } | |
32931 | ||
32932 | ||
32933 | SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32934 | PyObject *resultobj = 0; | |
32935 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32936 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
32937 | bool result; | |
32938 | void *argp1 = 0 ; | |
32939 | int res1 = 0 ; | |
32940 | void *argp2 = 0 ; | |
32941 | int res2 = 0 ; | |
32942 | PyObject * obj0 = 0 ; | |
32943 | PyObject * obj1 = 0 ; | |
32944 | char * kwnames[] = { | |
32945 | (char *) "self",(char *) "other", NULL | |
32946 | }; | |
32947 | ||
32948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
32949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32950 | if (!SWIG_IsOK(res1)) { | |
32951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32952 | } | |
32953 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32954 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32955 | if (!SWIG_IsOK(res2)) { | |
32956 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'"); | |
32957 | } | |
32958 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32959 | { | |
32960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32961 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); | |
32962 | wxPyEndAllowThreads(__tstate); | |
32963 | if (PyErr_Occurred()) SWIG_fail; | |
32964 | } | |
32965 | { | |
32966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32967 | } | |
32968 | return resultobj; | |
32969 | fail: | |
32970 | return NULL; | |
32971 | } | |
32972 | ||
32973 | ||
32974 | SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32975 | PyObject *resultobj = 0; | |
32976 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32977 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
32978 | bool result; | |
32979 | void *argp1 = 0 ; | |
32980 | int res1 = 0 ; | |
32981 | void *argp2 = 0 ; | |
32982 | int res2 = 0 ; | |
32983 | PyObject * obj0 = 0 ; | |
32984 | PyObject * obj1 = 0 ; | |
32985 | char * kwnames[] = { | |
32986 | (char *) "self",(char *) "other", NULL | |
32987 | }; | |
32988 | ||
32989 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
32990 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32991 | if (!SWIG_IsOK(res1)) { | |
32992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32993 | } | |
32994 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32995 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32996 | if (!SWIG_IsOK(res2)) { | |
32997 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'"); | |
32998 | } | |
32999 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33000 | { | |
33001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33002 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); | |
33003 | wxPyEndAllowThreads(__tstate); | |
33004 | if (PyErr_Occurred()) SWIG_fail; | |
33005 | } | |
33006 | { | |
33007 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33008 | } | |
33009 | return resultobj; | |
33010 | fail: | |
33011 | return NULL; | |
7e08d4ef RD |
33012 | } |
33013 | ||
33014 | ||
0085ce49 RD |
33015 | SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33016 | PyObject *resultobj = 0; | |
33017 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
33018 | void *arg2 = (void *) 0 ; | |
33019 | void *argp1 = 0 ; | |
33020 | int res1 = 0 ; | |
33021 | int res2 ; | |
33022 | PyObject *swig_obj[2] ; | |
33023 | ||
33024 | if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail; | |
33025 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
33026 | if (!SWIG_IsOK(res1)) { | |
33027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
33028 | } | |
33029 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
33030 | res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); | |
33031 | if (!SWIG_IsOK(res2)) { | |
33032 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'"); | |
33033 | } | |
33034 | if (arg1) (arg1)->m_pItem = arg2; | |
33035 | ||
33036 | resultobj = SWIG_Py_Void(); | |
33037 | return resultobj; | |
33038 | fail: | |
33039 | return NULL; | |
7e08d4ef RD |
33040 | } |
33041 | ||
33042 | ||
0085ce49 RD |
33043 | SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33044 | PyObject *resultobj = 0; | |
33045 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
33046 | void *result = 0 ; | |
33047 | void *argp1 = 0 ; | |
33048 | int res1 = 0 ; | |
33049 | PyObject *swig_obj[1] ; | |
33050 | ||
33051 | if (!args) SWIG_fail; | |
33052 | swig_obj[0] = args; | |
33053 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
33054 | if (!SWIG_IsOK(res1)) { | |
33055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
33056 | } | |
33057 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
33058 | result = (void *) ((arg1)->m_pItem); | |
33059 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
33060 | return resultobj; | |
33061 | fail: | |
33062 | return NULL; | |
7e08d4ef RD |
33063 | } |
33064 | ||
33065 | ||
0085ce49 RD |
33066 | SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33067 | PyObject *obj; | |
33068 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33069 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj)); | |
33070 | return SWIG_Py_Void(); | |
7e08d4ef RD |
33071 | } |
33072 | ||
0085ce49 RD |
33073 | SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33074 | return SWIG_Python_InitShadowInstance(args); | |
33075 | } | |
7e08d4ef | 33076 | |
0085ce49 RD |
33077 | SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
33078 | PyObject *resultobj = 0; | |
33079 | PyObject *arg1 = (PyObject *) NULL ; | |
33080 | wxPyTreeItemData *result = 0 ; | |
33081 | PyObject * obj0 = 0 ; | |
33082 | char * kwnames[] = { | |
33083 | (char *) "obj", NULL | |
33084 | }; | |
33085 | ||
33086 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail; | |
33087 | if (obj0) { | |
33088 | arg1 = obj0; | |
33089 | } | |
33090 | { | |
33091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33092 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
33093 | wxPyEndAllowThreads(__tstate); | |
33094 | if (PyErr_Occurred()) SWIG_fail; | |
33095 | } | |
33096 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 ); | |
33097 | return resultobj; | |
33098 | fail: | |
33099 | return NULL; | |
7e08d4ef RD |
33100 | } |
33101 | ||
33102 | ||
0085ce49 RD |
33103 | SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33104 | PyObject *resultobj = 0; | |
33105 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33106 | void *argp1 = 0 ; | |
33107 | int res1 = 0 ; | |
33108 | PyObject *swig_obj[1] ; | |
33109 | ||
33110 | if (!args) SWIG_fail; | |
33111 | swig_obj[0] = args; | |
33112 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
33113 | if (!SWIG_IsOK(res1)) { | |
33114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33115 | } | |
33116 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33117 | { | |
33118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33119 | delete arg1; | |
1fbf26be | 33120 | |
0085ce49 RD |
33121 | wxPyEndAllowThreads(__tstate); |
33122 | if (PyErr_Occurred()) SWIG_fail; | |
33123 | } | |
33124 | resultobj = SWIG_Py_Void(); | |
33125 | return resultobj; | |
33126 | fail: | |
33127 | return NULL; | |
1fbf26be RD |
33128 | } |
33129 | ||
33130 | ||
0085ce49 RD |
33131 | SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33132 | PyObject *resultobj = 0; | |
33133 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33134 | PyObject *result = 0 ; | |
33135 | void *argp1 = 0 ; | |
33136 | int res1 = 0 ; | |
33137 | PyObject *swig_obj[1] ; | |
33138 | ||
33139 | if (!args) SWIG_fail; | |
33140 | swig_obj[0] = args; | |
33141 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33142 | if (!SWIG_IsOK(res1)) { | |
33143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33144 | } | |
33145 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33146 | { | |
33147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33148 | result = (PyObject *)(arg1)->GetData(); | |
33149 | wxPyEndAllowThreads(__tstate); | |
33150 | if (PyErr_Occurred()) SWIG_fail; | |
33151 | } | |
33152 | resultobj = result; | |
33153 | return resultobj; | |
33154 | fail: | |
33155 | return NULL; | |
33156 | } | |
33157 | ||
33158 | ||
33159 | SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33160 | PyObject *resultobj = 0; | |
33161 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33162 | PyObject *arg2 = (PyObject *) 0 ; | |
33163 | void *argp1 = 0 ; | |
33164 | int res1 = 0 ; | |
33165 | PyObject * obj0 = 0 ; | |
33166 | PyObject * obj1 = 0 ; | |
33167 | char * kwnames[] = { | |
33168 | (char *) "self",(char *) "obj", NULL | |
33169 | }; | |
33170 | ||
33171 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
33172 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33173 | if (!SWIG_IsOK(res1)) { | |
33174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33175 | } | |
33176 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33177 | arg2 = obj1; | |
33178 | { | |
33179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33180 | (arg1)->SetData(arg2); | |
33181 | wxPyEndAllowThreads(__tstate); | |
33182 | if (PyErr_Occurred()) SWIG_fail; | |
33183 | } | |
33184 | resultobj = SWIG_Py_Void(); | |
33185 | return resultobj; | |
33186 | fail: | |
33187 | return NULL; | |
d14a1e28 RD |
33188 | } |
33189 | ||
33190 | ||
0085ce49 RD |
33191 | SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33192 | PyObject *resultobj = 0; | |
33193 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33194 | wxTreeItemId *result = 0 ; | |
33195 | void *argp1 = 0 ; | |
33196 | int res1 = 0 ; | |
33197 | PyObject *swig_obj[1] ; | |
33198 | ||
33199 | if (!args) SWIG_fail; | |
33200 | swig_obj[0] = args; | |
33201 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33202 | if (!SWIG_IsOK(res1)) { | |
33203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33204 | } | |
33205 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33206 | { | |
33207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2ef75293 | 33208 | { |
0085ce49 RD |
33209 | wxTreeItemId const &_result_ref = (arg1)->GetId(); |
33210 | result = (wxTreeItemId *) &_result_ref; | |
2ef75293 | 33211 | } |
0085ce49 RD |
33212 | wxPyEndAllowThreads(__tstate); |
33213 | if (PyErr_Occurred()) SWIG_fail; | |
33214 | } | |
33215 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
33216 | return resultobj; | |
33217 | fail: | |
33218 | return NULL; | |
33219 | } | |
33220 | ||
33221 | ||
33222 | SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33223 | PyObject *resultobj = 0; | |
33224 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33225 | wxTreeItemId *arg2 = 0 ; | |
33226 | void *argp1 = 0 ; | |
33227 | int res1 = 0 ; | |
33228 | void *argp2 = 0 ; | |
33229 | int res2 = 0 ; | |
33230 | PyObject * obj0 = 0 ; | |
33231 | PyObject * obj1 = 0 ; | |
33232 | char * kwnames[] = { | |
33233 | (char *) "self",(char *) "id", NULL | |
33234 | }; | |
33235 | ||
33236 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
33237 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33238 | if (!SWIG_IsOK(res1)) { | |
33239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33240 | } | |
33241 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33242 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33243 | if (!SWIG_IsOK(res2)) { | |
33244 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33245 | } | |
33246 | if (!argp2) { | |
33247 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33248 | } | |
33249 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33250 | { | |
33251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33252 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
33253 | wxPyEndAllowThreads(__tstate); | |
33254 | if (PyErr_Occurred()) SWIG_fail; | |
33255 | } | |
33256 | resultobj = SWIG_Py_Void(); | |
33257 | return resultobj; | |
33258 | fail: | |
33259 | return NULL; | |
2ef75293 RD |
33260 | } |
33261 | ||
33262 | ||
0085ce49 RD |
33263 | SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33264 | PyObject *resultobj = 0; | |
33265 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33266 | void *argp1 = 0 ; | |
33267 | int res1 = 0 ; | |
33268 | PyObject *swig_obj[1] ; | |
33269 | ||
33270 | if (!args) SWIG_fail; | |
33271 | swig_obj[0] = args; | |
33272 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33273 | if (!SWIG_IsOK(res1)) { | |
33274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33275 | } | |
33276 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33277 | { | |
33278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33279 | wxPyTreeItemData_Destroy(arg1); | |
33280 | wxPyEndAllowThreads(__tstate); | |
33281 | if (PyErr_Occurred()) SWIG_fail; | |
33282 | } | |
33283 | resultobj = SWIG_Py_Void(); | |
33284 | return resultobj; | |
33285 | fail: | |
33286 | return NULL; | |
2ef75293 RD |
33287 | } |
33288 | ||
33289 | ||
0085ce49 RD |
33290 | SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33291 | PyObject *obj; | |
33292 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33293 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj)); | |
33294 | return SWIG_Py_Void(); | |
2ef75293 RD |
33295 | } |
33296 | ||
0085ce49 RD |
33297 | SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33298 | return SWIG_Python_InitShadowInstance(args); | |
33299 | } | |
2ef75293 | 33300 | |
b02396e8 RD |
33301 | SWIGINTERN int NullTreeItemId_set(PyObject *_val) { |
33302 | { | |
33303 | void *argp = 0; | |
33304 | int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33305 | if (!SWIG_IsOK(res)) { | |
33306 | SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'"); | |
33307 | } | |
33308 | if (!argp) { | |
33309 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'"); | |
33310 | } else { | |
33311 | wxTreeItemId * temp; | |
33312 | temp = reinterpret_cast< wxTreeItemId * >(argp); | |
33313 | wxNullTreeItemId = *temp; | |
33314 | if (SWIG_IsNewObj(res)) delete temp; | |
33315 | } | |
33316 | } | |
33317 | return 0; | |
33318 | fail: | |
33319 | return 1; | |
33320 | } | |
33321 | ||
33322 | ||
33323 | SWIGINTERN PyObject *NullTreeItemId_get(void) { | |
33324 | PyObject *pyobj = 0; | |
33325 | ||
33326 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 ); | |
33327 | return pyobj; | |
33328 | } | |
33329 | ||
33330 | ||
33331 | SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
0085ce49 RD |
33332 | PyObject *resultobj = 0; |
33333 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
33334 | int arg2 = (int) 0 ; | |
33335 | wxTreeEvent *result = 0 ; | |
33336 | int val1 ; | |
33337 | int ecode1 = 0 ; | |
33338 | int val2 ; | |
33339 | int ecode2 = 0 ; | |
0085ce49 | 33340 | |
b02396e8 RD |
33341 | if ((nobjs < 0) || (nobjs > 2)) SWIG_fail; |
33342 | if (swig_obj[0]) { | |
33343 | ecode1 = SWIG_AsVal_int(swig_obj[0], &val1); | |
0085ce49 RD |
33344 | if (!SWIG_IsOK(ecode1)) { |
33345 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
33346 | } | |
33347 | arg1 = static_cast< wxEventType >(val1); | |
33348 | } | |
b02396e8 RD |
33349 | if (swig_obj[1]) { |
33350 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
0085ce49 RD |
33351 | if (!SWIG_IsOK(ecode2)) { |
33352 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'"); | |
33353 | } | |
33354 | arg2 = static_cast< int >(val2); | |
33355 | } | |
33356 | { | |
33357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33358 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
33359 | wxPyEndAllowThreads(__tstate); | |
33360 | if (PyErr_Occurred()) SWIG_fail; | |
33361 | } | |
33362 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 ); | |
33363 | return resultobj; | |
33364 | fail: | |
33365 | return NULL; | |
70b7a5fe RD |
33366 | } |
33367 | ||
33368 | ||
b02396e8 RD |
33369 | SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
33370 | PyObject *resultobj = 0; | |
33371 | wxEventType arg1 ; | |
33372 | wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ; | |
33373 | wxTreeItemId &arg3_defvalue = wxNullTreeItemId ; | |
33374 | wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ; | |
33375 | wxTreeEvent *result = 0 ; | |
33376 | int val1 ; | |
33377 | int ecode1 = 0 ; | |
33378 | void *argp2 = 0 ; | |
33379 | int res2 = 0 ; | |
33380 | void *argp3 = 0 ; | |
33381 | int res3 = 0 ; | |
33382 | ||
33383 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
33384 | ecode1 = SWIG_AsVal_int(swig_obj[0], &val1); | |
33385 | if (!SWIG_IsOK(ecode1)) { | |
33386 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
33387 | } | |
33388 | arg1 = static_cast< wxEventType >(val1); | |
33389 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33390 | if (!SWIG_IsOK(res2)) { | |
33391 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'"); | |
33392 | } | |
33393 | arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2); | |
33394 | if (swig_obj[2]) { | |
33395 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 ); | |
33396 | if (!SWIG_IsOK(res3)) { | |
33397 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'"); | |
33398 | } | |
33399 | if (!argp3) { | |
33400 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'"); | |
33401 | } | |
33402 | arg3 = reinterpret_cast< wxTreeItemId * >(argp3); | |
33403 | } | |
33404 | { | |
33405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33406 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3); | |
33407 | wxPyEndAllowThreads(__tstate); | |
33408 | if (PyErr_Occurred()) SWIG_fail; | |
33409 | } | |
33410 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 ); | |
33411 | return resultobj; | |
33412 | fail: | |
33413 | return NULL; | |
33414 | } | |
33415 | ||
33416 | ||
33417 | SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) { | |
33418 | int argc; | |
33419 | PyObject *argv[4]; | |
33420 | ||
33421 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail; | |
33422 | --argc; | |
33423 | if ((argc >= 0) && (argc <= 2)) { | |
33424 | int _v = 0; | |
33425 | if (argc > 1) { | |
33426 | { | |
33427 | { | |
33428 | int res = SWIG_AsVal_int(argv[1], NULL); | |
33429 | _v = SWIG_CheckState(res); | |
33430 | } | |
33431 | } | |
33432 | if (!_v) goto check_1; | |
33433 | } | |
33434 | return _wrap_new_TreeEvent__SWIG_0(self, argc, argv); | |
33435 | } | |
33436 | check_1: | |
33437 | ||
33438 | if ((argc >= 2) && (argc <= 3)) { | |
33439 | return _wrap_new_TreeEvent__SWIG_1(self, argc, argv); | |
33440 | } | |
33441 | ||
33442 | fail: | |
33443 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'"); | |
33444 | return NULL; | |
33445 | } | |
33446 | ||
33447 | ||
0085ce49 RD |
33448 | SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33449 | PyObject *resultobj = 0; | |
33450 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33451 | wxTreeItemId result; | |
33452 | void *argp1 = 0 ; | |
33453 | int res1 = 0 ; | |
33454 | PyObject *swig_obj[1] ; | |
33455 | ||
33456 | if (!args) SWIG_fail; | |
33457 | swig_obj[0] = args; | |
33458 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33459 | if (!SWIG_IsOK(res1)) { | |
33460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33461 | } | |
33462 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33463 | { | |
33464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33465 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
33466 | wxPyEndAllowThreads(__tstate); | |
33467 | if (PyErr_Occurred()) SWIG_fail; | |
33468 | } | |
33469 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
33470 | return resultobj; | |
33471 | fail: | |
33472 | return NULL; | |
33473 | } | |
33474 | ||
33475 | ||
33476 | SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33477 | PyObject *resultobj = 0; | |
33478 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33479 | wxTreeItemId *arg2 = 0 ; | |
33480 | void *argp1 = 0 ; | |
33481 | int res1 = 0 ; | |
33482 | void *argp2 = 0 ; | |
33483 | int res2 = 0 ; | |
33484 | PyObject * obj0 = 0 ; | |
33485 | PyObject * obj1 = 0 ; | |
33486 | char * kwnames[] = { | |
33487 | (char *) "self",(char *) "item", NULL | |
33488 | }; | |
33489 | ||
33490 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
33491 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33492 | if (!SWIG_IsOK(res1)) { | |
33493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33494 | } | |
33495 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33496 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33497 | if (!SWIG_IsOK(res2)) { | |
33498 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33499 | } | |
33500 | if (!argp2) { | |
33501 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33502 | } | |
33503 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33504 | { | |
33505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33506 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
33507 | wxPyEndAllowThreads(__tstate); | |
33508 | if (PyErr_Occurred()) SWIG_fail; | |
33509 | } | |
33510 | resultobj = SWIG_Py_Void(); | |
33511 | return resultobj; | |
33512 | fail: | |
33513 | return NULL; | |
2ef75293 RD |
33514 | } |
33515 | ||
33516 | ||
0085ce49 RD |
33517 | SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33518 | PyObject *resultobj = 0; | |
33519 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33520 | wxTreeItemId result; | |
33521 | void *argp1 = 0 ; | |
33522 | int res1 = 0 ; | |
33523 | PyObject *swig_obj[1] ; | |
33524 | ||
33525 | if (!args) SWIG_fail; | |
33526 | swig_obj[0] = args; | |
33527 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33528 | if (!SWIG_IsOK(res1)) { | |
33529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33530 | } | |
33531 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33532 | { | |
33533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33534 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
33535 | wxPyEndAllowThreads(__tstate); | |
33536 | if (PyErr_Occurred()) SWIG_fail; | |
33537 | } | |
33538 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
33539 | return resultobj; | |
33540 | fail: | |
33541 | return NULL; | |
33542 | } | |
33543 | ||
33544 | ||
33545 | SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33546 | PyObject *resultobj = 0; | |
33547 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33548 | wxTreeItemId *arg2 = 0 ; | |
33549 | void *argp1 = 0 ; | |
33550 | int res1 = 0 ; | |
33551 | void *argp2 = 0 ; | |
33552 | int res2 = 0 ; | |
33553 | PyObject * obj0 = 0 ; | |
33554 | PyObject * obj1 = 0 ; | |
33555 | char * kwnames[] = { | |
33556 | (char *) "self",(char *) "item", NULL | |
33557 | }; | |
33558 | ||
33559 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
33560 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33561 | if (!SWIG_IsOK(res1)) { | |
33562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33563 | } | |
33564 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33565 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33566 | if (!SWIG_IsOK(res2)) { | |
33567 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33568 | } | |
33569 | if (!argp2) { | |
33570 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33571 | } | |
33572 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33573 | { | |
33574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33575 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
33576 | wxPyEndAllowThreads(__tstate); | |
33577 | if (PyErr_Occurred()) SWIG_fail; | |
33578 | } | |
33579 | resultobj = SWIG_Py_Void(); | |
33580 | return resultobj; | |
33581 | fail: | |
33582 | return NULL; | |
2ef75293 RD |
33583 | } |
33584 | ||
33585 | ||
0085ce49 RD |
33586 | SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33587 | PyObject *resultobj = 0; | |
33588 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33589 | wxPoint result; | |
33590 | void *argp1 = 0 ; | |
33591 | int res1 = 0 ; | |
33592 | PyObject *swig_obj[1] ; | |
33593 | ||
33594 | if (!args) SWIG_fail; | |
33595 | swig_obj[0] = args; | |
33596 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33597 | if (!SWIG_IsOK(res1)) { | |
33598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33599 | } | |
33600 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33601 | { | |
33602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33603 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
33604 | wxPyEndAllowThreads(__tstate); | |
33605 | if (PyErr_Occurred()) SWIG_fail; | |
33606 | } | |
33607 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
33608 | return resultobj; | |
33609 | fail: | |
33610 | return NULL; | |
33611 | } | |
33612 | ||
33613 | ||
33614 | SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33615 | PyObject *resultobj = 0; | |
33616 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33617 | wxPoint *arg2 = 0 ; | |
33618 | void *argp1 = 0 ; | |
33619 | int res1 = 0 ; | |
33620 | wxPoint temp2 ; | |
33621 | PyObject * obj0 = 0 ; | |
33622 | PyObject * obj1 = 0 ; | |
33623 | char * kwnames[] = { | |
33624 | (char *) "self",(char *) "pt", NULL | |
33625 | }; | |
33626 | ||
33627 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
33628 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33629 | if (!SWIG_IsOK(res1)) { | |
33630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33631 | } | |
33632 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33633 | { | |
33634 | arg2 = &temp2; | |
33635 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33636 | } | |
33637 | { | |
33638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33639 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
33640 | wxPyEndAllowThreads(__tstate); | |
33641 | if (PyErr_Occurred()) SWIG_fail; | |
33642 | } | |
33643 | resultobj = SWIG_Py_Void(); | |
33644 | return resultobj; | |
33645 | fail: | |
33646 | return NULL; | |
d14a1e28 RD |
33647 | } |
33648 | ||
33649 | ||
0085ce49 RD |
33650 | SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33651 | PyObject *resultobj = 0; | |
33652 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33653 | wxKeyEvent *result = 0 ; | |
33654 | void *argp1 = 0 ; | |
33655 | int res1 = 0 ; | |
33656 | PyObject *swig_obj[1] ; | |
33657 | ||
33658 | if (!args) SWIG_fail; | |
33659 | swig_obj[0] = args; | |
33660 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33661 | if (!SWIG_IsOK(res1)) { | |
33662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33663 | } | |
33664 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33665 | { | |
33666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 33667 | { |
0085ce49 RD |
33668 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); |
33669 | result = (wxKeyEvent *) &_result_ref; | |
d14a1e28 | 33670 | } |
0085ce49 RD |
33671 | wxPyEndAllowThreads(__tstate); |
33672 | if (PyErr_Occurred()) SWIG_fail; | |
33673 | } | |
33674 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 ); | |
33675 | return resultobj; | |
33676 | fail: | |
33677 | return NULL; | |
d14a1e28 RD |
33678 | } |
33679 | ||
33680 | ||
0085ce49 RD |
33681 | SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33682 | PyObject *resultobj = 0; | |
33683 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33684 | int result; | |
33685 | void *argp1 = 0 ; | |
33686 | int res1 = 0 ; | |
33687 | PyObject *swig_obj[1] ; | |
33688 | ||
33689 | if (!args) SWIG_fail; | |
33690 | swig_obj[0] = args; | |
33691 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33692 | if (!SWIG_IsOK(res1)) { | |
33693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33694 | } | |
33695 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33696 | { | |
33697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33698 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
33699 | wxPyEndAllowThreads(__tstate); | |
33700 | if (PyErr_Occurred()) SWIG_fail; | |
33701 | } | |
33702 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33703 | return resultobj; | |
33704 | fail: | |
33705 | return NULL; | |
33706 | } | |
33707 | ||
33708 | ||
33709 | SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33710 | PyObject *resultobj = 0; | |
33711 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33712 | wxKeyEvent *arg2 = 0 ; | |
33713 | void *argp1 = 0 ; | |
33714 | int res1 = 0 ; | |
33715 | void *argp2 = 0 ; | |
33716 | int res2 = 0 ; | |
33717 | PyObject * obj0 = 0 ; | |
33718 | PyObject * obj1 = 0 ; | |
33719 | char * kwnames[] = { | |
33720 | (char *) "self",(char *) "evt", NULL | |
33721 | }; | |
33722 | ||
33723 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
33724 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33725 | if (!SWIG_IsOK(res1)) { | |
33726 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33727 | } | |
33728 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33729 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0); | |
33730 | if (!SWIG_IsOK(res2)) { | |
33731 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
33732 | } | |
33733 | if (!argp2) { | |
33734 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
33735 | } | |
33736 | arg2 = reinterpret_cast< wxKeyEvent * >(argp2); | |
33737 | { | |
33738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33739 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
33740 | wxPyEndAllowThreads(__tstate); | |
33741 | if (PyErr_Occurred()) SWIG_fail; | |
33742 | } | |
33743 | resultobj = SWIG_Py_Void(); | |
33744 | return resultobj; | |
33745 | fail: | |
33746 | return NULL; | |
d14a1e28 RD |
33747 | } |
33748 | ||
33749 | ||
0085ce49 RD |
33750 | SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33751 | PyObject *resultobj = 0; | |
33752 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33753 | wxString *result = 0 ; | |
33754 | void *argp1 = 0 ; | |
33755 | int res1 = 0 ; | |
33756 | PyObject *swig_obj[1] ; | |
33757 | ||
33758 | if (!args) SWIG_fail; | |
33759 | swig_obj[0] = args; | |
33760 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33761 | if (!SWIG_IsOK(res1)) { | |
33762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33763 | } | |
33764 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33765 | { | |
33766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 33767 | { |
0085ce49 RD |
33768 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); |
33769 | result = (wxString *) &_result_ref; | |
093d3ff1 | 33770 | } |
0085ce49 RD |
33771 | wxPyEndAllowThreads(__tstate); |
33772 | if (PyErr_Occurred()) SWIG_fail; | |
33773 | } | |
33774 | { | |
33775 | #if wxUSE_UNICODE | |
33776 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33777 | #else | |
33778 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33779 | #endif | |
33780 | } | |
33781 | return resultobj; | |
33782 | fail: | |
33783 | return NULL; | |
33784 | } | |
33785 | ||
33786 | ||
33787 | SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33788 | PyObject *resultobj = 0; | |
33789 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33790 | wxString *arg2 = 0 ; | |
33791 | void *argp1 = 0 ; | |
33792 | int res1 = 0 ; | |
33793 | bool temp2 = false ; | |
33794 | PyObject * obj0 = 0 ; | |
33795 | PyObject * obj1 = 0 ; | |
33796 | char * kwnames[] = { | |
33797 | (char *) "self",(char *) "label", NULL | |
33798 | }; | |
33799 | ||
33800 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
33801 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33802 | if (!SWIG_IsOK(res1)) { | |
33803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33804 | } | |
33805 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33806 | { | |
33807 | arg2 = wxString_in_helper(obj1); | |
33808 | if (arg2 == NULL) SWIG_fail; | |
33809 | temp2 = true; | |
33810 | } | |
33811 | { | |
33812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33813 | (arg1)->SetLabel((wxString const &)*arg2); | |
33814 | wxPyEndAllowThreads(__tstate); | |
33815 | if (PyErr_Occurred()) SWIG_fail; | |
33816 | } | |
33817 | resultobj = SWIG_Py_Void(); | |
33818 | { | |
33819 | if (temp2) | |
33820 | delete arg2; | |
33821 | } | |
33822 | return resultobj; | |
33823 | fail: | |
33824 | { | |
33825 | if (temp2) | |
33826 | delete arg2; | |
33827 | } | |
33828 | return NULL; | |
d14a1e28 RD |
33829 | } |
33830 | ||
33831 | ||
0085ce49 RD |
33832 | SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33833 | PyObject *resultobj = 0; | |
33834 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33835 | bool result; | |
33836 | void *argp1 = 0 ; | |
33837 | int res1 = 0 ; | |
33838 | PyObject *swig_obj[1] ; | |
33839 | ||
33840 | if (!args) SWIG_fail; | |
33841 | swig_obj[0] = args; | |
33842 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33843 | if (!SWIG_IsOK(res1)) { | |
33844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33845 | } | |
33846 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33847 | { | |
33848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33849 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
33850 | wxPyEndAllowThreads(__tstate); | |
33851 | if (PyErr_Occurred()) SWIG_fail; | |
33852 | } | |
33853 | { | |
33854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33855 | } | |
33856 | return resultobj; | |
33857 | fail: | |
33858 | return NULL; | |
33859 | } | |
33860 | ||
33861 | ||
33862 | SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33863 | PyObject *resultobj = 0; | |
33864 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33865 | bool arg2 ; | |
33866 | void *argp1 = 0 ; | |
33867 | int res1 = 0 ; | |
33868 | bool val2 ; | |
33869 | int ecode2 = 0 ; | |
33870 | PyObject * obj0 = 0 ; | |
33871 | PyObject * obj1 = 0 ; | |
33872 | char * kwnames[] = { | |
33873 | (char *) "self",(char *) "editCancelled", NULL | |
33874 | }; | |
33875 | ||
33876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail; | |
33877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33878 | if (!SWIG_IsOK(res1)) { | |
33879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33880 | } | |
33881 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33882 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
33883 | if (!SWIG_IsOK(ecode2)) { | |
33884 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'"); | |
33885 | } | |
33886 | arg2 = static_cast< bool >(val2); | |
33887 | { | |
33888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33889 | (arg1)->SetEditCanceled(arg2); | |
33890 | wxPyEndAllowThreads(__tstate); | |
33891 | if (PyErr_Occurred()) SWIG_fail; | |
33892 | } | |
33893 | resultobj = SWIG_Py_Void(); | |
33894 | return resultobj; | |
33895 | fail: | |
33896 | return NULL; | |
33897 | } | |
33898 | ||
33899 | ||
33900 | SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33901 | PyObject *resultobj = 0; | |
33902 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33903 | wxString *arg2 = 0 ; | |
33904 | void *argp1 = 0 ; | |
33905 | int res1 = 0 ; | |
33906 | bool temp2 = false ; | |
33907 | PyObject * obj0 = 0 ; | |
33908 | PyObject * obj1 = 0 ; | |
33909 | char * kwnames[] = { | |
33910 | (char *) "self",(char *) "toolTip", NULL | |
33911 | }; | |
33912 | ||
33913 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail; | |
33914 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33915 | if (!SWIG_IsOK(res1)) { | |
33916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33917 | } | |
33918 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33919 | { | |
33920 | arg2 = wxString_in_helper(obj1); | |
33921 | if (arg2 == NULL) SWIG_fail; | |
33922 | temp2 = true; | |
33923 | } | |
33924 | { | |
33925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33926 | (arg1)->SetToolTip((wxString const &)*arg2); | |
33927 | wxPyEndAllowThreads(__tstate); | |
33928 | if (PyErr_Occurred()) SWIG_fail; | |
33929 | } | |
33930 | resultobj = SWIG_Py_Void(); | |
33931 | { | |
33932 | if (temp2) | |
33933 | delete arg2; | |
33934 | } | |
33935 | return resultobj; | |
33936 | fail: | |
33937 | { | |
33938 | if (temp2) | |
33939 | delete arg2; | |
33940 | } | |
33941 | return NULL; | |
d14a1e28 RD |
33942 | } |
33943 | ||
33944 | ||
0085ce49 RD |
33945 | SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33946 | PyObject *resultobj = 0; | |
33947 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33948 | wxString result; | |
33949 | void *argp1 = 0 ; | |
33950 | int res1 = 0 ; | |
33951 | PyObject *swig_obj[1] ; | |
33952 | ||
33953 | if (!args) SWIG_fail; | |
33954 | swig_obj[0] = args; | |
33955 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33956 | if (!SWIG_IsOK(res1)) { | |
33957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33958 | } | |
33959 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33960 | { | |
33961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33962 | result = (arg1)->GetToolTip(); | |
33963 | wxPyEndAllowThreads(__tstate); | |
33964 | if (PyErr_Occurred()) SWIG_fail; | |
33965 | } | |
33966 | { | |
33967 | #if wxUSE_UNICODE | |
33968 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33969 | #else | |
33970 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33971 | #endif | |
33972 | } | |
33973 | return resultobj; | |
33974 | fail: | |
33975 | return NULL; | |
33976 | } | |
33977 | ||
33978 | ||
33979 | SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33980 | PyObject *obj; | |
33981 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33982 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj)); | |
33983 | return SWIG_Py_Void(); | |
33984 | } | |
33985 | ||
33986 | SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33987 | return SWIG_Python_InitShadowInstance(args); | |
33988 | } | |
33989 | ||
33990 | SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33991 | PyObject *resultobj = 0; | |
33992 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33993 | int arg2 = (int) -1 ; | |
33994 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
33995 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33996 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33997 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33998 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
33999 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
34000 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
34001 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
34002 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
34003 | wxPyTreeCtrl *result = 0 ; | |
34004 | void *argp1 = 0 ; | |
34005 | int res1 = 0 ; | |
34006 | int val2 ; | |
34007 | int ecode2 = 0 ; | |
34008 | wxPoint temp3 ; | |
34009 | wxSize temp4 ; | |
34010 | long val5 ; | |
34011 | int ecode5 = 0 ; | |
34012 | void *argp6 = 0 ; | |
34013 | int res6 = 0 ; | |
34014 | bool temp7 = false ; | |
34015 | PyObject * obj0 = 0 ; | |
34016 | PyObject * obj1 = 0 ; | |
34017 | PyObject * obj2 = 0 ; | |
34018 | PyObject * obj3 = 0 ; | |
34019 | PyObject * obj4 = 0 ; | |
34020 | PyObject * obj5 = 0 ; | |
34021 | PyObject * obj6 = 0 ; | |
34022 | char * kwnames[] = { | |
34023 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34024 | }; | |
34025 | ||
34026 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
34027 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34028 | if (!SWIG_IsOK(res1)) { | |
34029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
34030 | } | |
34031 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
34032 | if (obj1) { | |
34033 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34034 | if (!SWIG_IsOK(ecode2)) { | |
34035 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'"); | |
34036 | } | |
34037 | arg2 = static_cast< int >(val2); | |
34038 | } | |
34039 | if (obj2) { | |
d14a1e28 | 34040 | { |
0085ce49 RD |
34041 | arg3 = &temp3; |
34042 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 34043 | } |
0085ce49 RD |
34044 | } |
34045 | if (obj3) { | |
093d3ff1 | 34046 | { |
0085ce49 RD |
34047 | arg4 = &temp4; |
34048 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 34049 | } |
0085ce49 RD |
34050 | } |
34051 | if (obj4) { | |
34052 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
34053 | if (!SWIG_IsOK(ecode5)) { | |
34054 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'"); | |
34055 | } | |
34056 | arg5 = static_cast< long >(val5); | |
34057 | } | |
34058 | if (obj5) { | |
34059 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
34060 | if (!SWIG_IsOK(res6)) { | |
34061 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 34062 | } |
0085ce49 RD |
34063 | if (!argp6) { |
34064 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 34065 | } |
0085ce49 RD |
34066 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
34067 | } | |
34068 | if (obj6) { | |
4f89f6a3 | 34069 | { |
0085ce49 RD |
34070 | arg7 = wxString_in_helper(obj6); |
34071 | if (arg7 == NULL) SWIG_fail; | |
34072 | temp7 = true; | |
4f89f6a3 | 34073 | } |
0085ce49 RD |
34074 | } |
34075 | { | |
34076 | if (!wxPyCheckForApp()) SWIG_fail; | |
34077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34078 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
34079 | wxPyEndAllowThreads(__tstate); | |
34080 | if (PyErr_Occurred()) SWIG_fail; | |
34081 | } | |
34082 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 ); | |
34083 | { | |
34084 | if (temp7) | |
34085 | delete arg7; | |
34086 | } | |
34087 | return resultobj; | |
34088 | fail: | |
34089 | { | |
34090 | if (temp7) | |
34091 | delete arg7; | |
34092 | } | |
34093 | return NULL; | |
d14a1e28 RD |
34094 | } |
34095 | ||
34096 | ||
0085ce49 RD |
34097 | SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34098 | PyObject *resultobj = 0; | |
34099 | wxPyTreeCtrl *result = 0 ; | |
34100 | ||
34101 | if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail; | |
34102 | { | |
34103 | if (!wxPyCheckForApp()) SWIG_fail; | |
34104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34105 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
34106 | wxPyEndAllowThreads(__tstate); | |
34107 | if (PyErr_Occurred()) SWIG_fail; | |
34108 | } | |
34109 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 ); | |
34110 | return resultobj; | |
34111 | fail: | |
34112 | return NULL; | |
34113 | } | |
34114 | ||
34115 | ||
34116 | SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34117 | PyObject *resultobj = 0; | |
34118 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34119 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34120 | int arg3 = (int) -1 ; | |
34121 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
34122 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
34123 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
34124 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
34125 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
34126 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
34127 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
34128 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
34129 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
34130 | bool result; | |
34131 | void *argp1 = 0 ; | |
34132 | int res1 = 0 ; | |
34133 | void *argp2 = 0 ; | |
34134 | int res2 = 0 ; | |
34135 | int val3 ; | |
34136 | int ecode3 = 0 ; | |
34137 | wxPoint temp4 ; | |
34138 | wxSize temp5 ; | |
34139 | long val6 ; | |
34140 | int ecode6 = 0 ; | |
34141 | void *argp7 = 0 ; | |
34142 | int res7 = 0 ; | |
34143 | bool temp8 = false ; | |
34144 | PyObject * obj0 = 0 ; | |
34145 | PyObject * obj1 = 0 ; | |
34146 | PyObject * obj2 = 0 ; | |
34147 | PyObject * obj3 = 0 ; | |
34148 | PyObject * obj4 = 0 ; | |
34149 | PyObject * obj5 = 0 ; | |
34150 | PyObject * obj6 = 0 ; | |
34151 | PyObject * obj7 = 0 ; | |
34152 | char * kwnames[] = { | |
34153 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34154 | }; | |
34155 | ||
34156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
34157 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34158 | if (!SWIG_IsOK(res1)) { | |
34159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34160 | } | |
34161 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34162 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34163 | if (!SWIG_IsOK(res2)) { | |
34164 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34165 | } | |
34166 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34167 | if (obj2) { | |
34168 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34169 | if (!SWIG_IsOK(ecode3)) { | |
34170 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
34171 | } | |
34172 | arg3 = static_cast< int >(val3); | |
34173 | } | |
34174 | if (obj3) { | |
4f89f6a3 | 34175 | { |
0085ce49 RD |
34176 | arg4 = &temp4; |
34177 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 34178 | } |
0085ce49 RD |
34179 | } |
34180 | if (obj4) { | |
d14a1e28 | 34181 | { |
0085ce49 RD |
34182 | arg5 = &temp5; |
34183 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 34184 | } |
0085ce49 RD |
34185 | } |
34186 | if (obj5) { | |
34187 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
34188 | if (!SWIG_IsOK(ecode6)) { | |
34189 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
34190 | } | |
34191 | arg6 = static_cast< long >(val6); | |
34192 | } | |
34193 | if (obj6) { | |
34194 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
34195 | if (!SWIG_IsOK(res7)) { | |
34196 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
4f89f6a3 | 34197 | } |
0085ce49 RD |
34198 | if (!argp7) { |
34199 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 34200 | } |
0085ce49 RD |
34201 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
34202 | } | |
34203 | if (obj7) { | |
4276dc52 | 34204 | { |
0085ce49 RD |
34205 | arg8 = wxString_in_helper(obj7); |
34206 | if (arg8 == NULL) SWIG_fail; | |
34207 | temp8 = true; | |
4276dc52 | 34208 | } |
0085ce49 RD |
34209 | } |
34210 | { | |
34211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34212 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
34213 | wxPyEndAllowThreads(__tstate); | |
34214 | if (PyErr_Occurred()) SWIG_fail; | |
34215 | } | |
34216 | { | |
34217 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34218 | } | |
34219 | { | |
34220 | if (temp8) | |
34221 | delete arg8; | |
34222 | } | |
34223 | return resultobj; | |
34224 | fail: | |
34225 | { | |
34226 | if (temp8) | |
34227 | delete arg8; | |
34228 | } | |
34229 | return NULL; | |
34230 | } | |
34231 | ||
34232 | ||
34233 | SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34234 | PyObject *resultobj = 0; | |
34235 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34236 | PyObject *arg2 = (PyObject *) 0 ; | |
34237 | PyObject *arg3 = (PyObject *) 0 ; | |
34238 | void *argp1 = 0 ; | |
34239 | int res1 = 0 ; | |
34240 | PyObject * obj0 = 0 ; | |
34241 | PyObject * obj1 = 0 ; | |
34242 | PyObject * obj2 = 0 ; | |
34243 | char * kwnames[] = { | |
34244 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
34245 | }; | |
34246 | ||
34247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34248 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34249 | if (!SWIG_IsOK(res1)) { | |
34250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34251 | } | |
34252 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34253 | arg2 = obj1; | |
34254 | arg3 = obj2; | |
34255 | { | |
34256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34257 | (arg1)->_setCallbackInfo(arg2,arg3); | |
34258 | wxPyEndAllowThreads(__tstate); | |
34259 | if (PyErr_Occurred()) SWIG_fail; | |
34260 | } | |
34261 | resultobj = SWIG_Py_Void(); | |
34262 | return resultobj; | |
34263 | fail: | |
34264 | return NULL; | |
d14a1e28 RD |
34265 | } |
34266 | ||
34267 | ||
0085ce49 RD |
34268 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34269 | PyObject *resultobj = 0; | |
34270 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
e9d6f3a4 | 34271 | unsigned int result; |
0085ce49 RD |
34272 | void *argp1 = 0 ; |
34273 | int res1 = 0 ; | |
34274 | PyObject *swig_obj[1] ; | |
34275 | ||
34276 | if (!args) SWIG_fail; | |
34277 | swig_obj[0] = args; | |
34278 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34279 | if (!SWIG_IsOK(res1)) { | |
34280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34281 | } | |
34282 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34283 | { | |
34284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e9d6f3a4 | 34285 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount(); |
0085ce49 RD |
34286 | wxPyEndAllowThreads(__tstate); |
34287 | if (PyErr_Occurred()) SWIG_fail; | |
34288 | } | |
e9d6f3a4 | 34289 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
0085ce49 RD |
34290 | return resultobj; |
34291 | fail: | |
34292 | return NULL; | |
d14a1e28 RD |
34293 | } |
34294 | ||
34295 | ||
0085ce49 RD |
34296 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34297 | PyObject *resultobj = 0; | |
34298 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34299 | unsigned int result; | |
34300 | void *argp1 = 0 ; | |
34301 | int res1 = 0 ; | |
34302 | PyObject *swig_obj[1] ; | |
34303 | ||
34304 | if (!args) SWIG_fail; | |
34305 | swig_obj[0] = args; | |
34306 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34307 | if (!SWIG_IsOK(res1)) { | |
34308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34309 | } | |
34310 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34311 | { | |
34312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34313 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
34314 | wxPyEndAllowThreads(__tstate); | |
34315 | if (PyErr_Occurred()) SWIG_fail; | |
34316 | } | |
34317 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); | |
34318 | return resultobj; | |
34319 | fail: | |
34320 | return NULL; | |
34321 | } | |
34322 | ||
34323 | ||
34324 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34325 | PyObject *resultobj = 0; | |
34326 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34327 | unsigned int arg2 ; | |
34328 | void *argp1 = 0 ; | |
34329 | int res1 = 0 ; | |
34330 | unsigned int val2 ; | |
34331 | int ecode2 = 0 ; | |
34332 | PyObject * obj0 = 0 ; | |
34333 | PyObject * obj1 = 0 ; | |
34334 | char * kwnames[] = { | |
34335 | (char *) "self",(char *) "indent", NULL | |
34336 | }; | |
34337 | ||
34338 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
34339 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34340 | if (!SWIG_IsOK(res1)) { | |
34341 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34342 | } | |
34343 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34344 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
34345 | if (!SWIG_IsOK(ecode2)) { | |
34346 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'"); | |
34347 | } | |
34348 | arg2 = static_cast< unsigned int >(val2); | |
34349 | { | |
34350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34351 | (arg1)->SetIndent(arg2); | |
34352 | wxPyEndAllowThreads(__tstate); | |
34353 | if (PyErr_Occurred()) SWIG_fail; | |
34354 | } | |
34355 | resultobj = SWIG_Py_Void(); | |
34356 | return resultobj; | |
34357 | fail: | |
34358 | return NULL; | |
d14a1e28 RD |
34359 | } |
34360 | ||
34361 | ||
0085ce49 RD |
34362 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34363 | PyObject *resultobj = 0; | |
34364 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34365 | unsigned int result; | |
34366 | void *argp1 = 0 ; | |
34367 | int res1 = 0 ; | |
34368 | PyObject *swig_obj[1] ; | |
34369 | ||
34370 | if (!args) SWIG_fail; | |
34371 | swig_obj[0] = args; | |
34372 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34373 | if (!SWIG_IsOK(res1)) { | |
34374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34375 | } | |
34376 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34377 | { | |
34378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34379 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
34380 | wxPyEndAllowThreads(__tstate); | |
34381 | if (PyErr_Occurred()) SWIG_fail; | |
34382 | } | |
34383 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); | |
34384 | return resultobj; | |
34385 | fail: | |
34386 | return NULL; | |
34387 | } | |
34388 | ||
34389 | ||
34390 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34391 | PyObject *resultobj = 0; | |
34392 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34393 | unsigned int arg2 ; | |
34394 | void *argp1 = 0 ; | |
34395 | int res1 = 0 ; | |
34396 | unsigned int val2 ; | |
34397 | int ecode2 = 0 ; | |
34398 | PyObject * obj0 = 0 ; | |
34399 | PyObject * obj1 = 0 ; | |
34400 | char * kwnames[] = { | |
34401 | (char *) "self",(char *) "spacing", NULL | |
34402 | }; | |
34403 | ||
34404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail; | |
34405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34406 | if (!SWIG_IsOK(res1)) { | |
34407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34408 | } | |
34409 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34410 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
34411 | if (!SWIG_IsOK(ecode2)) { | |
34412 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'"); | |
34413 | } | |
34414 | arg2 = static_cast< unsigned int >(val2); | |
34415 | { | |
34416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34417 | (arg1)->SetSpacing(arg2); | |
34418 | wxPyEndAllowThreads(__tstate); | |
34419 | if (PyErr_Occurred()) SWIG_fail; | |
34420 | } | |
34421 | resultobj = SWIG_Py_Void(); | |
34422 | return resultobj; | |
34423 | fail: | |
34424 | return NULL; | |
d14a1e28 RD |
34425 | } |
34426 | ||
34427 | ||
0085ce49 RD |
34428 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34429 | PyObject *resultobj = 0; | |
34430 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34431 | wxImageList *result = 0 ; | |
34432 | void *argp1 = 0 ; | |
34433 | int res1 = 0 ; | |
34434 | PyObject *swig_obj[1] ; | |
34435 | ||
34436 | if (!args) SWIG_fail; | |
34437 | swig_obj[0] = args; | |
34438 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34439 | if (!SWIG_IsOK(res1)) { | |
34440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34441 | } | |
34442 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34443 | { | |
34444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34445 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
34446 | wxPyEndAllowThreads(__tstate); | |
34447 | if (PyErr_Occurred()) SWIG_fail; | |
34448 | } | |
3ecece7e RD |
34449 | { |
34450 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
34451 | } | |
0085ce49 RD |
34452 | return resultobj; |
34453 | fail: | |
34454 | return NULL; | |
d14a1e28 RD |
34455 | } |
34456 | ||
34457 | ||
0085ce49 RD |
34458 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34459 | PyObject *resultobj = 0; | |
34460 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34461 | wxImageList *result = 0 ; | |
34462 | void *argp1 = 0 ; | |
34463 | int res1 = 0 ; | |
34464 | PyObject *swig_obj[1] ; | |
34465 | ||
34466 | if (!args) SWIG_fail; | |
34467 | swig_obj[0] = args; | |
34468 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34469 | if (!SWIG_IsOK(res1)) { | |
34470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34471 | } | |
34472 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34473 | { | |
34474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34475 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
34476 | wxPyEndAllowThreads(__tstate); | |
34477 | if (PyErr_Occurred()) SWIG_fail; | |
34478 | } | |
3ecece7e RD |
34479 | { |
34480 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
34481 | } | |
0085ce49 RD |
34482 | return resultobj; |
34483 | fail: | |
34484 | return NULL; | |
34485 | } | |
34486 | ||
34487 | ||
34488 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34489 | PyObject *resultobj = 0; | |
34490 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34491 | wxImageList *arg2 = (wxImageList *) 0 ; | |
34492 | void *argp1 = 0 ; | |
34493 | int res1 = 0 ; | |
34494 | void *argp2 = 0 ; | |
34495 | int res2 = 0 ; | |
34496 | PyObject * obj0 = 0 ; | |
34497 | PyObject * obj1 = 0 ; | |
34498 | char * kwnames[] = { | |
34499 | (char *) "self",(char *) "imageList", NULL | |
34500 | }; | |
34501 | ||
34502 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
34503 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34504 | if (!SWIG_IsOK(res1)) { | |
34505 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34506 | } | |
34507 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34508 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
34509 | if (!SWIG_IsOK(res2)) { | |
34510 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
34511 | } | |
34512 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
34513 | { | |
34514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34515 | (arg1)->SetImageList(arg2); | |
34516 | wxPyEndAllowThreads(__tstate); | |
34517 | if (PyErr_Occurred()) SWIG_fail; | |
34518 | } | |
34519 | resultobj = SWIG_Py_Void(); | |
34520 | return resultobj; | |
34521 | fail: | |
34522 | return NULL; | |
34523 | } | |
34524 | ||
34525 | ||
34526 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34527 | PyObject *resultobj = 0; | |
34528 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34529 | wxImageList *arg2 = (wxImageList *) 0 ; | |
34530 | void *argp1 = 0 ; | |
34531 | int res1 = 0 ; | |
34532 | void *argp2 = 0 ; | |
34533 | int res2 = 0 ; | |
34534 | PyObject * obj0 = 0 ; | |
34535 | PyObject * obj1 = 0 ; | |
34536 | char * kwnames[] = { | |
34537 | (char *) "self",(char *) "imageList", NULL | |
34538 | }; | |
34539 | ||
34540 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
34541 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34542 | if (!SWIG_IsOK(res1)) { | |
34543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34544 | } | |
34545 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34546 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
34547 | if (!SWIG_IsOK(res2)) { | |
34548 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
34549 | } | |
34550 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
34551 | { | |
34552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34553 | (arg1)->SetStateImageList(arg2); | |
34554 | wxPyEndAllowThreads(__tstate); | |
34555 | if (PyErr_Occurred()) SWIG_fail; | |
34556 | } | |
34557 | resultobj = SWIG_Py_Void(); | |
34558 | return resultobj; | |
34559 | fail: | |
34560 | return NULL; | |
34561 | } | |
34562 | ||
34563 | ||
34564 | SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34565 | PyObject *resultobj = 0; | |
34566 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34567 | wxImageList *arg2 = (wxImageList *) 0 ; | |
34568 | void *argp1 = 0 ; | |
34569 | int res1 = 0 ; | |
34570 | int res2 = 0 ; | |
34571 | PyObject * obj0 = 0 ; | |
34572 | PyObject * obj1 = 0 ; | |
34573 | char * kwnames[] = { | |
34574 | (char *) "self",(char *) "imageList", NULL | |
34575 | }; | |
34576 | ||
34577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
34578 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34579 | if (!SWIG_IsOK(res1)) { | |
34580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34581 | } | |
34582 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34583 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
34584 | if (!SWIG_IsOK(res2)) { | |
34585 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
34586 | } | |
34587 | { | |
34588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34589 | (arg1)->AssignImageList(arg2); | |
34590 | wxPyEndAllowThreads(__tstate); | |
34591 | if (PyErr_Occurred()) SWIG_fail; | |
34592 | } | |
34593 | resultobj = SWIG_Py_Void(); | |
34594 | return resultobj; | |
34595 | fail: | |
34596 | return NULL; | |
34597 | } | |
34598 | ||
34599 | ||
34600 | SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34601 | PyObject *resultobj = 0; | |
34602 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34603 | wxImageList *arg2 = (wxImageList *) 0 ; | |
34604 | void *argp1 = 0 ; | |
34605 | int res1 = 0 ; | |
34606 | int res2 = 0 ; | |
34607 | PyObject * obj0 = 0 ; | |
34608 | PyObject * obj1 = 0 ; | |
34609 | char * kwnames[] = { | |
34610 | (char *) "self",(char *) "imageList", NULL | |
34611 | }; | |
34612 | ||
34613 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
34614 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34615 | if (!SWIG_IsOK(res1)) { | |
34616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34617 | } | |
34618 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34619 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
34620 | if (!SWIG_IsOK(res2)) { | |
34621 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
34622 | } | |
34623 | { | |
34624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34625 | (arg1)->AssignStateImageList(arg2); | |
34626 | wxPyEndAllowThreads(__tstate); | |
34627 | if (PyErr_Occurred()) SWIG_fail; | |
34628 | } | |
34629 | resultobj = SWIG_Py_Void(); | |
34630 | return resultobj; | |
34631 | fail: | |
34632 | return NULL; | |
34633 | } | |
34634 | ||
34635 | ||
34636 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34637 | PyObject *resultobj = 0; | |
34638 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34639 | wxTreeItemId *arg2 = 0 ; | |
34640 | wxString result; | |
34641 | void *argp1 = 0 ; | |
34642 | int res1 = 0 ; | |
34643 | void *argp2 = 0 ; | |
34644 | int res2 = 0 ; | |
34645 | PyObject * obj0 = 0 ; | |
34646 | PyObject * obj1 = 0 ; | |
34647 | char * kwnames[] = { | |
34648 | (char *) "self",(char *) "item", NULL | |
34649 | }; | |
34650 | ||
34651 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail; | |
34652 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34653 | if (!SWIG_IsOK(res1)) { | |
34654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34655 | } | |
34656 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34657 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34658 | if (!SWIG_IsOK(res2)) { | |
34659 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34660 | } | |
34661 | if (!argp2) { | |
34662 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34663 | } | |
34664 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34665 | { | |
34666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34667 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
34668 | wxPyEndAllowThreads(__tstate); | |
34669 | if (PyErr_Occurred()) SWIG_fail; | |
34670 | } | |
34671 | { | |
d14a1e28 | 34672 | #if wxUSE_UNICODE |
0085ce49 | 34673 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 34674 | #else |
0085ce49 | 34675 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 34676 | #endif |
0085ce49 RD |
34677 | } |
34678 | return resultobj; | |
34679 | fail: | |
34680 | return NULL; | |
34681 | } | |
34682 | ||
34683 | ||
34684 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34685 | PyObject *resultobj = 0; | |
34686 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34687 | wxTreeItemId *arg2 = 0 ; | |
34688 | wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; | |
34689 | int result; | |
34690 | void *argp1 = 0 ; | |
34691 | int res1 = 0 ; | |
34692 | void *argp2 = 0 ; | |
34693 | int res2 = 0 ; | |
34694 | int val3 ; | |
34695 | int ecode3 = 0 ; | |
34696 | PyObject * obj0 = 0 ; | |
34697 | PyObject * obj1 = 0 ; | |
34698 | PyObject * obj2 = 0 ; | |
34699 | char * kwnames[] = { | |
34700 | (char *) "self",(char *) "item",(char *) "which", NULL | |
34701 | }; | |
34702 | ||
34703 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34704 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34705 | if (!SWIG_IsOK(res1)) { | |
34706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34707 | } | |
34708 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34709 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34710 | if (!SWIG_IsOK(res2)) { | |
34711 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34712 | } | |
34713 | if (!argp2) { | |
34714 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34715 | } | |
34716 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34717 | if (obj2) { | |
34718 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34719 | if (!SWIG_IsOK(ecode3)) { | |
34720 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'"); | |
34721 | } | |
34722 | arg3 = static_cast< wxTreeItemIcon >(val3); | |
34723 | } | |
34724 | { | |
34725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34726 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3); | |
34727 | wxPyEndAllowThreads(__tstate); | |
34728 | if (PyErr_Occurred()) SWIG_fail; | |
34729 | } | |
34730 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34731 | return resultobj; | |
34732 | fail: | |
34733 | return NULL; | |
34734 | } | |
34735 | ||
34736 | ||
34737 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34738 | PyObject *resultobj = 0; | |
34739 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34740 | wxTreeItemId *arg2 = 0 ; | |
34741 | wxPyTreeItemData *result = 0 ; | |
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_GetItemData",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_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
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_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34761 | } | |
34762 | if (!argp2) { | |
34763 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34764 | } | |
34765 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34766 | { | |
34767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34768 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
34769 | wxPyEndAllowThreads(__tstate); | |
34770 | if (PyErr_Occurred()) SWIG_fail; | |
34771 | } | |
34772 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
34773 | return resultobj; | |
34774 | fail: | |
34775 | return NULL; | |
34776 | } | |
34777 | ||
34778 | ||
34779 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34780 | PyObject *resultobj = 0; | |
34781 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34782 | wxTreeItemId *arg2 = 0 ; | |
34783 | PyObject *result = 0 ; | |
34784 | void *argp1 = 0 ; | |
34785 | int res1 = 0 ; | |
34786 | void *argp2 = 0 ; | |
34787 | int res2 = 0 ; | |
34788 | PyObject * obj0 = 0 ; | |
34789 | PyObject * obj1 = 0 ; | |
34790 | char * kwnames[] = { | |
34791 | (char *) "self",(char *) "item", NULL | |
34792 | }; | |
34793 | ||
34794 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail; | |
34795 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34796 | if (!SWIG_IsOK(res1)) { | |
34797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34798 | } | |
34799 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34800 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34801 | if (!SWIG_IsOK(res2)) { | |
34802 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34803 | } | |
34804 | if (!argp2) { | |
34805 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34806 | } | |
34807 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34808 | { | |
34809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34810 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
34811 | wxPyEndAllowThreads(__tstate); | |
34812 | if (PyErr_Occurred()) SWIG_fail; | |
34813 | } | |
34814 | resultobj = result; | |
34815 | return resultobj; | |
34816 | fail: | |
34817 | return NULL; | |
34818 | } | |
34819 | ||
34820 | ||
34821 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34822 | PyObject *resultobj = 0; | |
34823 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34824 | wxTreeItemId *arg2 = 0 ; | |
34825 | wxColour result; | |
34826 | void *argp1 = 0 ; | |
34827 | int res1 = 0 ; | |
34828 | void *argp2 = 0 ; | |
34829 | int res2 = 0 ; | |
34830 | PyObject * obj0 = 0 ; | |
34831 | PyObject * obj1 = 0 ; | |
34832 | char * kwnames[] = { | |
34833 | (char *) "self",(char *) "item", NULL | |
34834 | }; | |
34835 | ||
34836 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
34837 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34838 | if (!SWIG_IsOK(res1)) { | |
34839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34840 | } | |
34841 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34842 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34843 | if (!SWIG_IsOK(res2)) { | |
34844 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34845 | } | |
34846 | if (!argp2) { | |
34847 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34848 | } | |
34849 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34850 | { | |
34851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34852 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
34853 | wxPyEndAllowThreads(__tstate); | |
34854 | if (PyErr_Occurred()) SWIG_fail; | |
34855 | } | |
34856 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
34857 | return resultobj; | |
34858 | fail: | |
34859 | return NULL; | |
34860 | } | |
34861 | ||
34862 | ||
34863 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34864 | PyObject *resultobj = 0; | |
34865 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34866 | wxTreeItemId *arg2 = 0 ; | |
34867 | wxColour result; | |
34868 | void *argp1 = 0 ; | |
34869 | int res1 = 0 ; | |
34870 | void *argp2 = 0 ; | |
34871 | int res2 = 0 ; | |
34872 | PyObject * obj0 = 0 ; | |
34873 | PyObject * obj1 = 0 ; | |
34874 | char * kwnames[] = { | |
34875 | (char *) "self",(char *) "item", NULL | |
34876 | }; | |
34877 | ||
34878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
34879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34880 | if (!SWIG_IsOK(res1)) { | |
34881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34882 | } | |
34883 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34884 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34885 | if (!SWIG_IsOK(res2)) { | |
34886 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34887 | } | |
34888 | if (!argp2) { | |
34889 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34890 | } | |
34891 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34892 | { | |
34893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34894 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
34895 | wxPyEndAllowThreads(__tstate); | |
34896 | if (PyErr_Occurred()) SWIG_fail; | |
34897 | } | |
34898 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
34899 | return resultobj; | |
34900 | fail: | |
34901 | return NULL; | |
34902 | } | |
34903 | ||
34904 | ||
34905 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34906 | PyObject *resultobj = 0; | |
34907 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34908 | wxTreeItemId *arg2 = 0 ; | |
34909 | wxFont result; | |
34910 | void *argp1 = 0 ; | |
34911 | int res1 = 0 ; | |
34912 | void *argp2 = 0 ; | |
34913 | int res2 = 0 ; | |
34914 | PyObject * obj0 = 0 ; | |
34915 | PyObject * obj1 = 0 ; | |
34916 | char * kwnames[] = { | |
34917 | (char *) "self",(char *) "item", NULL | |
34918 | }; | |
34919 | ||
34920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
34921 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34922 | if (!SWIG_IsOK(res1)) { | |
34923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34924 | } | |
34925 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34926 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34927 | if (!SWIG_IsOK(res2)) { | |
34928 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34929 | } | |
34930 | if (!argp2) { | |
34931 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34932 | } | |
34933 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34934 | { | |
34935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34936 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
34937 | wxPyEndAllowThreads(__tstate); | |
34938 | if (PyErr_Occurred()) SWIG_fail; | |
34939 | } | |
34940 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
34941 | return resultobj; | |
34942 | fail: | |
34943 | return NULL; | |
34944 | } | |
34945 | ||
34946 | ||
34947 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34948 | PyObject *resultobj = 0; | |
34949 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34950 | wxTreeItemId *arg2 = 0 ; | |
34951 | wxString *arg3 = 0 ; | |
34952 | void *argp1 = 0 ; | |
34953 | int res1 = 0 ; | |
34954 | void *argp2 = 0 ; | |
34955 | int res2 = 0 ; | |
34956 | bool temp3 = false ; | |
34957 | PyObject * obj0 = 0 ; | |
34958 | PyObject * obj1 = 0 ; | |
34959 | PyObject * obj2 = 0 ; | |
34960 | char * kwnames[] = { | |
34961 | (char *) "self",(char *) "item",(char *) "text", NULL | |
34962 | }; | |
34963 | ||
34964 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34965 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34966 | if (!SWIG_IsOK(res1)) { | |
34967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34968 | } | |
34969 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34970 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34971 | if (!SWIG_IsOK(res2)) { | |
34972 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34973 | } | |
34974 | if (!argp2) { | |
34975 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34976 | } | |
34977 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34978 | { | |
34979 | arg3 = wxString_in_helper(obj2); | |
34980 | if (arg3 == NULL) SWIG_fail; | |
34981 | temp3 = true; | |
34982 | } | |
34983 | { | |
34984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34985 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
34986 | wxPyEndAllowThreads(__tstate); | |
34987 | if (PyErr_Occurred()) SWIG_fail; | |
34988 | } | |
34989 | resultobj = SWIG_Py_Void(); | |
34990 | { | |
34991 | if (temp3) | |
34992 | delete arg3; | |
34993 | } | |
34994 | return resultobj; | |
34995 | fail: | |
34996 | { | |
34997 | if (temp3) | |
34998 | delete arg3; | |
34999 | } | |
35000 | return NULL; | |
35001 | } | |
35002 | ||
35003 | ||
35004 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35005 | PyObject *resultobj = 0; | |
35006 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35007 | wxTreeItemId *arg2 = 0 ; | |
35008 | int arg3 ; | |
35009 | wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; | |
35010 | void *argp1 = 0 ; | |
35011 | int res1 = 0 ; | |
35012 | void *argp2 = 0 ; | |
35013 | int res2 = 0 ; | |
35014 | int val3 ; | |
35015 | int ecode3 = 0 ; | |
35016 | int val4 ; | |
35017 | int ecode4 = 0 ; | |
35018 | PyObject * obj0 = 0 ; | |
35019 | PyObject * obj1 = 0 ; | |
35020 | PyObject * obj2 = 0 ; | |
35021 | PyObject * obj3 = 0 ; | |
35022 | char * kwnames[] = { | |
35023 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
35024 | }; | |
35025 | ||
35026 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
35027 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35028 | if (!SWIG_IsOK(res1)) { | |
35029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35030 | } | |
35031 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35032 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35033 | if (!SWIG_IsOK(res2)) { | |
35034 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35035 | } | |
35036 | if (!argp2) { | |
35037 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35038 | } | |
35039 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35040 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35041 | if (!SWIG_IsOK(ecode3)) { | |
35042 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'"); | |
35043 | } | |
35044 | arg3 = static_cast< int >(val3); | |
35045 | if (obj3) { | |
35046 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35047 | if (!SWIG_IsOK(ecode4)) { | |
35048 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'"); | |
35049 | } | |
35050 | arg4 = static_cast< wxTreeItemIcon >(val4); | |
35051 | } | |
35052 | { | |
35053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35054 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4); | |
35055 | wxPyEndAllowThreads(__tstate); | |
35056 | if (PyErr_Occurred()) SWIG_fail; | |
35057 | } | |
35058 | resultobj = SWIG_Py_Void(); | |
35059 | return resultobj; | |
35060 | fail: | |
35061 | return NULL; | |
35062 | } | |
35063 | ||
35064 | ||
35065 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35066 | PyObject *resultobj = 0; | |
35067 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35068 | wxTreeItemId *arg2 = 0 ; | |
35069 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
35070 | void *argp1 = 0 ; | |
35071 | int res1 = 0 ; | |
35072 | void *argp2 = 0 ; | |
35073 | int res2 = 0 ; | |
35074 | int res3 = 0 ; | |
35075 | PyObject * obj0 = 0 ; | |
35076 | PyObject * obj1 = 0 ; | |
35077 | PyObject * obj2 = 0 ; | |
35078 | char * kwnames[] = { | |
35079 | (char *) "self",(char *) "item",(char *) "data", NULL | |
35080 | }; | |
35081 | ||
35082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35083 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35084 | if (!SWIG_IsOK(res1)) { | |
35085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35086 | } | |
35087 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35088 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35089 | if (!SWIG_IsOK(res2)) { | |
35090 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35091 | } | |
35092 | if (!argp2) { | |
35093 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35094 | } | |
35095 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35096 | res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
35097 | if (!SWIG_IsOK(res3)) { | |
35098 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'"); | |
35099 | } | |
35100 | { | |
35101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35102 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
35103 | wxPyEndAllowThreads(__tstate); | |
35104 | if (PyErr_Occurred()) SWIG_fail; | |
35105 | } | |
35106 | resultobj = SWIG_Py_Void(); | |
35107 | return resultobj; | |
35108 | fail: | |
35109 | return NULL; | |
35110 | } | |
35111 | ||
35112 | ||
35113 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35114 | PyObject *resultobj = 0; | |
35115 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35116 | wxTreeItemId *arg2 = 0 ; | |
35117 | PyObject *arg3 = (PyObject *) 0 ; | |
35118 | void *argp1 = 0 ; | |
35119 | int res1 = 0 ; | |
35120 | void *argp2 = 0 ; | |
35121 | int res2 = 0 ; | |
35122 | PyObject * obj0 = 0 ; | |
35123 | PyObject * obj1 = 0 ; | |
35124 | PyObject * obj2 = 0 ; | |
35125 | char * kwnames[] = { | |
35126 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
35127 | }; | |
35128 | ||
35129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35131 | if (!SWIG_IsOK(res1)) { | |
35132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35133 | } | |
35134 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35135 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35136 | if (!SWIG_IsOK(res2)) { | |
35137 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35138 | } | |
35139 | if (!argp2) { | |
35140 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35141 | } | |
35142 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35143 | arg3 = obj2; | |
35144 | { | |
35145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35146 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
35147 | wxPyEndAllowThreads(__tstate); | |
35148 | if (PyErr_Occurred()) SWIG_fail; | |
35149 | } | |
35150 | resultobj = SWIG_Py_Void(); | |
35151 | return resultobj; | |
35152 | fail: | |
35153 | return NULL; | |
35154 | } | |
35155 | ||
35156 | ||
35157 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35158 | PyObject *resultobj = 0; | |
35159 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35160 | wxTreeItemId *arg2 = 0 ; | |
35161 | bool arg3 = (bool) true ; | |
35162 | void *argp1 = 0 ; | |
35163 | int res1 = 0 ; | |
35164 | void *argp2 = 0 ; | |
35165 | int res2 = 0 ; | |
35166 | bool val3 ; | |
35167 | int ecode3 = 0 ; | |
35168 | PyObject * obj0 = 0 ; | |
35169 | PyObject * obj1 = 0 ; | |
35170 | PyObject * obj2 = 0 ; | |
35171 | char * kwnames[] = { | |
35172 | (char *) "self",(char *) "item",(char *) "has", NULL | |
35173 | }; | |
35174 | ||
35175 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35176 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35177 | if (!SWIG_IsOK(res1)) { | |
35178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35179 | } | |
35180 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35181 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35182 | if (!SWIG_IsOK(res2)) { | |
35183 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35184 | } | |
35185 | if (!argp2) { | |
35186 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35187 | } | |
35188 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35189 | if (obj2) { | |
35190 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35191 | if (!SWIG_IsOK(ecode3)) { | |
35192 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'"); | |
35193 | } | |
35194 | arg3 = static_cast< bool >(val3); | |
35195 | } | |
35196 | { | |
35197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35198 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
35199 | wxPyEndAllowThreads(__tstate); | |
35200 | if (PyErr_Occurred()) SWIG_fail; | |
35201 | } | |
35202 | resultobj = SWIG_Py_Void(); | |
35203 | return resultobj; | |
35204 | fail: | |
35205 | return NULL; | |
35206 | } | |
35207 | ||
35208 | ||
35209 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35210 | PyObject *resultobj = 0; | |
35211 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35212 | wxTreeItemId *arg2 = 0 ; | |
35213 | bool arg3 = (bool) true ; | |
35214 | void *argp1 = 0 ; | |
35215 | int res1 = 0 ; | |
35216 | void *argp2 = 0 ; | |
35217 | int res2 = 0 ; | |
35218 | bool val3 ; | |
35219 | int ecode3 = 0 ; | |
35220 | PyObject * obj0 = 0 ; | |
35221 | PyObject * obj1 = 0 ; | |
35222 | PyObject * obj2 = 0 ; | |
35223 | char * kwnames[] = { | |
35224 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
35225 | }; | |
35226 | ||
35227 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35228 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35229 | if (!SWIG_IsOK(res1)) { | |
35230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35231 | } | |
35232 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35233 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35234 | if (!SWIG_IsOK(res2)) { | |
35235 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35236 | } | |
35237 | if (!argp2) { | |
35238 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35239 | } | |
35240 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35241 | if (obj2) { | |
35242 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35243 | if (!SWIG_IsOK(ecode3)) { | |
35244 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'"); | |
35245 | } | |
35246 | arg3 = static_cast< bool >(val3); | |
35247 | } | |
35248 | { | |
35249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35250 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
35251 | wxPyEndAllowThreads(__tstate); | |
35252 | if (PyErr_Occurred()) SWIG_fail; | |
35253 | } | |
35254 | resultobj = SWIG_Py_Void(); | |
35255 | return resultobj; | |
35256 | fail: | |
35257 | return NULL; | |
35258 | } | |
35259 | ||
35260 | ||
35261 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35262 | PyObject *resultobj = 0; | |
35263 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35264 | wxTreeItemId *arg2 = 0 ; | |
35265 | bool arg3 = (bool) true ; | |
35266 | void *argp1 = 0 ; | |
35267 | int res1 = 0 ; | |
35268 | void *argp2 = 0 ; | |
35269 | int res2 = 0 ; | |
35270 | bool val3 ; | |
35271 | int ecode3 = 0 ; | |
35272 | PyObject * obj0 = 0 ; | |
35273 | PyObject * obj1 = 0 ; | |
35274 | PyObject * obj2 = 0 ; | |
35275 | char * kwnames[] = { | |
35276 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
35277 | }; | |
35278 | ||
35279 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35280 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35281 | if (!SWIG_IsOK(res1)) { | |
35282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35283 | } | |
35284 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35285 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35286 | if (!SWIG_IsOK(res2)) { | |
35287 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35288 | } | |
35289 | if (!argp2) { | |
35290 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35291 | } | |
35292 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35293 | if (obj2) { | |
35294 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35295 | if (!SWIG_IsOK(ecode3)) { | |
35296 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'"); | |
35297 | } | |
35298 | arg3 = static_cast< bool >(val3); | |
35299 | } | |
35300 | { | |
35301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35302 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
35303 | wxPyEndAllowThreads(__tstate); | |
35304 | if (PyErr_Occurred()) SWIG_fail; | |
35305 | } | |
35306 | resultobj = SWIG_Py_Void(); | |
35307 | return resultobj; | |
35308 | fail: | |
35309 | return NULL; | |
35310 | } | |
35311 | ||
35312 | ||
35313 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35314 | PyObject *resultobj = 0; | |
35315 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35316 | wxTreeItemId *arg2 = 0 ; | |
35317 | wxColour *arg3 = 0 ; | |
35318 | void *argp1 = 0 ; | |
35319 | int res1 = 0 ; | |
35320 | void *argp2 = 0 ; | |
35321 | int res2 = 0 ; | |
35322 | wxColour temp3 ; | |
35323 | PyObject * obj0 = 0 ; | |
35324 | PyObject * obj1 = 0 ; | |
35325 | PyObject * obj2 = 0 ; | |
35326 | char * kwnames[] = { | |
35327 | (char *) "self",(char *) "item",(char *) "col", NULL | |
35328 | }; | |
35329 | ||
35330 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35331 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35332 | if (!SWIG_IsOK(res1)) { | |
35333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35334 | } | |
35335 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35336 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35337 | if (!SWIG_IsOK(res2)) { | |
35338 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35339 | } | |
35340 | if (!argp2) { | |
35341 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35342 | } | |
35343 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35344 | { | |
35345 | arg3 = &temp3; | |
35346 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
35347 | } | |
35348 | { | |
35349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35350 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
35351 | wxPyEndAllowThreads(__tstate); | |
35352 | if (PyErr_Occurred()) SWIG_fail; | |
35353 | } | |
35354 | resultobj = SWIG_Py_Void(); | |
35355 | return resultobj; | |
35356 | fail: | |
35357 | return NULL; | |
35358 | } | |
35359 | ||
35360 | ||
35361 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35362 | PyObject *resultobj = 0; | |
35363 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35364 | wxTreeItemId *arg2 = 0 ; | |
35365 | wxColour *arg3 = 0 ; | |
35366 | void *argp1 = 0 ; | |
35367 | int res1 = 0 ; | |
35368 | void *argp2 = 0 ; | |
35369 | int res2 = 0 ; | |
35370 | wxColour temp3 ; | |
35371 | PyObject * obj0 = 0 ; | |
35372 | PyObject * obj1 = 0 ; | |
35373 | PyObject * obj2 = 0 ; | |
35374 | char * kwnames[] = { | |
35375 | (char *) "self",(char *) "item",(char *) "col", NULL | |
35376 | }; | |
35377 | ||
35378 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35379 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35380 | if (!SWIG_IsOK(res1)) { | |
35381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35382 | } | |
35383 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35384 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35385 | if (!SWIG_IsOK(res2)) { | |
35386 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35387 | } | |
35388 | if (!argp2) { | |
35389 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35390 | } | |
35391 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35392 | { | |
35393 | arg3 = &temp3; | |
35394 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
35395 | } | |
35396 | { | |
35397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35398 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
35399 | wxPyEndAllowThreads(__tstate); | |
35400 | if (PyErr_Occurred()) SWIG_fail; | |
35401 | } | |
35402 | resultobj = SWIG_Py_Void(); | |
35403 | return resultobj; | |
35404 | fail: | |
35405 | return NULL; | |
35406 | } | |
35407 | ||
35408 | ||
35409 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35410 | PyObject *resultobj = 0; | |
35411 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35412 | wxTreeItemId *arg2 = 0 ; | |
35413 | wxFont *arg3 = 0 ; | |
35414 | void *argp1 = 0 ; | |
35415 | int res1 = 0 ; | |
35416 | void *argp2 = 0 ; | |
35417 | int res2 = 0 ; | |
35418 | void *argp3 = 0 ; | |
35419 | int res3 = 0 ; | |
35420 | PyObject * obj0 = 0 ; | |
35421 | PyObject * obj1 = 0 ; | |
35422 | PyObject * obj2 = 0 ; | |
35423 | char * kwnames[] = { | |
35424 | (char *) "self",(char *) "item",(char *) "font", NULL | |
35425 | }; | |
35426 | ||
35427 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35428 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35429 | if (!SWIG_IsOK(res1)) { | |
35430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35431 | } | |
35432 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35433 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35434 | if (!SWIG_IsOK(res2)) { | |
35435 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35436 | } | |
35437 | if (!argp2) { | |
35438 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35439 | } | |
35440 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35441 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
35442 | if (!SWIG_IsOK(res3)) { | |
35443 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
35444 | } | |
35445 | if (!argp3) { | |
35446 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
35447 | } | |
35448 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
35449 | { | |
35450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35451 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
35452 | wxPyEndAllowThreads(__tstate); | |
35453 | if (PyErr_Occurred()) SWIG_fail; | |
35454 | } | |
35455 | resultobj = SWIG_Py_Void(); | |
35456 | return resultobj; | |
35457 | fail: | |
35458 | return NULL; | |
35459 | } | |
35460 | ||
35461 | ||
35462 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35463 | PyObject *resultobj = 0; | |
35464 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35465 | wxTreeItemId *arg2 = 0 ; | |
35466 | bool result; | |
35467 | void *argp1 = 0 ; | |
35468 | int res1 = 0 ; | |
35469 | void *argp2 = 0 ; | |
35470 | int res2 = 0 ; | |
35471 | PyObject * obj0 = 0 ; | |
35472 | PyObject * obj1 = 0 ; | |
35473 | char * kwnames[] = { | |
35474 | (char *) "self",(char *) "item", NULL | |
35475 | }; | |
35476 | ||
35477 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
35478 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35479 | if (!SWIG_IsOK(res1)) { | |
35480 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35481 | } | |
35482 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35483 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35484 | if (!SWIG_IsOK(res2)) { | |
35485 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35486 | } | |
35487 | if (!argp2) { | |
35488 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35489 | } | |
35490 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35491 | { | |
35492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35493 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
35494 | wxPyEndAllowThreads(__tstate); | |
35495 | if (PyErr_Occurred()) SWIG_fail; | |
35496 | } | |
35497 | { | |
35498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35499 | } | |
35500 | return resultobj; | |
35501 | fail: | |
35502 | return NULL; | |
35503 | } | |
35504 | ||
35505 | ||
35506 | SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35507 | PyObject *resultobj = 0; | |
35508 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35509 | wxTreeItemId *arg2 = 0 ; | |
35510 | bool result; | |
35511 | void *argp1 = 0 ; | |
35512 | int res1 = 0 ; | |
35513 | void *argp2 = 0 ; | |
35514 | int res2 = 0 ; | |
35515 | PyObject * obj0 = 0 ; | |
35516 | PyObject * obj1 = 0 ; | |
35517 | char * kwnames[] = { | |
35518 | (char *) "self",(char *) "item", NULL | |
35519 | }; | |
35520 | ||
35521 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
35522 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35523 | if (!SWIG_IsOK(res1)) { | |
35524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35525 | } | |
35526 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35527 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35528 | if (!SWIG_IsOK(res2)) { | |
35529 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35530 | } | |
35531 | if (!argp2) { | |
35532 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35533 | } | |
35534 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35535 | { | |
35536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35537 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
35538 | wxPyEndAllowThreads(__tstate); | |
35539 | if (PyErr_Occurred()) SWIG_fail; | |
35540 | } | |
35541 | { | |
35542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35543 | } | |
35544 | return resultobj; | |
35545 | fail: | |
35546 | return NULL; | |
35547 | } | |
35548 | ||
35549 | ||
35550 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35551 | PyObject *resultobj = 0; | |
35552 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35553 | wxTreeItemId *arg2 = 0 ; | |
35554 | bool result; | |
35555 | void *argp1 = 0 ; | |
35556 | int res1 = 0 ; | |
35557 | void *argp2 = 0 ; | |
35558 | int res2 = 0 ; | |
35559 | PyObject * obj0 = 0 ; | |
35560 | PyObject * obj1 = 0 ; | |
35561 | char * kwnames[] = { | |
35562 | (char *) "self",(char *) "item", NULL | |
35563 | }; | |
35564 | ||
35565 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail; | |
35566 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35567 | if (!SWIG_IsOK(res1)) { | |
35568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35569 | } | |
35570 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35571 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35572 | if (!SWIG_IsOK(res2)) { | |
35573 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35574 | } | |
35575 | if (!argp2) { | |
35576 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35577 | } | |
35578 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35579 | { | |
35580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35581 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
35582 | wxPyEndAllowThreads(__tstate); | |
35583 | if (PyErr_Occurred()) SWIG_fail; | |
35584 | } | |
35585 | { | |
35586 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35587 | } | |
35588 | return resultobj; | |
35589 | fail: | |
35590 | return NULL; | |
35591 | } | |
35592 | ||
35593 | ||
35594 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35595 | PyObject *resultobj = 0; | |
35596 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35597 | wxTreeItemId *arg2 = 0 ; | |
35598 | bool result; | |
35599 | void *argp1 = 0 ; | |
35600 | int res1 = 0 ; | |
35601 | void *argp2 = 0 ; | |
35602 | int res2 = 0 ; | |
35603 | PyObject * obj0 = 0 ; | |
35604 | PyObject * obj1 = 0 ; | |
35605 | char * kwnames[] = { | |
35606 | (char *) "self",(char *) "item", NULL | |
35607 | }; | |
35608 | ||
35609 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
35610 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35611 | if (!SWIG_IsOK(res1)) { | |
35612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35613 | } | |
35614 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35615 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35616 | if (!SWIG_IsOK(res2)) { | |
35617 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35618 | } | |
35619 | if (!argp2) { | |
35620 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35621 | } | |
35622 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35623 | { | |
35624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35625 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
35626 | wxPyEndAllowThreads(__tstate); | |
35627 | if (PyErr_Occurred()) SWIG_fail; | |
35628 | } | |
35629 | { | |
35630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35631 | } | |
35632 | return resultobj; | |
35633 | fail: | |
35634 | return NULL; | |
35635 | } | |
35636 | ||
35637 | ||
35638 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35639 | PyObject *resultobj = 0; | |
35640 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35641 | wxTreeItemId *arg2 = 0 ; | |
35642 | bool result; | |
35643 | void *argp1 = 0 ; | |
35644 | int res1 = 0 ; | |
35645 | void *argp2 = 0 ; | |
35646 | int res2 = 0 ; | |
35647 | PyObject * obj0 = 0 ; | |
35648 | PyObject * obj1 = 0 ; | |
35649 | char * kwnames[] = { | |
35650 | (char *) "self",(char *) "item", NULL | |
35651 | }; | |
35652 | ||
35653 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail; | |
35654 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35655 | if (!SWIG_IsOK(res1)) { | |
35656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35657 | } | |
35658 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35659 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35660 | if (!SWIG_IsOK(res2)) { | |
35661 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35662 | } | |
35663 | if (!argp2) { | |
35664 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35665 | } | |
35666 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35667 | { | |
35668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35669 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
35670 | wxPyEndAllowThreads(__tstate); | |
35671 | if (PyErr_Occurred()) SWIG_fail; | |
35672 | } | |
35673 | { | |
35674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35675 | } | |
35676 | return resultobj; | |
35677 | fail: | |
35678 | return NULL; | |
35679 | } | |
35680 | ||
35681 | ||
1ceb4f4d RD |
35682 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35683 | PyObject *resultobj = 0; | |
35684 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35685 | bool result; | |
35686 | void *argp1 = 0 ; | |
35687 | int res1 = 0 ; | |
35688 | PyObject *swig_obj[1] ; | |
35689 | ||
35690 | if (!args) SWIG_fail; | |
35691 | swig_obj[0] = args; | |
35692 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35693 | if (!SWIG_IsOK(res1)) { | |
35694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35695 | } | |
35696 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35697 | { | |
35698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35699 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsEmpty(); | |
35700 | wxPyEndAllowThreads(__tstate); | |
35701 | if (PyErr_Occurred()) SWIG_fail; | |
35702 | } | |
35703 | { | |
35704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35705 | } | |
35706 | return resultobj; | |
35707 | fail: | |
35708 | return NULL; | |
35709 | } | |
35710 | ||
35711 | ||
0085ce49 RD |
35712 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35713 | PyObject *resultobj = 0; | |
35714 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35715 | wxTreeItemId *arg2 = 0 ; | |
35716 | bool arg3 = (bool) true ; | |
35717 | size_t result; | |
35718 | void *argp1 = 0 ; | |
35719 | int res1 = 0 ; | |
35720 | void *argp2 = 0 ; | |
35721 | int res2 = 0 ; | |
35722 | bool val3 ; | |
35723 | int ecode3 = 0 ; | |
35724 | PyObject * obj0 = 0 ; | |
35725 | PyObject * obj1 = 0 ; | |
35726 | PyObject * obj2 = 0 ; | |
35727 | char * kwnames[] = { | |
35728 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
35729 | }; | |
35730 | ||
35731 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35732 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35733 | if (!SWIG_IsOK(res1)) { | |
35734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35735 | } | |
35736 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35737 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35738 | if (!SWIG_IsOK(res2)) { | |
35739 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35740 | } | |
35741 | if (!argp2) { | |
35742 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35743 | } | |
35744 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35745 | if (obj2) { | |
35746 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35747 | if (!SWIG_IsOK(ecode3)) { | |
35748 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'"); | |
35749 | } | |
35750 | arg3 = static_cast< bool >(val3); | |
35751 | } | |
35752 | { | |
35753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35754 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
35755 | wxPyEndAllowThreads(__tstate); | |
35756 | if (PyErr_Occurred()) SWIG_fail; | |
35757 | } | |
35758 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
35759 | return resultobj; | |
35760 | fail: | |
35761 | return NULL; | |
d14a1e28 RD |
35762 | } |
35763 | ||
35764 | ||
0085ce49 RD |
35765 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35766 | PyObject *resultobj = 0; | |
35767 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35768 | wxTreeItemId result; | |
35769 | void *argp1 = 0 ; | |
35770 | int res1 = 0 ; | |
35771 | PyObject *swig_obj[1] ; | |
35772 | ||
35773 | if (!args) SWIG_fail; | |
35774 | swig_obj[0] = args; | |
35775 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35776 | if (!SWIG_IsOK(res1)) { | |
35777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35778 | } | |
35779 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35780 | { | |
35781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35782 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
35783 | wxPyEndAllowThreads(__tstate); | |
35784 | if (PyErr_Occurred()) SWIG_fail; | |
35785 | } | |
35786 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35787 | return resultobj; | |
35788 | fail: | |
35789 | return NULL; | |
d14a1e28 RD |
35790 | } |
35791 | ||
35792 | ||
0085ce49 RD |
35793 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35794 | PyObject *resultobj = 0; | |
35795 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35796 | wxTreeItemId result; | |
35797 | void *argp1 = 0 ; | |
35798 | int res1 = 0 ; | |
35799 | PyObject *swig_obj[1] ; | |
35800 | ||
35801 | if (!args) SWIG_fail; | |
35802 | swig_obj[0] = args; | |
35803 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35804 | if (!SWIG_IsOK(res1)) { | |
35805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35806 | } | |
35807 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35808 | { | |
35809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35810 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
35811 | wxPyEndAllowThreads(__tstate); | |
35812 | if (PyErr_Occurred()) SWIG_fail; | |
35813 | } | |
35814 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35815 | return resultobj; | |
35816 | fail: | |
35817 | return NULL; | |
d14a1e28 RD |
35818 | } |
35819 | ||
35820 | ||
0085ce49 RD |
35821 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35822 | PyObject *resultobj = 0; | |
35823 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35824 | PyObject *result = 0 ; | |
35825 | void *argp1 = 0 ; | |
35826 | int res1 = 0 ; | |
35827 | PyObject *swig_obj[1] ; | |
35828 | ||
35829 | if (!args) SWIG_fail; | |
35830 | swig_obj[0] = args; | |
35831 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35832 | if (!SWIG_IsOK(res1)) { | |
35833 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35834 | } | |
35835 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35836 | { | |
35837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35838 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
35839 | wxPyEndAllowThreads(__tstate); | |
35840 | if (PyErr_Occurred()) SWIG_fail; | |
35841 | } | |
35842 | resultobj = result; | |
35843 | return resultobj; | |
35844 | fail: | |
35845 | return NULL; | |
35846 | } | |
35847 | ||
35848 | ||
35849 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35850 | PyObject *resultobj = 0; | |
35851 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35852 | wxTreeItemId *arg2 = 0 ; | |
35853 | wxTreeItemId result; | |
35854 | void *argp1 = 0 ; | |
35855 | int res1 = 0 ; | |
35856 | void *argp2 = 0 ; | |
35857 | int res2 = 0 ; | |
35858 | PyObject * obj0 = 0 ; | |
35859 | PyObject * obj1 = 0 ; | |
35860 | char * kwnames[] = { | |
35861 | (char *) "self",(char *) "item", NULL | |
35862 | }; | |
35863 | ||
35864 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
35865 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35866 | if (!SWIG_IsOK(res1)) { | |
35867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35868 | } | |
35869 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35870 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35871 | if (!SWIG_IsOK(res2)) { | |
35872 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35873 | } | |
35874 | if (!argp2) { | |
35875 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35876 | } | |
35877 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35878 | { | |
35879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35880 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
35881 | wxPyEndAllowThreads(__tstate); | |
35882 | if (PyErr_Occurred()) SWIG_fail; | |
35883 | } | |
35884 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35885 | return resultobj; | |
35886 | fail: | |
35887 | return NULL; | |
35888 | } | |
35889 | ||
35890 | ||
35891 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35892 | PyObject *resultobj = 0; | |
35893 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35894 | wxTreeItemId *arg2 = 0 ; | |
35895 | PyObject *result = 0 ; | |
35896 | void *argp1 = 0 ; | |
35897 | int res1 = 0 ; | |
35898 | void *argp2 = 0 ; | |
35899 | int res2 = 0 ; | |
35900 | PyObject * obj0 = 0 ; | |
35901 | PyObject * obj1 = 0 ; | |
35902 | char * kwnames[] = { | |
35903 | (char *) "self",(char *) "item", NULL | |
35904 | }; | |
35905 | ||
35906 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
35907 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35908 | if (!SWIG_IsOK(res1)) { | |
35909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35910 | } | |
35911 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35912 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35913 | if (!SWIG_IsOK(res2)) { | |
35914 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35915 | } | |
35916 | if (!argp2) { | |
35917 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35918 | } | |
35919 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35920 | { | |
35921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35922 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
35923 | wxPyEndAllowThreads(__tstate); | |
35924 | if (PyErr_Occurred()) SWIG_fail; | |
35925 | } | |
35926 | resultobj = result; | |
35927 | return resultobj; | |
35928 | fail: | |
35929 | return NULL; | |
35930 | } | |
35931 | ||
35932 | ||
35933 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35934 | PyObject *resultobj = 0; | |
35935 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35936 | wxTreeItemId *arg2 = 0 ; | |
35937 | void *arg3 = (void *) 0 ; | |
35938 | PyObject *result = 0 ; | |
35939 | void *argp1 = 0 ; | |
35940 | int res1 = 0 ; | |
35941 | void *argp2 = 0 ; | |
35942 | int res2 = 0 ; | |
35943 | int res3 ; | |
35944 | PyObject * obj0 = 0 ; | |
35945 | PyObject * obj1 = 0 ; | |
35946 | PyObject * obj2 = 0 ; | |
35947 | char * kwnames[] = { | |
35948 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
35949 | }; | |
35950 | ||
35951 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35952 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35953 | if (!SWIG_IsOK(res1)) { | |
35954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35955 | } | |
35956 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35957 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35958 | if (!SWIG_IsOK(res2)) { | |
35959 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35960 | } | |
35961 | if (!argp2) { | |
35962 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35963 | } | |
35964 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35965 | res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); | |
35966 | if (!SWIG_IsOK(res3)) { | |
35967 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'"); | |
35968 | } | |
35969 | { | |
35970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35971 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
35972 | wxPyEndAllowThreads(__tstate); | |
35973 | if (PyErr_Occurred()) SWIG_fail; | |
35974 | } | |
35975 | resultobj = result; | |
35976 | return resultobj; | |
35977 | fail: | |
35978 | return NULL; | |
35979 | } | |
35980 | ||
35981 | ||
35982 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35983 | PyObject *resultobj = 0; | |
35984 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35985 | wxTreeItemId *arg2 = 0 ; | |
35986 | wxTreeItemId result; | |
35987 | void *argp1 = 0 ; | |
35988 | int res1 = 0 ; | |
35989 | void *argp2 = 0 ; | |
35990 | int res2 = 0 ; | |
35991 | PyObject * obj0 = 0 ; | |
35992 | PyObject * obj1 = 0 ; | |
35993 | char * kwnames[] = { | |
35994 | (char *) "self",(char *) "item", NULL | |
35995 | }; | |
35996 | ||
35997 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
35998 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35999 | if (!SWIG_IsOK(res1)) { | |
36000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
36001 | } | |
36002 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36003 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36004 | if (!SWIG_IsOK(res2)) { | |
36005 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36006 | } | |
36007 | if (!argp2) { | |
36008 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36009 | } | |
36010 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36011 | { | |
36012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36013 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
36014 | wxPyEndAllowThreads(__tstate); | |
36015 | if (PyErr_Occurred()) SWIG_fail; | |
36016 | } | |
36017 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36018 | return resultobj; | |
36019 | fail: | |
36020 | return NULL; | |
36021 | } | |
36022 | ||
36023 | ||
36024 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36025 | PyObject *resultobj = 0; | |
36026 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36027 | wxTreeItemId *arg2 = 0 ; | |
36028 | wxTreeItemId result; | |
36029 | void *argp1 = 0 ; | |
36030 | int res1 = 0 ; | |
36031 | void *argp2 = 0 ; | |
36032 | int res2 = 0 ; | |
36033 | PyObject * obj0 = 0 ; | |
36034 | PyObject * obj1 = 0 ; | |
36035 | char * kwnames[] = { | |
36036 | (char *) "self",(char *) "item", NULL | |
36037 | }; | |
36038 | ||
36039 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail; | |
36040 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36041 | if (!SWIG_IsOK(res1)) { | |
36042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
36043 | } | |
36044 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36045 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36046 | if (!SWIG_IsOK(res2)) { | |
36047 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36048 | } | |
36049 | if (!argp2) { | |
36050 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36051 | } | |
36052 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36053 | { | |
36054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36055 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
36056 | wxPyEndAllowThreads(__tstate); | |
36057 | if (PyErr_Occurred()) SWIG_fail; | |
36058 | } | |
36059 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36060 | return resultobj; | |
36061 | fail: | |
36062 | return NULL; | |
36063 | } | |
36064 | ||
36065 | ||
36066 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36067 | PyObject *resultobj = 0; | |
36068 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36069 | wxTreeItemId *arg2 = 0 ; | |
36070 | wxTreeItemId result; | |
36071 | void *argp1 = 0 ; | |
36072 | int res1 = 0 ; | |
36073 | void *argp2 = 0 ; | |
36074 | int res2 = 0 ; | |
36075 | PyObject * obj0 = 0 ; | |
36076 | PyObject * obj1 = 0 ; | |
36077 | char * kwnames[] = { | |
36078 | (char *) "self",(char *) "item", NULL | |
36079 | }; | |
36080 | ||
36081 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail; | |
36082 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36083 | if (!SWIG_IsOK(res1)) { | |
36084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
36085 | } | |
36086 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36087 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36088 | if (!SWIG_IsOK(res2)) { | |
36089 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36090 | } | |
36091 | if (!argp2) { | |
36092 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36093 | } | |
36094 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36095 | { | |
36096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36097 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
36098 | wxPyEndAllowThreads(__tstate); | |
36099 | if (PyErr_Occurred()) SWIG_fail; | |
36100 | } | |
36101 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36102 | return resultobj; | |
36103 | fail: | |
36104 | return NULL; | |
d14a1e28 RD |
36105 | } |
36106 | ||
36107 | ||
0085ce49 RD |
36108 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36109 | PyObject *resultobj = 0; | |
36110 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36111 | wxTreeItemId result; | |
36112 | void *argp1 = 0 ; | |
36113 | int res1 = 0 ; | |
36114 | PyObject *swig_obj[1] ; | |
36115 | ||
36116 | if (!args) SWIG_fail; | |
36117 | swig_obj[0] = args; | |
36118 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36119 | if (!SWIG_IsOK(res1)) { | |
36120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
36121 | } | |
36122 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36123 | { | |
36124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36125 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
36126 | wxPyEndAllowThreads(__tstate); | |
36127 | if (PyErr_Occurred()) SWIG_fail; | |
36128 | } | |
36129 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36130 | return resultobj; | |
36131 | fail: | |
36132 | return NULL; | |
36133 | } | |
36134 | ||
36135 | ||
36136 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36137 | PyObject *resultobj = 0; | |
36138 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36139 | wxTreeItemId *arg2 = 0 ; | |
36140 | wxTreeItemId result; | |
36141 | void *argp1 = 0 ; | |
36142 | int res1 = 0 ; | |
36143 | void *argp2 = 0 ; | |
36144 | int res2 = 0 ; | |
36145 | PyObject * obj0 = 0 ; | |
36146 | PyObject * obj1 = 0 ; | |
36147 | char * kwnames[] = { | |
36148 | (char *) "self",(char *) "item", NULL | |
36149 | }; | |
36150 | ||
36151 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
36152 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36153 | if (!SWIG_IsOK(res1)) { | |
36154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
36155 | } | |
36156 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36157 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36158 | if (!SWIG_IsOK(res2)) { | |
36159 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36160 | } | |
36161 | if (!argp2) { | |
36162 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36163 | } | |
36164 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36165 | { | |
36166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36167 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
36168 | wxPyEndAllowThreads(__tstate); | |
36169 | if (PyErr_Occurred()) SWIG_fail; | |
36170 | } | |
36171 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36172 | return resultobj; | |
36173 | fail: | |
36174 | return NULL; | |
36175 | } | |
36176 | ||
36177 | ||
36178 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36179 | PyObject *resultobj = 0; | |
36180 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36181 | wxTreeItemId *arg2 = 0 ; | |
36182 | wxTreeItemId result; | |
36183 | void *argp1 = 0 ; | |
36184 | int res1 = 0 ; | |
36185 | void *argp2 = 0 ; | |
36186 | int res2 = 0 ; | |
36187 | PyObject * obj0 = 0 ; | |
36188 | PyObject * obj1 = 0 ; | |
36189 | char * kwnames[] = { | |
36190 | (char *) "self",(char *) "item", NULL | |
36191 | }; | |
36192 | ||
36193 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
36194 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36195 | if (!SWIG_IsOK(res1)) { | |
36196 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
36197 | } | |
36198 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36199 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36200 | if (!SWIG_IsOK(res2)) { | |
36201 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36202 | } | |
36203 | if (!argp2) { | |
36204 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36205 | } | |
36206 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36207 | { | |
36208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36209 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
36210 | wxPyEndAllowThreads(__tstate); | |
36211 | if (PyErr_Occurred()) SWIG_fail; | |
36212 | } | |
36213 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36214 | return resultobj; | |
36215 | fail: | |
36216 | return NULL; | |
36217 | } | |
36218 | ||
36219 | ||
36220 | SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36221 | PyObject *resultobj = 0; | |
36222 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36223 | wxString *arg2 = 0 ; | |
36224 | int arg3 = (int) -1 ; | |
36225 | int arg4 = (int) -1 ; | |
36226 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
36227 | wxTreeItemId result; | |
36228 | void *argp1 = 0 ; | |
36229 | int res1 = 0 ; | |
36230 | bool temp2 = false ; | |
36231 | int val3 ; | |
36232 | int ecode3 = 0 ; | |
36233 | int val4 ; | |
36234 | int ecode4 = 0 ; | |
36235 | int res5 = 0 ; | |
36236 | PyObject * obj0 = 0 ; | |
36237 | PyObject * obj1 = 0 ; | |
36238 | PyObject * obj2 = 0 ; | |
36239 | PyObject * obj3 = 0 ; | |
36240 | PyObject * obj4 = 0 ; | |
36241 | char * kwnames[] = { | |
36242 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36243 | }; | |
36244 | ||
36245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36247 | if (!SWIG_IsOK(res1)) { | |
36248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36249 | } | |
36250 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36251 | { | |
36252 | arg2 = wxString_in_helper(obj1); | |
36253 | if (arg2 == NULL) SWIG_fail; | |
36254 | temp2 = true; | |
36255 | } | |
36256 | if (obj2) { | |
36257 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36258 | if (!SWIG_IsOK(ecode3)) { | |
36259 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'"); | |
36260 | } | |
36261 | arg3 = static_cast< int >(val3); | |
36262 | } | |
36263 | if (obj3) { | |
36264 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36265 | if (!SWIG_IsOK(ecode4)) { | |
36266 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'"); | |
36267 | } | |
36268 | arg4 = static_cast< int >(val4); | |
36269 | } | |
36270 | if (obj4) { | |
36271 | res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36272 | if (!SWIG_IsOK(res5)) { | |
36273 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'"); | |
3a04f143 | 36274 | } |
0085ce49 RD |
36275 | } |
36276 | { | |
36277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36278 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
36279 | wxPyEndAllowThreads(__tstate); | |
36280 | if (PyErr_Occurred()) SWIG_fail; | |
36281 | } | |
36282 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36283 | { | |
36284 | if (temp2) | |
36285 | delete arg2; | |
36286 | } | |
36287 | return resultobj; | |
36288 | fail: | |
36289 | { | |
36290 | if (temp2) | |
36291 | delete arg2; | |
36292 | } | |
36293 | return NULL; | |
36294 | } | |
36295 | ||
36296 | ||
36297 | SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36298 | PyObject *resultobj = 0; | |
36299 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36300 | wxTreeItemId *arg2 = 0 ; | |
36301 | wxString *arg3 = 0 ; | |
36302 | int arg4 = (int) -1 ; | |
36303 | int arg5 = (int) -1 ; | |
36304 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
36305 | wxTreeItemId result; | |
36306 | void *argp1 = 0 ; | |
36307 | int res1 = 0 ; | |
36308 | void *argp2 = 0 ; | |
36309 | int res2 = 0 ; | |
36310 | bool temp3 = false ; | |
36311 | int val4 ; | |
36312 | int ecode4 = 0 ; | |
36313 | int val5 ; | |
36314 | int ecode5 = 0 ; | |
36315 | int res6 = 0 ; | |
36316 | PyObject * obj0 = 0 ; | |
36317 | PyObject * obj1 = 0 ; | |
36318 | PyObject * obj2 = 0 ; | |
36319 | PyObject * obj3 = 0 ; | |
36320 | PyObject * obj4 = 0 ; | |
36321 | PyObject * obj5 = 0 ; | |
36322 | char * kwnames[] = { | |
36323 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36324 | }; | |
36325 | ||
36326 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
36327 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36328 | if (!SWIG_IsOK(res1)) { | |
36329 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36330 | } | |
36331 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36332 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36333 | if (!SWIG_IsOK(res2)) { | |
36334 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36335 | } | |
36336 | if (!argp2) { | |
36337 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36338 | } | |
36339 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36340 | { | |
36341 | arg3 = wxString_in_helper(obj2); | |
36342 | if (arg3 == NULL) SWIG_fail; | |
36343 | temp3 = true; | |
36344 | } | |
36345 | if (obj3) { | |
36346 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36347 | if (!SWIG_IsOK(ecode4)) { | |
36348 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'"); | |
36349 | } | |
36350 | arg4 = static_cast< int >(val4); | |
36351 | } | |
36352 | if (obj4) { | |
36353 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36354 | if (!SWIG_IsOK(ecode5)) { | |
36355 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'"); | |
36356 | } | |
36357 | arg5 = static_cast< int >(val5); | |
36358 | } | |
36359 | if (obj5) { | |
36360 | res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36361 | if (!SWIG_IsOK(res6)) { | |
36362 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'"); | |
3a04f143 | 36363 | } |
0085ce49 RD |
36364 | } |
36365 | { | |
36366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36367 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
36368 | wxPyEndAllowThreads(__tstate); | |
36369 | if (PyErr_Occurred()) SWIG_fail; | |
36370 | } | |
36371 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36372 | { | |
36373 | if (temp3) | |
36374 | delete arg3; | |
36375 | } | |
36376 | return resultobj; | |
36377 | fail: | |
36378 | { | |
36379 | if (temp3) | |
36380 | delete arg3; | |
36381 | } | |
36382 | return NULL; | |
36383 | } | |
36384 | ||
36385 | ||
36386 | SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36387 | PyObject *resultobj = 0; | |
36388 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36389 | wxTreeItemId *arg2 = 0 ; | |
36390 | wxTreeItemId *arg3 = 0 ; | |
36391 | wxString *arg4 = 0 ; | |
36392 | int arg5 = (int) -1 ; | |
36393 | int arg6 = (int) -1 ; | |
36394 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
36395 | wxTreeItemId result; | |
36396 | void *argp1 = 0 ; | |
36397 | int res1 = 0 ; | |
36398 | void *argp2 = 0 ; | |
36399 | int res2 = 0 ; | |
36400 | void *argp3 = 0 ; | |
36401 | int res3 = 0 ; | |
36402 | bool temp4 = false ; | |
36403 | int val5 ; | |
36404 | int ecode5 = 0 ; | |
36405 | int val6 ; | |
36406 | int ecode6 = 0 ; | |
36407 | int res7 = 0 ; | |
36408 | PyObject * obj0 = 0 ; | |
36409 | PyObject * obj1 = 0 ; | |
36410 | PyObject * obj2 = 0 ; | |
36411 | PyObject * obj3 = 0 ; | |
36412 | PyObject * obj4 = 0 ; | |
36413 | PyObject * obj5 = 0 ; | |
36414 | PyObject * obj6 = 0 ; | |
36415 | char * kwnames[] = { | |
36416 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36417 | }; | |
36418 | ||
36419 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36420 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36421 | if (!SWIG_IsOK(res1)) { | |
36422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36423 | } | |
36424 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36425 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36426 | if (!SWIG_IsOK(res2)) { | |
36427 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36428 | } | |
36429 | if (!argp2) { | |
36430 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36431 | } | |
36432 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36433 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36434 | if (!SWIG_IsOK(res3)) { | |
36435 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'"); | |
36436 | } | |
36437 | if (!argp3) { | |
36438 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'"); | |
36439 | } | |
36440 | arg3 = reinterpret_cast< wxTreeItemId * >(argp3); | |
36441 | { | |
36442 | arg4 = wxString_in_helper(obj3); | |
36443 | if (arg4 == NULL) SWIG_fail; | |
36444 | temp4 = true; | |
36445 | } | |
36446 | if (obj4) { | |
36447 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36448 | if (!SWIG_IsOK(ecode5)) { | |
36449 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'"); | |
36450 | } | |
36451 | arg5 = static_cast< int >(val5); | |
36452 | } | |
36453 | if (obj5) { | |
36454 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
36455 | if (!SWIG_IsOK(ecode6)) { | |
36456 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'"); | |
36457 | } | |
36458 | arg6 = static_cast< int >(val6); | |
36459 | } | |
36460 | if (obj6) { | |
36461 | res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36462 | if (!SWIG_IsOK(res7)) { | |
36463 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'"); | |
093d3ff1 | 36464 | } |
0085ce49 RD |
36465 | } |
36466 | { | |
36467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36468 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
36469 | wxPyEndAllowThreads(__tstate); | |
36470 | if (PyErr_Occurred()) SWIG_fail; | |
36471 | } | |
36472 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36473 | { | |
36474 | if (temp4) | |
36475 | delete arg4; | |
36476 | } | |
36477 | return resultobj; | |
36478 | fail: | |
36479 | { | |
36480 | if (temp4) | |
36481 | delete arg4; | |
36482 | } | |
36483 | return NULL; | |
36484 | } | |
36485 | ||
36486 | ||
36487 | SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36488 | PyObject *resultobj = 0; | |
36489 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36490 | wxTreeItemId *arg2 = 0 ; | |
36491 | size_t arg3 ; | |
36492 | wxString *arg4 = 0 ; | |
36493 | int arg5 = (int) -1 ; | |
36494 | int arg6 = (int) -1 ; | |
36495 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
36496 | wxTreeItemId result; | |
36497 | void *argp1 = 0 ; | |
36498 | int res1 = 0 ; | |
36499 | void *argp2 = 0 ; | |
36500 | int res2 = 0 ; | |
36501 | size_t val3 ; | |
36502 | int ecode3 = 0 ; | |
36503 | bool temp4 = false ; | |
36504 | int val5 ; | |
36505 | int ecode5 = 0 ; | |
36506 | int val6 ; | |
36507 | int ecode6 = 0 ; | |
36508 | int res7 = 0 ; | |
36509 | PyObject * obj0 = 0 ; | |
36510 | PyObject * obj1 = 0 ; | |
36511 | PyObject * obj2 = 0 ; | |
36512 | PyObject * obj3 = 0 ; | |
36513 | PyObject * obj4 = 0 ; | |
36514 | PyObject * obj5 = 0 ; | |
36515 | PyObject * obj6 = 0 ; | |
36516 | char * kwnames[] = { | |
36517 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36518 | }; | |
36519 | ||
36520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36521 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36522 | if (!SWIG_IsOK(res1)) { | |
36523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36524 | } | |
36525 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36526 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36527 | if (!SWIG_IsOK(res2)) { | |
36528 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36529 | } | |
36530 | if (!argp2) { | |
36531 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36532 | } | |
36533 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36534 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
36535 | if (!SWIG_IsOK(ecode3)) { | |
36536 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'"); | |
36537 | } | |
36538 | arg3 = static_cast< size_t >(val3); | |
36539 | { | |
36540 | arg4 = wxString_in_helper(obj3); | |
36541 | if (arg4 == NULL) SWIG_fail; | |
36542 | temp4 = true; | |
36543 | } | |
36544 | if (obj4) { | |
36545 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36546 | if (!SWIG_IsOK(ecode5)) { | |
36547 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'"); | |
36548 | } | |
36549 | arg5 = static_cast< int >(val5); | |
36550 | } | |
36551 | if (obj5) { | |
36552 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
36553 | if (!SWIG_IsOK(ecode6)) { | |
36554 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'"); | |
36555 | } | |
36556 | arg6 = static_cast< int >(val6); | |
36557 | } | |
36558 | if (obj6) { | |
36559 | res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36560 | if (!SWIG_IsOK(res7)) { | |
36561 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'"); | |
3a04f143 | 36562 | } |
0085ce49 RD |
36563 | } |
36564 | { | |
36565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36566 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
36567 | wxPyEndAllowThreads(__tstate); | |
36568 | if (PyErr_Occurred()) SWIG_fail; | |
36569 | } | |
36570 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36571 | { | |
36572 | if (temp4) | |
36573 | delete arg4; | |
36574 | } | |
36575 | return resultobj; | |
36576 | fail: | |
36577 | { | |
36578 | if (temp4) | |
36579 | delete arg4; | |
36580 | } | |
36581 | return NULL; | |
36582 | } | |
36583 | ||
36584 | ||
36585 | SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36586 | PyObject *resultobj = 0; | |
36587 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36588 | wxTreeItemId *arg2 = 0 ; | |
36589 | wxString *arg3 = 0 ; | |
36590 | int arg4 = (int) -1 ; | |
36591 | int arg5 = (int) -1 ; | |
36592 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
36593 | wxTreeItemId result; | |
36594 | void *argp1 = 0 ; | |
36595 | int res1 = 0 ; | |
36596 | void *argp2 = 0 ; | |
36597 | int res2 = 0 ; | |
36598 | bool temp3 = false ; | |
36599 | int val4 ; | |
36600 | int ecode4 = 0 ; | |
36601 | int val5 ; | |
36602 | int ecode5 = 0 ; | |
36603 | int res6 = 0 ; | |
36604 | PyObject * obj0 = 0 ; | |
36605 | PyObject * obj1 = 0 ; | |
36606 | PyObject * obj2 = 0 ; | |
36607 | PyObject * obj3 = 0 ; | |
36608 | PyObject * obj4 = 0 ; | |
36609 | PyObject * obj5 = 0 ; | |
36610 | char * kwnames[] = { | |
36611 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36612 | }; | |
36613 | ||
36614 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
36615 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36616 | if (!SWIG_IsOK(res1)) { | |
36617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36618 | } | |
36619 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36620 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36621 | if (!SWIG_IsOK(res2)) { | |
36622 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36623 | } | |
36624 | if (!argp2) { | |
36625 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36626 | } | |
36627 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36628 | { | |
36629 | arg3 = wxString_in_helper(obj2); | |
36630 | if (arg3 == NULL) SWIG_fail; | |
36631 | temp3 = true; | |
36632 | } | |
36633 | if (obj3) { | |
36634 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36635 | if (!SWIG_IsOK(ecode4)) { | |
36636 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'"); | |
36637 | } | |
36638 | arg4 = static_cast< int >(val4); | |
36639 | } | |
36640 | if (obj4) { | |
36641 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36642 | if (!SWIG_IsOK(ecode5)) { | |
36643 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'"); | |
36644 | } | |
36645 | arg5 = static_cast< int >(val5); | |
36646 | } | |
36647 | if (obj5) { | |
36648 | res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36649 | if (!SWIG_IsOK(res6)) { | |
36650 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'"); | |
3a04f143 | 36651 | } |
0085ce49 RD |
36652 | } |
36653 | { | |
36654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36655 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
36656 | wxPyEndAllowThreads(__tstate); | |
36657 | if (PyErr_Occurred()) SWIG_fail; | |
36658 | } | |
36659 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36660 | { | |
36661 | if (temp3) | |
36662 | delete arg3; | |
36663 | } | |
36664 | return resultobj; | |
36665 | fail: | |
36666 | { | |
36667 | if (temp3) | |
36668 | delete arg3; | |
36669 | } | |
36670 | return NULL; | |
36671 | } | |
36672 | ||
36673 | ||
36674 | SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36675 | PyObject *resultobj = 0; | |
36676 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36677 | wxTreeItemId *arg2 = 0 ; | |
36678 | void *argp1 = 0 ; | |
36679 | int res1 = 0 ; | |
36680 | void *argp2 = 0 ; | |
36681 | int res2 = 0 ; | |
36682 | PyObject * obj0 = 0 ; | |
36683 | PyObject * obj1 = 0 ; | |
36684 | char * kwnames[] = { | |
36685 | (char *) "self",(char *) "item", NULL | |
36686 | }; | |
36687 | ||
36688 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail; | |
36689 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36690 | if (!SWIG_IsOK(res1)) { | |
36691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36692 | } | |
36693 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36694 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36695 | if (!SWIG_IsOK(res2)) { | |
36696 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36697 | } | |
36698 | if (!argp2) { | |
36699 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36700 | } | |
36701 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36702 | { | |
36703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36704 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
36705 | wxPyEndAllowThreads(__tstate); | |
36706 | if (PyErr_Occurred()) SWIG_fail; | |
36707 | } | |
36708 | resultobj = SWIG_Py_Void(); | |
36709 | return resultobj; | |
36710 | fail: | |
36711 | return NULL; | |
36712 | } | |
36713 | ||
36714 | ||
36715 | SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36716 | PyObject *resultobj = 0; | |
36717 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36718 | wxTreeItemId *arg2 = 0 ; | |
36719 | void *argp1 = 0 ; | |
36720 | int res1 = 0 ; | |
36721 | void *argp2 = 0 ; | |
36722 | int res2 = 0 ; | |
36723 | PyObject * obj0 = 0 ; | |
36724 | PyObject * obj1 = 0 ; | |
36725 | char * kwnames[] = { | |
36726 | (char *) "self",(char *) "item", NULL | |
36727 | }; | |
36728 | ||
36729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
36730 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36731 | if (!SWIG_IsOK(res1)) { | |
36732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36733 | } | |
36734 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36735 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36736 | if (!SWIG_IsOK(res2)) { | |
36737 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36738 | } | |
36739 | if (!argp2) { | |
36740 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36741 | } | |
36742 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36743 | { | |
36744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36745 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
36746 | wxPyEndAllowThreads(__tstate); | |
36747 | if (PyErr_Occurred()) SWIG_fail; | |
36748 | } | |
36749 | resultobj = SWIG_Py_Void(); | |
36750 | return resultobj; | |
36751 | fail: | |
36752 | return NULL; | |
3a04f143 RD |
36753 | } |
36754 | ||
36755 | ||
0085ce49 RD |
36756 | SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36757 | PyObject *resultobj = 0; | |
36758 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36759 | void *argp1 = 0 ; | |
36760 | int res1 = 0 ; | |
36761 | PyObject *swig_obj[1] ; | |
36762 | ||
36763 | if (!args) SWIG_fail; | |
36764 | swig_obj[0] = args; | |
36765 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36766 | if (!SWIG_IsOK(res1)) { | |
36767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36768 | } | |
36769 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36770 | { | |
36771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36772 | (arg1)->DeleteAllItems(); | |
36773 | wxPyEndAllowThreads(__tstate); | |
36774 | if (PyErr_Occurred()) SWIG_fail; | |
36775 | } | |
36776 | resultobj = SWIG_Py_Void(); | |
36777 | return resultobj; | |
36778 | fail: | |
36779 | return NULL; | |
36780 | } | |
36781 | ||
36782 | ||
36783 | SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36784 | PyObject *resultobj = 0; | |
36785 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36786 | wxTreeItemId *arg2 = 0 ; | |
36787 | void *argp1 = 0 ; | |
36788 | int res1 = 0 ; | |
36789 | void *argp2 = 0 ; | |
36790 | int res2 = 0 ; | |
36791 | PyObject * obj0 = 0 ; | |
36792 | PyObject * obj1 = 0 ; | |
36793 | char * kwnames[] = { | |
36794 | (char *) "self",(char *) "item", NULL | |
36795 | }; | |
36796 | ||
36797 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail; | |
36798 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36799 | if (!SWIG_IsOK(res1)) { | |
36800 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36801 | } | |
36802 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36803 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36804 | if (!SWIG_IsOK(res2)) { | |
36805 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36806 | } | |
36807 | if (!argp2) { | |
36808 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36809 | } | |
36810 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36811 | { | |
36812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36813 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
36814 | wxPyEndAllowThreads(__tstate); | |
36815 | if (PyErr_Occurred()) SWIG_fail; | |
36816 | } | |
36817 | resultobj = SWIG_Py_Void(); | |
36818 | return resultobj; | |
36819 | fail: | |
36820 | return NULL; | |
36821 | } | |
36822 | ||
36823 | ||
453fb36b RD |
36824 | SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36825 | PyObject *resultobj = 0; | |
36826 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36827 | wxTreeItemId *arg2 = 0 ; | |
36828 | void *argp1 = 0 ; | |
36829 | int res1 = 0 ; | |
36830 | void *argp2 = 0 ; | |
36831 | int res2 = 0 ; | |
36832 | PyObject * obj0 = 0 ; | |
36833 | PyObject * obj1 = 0 ; | |
36834 | char * kwnames[] = { | |
36835 | (char *) "self",(char *) "item", NULL | |
36836 | }; | |
36837 | ||
36838 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
36839 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36840 | if (!SWIG_IsOK(res1)) { | |
36841 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36842 | } | |
36843 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36844 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36845 | if (!SWIG_IsOK(res2)) { | |
36846 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36847 | } | |
36848 | if (!argp2) { | |
36849 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36850 | } | |
36851 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36852 | { | |
36853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36854 | (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2); | |
36855 | wxPyEndAllowThreads(__tstate); | |
36856 | if (PyErr_Occurred()) SWIG_fail; | |
36857 | } | |
36858 | resultobj = SWIG_Py_Void(); | |
36859 | return resultobj; | |
36860 | fail: | |
36861 | return NULL; | |
36862 | } | |
36863 | ||
36864 | ||
36865 | SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36866 | PyObject *resultobj = 0; | |
36867 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36868 | void *argp1 = 0 ; | |
36869 | int res1 = 0 ; | |
36870 | PyObject *swig_obj[1] ; | |
36871 | ||
36872 | if (!args) SWIG_fail; | |
36873 | swig_obj[0] = args; | |
36874 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36875 | if (!SWIG_IsOK(res1)) { | |
36876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36877 | } | |
36878 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36879 | { | |
36880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36881 | (arg1)->ExpandAll(); | |
36882 | wxPyEndAllowThreads(__tstate); | |
36883 | if (PyErr_Occurred()) SWIG_fail; | |
36884 | } | |
36885 | resultobj = SWIG_Py_Void(); | |
36886 | return resultobj; | |
36887 | fail: | |
36888 | return NULL; | |
36889 | } | |
36890 | ||
36891 | ||
0085ce49 RD |
36892 | SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36893 | PyObject *resultobj = 0; | |
36894 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36895 | wxTreeItemId *arg2 = 0 ; | |
36896 | void *argp1 = 0 ; | |
36897 | int res1 = 0 ; | |
36898 | void *argp2 = 0 ; | |
36899 | int res2 = 0 ; | |
36900 | PyObject * obj0 = 0 ; | |
36901 | PyObject * obj1 = 0 ; | |
36902 | char * kwnames[] = { | |
36903 | (char *) "self",(char *) "item", NULL | |
36904 | }; | |
36905 | ||
36906 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail; | |
36907 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36908 | if (!SWIG_IsOK(res1)) { | |
36909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36910 | } | |
36911 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36912 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36913 | if (!SWIG_IsOK(res2)) { | |
36914 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36915 | } | |
36916 | if (!argp2) { | |
36917 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36918 | } | |
36919 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36920 | { | |
36921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36922 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
36923 | wxPyEndAllowThreads(__tstate); | |
36924 | if (PyErr_Occurred()) SWIG_fail; | |
36925 | } | |
36926 | resultobj = SWIG_Py_Void(); | |
36927 | return resultobj; | |
36928 | fail: | |
36929 | return NULL; | |
36930 | } | |
36931 | ||
36932 | ||
1ceb4f4d RD |
36933 | SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36934 | PyObject *resultobj = 0; | |
36935 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36936 | wxTreeItemId *arg2 = 0 ; | |
36937 | void *argp1 = 0 ; | |
36938 | int res1 = 0 ; | |
36939 | void *argp2 = 0 ; | |
36940 | int res2 = 0 ; | |
36941 | PyObject * obj0 = 0 ; | |
36942 | PyObject * obj1 = 0 ; | |
36943 | char * kwnames[] = { | |
36944 | (char *) "self",(char *) "item", NULL | |
36945 | }; | |
36946 | ||
36947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAllChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
36948 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36949 | if (!SWIG_IsOK(res1)) { | |
36950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36951 | } | |
36952 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36953 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36954 | if (!SWIG_IsOK(res2)) { | |
36955 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36956 | } | |
36957 | if (!argp2) { | |
36958 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36959 | } | |
36960 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36961 | { | |
36962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36963 | (arg1)->CollapseAllChildren((wxTreeItemId const &)*arg2); | |
36964 | wxPyEndAllowThreads(__tstate); | |
36965 | if (PyErr_Occurred()) SWIG_fail; | |
36966 | } | |
36967 | resultobj = SWIG_Py_Void(); | |
36968 | return resultobj; | |
36969 | fail: | |
36970 | return NULL; | |
36971 | } | |
36972 | ||
36973 | ||
36974 | SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36975 | PyObject *resultobj = 0; | |
36976 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36977 | void *argp1 = 0 ; | |
36978 | int res1 = 0 ; | |
36979 | PyObject *swig_obj[1] ; | |
36980 | ||
36981 | if (!args) SWIG_fail; | |
36982 | swig_obj[0] = args; | |
36983 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36984 | if (!SWIG_IsOK(res1)) { | |
36985 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36986 | } | |
36987 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36988 | { | |
36989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36990 | (arg1)->CollapseAll(); | |
36991 | wxPyEndAllowThreads(__tstate); | |
36992 | if (PyErr_Occurred()) SWIG_fail; | |
36993 | } | |
36994 | resultobj = SWIG_Py_Void(); | |
36995 | return resultobj; | |
36996 | fail: | |
36997 | return NULL; | |
36998 | } | |
36999 | ||
37000 | ||
0085ce49 RD |
37001 | SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
37002 | PyObject *resultobj = 0; | |
37003 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37004 | wxTreeItemId *arg2 = 0 ; | |
37005 | void *argp1 = 0 ; | |
37006 | int res1 = 0 ; | |
37007 | void *argp2 = 0 ; | |
37008 | int res2 = 0 ; | |
37009 | PyObject * obj0 = 0 ; | |
37010 | PyObject * obj1 = 0 ; | |
37011 | char * kwnames[] = { | |
37012 | (char *) "self",(char *) "item", NULL | |
37013 | }; | |
37014 | ||
37015 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail; | |
37016 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37017 | if (!SWIG_IsOK(res1)) { | |
37018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37019 | } | |
37020 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37021 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37022 | if (!SWIG_IsOK(res2)) { | |
37023 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37024 | } | |
37025 | if (!argp2) { | |
37026 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37027 | } | |
37028 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37029 | { | |
37030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37031 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
37032 | wxPyEndAllowThreads(__tstate); | |
37033 | if (PyErr_Occurred()) SWIG_fail; | |
37034 | } | |
37035 | resultobj = SWIG_Py_Void(); | |
37036 | return resultobj; | |
37037 | fail: | |
37038 | return NULL; | |
37039 | } | |
37040 | ||
37041 | ||
37042 | SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37043 | PyObject *resultobj = 0; | |
37044 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37045 | wxTreeItemId *arg2 = 0 ; | |
37046 | void *argp1 = 0 ; | |
37047 | int res1 = 0 ; | |
37048 | void *argp2 = 0 ; | |
37049 | int res2 = 0 ; | |
37050 | PyObject * obj0 = 0 ; | |
37051 | PyObject * obj1 = 0 ; | |
37052 | char * kwnames[] = { | |
37053 | (char *) "self",(char *) "item", NULL | |
37054 | }; | |
37055 | ||
37056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
37057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37058 | if (!SWIG_IsOK(res1)) { | |
37059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37060 | } | |
37061 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37062 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37063 | if (!SWIG_IsOK(res2)) { | |
37064 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37065 | } | |
37066 | if (!argp2) { | |
37067 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37068 | } | |
37069 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37070 | { | |
37071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37072 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
37073 | wxPyEndAllowThreads(__tstate); | |
37074 | if (PyErr_Occurred()) SWIG_fail; | |
37075 | } | |
37076 | resultobj = SWIG_Py_Void(); | |
37077 | return resultobj; | |
37078 | fail: | |
37079 | return NULL; | |
d14a1e28 RD |
37080 | } |
37081 | ||
37082 | ||
0085ce49 RD |
37083 | SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37084 | PyObject *resultobj = 0; | |
37085 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37086 | void *argp1 = 0 ; | |
37087 | int res1 = 0 ; | |
37088 | PyObject *swig_obj[1] ; | |
37089 | ||
37090 | if (!args) SWIG_fail; | |
37091 | swig_obj[0] = args; | |
37092 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37093 | if (!SWIG_IsOK(res1)) { | |
37094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37095 | } | |
37096 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37097 | { | |
37098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37099 | (arg1)->Unselect(); | |
37100 | wxPyEndAllowThreads(__tstate); | |
37101 | if (PyErr_Occurred()) SWIG_fail; | |
37102 | } | |
37103 | resultobj = SWIG_Py_Void(); | |
37104 | return resultobj; | |
37105 | fail: | |
37106 | return NULL; | |
37107 | } | |
37108 | ||
37109 | ||
37110 | SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37111 | PyObject *resultobj = 0; | |
37112 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37113 | wxTreeItemId *arg2 = 0 ; | |
37114 | void *argp1 = 0 ; | |
37115 | int res1 = 0 ; | |
37116 | void *argp2 = 0 ; | |
37117 | int res2 = 0 ; | |
37118 | PyObject * obj0 = 0 ; | |
37119 | PyObject * obj1 = 0 ; | |
37120 | char * kwnames[] = { | |
37121 | (char *) "self",(char *) "item", NULL | |
37122 | }; | |
37123 | ||
37124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
37125 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37126 | if (!SWIG_IsOK(res1)) { | |
37127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37128 | } | |
37129 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37130 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37131 | if (!SWIG_IsOK(res2)) { | |
37132 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37133 | } | |
37134 | if (!argp2) { | |
37135 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37136 | } | |
37137 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37138 | { | |
37139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37140 | (arg1)->UnselectItem((wxTreeItemId const &)*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_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37152 | PyObject *resultobj = 0; | |
37153 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37154 | void *argp1 = 0 ; | |
37155 | int res1 = 0 ; | |
37156 | PyObject *swig_obj[1] ; | |
37157 | ||
37158 | if (!args) SWIG_fail; | |
37159 | swig_obj[0] = args; | |
37160 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37161 | if (!SWIG_IsOK(res1)) { | |
37162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37163 | } | |
37164 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37165 | { | |
37166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37167 | (arg1)->UnselectAll(); | |
37168 | wxPyEndAllowThreads(__tstate); | |
37169 | if (PyErr_Occurred()) SWIG_fail; | |
37170 | } | |
37171 | resultobj = SWIG_Py_Void(); | |
37172 | return resultobj; | |
37173 | fail: | |
37174 | return NULL; | |
37175 | } | |
37176 | ||
37177 | ||
37178 | SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37179 | PyObject *resultobj = 0; | |
37180 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37181 | wxTreeItemId *arg2 = 0 ; | |
37182 | bool arg3 = (bool) true ; | |
37183 | void *argp1 = 0 ; | |
37184 | int res1 = 0 ; | |
37185 | void *argp2 = 0 ; | |
37186 | int res2 = 0 ; | |
37187 | bool val3 ; | |
37188 | int ecode3 = 0 ; | |
37189 | PyObject * obj0 = 0 ; | |
37190 | PyObject * obj1 = 0 ; | |
37191 | PyObject * obj2 = 0 ; | |
37192 | char * kwnames[] = { | |
37193 | (char *) "self",(char *) "item",(char *) "select", NULL | |
37194 | }; | |
37195 | ||
37196 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37197 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37198 | if (!SWIG_IsOK(res1)) { | |
37199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37200 | } | |
37201 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37202 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37203 | if (!SWIG_IsOK(res2)) { | |
37204 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37205 | } | |
37206 | if (!argp2) { | |
37207 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37208 | } | |
37209 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37210 | if (obj2) { | |
37211 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
37212 | if (!SWIG_IsOK(ecode3)) { | |
37213 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'"); | |
37214 | } | |
37215 | arg3 = static_cast< bool >(val3); | |
37216 | } | |
37217 | { | |
37218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37219 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
37220 | wxPyEndAllowThreads(__tstate); | |
37221 | if (PyErr_Occurred()) SWIG_fail; | |
37222 | } | |
37223 | resultobj = SWIG_Py_Void(); | |
37224 | return resultobj; | |
37225 | fail: | |
37226 | return NULL; | |
37227 | } | |
37228 | ||
37229 | ||
37230 | SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37231 | PyObject *resultobj = 0; | |
37232 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37233 | wxTreeItemId *arg2 = 0 ; | |
37234 | void *argp1 = 0 ; | |
37235 | int res1 = 0 ; | |
37236 | void *argp2 = 0 ; | |
37237 | int res2 = 0 ; | |
37238 | PyObject * obj0 = 0 ; | |
37239 | PyObject * obj1 = 0 ; | |
37240 | char * kwnames[] = { | |
37241 | (char *) "self",(char *) "item", NULL | |
37242 | }; | |
37243 | ||
37244 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
37245 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37246 | if (!SWIG_IsOK(res1)) { | |
37247 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37248 | } | |
37249 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37250 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37251 | if (!SWIG_IsOK(res2)) { | |
37252 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37253 | } | |
37254 | if (!argp2) { | |
37255 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37256 | } | |
37257 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37258 | { | |
37259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37260 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); | |
37261 | wxPyEndAllowThreads(__tstate); | |
37262 | if (PyErr_Occurred()) SWIG_fail; | |
37263 | } | |
37264 | resultobj = SWIG_Py_Void(); | |
37265 | return resultobj; | |
37266 | fail: | |
37267 | return NULL; | |
37268 | } | |
37269 | ||
37270 | ||
37271 | SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37272 | PyObject *resultobj = 0; | |
37273 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37274 | wxTreeItemId *arg2 = 0 ; | |
37275 | void *argp1 = 0 ; | |
37276 | int res1 = 0 ; | |
37277 | void *argp2 = 0 ; | |
37278 | int res2 = 0 ; | |
37279 | PyObject * obj0 = 0 ; | |
37280 | PyObject * obj1 = 0 ; | |
37281 | char * kwnames[] = { | |
37282 | (char *) "self",(char *) "item", NULL | |
37283 | }; | |
37284 | ||
37285 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
37286 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37287 | if (!SWIG_IsOK(res1)) { | |
37288 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37289 | } | |
37290 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37291 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37292 | if (!SWIG_IsOK(res2)) { | |
37293 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37294 | } | |
37295 | if (!argp2) { | |
37296 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37297 | } | |
37298 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37299 | { | |
37300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37301 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
37302 | wxPyEndAllowThreads(__tstate); | |
37303 | if (PyErr_Occurred()) SWIG_fail; | |
37304 | } | |
37305 | resultobj = SWIG_Py_Void(); | |
37306 | return resultobj; | |
37307 | fail: | |
37308 | return NULL; | |
37309 | } | |
37310 | ||
37311 | ||
37312 | SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37313 | PyObject *resultobj = 0; | |
37314 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37315 | wxTreeItemId *arg2 = 0 ; | |
37316 | void *argp1 = 0 ; | |
37317 | int res1 = 0 ; | |
37318 | void *argp2 = 0 ; | |
37319 | int res2 = 0 ; | |
37320 | PyObject * obj0 = 0 ; | |
37321 | PyObject * obj1 = 0 ; | |
37322 | char * kwnames[] = { | |
37323 | (char *) "self",(char *) "item", NULL | |
37324 | }; | |
37325 | ||
37326 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail; | |
37327 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37328 | if (!SWIG_IsOK(res1)) { | |
37329 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37330 | } | |
37331 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37332 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37333 | if (!SWIG_IsOK(res2)) { | |
37334 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37335 | } | |
37336 | if (!argp2) { | |
37337 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37338 | } | |
37339 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37340 | { | |
37341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37342 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
37343 | wxPyEndAllowThreads(__tstate); | |
37344 | if (PyErr_Occurred()) SWIG_fail; | |
37345 | } | |
37346 | resultobj = SWIG_Py_Void(); | |
37347 | return resultobj; | |
37348 | fail: | |
37349 | return NULL; | |
37350 | } | |
37351 | ||
37352 | ||
37353 | SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37354 | PyObject *resultobj = 0; | |
37355 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37356 | wxTreeItemId *arg2 = 0 ; | |
37357 | void *argp1 = 0 ; | |
37358 | int res1 = 0 ; | |
37359 | void *argp2 = 0 ; | |
37360 | int res2 = 0 ; | |
37361 | PyObject * obj0 = 0 ; | |
37362 | PyObject * obj1 = 0 ; | |
37363 | char * kwnames[] = { | |
37364 | (char *) "self",(char *) "item", NULL | |
37365 | }; | |
37366 | ||
37367 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
37368 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37369 | if (!SWIG_IsOK(res1)) { | |
37370 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37371 | } | |
37372 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37373 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37374 | if (!SWIG_IsOK(res2)) { | |
37375 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37376 | } | |
37377 | if (!argp2) { | |
37378 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37379 | } | |
37380 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37381 | { | |
37382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37383 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
37384 | wxPyEndAllowThreads(__tstate); | |
37385 | if (PyErr_Occurred()) SWIG_fail; | |
37386 | } | |
37387 | resultobj = SWIG_Py_Void(); | |
37388 | return resultobj; | |
37389 | fail: | |
37390 | return NULL; | |
d14a1e28 RD |
37391 | } |
37392 | ||
37393 | ||
0085ce49 RD |
37394 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37395 | PyObject *resultobj = 0; | |
37396 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37397 | wxTextCtrl *result = 0 ; | |
37398 | void *argp1 = 0 ; | |
37399 | int res1 = 0 ; | |
37400 | PyObject *swig_obj[1] ; | |
37401 | ||
37402 | if (!args) SWIG_fail; | |
37403 | swig_obj[0] = args; | |
37404 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37405 | if (!SWIG_IsOK(res1)) { | |
37406 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
37407 | } | |
37408 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37409 | { | |
37410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37411 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
37412 | wxPyEndAllowThreads(__tstate); | |
37413 | if (PyErr_Occurred()) SWIG_fail; | |
37414 | } | |
37415 | { | |
37416 | resultobj = wxPyMake_wxObject(result, 0); | |
37417 | } | |
37418 | return resultobj; | |
37419 | fail: | |
37420 | return NULL; | |
37421 | } | |
37422 | ||
37423 | ||
37424 | SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37425 | PyObject *resultobj = 0; | |
37426 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37427 | wxTreeItemId *arg2 = 0 ; | |
37428 | void *argp1 = 0 ; | |
37429 | int res1 = 0 ; | |
37430 | void *argp2 = 0 ; | |
37431 | int res2 = 0 ; | |
37432 | PyObject * obj0 = 0 ; | |
37433 | PyObject * obj1 = 0 ; | |
37434 | char * kwnames[] = { | |
37435 | (char *) "self",(char *) "item", NULL | |
37436 | }; | |
37437 | ||
37438 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
37439 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37440 | if (!SWIG_IsOK(res1)) { | |
37441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37442 | } | |
37443 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37444 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37445 | if (!SWIG_IsOK(res2)) { | |
37446 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37447 | } | |
37448 | if (!argp2) { | |
37449 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37450 | } | |
37451 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37452 | { | |
37453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37454 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
37455 | wxPyEndAllowThreads(__tstate); | |
37456 | if (PyErr_Occurred()) SWIG_fail; | |
37457 | } | |
37458 | resultobj = SWIG_Py_Void(); | |
37459 | return resultobj; | |
37460 | fail: | |
37461 | return NULL; | |
37462 | } | |
37463 | ||
37464 | ||
37465 | SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37466 | PyObject *resultobj = 0; | |
37467 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37468 | wxPoint *arg2 = 0 ; | |
37469 | int *arg3 = 0 ; | |
37470 | wxTreeItemId result; | |
37471 | void *argp1 = 0 ; | |
37472 | int res1 = 0 ; | |
37473 | wxPoint temp2 ; | |
37474 | int temp3 ; | |
37475 | int res3 = SWIG_TMPOBJ ; | |
37476 | PyObject * obj0 = 0 ; | |
37477 | PyObject * obj1 = 0 ; | |
37478 | char * kwnames[] = { | |
37479 | (char *) "self",(char *) "point", NULL | |
37480 | }; | |
37481 | ||
37482 | arg3 = &temp3; | |
37483 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
37484 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37485 | if (!SWIG_IsOK(res1)) { | |
37486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37487 | } | |
37488 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37489 | { | |
37490 | arg2 = &temp2; | |
37491 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37492 | } | |
37493 | { | |
37494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37495 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
37496 | wxPyEndAllowThreads(__tstate); | |
37497 | if (PyErr_Occurred()) SWIG_fail; | |
37498 | } | |
37499 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
37500 | if (SWIG_IsTmpObj(res3)) { | |
37501 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
37502 | } else { | |
37503 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
37504 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
37505 | } | |
37506 | return resultobj; | |
37507 | fail: | |
37508 | return NULL; | |
37509 | } | |
37510 | ||
37511 | ||
37512 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37513 | PyObject *resultobj = 0; | |
37514 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37515 | wxTreeItemId *arg2 = 0 ; | |
37516 | bool arg3 = (bool) false ; | |
37517 | PyObject *result = 0 ; | |
37518 | void *argp1 = 0 ; | |
37519 | int res1 = 0 ; | |
37520 | void *argp2 = 0 ; | |
37521 | int res2 = 0 ; | |
37522 | bool val3 ; | |
37523 | int ecode3 = 0 ; | |
37524 | PyObject * obj0 = 0 ; | |
37525 | PyObject * obj1 = 0 ; | |
37526 | PyObject * obj2 = 0 ; | |
37527 | char * kwnames[] = { | |
37528 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
37529 | }; | |
37530 | ||
37531 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37532 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37533 | if (!SWIG_IsOK(res1)) { | |
37534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37535 | } | |
37536 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37537 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37538 | if (!SWIG_IsOK(res2)) { | |
37539 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37540 | } | |
37541 | if (!argp2) { | |
37542 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37543 | } | |
37544 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37545 | if (obj2) { | |
37546 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
37547 | if (!SWIG_IsOK(ecode3)) { | |
37548 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'"); | |
37549 | } | |
37550 | arg3 = static_cast< bool >(val3); | |
37551 | } | |
37552 | { | |
37553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37554 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
37555 | wxPyEndAllowThreads(__tstate); | |
37556 | if (PyErr_Occurred()) SWIG_fail; | |
37557 | } | |
37558 | resultobj = result; | |
37559 | return resultobj; | |
37560 | fail: | |
37561 | return NULL; | |
37562 | } | |
37563 | ||
37564 | ||
37565 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37566 | PyObject *resultobj = 0; | |
37567 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
37568 | SwigValueWrapper<wxVisualAttributes > result; | |
37569 | int val1 ; | |
37570 | int ecode1 = 0 ; | |
37571 | PyObject * obj0 = 0 ; | |
37572 | char * kwnames[] = { | |
37573 | (char *) "variant", NULL | |
37574 | }; | |
37575 | ||
37576 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
37577 | if (obj0) { | |
37578 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
37579 | if (!SWIG_IsOK(ecode1)) { | |
37580 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
37581 | } | |
37582 | arg1 = static_cast< wxWindowVariant >(val1); | |
37583 | } | |
37584 | { | |
37585 | if (!wxPyCheckForApp()) SWIG_fail; | |
37586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37587 | result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1); | |
37588 | wxPyEndAllowThreads(__tstate); | |
37589 | if (PyErr_Occurred()) SWIG_fail; | |
37590 | } | |
37591 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
37592 | return resultobj; | |
37593 | fail: | |
37594 | return NULL; | |
d14a1e28 RD |
37595 | } |
37596 | ||
37597 | ||
2131d850 RD |
37598 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
37599 | PyObject *resultobj = 0; | |
37600 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37601 | bool arg2 ; | |
37602 | void *argp1 = 0 ; | |
37603 | int res1 = 0 ; | |
37604 | bool val2 ; | |
37605 | int ecode2 = 0 ; | |
37606 | PyObject * obj0 = 0 ; | |
37607 | PyObject * obj1 = 0 ; | |
37608 | char * kwnames[] = { | |
37609 | (char *) "self",(char *) "q", NULL | |
37610 | }; | |
37611 | ||
37612 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
37613 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37614 | if (!SWIG_IsOK(res1)) { | |
37615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37616 | } | |
37617 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37618 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
37619 | if (!SWIG_IsOK(ecode2)) { | |
37620 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'"); | |
37621 | } | |
37622 | arg2 = static_cast< bool >(val2); | |
37623 | { | |
37624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37625 | (arg1)->SetQuickBestSize(arg2); | |
37626 | wxPyEndAllowThreads(__tstate); | |
37627 | if (PyErr_Occurred()) SWIG_fail; | |
37628 | } | |
37629 | resultobj = SWIG_Py_Void(); | |
37630 | return resultobj; | |
37631 | fail: | |
37632 | return NULL; | |
37633 | } | |
37634 | ||
37635 | ||
37636 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37637 | PyObject *resultobj = 0; | |
37638 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37639 | bool result; | |
37640 | void *argp1 = 0 ; | |
37641 | int res1 = 0 ; | |
37642 | PyObject *swig_obj[1] ; | |
37643 | ||
37644 | if (!args) SWIG_fail; | |
37645 | swig_obj[0] = args; | |
37646 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37647 | if (!SWIG_IsOK(res1)) { | |
37648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
37649 | } | |
37650 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37651 | { | |
37652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37653 | result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize(); | |
37654 | wxPyEndAllowThreads(__tstate); | |
37655 | if (PyErr_Occurred()) SWIG_fail; | |
37656 | } | |
37657 | { | |
37658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37659 | } | |
37660 | return resultobj; | |
37661 | fail: | |
37662 | return NULL; | |
37663 | } | |
37664 | ||
37665 | ||
0085ce49 RD |
37666 | SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37667 | PyObject *obj; | |
37668 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
37669 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj)); | |
37670 | return SWIG_Py_Void(); | |
d14a1e28 RD |
37671 | } |
37672 | ||
0085ce49 RD |
37673 | SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37674 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
37675 | } |
37676 | ||
0085ce49 RD |
37677 | SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) { |
37678 | SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
37679 | return 1; | |
d14a1e28 RD |
37680 | } |
37681 | ||
37682 | ||
0085ce49 RD |
37683 | SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) { |
37684 | PyObject *pyobj = 0; | |
37685 | ||
37686 | { | |
37687 | #if wxUSE_UNICODE | |
37688 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
37689 | #else | |
37690 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
37691 | #endif | |
37692 | } | |
37693 | return pyobj; | |
37694 | } | |
37695 | ||
37696 | ||
37697 | SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37698 | PyObject *resultobj = 0; | |
37699 | wxWindow *arg1 = (wxWindow *) 0 ; | |
37700 | int arg2 = (int) (int)-1 ; | |
37701 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
37702 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
37703 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
37704 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
37705 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
37706 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
37707 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
37708 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
37709 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
37710 | int arg8 = (int) 0 ; | |
37711 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
37712 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
37713 | wxGenericDirCtrl *result = 0 ; | |
37714 | void *argp1 = 0 ; | |
37715 | int res1 = 0 ; | |
37716 | int val2 ; | |
37717 | int ecode2 = 0 ; | |
37718 | bool temp3 = false ; | |
37719 | wxPoint temp4 ; | |
37720 | wxSize temp5 ; | |
37721 | long val6 ; | |
37722 | int ecode6 = 0 ; | |
37723 | bool temp7 = false ; | |
37724 | int val8 ; | |
37725 | int ecode8 = 0 ; | |
37726 | bool temp9 = false ; | |
37727 | PyObject * obj0 = 0 ; | |
37728 | PyObject * obj1 = 0 ; | |
37729 | PyObject * obj2 = 0 ; | |
37730 | PyObject * obj3 = 0 ; | |
37731 | PyObject * obj4 = 0 ; | |
37732 | PyObject * obj5 = 0 ; | |
37733 | PyObject * obj6 = 0 ; | |
37734 | PyObject * obj7 = 0 ; | |
37735 | PyObject * obj8 = 0 ; | |
37736 | char * kwnames[] = { | |
37737 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
37738 | }; | |
37739 | ||
37740 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
37741 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
37742 | if (!SWIG_IsOK(res1)) { | |
37743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
37744 | } | |
37745 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
37746 | if (obj1) { | |
37747 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37748 | if (!SWIG_IsOK(ecode2)) { | |
37749 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'"); | |
37750 | } | |
37751 | arg2 = static_cast< int >(val2); | |
37752 | } | |
37753 | if (obj2) { | |
d14a1e28 | 37754 | { |
0085ce49 RD |
37755 | arg3 = wxString_in_helper(obj2); |
37756 | if (arg3 == NULL) SWIG_fail; | |
37757 | temp3 = true; | |
d14a1e28 | 37758 | } |
0085ce49 RD |
37759 | } |
37760 | if (obj3) { | |
4f89f6a3 | 37761 | { |
0085ce49 RD |
37762 | arg4 = &temp4; |
37763 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 37764 | } |
0085ce49 RD |
37765 | } |
37766 | if (obj4) { | |
093d3ff1 | 37767 | { |
0085ce49 RD |
37768 | arg5 = &temp5; |
37769 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 37770 | } |
0085ce49 RD |
37771 | } |
37772 | if (obj5) { | |
37773 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
37774 | if (!SWIG_IsOK(ecode6)) { | |
37775 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'"); | |
37776 | } | |
37777 | arg6 = static_cast< long >(val6); | |
37778 | } | |
37779 | if (obj6) { | |
093d3ff1 | 37780 | { |
0085ce49 RD |
37781 | arg7 = wxString_in_helper(obj6); |
37782 | if (arg7 == NULL) SWIG_fail; | |
37783 | temp7 = true; | |
093d3ff1 | 37784 | } |
0085ce49 RD |
37785 | } |
37786 | if (obj7) { | |
37787 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
37788 | if (!SWIG_IsOK(ecode8)) { | |
37789 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'"); | |
37790 | } | |
37791 | arg8 = static_cast< int >(val8); | |
37792 | } | |
37793 | if (obj8) { | |
d14a1e28 | 37794 | { |
0085ce49 RD |
37795 | arg9 = wxString_in_helper(obj8); |
37796 | if (arg9 == NULL) SWIG_fail; | |
37797 | temp9 = true; | |
d14a1e28 | 37798 | } |
0085ce49 RD |
37799 | } |
37800 | { | |
37801 | if (!wxPyCheckForApp()) SWIG_fail; | |
37802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37803 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
37804 | wxPyEndAllowThreads(__tstate); | |
37805 | if (PyErr_Occurred()) SWIG_fail; | |
37806 | } | |
37807 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 ); | |
37808 | { | |
37809 | if (temp3) | |
37810 | delete arg3; | |
37811 | } | |
37812 | { | |
37813 | if (temp7) | |
37814 | delete arg7; | |
37815 | } | |
37816 | { | |
37817 | if (temp9) | |
37818 | delete arg9; | |
37819 | } | |
37820 | return resultobj; | |
37821 | fail: | |
37822 | { | |
37823 | if (temp3) | |
37824 | delete arg3; | |
37825 | } | |
37826 | { | |
37827 | if (temp7) | |
37828 | delete arg7; | |
37829 | } | |
37830 | { | |
37831 | if (temp9) | |
37832 | delete arg9; | |
37833 | } | |
37834 | return NULL; | |
d14a1e28 RD |
37835 | } |
37836 | ||
37837 | ||
0085ce49 RD |
37838 | SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37839 | PyObject *resultobj = 0; | |
37840 | wxGenericDirCtrl *result = 0 ; | |
37841 | ||
37842 | if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail; | |
37843 | { | |
37844 | if (!wxPyCheckForApp()) SWIG_fail; | |
37845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37846 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
37847 | wxPyEndAllowThreads(__tstate); | |
37848 | if (PyErr_Occurred()) SWIG_fail; | |
37849 | } | |
37850 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 ); | |
37851 | return resultobj; | |
37852 | fail: | |
37853 | return NULL; | |
37854 | } | |
37855 | ||
37856 | ||
37857 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37858 | PyObject *resultobj = 0; | |
37859 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37860 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37861 | int arg3 = (int) (int)-1 ; | |
37862 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
37863 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
37864 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
37865 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
37866 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
37867 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
37868 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
37869 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
37870 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
37871 | int arg9 = (int) 0 ; | |
37872 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
37873 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
37874 | bool result; | |
37875 | void *argp1 = 0 ; | |
37876 | int res1 = 0 ; | |
37877 | void *argp2 = 0 ; | |
37878 | int res2 = 0 ; | |
37879 | int val3 ; | |
37880 | int ecode3 = 0 ; | |
37881 | bool temp4 = false ; | |
37882 | wxPoint temp5 ; | |
37883 | wxSize temp6 ; | |
37884 | long val7 ; | |
37885 | int ecode7 = 0 ; | |
37886 | bool temp8 = false ; | |
37887 | int val9 ; | |
37888 | int ecode9 = 0 ; | |
37889 | bool temp10 = false ; | |
37890 | PyObject * obj0 = 0 ; | |
37891 | PyObject * obj1 = 0 ; | |
37892 | PyObject * obj2 = 0 ; | |
37893 | PyObject * obj3 = 0 ; | |
37894 | PyObject * obj4 = 0 ; | |
37895 | PyObject * obj5 = 0 ; | |
37896 | PyObject * obj6 = 0 ; | |
37897 | PyObject * obj7 = 0 ; | |
37898 | PyObject * obj8 = 0 ; | |
37899 | PyObject * obj9 = 0 ; | |
37900 | char * kwnames[] = { | |
37901 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
37902 | }; | |
37903 | ||
37904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
37905 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37906 | if (!SWIG_IsOK(res1)) { | |
37907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37908 | } | |
37909 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37910 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
37911 | if (!SWIG_IsOK(res2)) { | |
37912 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
37913 | } | |
37914 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
37915 | if (obj2) { | |
37916 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37917 | if (!SWIG_IsOK(ecode3)) { | |
37918 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
37919 | } | |
37920 | arg3 = static_cast< int >(val3); | |
37921 | } | |
37922 | if (obj3) { | |
093d3ff1 | 37923 | { |
0085ce49 RD |
37924 | arg4 = wxString_in_helper(obj3); |
37925 | if (arg4 == NULL) SWIG_fail; | |
37926 | temp4 = true; | |
093d3ff1 | 37927 | } |
0085ce49 RD |
37928 | } |
37929 | if (obj4) { | |
093d3ff1 | 37930 | { |
0085ce49 RD |
37931 | arg5 = &temp5; |
37932 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 37933 | } |
0085ce49 RD |
37934 | } |
37935 | if (obj5) { | |
d14a1e28 | 37936 | { |
0085ce49 RD |
37937 | arg6 = &temp6; |
37938 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 37939 | } |
0085ce49 RD |
37940 | } |
37941 | if (obj6) { | |
37942 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
37943 | if (!SWIG_IsOK(ecode7)) { | |
37944 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
37945 | } | |
37946 | arg7 = static_cast< long >(val7); | |
37947 | } | |
37948 | if (obj7) { | |
093d3ff1 | 37949 | { |
0085ce49 RD |
37950 | arg8 = wxString_in_helper(obj7); |
37951 | if (arg8 == NULL) SWIG_fail; | |
37952 | temp8 = true; | |
093d3ff1 | 37953 | } |
0085ce49 RD |
37954 | } |
37955 | if (obj8) { | |
37956 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
37957 | if (!SWIG_IsOK(ecode9)) { | |
37958 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'"); | |
37959 | } | |
37960 | arg9 = static_cast< int >(val9); | |
37961 | } | |
37962 | if (obj9) { | |
093d3ff1 | 37963 | { |
0085ce49 RD |
37964 | arg10 = wxString_in_helper(obj9); |
37965 | if (arg10 == NULL) SWIG_fail; | |
37966 | temp10 = true; | |
093d3ff1 | 37967 | } |
0085ce49 RD |
37968 | } |
37969 | { | |
37970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37971 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
37972 | wxPyEndAllowThreads(__tstate); | |
37973 | if (PyErr_Occurred()) SWIG_fail; | |
37974 | } | |
37975 | { | |
37976 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37977 | } | |
37978 | { | |
37979 | if (temp4) | |
37980 | delete arg4; | |
37981 | } | |
37982 | { | |
37983 | if (temp8) | |
37984 | delete arg8; | |
37985 | } | |
37986 | { | |
37987 | if (temp10) | |
37988 | delete arg10; | |
37989 | } | |
37990 | return resultobj; | |
37991 | fail: | |
37992 | { | |
37993 | if (temp4) | |
37994 | delete arg4; | |
37995 | } | |
37996 | { | |
37997 | if (temp8) | |
37998 | delete arg8; | |
37999 | } | |
38000 | { | |
38001 | if (temp10) | |
38002 | delete arg10; | |
38003 | } | |
38004 | return NULL; | |
38005 | } | |
38006 | ||
38007 | ||
38008 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38009 | PyObject *resultobj = 0; | |
38010 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38011 | wxString *arg2 = 0 ; | |
38012 | bool result; | |
38013 | void *argp1 = 0 ; | |
38014 | int res1 = 0 ; | |
38015 | bool temp2 = false ; | |
38016 | PyObject * obj0 = 0 ; | |
38017 | PyObject * obj1 = 0 ; | |
38018 | char * kwnames[] = { | |
38019 | (char *) "self",(char *) "path", NULL | |
38020 | }; | |
38021 | ||
38022 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
38023 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38024 | if (!SWIG_IsOK(res1)) { | |
38025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38026 | } | |
38027 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38028 | { | |
38029 | arg2 = wxString_in_helper(obj1); | |
38030 | if (arg2 == NULL) SWIG_fail; | |
38031 | temp2 = true; | |
38032 | } | |
38033 | { | |
38034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38035 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
38036 | wxPyEndAllowThreads(__tstate); | |
38037 | if (PyErr_Occurred()) SWIG_fail; | |
38038 | } | |
38039 | { | |
38040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38041 | } | |
38042 | { | |
38043 | if (temp2) | |
38044 | delete arg2; | |
38045 | } | |
38046 | return resultobj; | |
38047 | fail: | |
38048 | { | |
38049 | if (temp2) | |
38050 | delete arg2; | |
38051 | } | |
38052 | return NULL; | |
d14a1e28 RD |
38053 | } |
38054 | ||
38055 | ||
704eda0c RD |
38056 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
38057 | PyObject *resultobj = 0; | |
38058 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38059 | wxString *arg2 = 0 ; | |
38060 | bool result; | |
38061 | void *argp1 = 0 ; | |
38062 | int res1 = 0 ; | |
38063 | bool temp2 = false ; | |
38064 | PyObject * obj0 = 0 ; | |
38065 | PyObject * obj1 = 0 ; | |
38066 | char * kwnames[] = { | |
38067 | (char *) "self",(char *) "path", NULL | |
38068 | }; | |
38069 | ||
38070 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail; | |
38071 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38072 | if (!SWIG_IsOK(res1)) { | |
38073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38074 | } | |
38075 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38076 | { | |
38077 | arg2 = wxString_in_helper(obj1); | |
38078 | if (arg2 == NULL) SWIG_fail; | |
38079 | temp2 = true; | |
38080 | } | |
38081 | { | |
38082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38083 | result = (bool)(arg1)->CollapsePath((wxString const &)*arg2); | |
38084 | wxPyEndAllowThreads(__tstate); | |
38085 | if (PyErr_Occurred()) SWIG_fail; | |
38086 | } | |
38087 | { | |
38088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38089 | } | |
38090 | { | |
38091 | if (temp2) | |
38092 | delete arg2; | |
38093 | } | |
38094 | return resultobj; | |
38095 | fail: | |
38096 | { | |
38097 | if (temp2) | |
38098 | delete arg2; | |
38099 | } | |
38100 | return NULL; | |
38101 | } | |
38102 | ||
38103 | ||
0085ce49 RD |
38104 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38105 | PyObject *resultobj = 0; | |
38106 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38107 | wxString result; | |
38108 | void *argp1 = 0 ; | |
38109 | int res1 = 0 ; | |
38110 | PyObject *swig_obj[1] ; | |
38111 | ||
38112 | if (!args) SWIG_fail; | |
38113 | swig_obj[0] = args; | |
38114 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38115 | if (!SWIG_IsOK(res1)) { | |
38116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38117 | } | |
38118 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38119 | { | |
38120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38121 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
38122 | wxPyEndAllowThreads(__tstate); | |
38123 | if (PyErr_Occurred()) SWIG_fail; | |
38124 | } | |
38125 | { | |
38126 | #if wxUSE_UNICODE | |
38127 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
38128 | #else | |
38129 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
38130 | #endif | |
38131 | } | |
38132 | return resultobj; | |
38133 | fail: | |
38134 | return NULL; | |
38135 | } | |
38136 | ||
38137 | ||
38138 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38139 | PyObject *resultobj = 0; | |
38140 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38141 | wxString *arg2 = 0 ; | |
38142 | void *argp1 = 0 ; | |
38143 | int res1 = 0 ; | |
38144 | bool temp2 = false ; | |
38145 | PyObject * obj0 = 0 ; | |
38146 | PyObject * obj1 = 0 ; | |
38147 | char * kwnames[] = { | |
38148 | (char *) "self",(char *) "path", NULL | |
38149 | }; | |
38150 | ||
38151 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
38152 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38153 | if (!SWIG_IsOK(res1)) { | |
38154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38155 | } | |
38156 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38157 | { | |
38158 | arg2 = wxString_in_helper(obj1); | |
38159 | if (arg2 == NULL) SWIG_fail; | |
38160 | temp2 = true; | |
38161 | } | |
38162 | { | |
38163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38164 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
38165 | wxPyEndAllowThreads(__tstate); | |
38166 | if (PyErr_Occurred()) SWIG_fail; | |
38167 | } | |
38168 | resultobj = SWIG_Py_Void(); | |
38169 | { | |
38170 | if (temp2) | |
38171 | delete arg2; | |
38172 | } | |
38173 | return resultobj; | |
38174 | fail: | |
38175 | { | |
38176 | if (temp2) | |
38177 | delete arg2; | |
38178 | } | |
38179 | return NULL; | |
d14a1e28 RD |
38180 | } |
38181 | ||
38182 | ||
0085ce49 RD |
38183 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38184 | PyObject *resultobj = 0; | |
38185 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38186 | wxString result; | |
38187 | void *argp1 = 0 ; | |
38188 | int res1 = 0 ; | |
38189 | PyObject *swig_obj[1] ; | |
38190 | ||
38191 | if (!args) SWIG_fail; | |
38192 | swig_obj[0] = args; | |
38193 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38194 | if (!SWIG_IsOK(res1)) { | |
38195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38196 | } | |
38197 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38198 | { | |
38199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38200 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
38201 | wxPyEndAllowThreads(__tstate); | |
38202 | if (PyErr_Occurred()) SWIG_fail; | |
38203 | } | |
38204 | { | |
38205 | #if wxUSE_UNICODE | |
38206 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
38207 | #else | |
38208 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
38209 | #endif | |
38210 | } | |
38211 | return resultobj; | |
38212 | fail: | |
38213 | return NULL; | |
d14a1e28 RD |
38214 | } |
38215 | ||
38216 | ||
0085ce49 RD |
38217 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38218 | PyObject *resultobj = 0; | |
38219 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38220 | wxString result; | |
38221 | void *argp1 = 0 ; | |
38222 | int res1 = 0 ; | |
38223 | PyObject *swig_obj[1] ; | |
38224 | ||
38225 | if (!args) SWIG_fail; | |
38226 | swig_obj[0] = args; | |
38227 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38228 | if (!SWIG_IsOK(res1)) { | |
38229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38230 | } | |
38231 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38232 | { | |
38233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38234 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
38235 | wxPyEndAllowThreads(__tstate); | |
38236 | if (PyErr_Occurred()) SWIG_fail; | |
38237 | } | |
38238 | { | |
38239 | #if wxUSE_UNICODE | |
38240 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
38241 | #else | |
38242 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
38243 | #endif | |
38244 | } | |
38245 | return resultobj; | |
38246 | fail: | |
38247 | return NULL; | |
38248 | } | |
38249 | ||
38250 | ||
38251 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38252 | PyObject *resultobj = 0; | |
38253 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38254 | wxString *arg2 = 0 ; | |
38255 | void *argp1 = 0 ; | |
38256 | int res1 = 0 ; | |
38257 | bool temp2 = false ; | |
38258 | PyObject * obj0 = 0 ; | |
38259 | PyObject * obj1 = 0 ; | |
38260 | char * kwnames[] = { | |
38261 | (char *) "self",(char *) "path", NULL | |
38262 | }; | |
38263 | ||
38264 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
38265 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38266 | if (!SWIG_IsOK(res1)) { | |
38267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38268 | } | |
38269 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38270 | { | |
38271 | arg2 = wxString_in_helper(obj1); | |
38272 | if (arg2 == NULL) SWIG_fail; | |
38273 | temp2 = true; | |
38274 | } | |
38275 | { | |
38276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38277 | (arg1)->SetPath((wxString const &)*arg2); | |
38278 | wxPyEndAllowThreads(__tstate); | |
38279 | if (PyErr_Occurred()) SWIG_fail; | |
38280 | } | |
38281 | resultobj = SWIG_Py_Void(); | |
38282 | { | |
38283 | if (temp2) | |
38284 | delete arg2; | |
38285 | } | |
38286 | return resultobj; | |
38287 | fail: | |
38288 | { | |
38289 | if (temp2) | |
38290 | delete arg2; | |
38291 | } | |
38292 | return NULL; | |
38293 | } | |
38294 | ||
38295 | ||
38296 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38297 | PyObject *resultobj = 0; | |
38298 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38299 | bool arg2 ; | |
38300 | void *argp1 = 0 ; | |
38301 | int res1 = 0 ; | |
38302 | bool val2 ; | |
38303 | int ecode2 = 0 ; | |
38304 | PyObject * obj0 = 0 ; | |
38305 | PyObject * obj1 = 0 ; | |
38306 | char * kwnames[] = { | |
38307 | (char *) "self",(char *) "show", NULL | |
38308 | }; | |
38309 | ||
38310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail; | |
38311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38312 | if (!SWIG_IsOK(res1)) { | |
38313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38314 | } | |
38315 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38316 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
38317 | if (!SWIG_IsOK(ecode2)) { | |
38318 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'"); | |
38319 | } | |
38320 | arg2 = static_cast< bool >(val2); | |
38321 | { | |
38322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38323 | (arg1)->ShowHidden(arg2); | |
38324 | wxPyEndAllowThreads(__tstate); | |
38325 | if (PyErr_Occurred()) SWIG_fail; | |
38326 | } | |
38327 | resultobj = SWIG_Py_Void(); | |
38328 | return resultobj; | |
38329 | fail: | |
38330 | return NULL; | |
d14a1e28 RD |
38331 | } |
38332 | ||
38333 | ||
0085ce49 RD |
38334 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38335 | PyObject *resultobj = 0; | |
38336 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38337 | bool result; | |
38338 | void *argp1 = 0 ; | |
38339 | int res1 = 0 ; | |
38340 | PyObject *swig_obj[1] ; | |
38341 | ||
38342 | if (!args) SWIG_fail; | |
38343 | swig_obj[0] = args; | |
38344 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38345 | if (!SWIG_IsOK(res1)) { | |
38346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38347 | } | |
38348 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38349 | { | |
38350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38351 | result = (bool)(arg1)->GetShowHidden(); | |
38352 | wxPyEndAllowThreads(__tstate); | |
38353 | if (PyErr_Occurred()) SWIG_fail; | |
38354 | } | |
38355 | { | |
38356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38357 | } | |
38358 | return resultobj; | |
38359 | fail: | |
38360 | return NULL; | |
d14a1e28 RD |
38361 | } |
38362 | ||
38363 | ||
0085ce49 RD |
38364 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38365 | PyObject *resultobj = 0; | |
38366 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38367 | wxString result; | |
38368 | void *argp1 = 0 ; | |
38369 | int res1 = 0 ; | |
38370 | PyObject *swig_obj[1] ; | |
38371 | ||
38372 | if (!args) SWIG_fail; | |
38373 | swig_obj[0] = args; | |
38374 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38375 | if (!SWIG_IsOK(res1)) { | |
38376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38377 | } | |
38378 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38379 | { | |
38380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38381 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
38382 | wxPyEndAllowThreads(__tstate); | |
38383 | if (PyErr_Occurred()) SWIG_fail; | |
38384 | } | |
38385 | { | |
38386 | #if wxUSE_UNICODE | |
38387 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
38388 | #else | |
38389 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
38390 | #endif | |
38391 | } | |
38392 | return resultobj; | |
38393 | fail: | |
38394 | return NULL; | |
38395 | } | |
38396 | ||
38397 | ||
38398 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38399 | PyObject *resultobj = 0; | |
38400 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38401 | wxString *arg2 = 0 ; | |
38402 | void *argp1 = 0 ; | |
38403 | int res1 = 0 ; | |
38404 | bool temp2 = false ; | |
38405 | PyObject * obj0 = 0 ; | |
38406 | PyObject * obj1 = 0 ; | |
38407 | char * kwnames[] = { | |
38408 | (char *) "self",(char *) "filter", NULL | |
38409 | }; | |
38410 | ||
38411 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail; | |
38412 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38413 | if (!SWIG_IsOK(res1)) { | |
38414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38415 | } | |
38416 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38417 | { | |
38418 | arg2 = wxString_in_helper(obj1); | |
38419 | if (arg2 == NULL) SWIG_fail; | |
38420 | temp2 = true; | |
38421 | } | |
38422 | { | |
38423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38424 | (arg1)->SetFilter((wxString const &)*arg2); | |
38425 | wxPyEndAllowThreads(__tstate); | |
38426 | if (PyErr_Occurred()) SWIG_fail; | |
38427 | } | |
38428 | resultobj = SWIG_Py_Void(); | |
38429 | { | |
38430 | if (temp2) | |
38431 | delete arg2; | |
38432 | } | |
38433 | return resultobj; | |
38434 | fail: | |
38435 | { | |
38436 | if (temp2) | |
38437 | delete arg2; | |
38438 | } | |
38439 | return NULL; | |
d14a1e28 RD |
38440 | } |
38441 | ||
38442 | ||
0085ce49 RD |
38443 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38444 | PyObject *resultobj = 0; | |
38445 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38446 | int result; | |
38447 | void *argp1 = 0 ; | |
38448 | int res1 = 0 ; | |
38449 | PyObject *swig_obj[1] ; | |
38450 | ||
38451 | if (!args) SWIG_fail; | |
38452 | swig_obj[0] = args; | |
38453 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38454 | if (!SWIG_IsOK(res1)) { | |
38455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38456 | } | |
38457 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38458 | { | |
38459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38460 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
38461 | wxPyEndAllowThreads(__tstate); | |
38462 | if (PyErr_Occurred()) SWIG_fail; | |
38463 | } | |
38464 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
38465 | return resultobj; | |
38466 | fail: | |
38467 | return NULL; | |
38468 | } | |
38469 | ||
38470 | ||
38471 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38472 | PyObject *resultobj = 0; | |
38473 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38474 | int arg2 ; | |
38475 | void *argp1 = 0 ; | |
38476 | int res1 = 0 ; | |
38477 | int val2 ; | |
38478 | int ecode2 = 0 ; | |
38479 | PyObject * obj0 = 0 ; | |
38480 | PyObject * obj1 = 0 ; | |
38481 | char * kwnames[] = { | |
38482 | (char *) "self",(char *) "n", NULL | |
38483 | }; | |
38484 | ||
38485 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
38486 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38487 | if (!SWIG_IsOK(res1)) { | |
38488 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38489 | } | |
38490 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38491 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38492 | if (!SWIG_IsOK(ecode2)) { | |
38493 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'"); | |
38494 | } | |
38495 | arg2 = static_cast< int >(val2); | |
38496 | { | |
38497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38498 | (arg1)->SetFilterIndex(arg2); | |
38499 | wxPyEndAllowThreads(__tstate); | |
38500 | if (PyErr_Occurred()) SWIG_fail; | |
38501 | } | |
38502 | resultobj = SWIG_Py_Void(); | |
38503 | return resultobj; | |
38504 | fail: | |
38505 | return NULL; | |
d14a1e28 RD |
38506 | } |
38507 | ||
38508 | ||
0085ce49 RD |
38509 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38510 | PyObject *resultobj = 0; | |
38511 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38512 | wxTreeItemId result; | |
38513 | void *argp1 = 0 ; | |
38514 | int res1 = 0 ; | |
38515 | PyObject *swig_obj[1] ; | |
38516 | ||
38517 | if (!args) SWIG_fail; | |
38518 | swig_obj[0] = args; | |
38519 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38520 | if (!SWIG_IsOK(res1)) { | |
38521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38522 | } | |
38523 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38524 | { | |
38525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38526 | result = (arg1)->GetRootId(); | |
38527 | wxPyEndAllowThreads(__tstate); | |
38528 | if (PyErr_Occurred()) SWIG_fail; | |
38529 | } | |
38530 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
38531 | return resultobj; | |
38532 | fail: | |
38533 | return NULL; | |
d14a1e28 RD |
38534 | } |
38535 | ||
38536 | ||
0085ce49 RD |
38537 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38538 | PyObject *resultobj = 0; | |
38539 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38540 | wxPyTreeCtrl *result = 0 ; | |
38541 | void *argp1 = 0 ; | |
38542 | int res1 = 0 ; | |
38543 | PyObject *swig_obj[1] ; | |
38544 | ||
38545 | if (!args) SWIG_fail; | |
38546 | swig_obj[0] = args; | |
38547 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38548 | if (!SWIG_IsOK(res1)) { | |
38549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38550 | } | |
38551 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38552 | { | |
38553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38554 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
38555 | wxPyEndAllowThreads(__tstate); | |
38556 | if (PyErr_Occurred()) SWIG_fail; | |
38557 | } | |
38558 | { | |
38559 | resultobj = wxPyMake_wxObject(result, 0); | |
38560 | } | |
38561 | return resultobj; | |
38562 | fail: | |
38563 | return NULL; | |
d14a1e28 RD |
38564 | } |
38565 | ||
38566 | ||
0085ce49 RD |
38567 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38568 | PyObject *resultobj = 0; | |
38569 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38570 | wxDirFilterListCtrl *result = 0 ; | |
38571 | void *argp1 = 0 ; | |
38572 | int res1 = 0 ; | |
38573 | PyObject *swig_obj[1] ; | |
38574 | ||
38575 | if (!args) SWIG_fail; | |
38576 | swig_obj[0] = args; | |
38577 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38578 | if (!SWIG_IsOK(res1)) { | |
38579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38580 | } | |
38581 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38582 | { | |
38583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38584 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
38585 | wxPyEndAllowThreads(__tstate); | |
38586 | if (PyErr_Occurred()) SWIG_fail; | |
38587 | } | |
38588 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
38589 | return resultobj; | |
38590 | fail: | |
38591 | return NULL; | |
38592 | } | |
38593 | ||
38594 | ||
38595 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38596 | PyObject *resultobj = 0; | |
38597 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38598 | wxTreeItemId arg2 ; | |
38599 | wxString *arg3 = 0 ; | |
38600 | bool *arg4 = 0 ; | |
38601 | wxTreeItemId result; | |
38602 | void *argp1 = 0 ; | |
38603 | int res1 = 0 ; | |
38604 | void *argp2 ; | |
38605 | int res2 = 0 ; | |
38606 | bool temp3 = false ; | |
38607 | bool temp4 ; | |
38608 | int res4 = SWIG_TMPOBJ ; | |
38609 | PyObject * obj0 = 0 ; | |
38610 | PyObject * obj1 = 0 ; | |
38611 | PyObject * obj2 = 0 ; | |
38612 | char * kwnames[] = { | |
38613 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
38614 | }; | |
38615 | ||
38616 | arg4 = &temp4; | |
38617 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38618 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38619 | if (!SWIG_IsOK(res1)) { | |
38620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38621 | } | |
38622 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38623 | { | |
38624 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
38625 | if (!SWIG_IsOK(res2)) { | |
38626 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'"); | |
38627 | } | |
38628 | if (!argp2) { | |
38629 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'"); | |
38630 | } else { | |
38631 | wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2); | |
38632 | arg2 = *temp; | |
38633 | if (SWIG_IsNewObj(res2)) delete temp; | |
d14a1e28 | 38634 | } |
0085ce49 RD |
38635 | } |
38636 | { | |
38637 | arg3 = wxString_in_helper(obj2); | |
38638 | if (arg3 == NULL) SWIG_fail; | |
38639 | temp3 = true; | |
38640 | } | |
38641 | { | |
38642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38643 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
38644 | wxPyEndAllowThreads(__tstate); | |
38645 | if (PyErr_Occurred()) SWIG_fail; | |
38646 | } | |
38647 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
38648 | if (SWIG_IsTmpObj(res4)) { | |
38649 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4))); | |
38650 | } else { | |
38651 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
38652 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags)); | |
38653 | } | |
38654 | { | |
38655 | if (temp3) | |
38656 | delete arg3; | |
38657 | } | |
38658 | return resultobj; | |
38659 | fail: | |
38660 | { | |
38661 | if (temp3) | |
38662 | delete arg3; | |
38663 | } | |
38664 | return NULL; | |
d14a1e28 RD |
38665 | } |
38666 | ||
38667 | ||
0085ce49 RD |
38668 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38669 | PyObject *resultobj = 0; | |
38670 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38671 | void *argp1 = 0 ; | |
38672 | int res1 = 0 ; | |
38673 | PyObject *swig_obj[1] ; | |
38674 | ||
38675 | if (!args) SWIG_fail; | |
38676 | swig_obj[0] = args; | |
38677 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38678 | if (!SWIG_IsOK(res1)) { | |
38679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38680 | } | |
38681 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38682 | { | |
38683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38684 | (arg1)->DoResize(); | |
38685 | wxPyEndAllowThreads(__tstate); | |
38686 | if (PyErr_Occurred()) SWIG_fail; | |
38687 | } | |
38688 | resultobj = SWIG_Py_Void(); | |
38689 | return resultobj; | |
38690 | fail: | |
38691 | return NULL; | |
d14a1e28 RD |
38692 | } |
38693 | ||
38694 | ||
0085ce49 RD |
38695 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38696 | PyObject *resultobj = 0; | |
38697 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38698 | void *argp1 = 0 ; | |
38699 | int res1 = 0 ; | |
38700 | PyObject *swig_obj[1] ; | |
38701 | ||
38702 | if (!args) SWIG_fail; | |
38703 | swig_obj[0] = args; | |
38704 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38705 | if (!SWIG_IsOK(res1)) { | |
38706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38707 | } | |
38708 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38709 | { | |
38710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38711 | (arg1)->ReCreateTree(); | |
38712 | wxPyEndAllowThreads(__tstate); | |
38713 | if (PyErr_Occurred()) SWIG_fail; | |
38714 | } | |
38715 | resultobj = SWIG_Py_Void(); | |
38716 | return resultobj; | |
38717 | fail: | |
38718 | return NULL; | |
38719 | } | |
38720 | ||
38721 | ||
38722 | SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38723 | PyObject *obj; | |
38724 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38725 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj)); | |
38726 | return SWIG_Py_Void(); | |
38727 | } | |
38728 | ||
38729 | SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38730 | return SWIG_Python_InitShadowInstance(args); | |
38731 | } | |
38732 | ||
38733 | SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38734 | PyObject *resultobj = 0; | |
38735 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38736 | int arg2 = (int) (int)-1 ; | |
38737 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
38738 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
38739 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
38740 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
38741 | long arg5 = (long) 0 ; | |
38742 | wxDirFilterListCtrl *result = 0 ; | |
38743 | void *argp1 = 0 ; | |
38744 | int res1 = 0 ; | |
38745 | int val2 ; | |
38746 | int ecode2 = 0 ; | |
38747 | wxPoint temp3 ; | |
38748 | wxSize temp4 ; | |
38749 | long val5 ; | |
38750 | int ecode5 = 0 ; | |
38751 | PyObject * obj0 = 0 ; | |
38752 | PyObject * obj1 = 0 ; | |
38753 | PyObject * obj2 = 0 ; | |
38754 | PyObject * obj3 = 0 ; | |
38755 | PyObject * obj4 = 0 ; | |
38756 | char * kwnames[] = { | |
38757 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
38758 | }; | |
38759 | ||
38760 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38761 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38762 | if (!SWIG_IsOK(res1)) { | |
38763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38764 | } | |
38765 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38766 | if (obj1) { | |
38767 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38768 | if (!SWIG_IsOK(ecode2)) { | |
38769 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'"); | |
38770 | } | |
38771 | arg2 = static_cast< int >(val2); | |
38772 | } | |
38773 | if (obj2) { | |
d14a1e28 | 38774 | { |
0085ce49 RD |
38775 | arg3 = &temp3; |
38776 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 38777 | } |
0085ce49 RD |
38778 | } |
38779 | if (obj3) { | |
d14a1e28 | 38780 | { |
0085ce49 RD |
38781 | arg4 = &temp4; |
38782 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 38783 | } |
0085ce49 RD |
38784 | } |
38785 | if (obj4) { | |
38786 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
38787 | if (!SWIG_IsOK(ecode5)) { | |
38788 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'"); | |
38789 | } | |
38790 | arg5 = static_cast< long >(val5); | |
38791 | } | |
38792 | { | |
38793 | if (!wxPyCheckForApp()) SWIG_fail; | |
38794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38795 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
38796 | wxPyEndAllowThreads(__tstate); | |
38797 | if (PyErr_Occurred()) SWIG_fail; | |
38798 | } | |
38799 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 ); | |
38800 | return resultobj; | |
38801 | fail: | |
38802 | return NULL; | |
d14a1e28 RD |
38803 | } |
38804 | ||
38805 | ||
0085ce49 RD |
38806 | SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38807 | PyObject *resultobj = 0; | |
38808 | wxDirFilterListCtrl *result = 0 ; | |
38809 | ||
38810 | if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail; | |
38811 | { | |
38812 | if (!wxPyCheckForApp()) SWIG_fail; | |
38813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38814 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
38815 | wxPyEndAllowThreads(__tstate); | |
38816 | if (PyErr_Occurred()) SWIG_fail; | |
38817 | } | |
38818 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 ); | |
38819 | return resultobj; | |
38820 | fail: | |
38821 | return NULL; | |
38822 | } | |
38823 | ||
38824 | ||
38825 | SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38826 | PyObject *resultobj = 0; | |
38827 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
38828 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
38829 | int arg3 = (int) (int)-1 ; | |
38830 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
38831 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
38832 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
38833 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
38834 | long arg6 = (long) 0 ; | |
38835 | bool result; | |
38836 | void *argp1 = 0 ; | |
38837 | int res1 = 0 ; | |
38838 | void *argp2 = 0 ; | |
38839 | int res2 = 0 ; | |
38840 | int val3 ; | |
38841 | int ecode3 = 0 ; | |
38842 | wxPoint temp4 ; | |
38843 | wxSize temp5 ; | |
38844 | long val6 ; | |
38845 | int ecode6 = 0 ; | |
38846 | PyObject * obj0 = 0 ; | |
38847 | PyObject * obj1 = 0 ; | |
38848 | PyObject * obj2 = 0 ; | |
38849 | PyObject * obj3 = 0 ; | |
38850 | PyObject * obj4 = 0 ; | |
38851 | PyObject * obj5 = 0 ; | |
38852 | char * kwnames[] = { | |
38853 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
38854 | }; | |
38855 | ||
38856 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
38857 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
38858 | if (!SWIG_IsOK(res1)) { | |
38859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'"); | |
38860 | } | |
38861 | arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1); | |
38862 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38863 | if (!SWIG_IsOK(res2)) { | |
38864 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'"); | |
38865 | } | |
38866 | arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2); | |
38867 | if (obj2) { | |
38868 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38869 | if (!SWIG_IsOK(ecode3)) { | |
38870 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
38871 | } | |
38872 | arg3 = static_cast< int >(val3); | |
38873 | } | |
38874 | if (obj3) { | |
093d3ff1 | 38875 | { |
0085ce49 RD |
38876 | arg4 = &temp4; |
38877 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 38878 | } |
0085ce49 RD |
38879 | } |
38880 | if (obj4) { | |
d14a1e28 | 38881 | { |
0085ce49 RD |
38882 | arg5 = &temp5; |
38883 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 38884 | } |
0085ce49 RD |
38885 | } |
38886 | if (obj5) { | |
38887 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
38888 | if (!SWIG_IsOK(ecode6)) { | |
38889 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
38890 | } | |
38891 | arg6 = static_cast< long >(val6); | |
38892 | } | |
38893 | { | |
38894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38895 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
38896 | wxPyEndAllowThreads(__tstate); | |
38897 | if (PyErr_Occurred()) SWIG_fail; | |
38898 | } | |
38899 | { | |
38900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38901 | } | |
38902 | return resultobj; | |
38903 | fail: | |
38904 | return NULL; | |
38905 | } | |
38906 | ||
38907 | ||
38908 | SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38909 | PyObject *resultobj = 0; | |
38910 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
38911 | wxString *arg2 = 0 ; | |
38912 | int arg3 ; | |
38913 | void *argp1 = 0 ; | |
38914 | int res1 = 0 ; | |
38915 | bool temp2 = false ; | |
38916 | int val3 ; | |
38917 | int ecode3 = 0 ; | |
38918 | PyObject * obj0 = 0 ; | |
38919 | PyObject * obj1 = 0 ; | |
38920 | PyObject * obj2 = 0 ; | |
38921 | char * kwnames[] = { | |
38922 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
38923 | }; | |
38924 | ||
38925 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38926 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
38927 | if (!SWIG_IsOK(res1)) { | |
38928 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'"); | |
38929 | } | |
38930 | arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1); | |
38931 | { | |
38932 | arg2 = wxString_in_helper(obj1); | |
38933 | if (arg2 == NULL) SWIG_fail; | |
38934 | temp2 = true; | |
38935 | } | |
38936 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38937 | if (!SWIG_IsOK(ecode3)) { | |
38938 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'"); | |
38939 | } | |
38940 | arg3 = static_cast< int >(val3); | |
38941 | { | |
38942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38943 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
38944 | wxPyEndAllowThreads(__tstate); | |
38945 | if (PyErr_Occurred()) SWIG_fail; | |
38946 | } | |
38947 | resultobj = SWIG_Py_Void(); | |
38948 | { | |
38949 | if (temp2) | |
38950 | delete arg2; | |
38951 | } | |
38952 | return resultobj; | |
38953 | fail: | |
38954 | { | |
38955 | if (temp2) | |
38956 | delete arg2; | |
38957 | } | |
38958 | return NULL; | |
38959 | } | |
38960 | ||
38961 | ||
38962 | SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38963 | PyObject *obj; | |
38964 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38965 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj)); | |
38966 | return SWIG_Py_Void(); | |
38967 | } | |
38968 | ||
38969 | SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38970 | return SWIG_Python_InitShadowInstance(args); | |
38971 | } | |
38972 | ||
38973 | SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38974 | PyObject *resultobj = 0; | |
38975 | wxWindow *arg1 = (wxWindow *) 0 ; | |
38976 | int arg2 = (int) (int)-1 ; | |
38977 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
38978 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
38979 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
38980 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
38981 | long arg5 = (long) 0 ; | |
38982 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
38983 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
38984 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
38985 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
38986 | wxPyControl *result = 0 ; | |
38987 | void *argp1 = 0 ; | |
38988 | int res1 = 0 ; | |
38989 | int val2 ; | |
38990 | int ecode2 = 0 ; | |
38991 | wxPoint temp3 ; | |
38992 | wxSize temp4 ; | |
38993 | long val5 ; | |
38994 | int ecode5 = 0 ; | |
38995 | void *argp6 = 0 ; | |
38996 | int res6 = 0 ; | |
38997 | bool temp7 = false ; | |
38998 | PyObject * obj0 = 0 ; | |
38999 | PyObject * obj1 = 0 ; | |
39000 | PyObject * obj2 = 0 ; | |
39001 | PyObject * obj3 = 0 ; | |
39002 | PyObject * obj4 = 0 ; | |
39003 | PyObject * obj5 = 0 ; | |
39004 | PyObject * obj6 = 0 ; | |
39005 | char * kwnames[] = { | |
39006 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
39007 | }; | |
39008 | ||
39009 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
39010 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39011 | if (!SWIG_IsOK(res1)) { | |
39012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
39013 | } | |
39014 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
39015 | if (obj1) { | |
39016 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39017 | if (!SWIG_IsOK(ecode2)) { | |
39018 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'"); | |
39019 | } | |
39020 | arg2 = static_cast< int >(val2); | |
39021 | } | |
39022 | if (obj2) { | |
093d3ff1 | 39023 | { |
0085ce49 RD |
39024 | arg3 = &temp3; |
39025 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 39026 | } |
0085ce49 RD |
39027 | } |
39028 | if (obj3) { | |
d14a1e28 | 39029 | { |
0085ce49 RD |
39030 | arg4 = &temp4; |
39031 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 39032 | } |
0085ce49 RD |
39033 | } |
39034 | if (obj4) { | |
39035 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
39036 | if (!SWIG_IsOK(ecode5)) { | |
39037 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'"); | |
39038 | } | |
39039 | arg5 = static_cast< long >(val5); | |
39040 | } | |
39041 | if (obj5) { | |
39042 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
39043 | if (!SWIG_IsOK(res6)) { | |
39044 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
39045 | } | |
39046 | if (!argp6) { | |
39047 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 39048 | } |
0085ce49 RD |
39049 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
39050 | } | |
39051 | if (obj6) { | |
d14a1e28 | 39052 | { |
0085ce49 RD |
39053 | arg7 = wxString_in_helper(obj6); |
39054 | if (arg7 == NULL) SWIG_fail; | |
39055 | temp7 = true; | |
d14a1e28 | 39056 | } |
0085ce49 RD |
39057 | } |
39058 | { | |
39059 | if (!wxPyCheckForApp()) SWIG_fail; | |
39060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39061 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
39062 | wxPyEndAllowThreads(__tstate); | |
39063 | if (PyErr_Occurred()) SWIG_fail; | |
39064 | } | |
39065 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 ); | |
39066 | { | |
39067 | if (temp7) | |
39068 | delete arg7; | |
39069 | } | |
39070 | return resultobj; | |
39071 | fail: | |
39072 | { | |
39073 | if (temp7) | |
39074 | delete arg7; | |
39075 | } | |
39076 | return NULL; | |
d14a1e28 RD |
39077 | } |
39078 | ||
39079 | ||
0085ce49 RD |
39080 | SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39081 | PyObject *resultobj = 0; | |
39082 | wxPyControl *result = 0 ; | |
39083 | ||
39084 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail; | |
39085 | { | |
39086 | if (!wxPyCheckForApp()) SWIG_fail; | |
39087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39088 | result = (wxPyControl *)new wxPyControl(); | |
39089 | wxPyEndAllowThreads(__tstate); | |
39090 | if (PyErr_Occurred()) SWIG_fail; | |
39091 | } | |
39092 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 ); | |
39093 | return resultobj; | |
39094 | fail: | |
39095 | return NULL; | |
39096 | } | |
39097 | ||
39098 | ||
39099 | SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39100 | PyObject *resultobj = 0; | |
39101 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39102 | PyObject *arg2 = (PyObject *) 0 ; | |
39103 | PyObject *arg3 = (PyObject *) 0 ; | |
39104 | void *argp1 = 0 ; | |
39105 | int res1 = 0 ; | |
39106 | PyObject * obj0 = 0 ; | |
39107 | PyObject * obj1 = 0 ; | |
39108 | PyObject * obj2 = 0 ; | |
39109 | char * kwnames[] = { | |
39110 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
39111 | }; | |
39112 | ||
39113 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
39114 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39115 | if (!SWIG_IsOK(res1)) { | |
39116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39117 | } | |
39118 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39119 | arg2 = obj1; | |
39120 | arg3 = obj2; | |
39121 | { | |
39122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39123 | (arg1)->_setCallbackInfo(arg2,arg3); | |
39124 | wxPyEndAllowThreads(__tstate); | |
39125 | if (PyErr_Occurred()) SWIG_fail; | |
39126 | } | |
39127 | resultobj = SWIG_Py_Void(); | |
39128 | return resultobj; | |
39129 | fail: | |
39130 | return NULL; | |
39131 | } | |
39132 | ||
39133 | ||
0085ce49 RD |
39134 | SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
39135 | PyObject *resultobj = 0; | |
39136 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39137 | wxDC *arg2 = (wxDC *) 0 ; | |
39138 | bool result; | |
39139 | void *argp1 = 0 ; | |
39140 | int res1 = 0 ; | |
39141 | void *argp2 = 0 ; | |
39142 | int res2 = 0 ; | |
39143 | PyObject * obj0 = 0 ; | |
39144 | PyObject * obj1 = 0 ; | |
39145 | char * kwnames[] = { | |
39146 | (char *) "self",(char *) "dc", NULL | |
39147 | }; | |
39148 | ||
39149 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
39150 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39151 | if (!SWIG_IsOK(res1)) { | |
39152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39153 | } | |
39154 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39155 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
39156 | if (!SWIG_IsOK(res2)) { | |
39157 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
39158 | } | |
39159 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
39160 | { | |
39161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39162 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
39163 | wxPyEndAllowThreads(__tstate); | |
39164 | if (PyErr_Occurred()) SWIG_fail; | |
39165 | } | |
39166 | { | |
39167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39168 | } | |
39169 | return resultobj; | |
39170 | fail: | |
39171 | return NULL; | |
39172 | } | |
39173 | ||
39174 | ||
39175 | SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39176 | PyObject *resultobj = 0; | |
39177 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39178 | int arg2 ; | |
39179 | int arg3 ; | |
39180 | int arg4 ; | |
39181 | int arg5 ; | |
39182 | void *argp1 = 0 ; | |
39183 | int res1 = 0 ; | |
39184 | int val2 ; | |
39185 | int ecode2 = 0 ; | |
39186 | int val3 ; | |
39187 | int ecode3 = 0 ; | |
39188 | int val4 ; | |
39189 | int ecode4 = 0 ; | |
39190 | int val5 ; | |
39191 | int ecode5 = 0 ; | |
39192 | PyObject * obj0 = 0 ; | |
39193 | PyObject * obj1 = 0 ; | |
39194 | PyObject * obj2 = 0 ; | |
39195 | PyObject * obj3 = 0 ; | |
39196 | PyObject * obj4 = 0 ; | |
39197 | char * kwnames[] = { | |
39198 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
39199 | }; | |
39200 | ||
39201 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
39202 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39203 | if (!SWIG_IsOK(res1)) { | |
39204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39205 | } | |
39206 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39207 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39208 | if (!SWIG_IsOK(ecode2)) { | |
39209 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
39210 | } | |
39211 | arg2 = static_cast< int >(val2); | |
39212 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
39213 | if (!SWIG_IsOK(ecode3)) { | |
39214 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
39215 | } | |
39216 | arg3 = static_cast< int >(val3); | |
39217 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
39218 | if (!SWIG_IsOK(ecode4)) { | |
39219 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
39220 | } | |
39221 | arg4 = static_cast< int >(val4); | |
39222 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
39223 | if (!SWIG_IsOK(ecode5)) { | |
39224 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
39225 | } | |
39226 | arg5 = static_cast< int >(val5); | |
39227 | { | |
39228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39229 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
39230 | wxPyEndAllowThreads(__tstate); | |
39231 | if (PyErr_Occurred()) SWIG_fail; | |
39232 | } | |
39233 | resultobj = SWIG_Py_Void(); | |
39234 | return resultobj; | |
39235 | fail: | |
39236 | return NULL; | |
39237 | } | |
39238 | ||
39239 | ||
39240 | SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39241 | PyObject *resultobj = 0; | |
39242 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39243 | int arg2 ; | |
39244 | int arg3 ; | |
39245 | int arg4 ; | |
39246 | int arg5 ; | |
39247 | int arg6 = (int) wxSIZE_AUTO ; | |
39248 | void *argp1 = 0 ; | |
39249 | int res1 = 0 ; | |
39250 | int val2 ; | |
39251 | int ecode2 = 0 ; | |
39252 | int val3 ; | |
39253 | int ecode3 = 0 ; | |
39254 | int val4 ; | |
39255 | int ecode4 = 0 ; | |
39256 | int val5 ; | |
39257 | int ecode5 = 0 ; | |
39258 | int val6 ; | |
39259 | int ecode6 = 0 ; | |
39260 | PyObject * obj0 = 0 ; | |
39261 | PyObject * obj1 = 0 ; | |
39262 | PyObject * obj2 = 0 ; | |
39263 | PyObject * obj3 = 0 ; | |
39264 | PyObject * obj4 = 0 ; | |
39265 | PyObject * obj5 = 0 ; | |
39266 | char * kwnames[] = { | |
39267 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
39268 | }; | |
39269 | ||
39270 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
39271 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39272 | if (!SWIG_IsOK(res1)) { | |
39273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39274 | } | |
39275 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39276 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39277 | if (!SWIG_IsOK(ecode2)) { | |
39278 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
39279 | } | |
39280 | arg2 = static_cast< int >(val2); | |
39281 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
39282 | if (!SWIG_IsOK(ecode3)) { | |
39283 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
39284 | } | |
39285 | arg3 = static_cast< int >(val3); | |
39286 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
39287 | if (!SWIG_IsOK(ecode4)) { | |
39288 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
39289 | } | |
39290 | arg4 = static_cast< int >(val4); | |
39291 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
39292 | if (!SWIG_IsOK(ecode5)) { | |
39293 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
39294 | } | |
39295 | arg5 = static_cast< int >(val5); | |
39296 | if (obj5) { | |
39297 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
39298 | if (!SWIG_IsOK(ecode6)) { | |
39299 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
39300 | } | |
39301 | arg6 = static_cast< int >(val6); | |
39302 | } | |
39303 | { | |
39304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39305 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
39306 | wxPyEndAllowThreads(__tstate); | |
39307 | if (PyErr_Occurred()) SWIG_fail; | |
39308 | } | |
39309 | resultobj = SWIG_Py_Void(); | |
39310 | return resultobj; | |
39311 | fail: | |
39312 | return NULL; | |
39313 | } | |
39314 | ||
39315 | ||
39316 | SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39317 | PyObject *resultobj = 0; | |
39318 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39319 | int arg2 ; | |
39320 | int arg3 ; | |
39321 | void *argp1 = 0 ; | |
39322 | int res1 = 0 ; | |
39323 | int val2 ; | |
39324 | int ecode2 = 0 ; | |
39325 | int val3 ; | |
39326 | int ecode3 = 0 ; | |
39327 | PyObject * obj0 = 0 ; | |
39328 | PyObject * obj1 = 0 ; | |
39329 | PyObject * obj2 = 0 ; | |
39330 | char * kwnames[] = { | |
39331 | (char *) "self",(char *) "width",(char *) "height", NULL | |
39332 | }; | |
39333 | ||
39334 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
39335 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39336 | if (!SWIG_IsOK(res1)) { | |
39337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39338 | } | |
39339 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39340 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39341 | if (!SWIG_IsOK(ecode2)) { | |
39342 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
39343 | } | |
39344 | arg2 = static_cast< int >(val2); | |
39345 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
39346 | if (!SWIG_IsOK(ecode3)) { | |
39347 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
39348 | } | |
39349 | arg3 = static_cast< int >(val3); | |
39350 | { | |
39351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39352 | (arg1)->DoSetClientSize(arg2,arg3); | |
39353 | wxPyEndAllowThreads(__tstate); | |
39354 | if (PyErr_Occurred()) SWIG_fail; | |
39355 | } | |
39356 | resultobj = SWIG_Py_Void(); | |
39357 | return resultobj; | |
39358 | fail: | |
39359 | return NULL; | |
39360 | } | |
39361 | ||
39362 | ||
39363 | SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39364 | PyObject *resultobj = 0; | |
39365 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39366 | int arg2 ; | |
39367 | int arg3 ; | |
39368 | void *argp1 = 0 ; | |
39369 | int res1 = 0 ; | |
39370 | int val2 ; | |
39371 | int ecode2 = 0 ; | |
39372 | int val3 ; | |
39373 | int ecode3 = 0 ; | |
39374 | PyObject * obj0 = 0 ; | |
39375 | PyObject * obj1 = 0 ; | |
39376 | PyObject * obj2 = 0 ; | |
39377 | char * kwnames[] = { | |
39378 | (char *) "self",(char *) "x",(char *) "y", NULL | |
39379 | }; | |
39380 | ||
39381 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
39382 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39383 | if (!SWIG_IsOK(res1)) { | |
39384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39385 | } | |
39386 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39387 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39388 | if (!SWIG_IsOK(ecode2)) { | |
39389 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
39390 | } | |
39391 | arg2 = static_cast< int >(val2); | |
39392 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
39393 | if (!SWIG_IsOK(ecode3)) { | |
39394 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
39395 | } | |
39396 | arg3 = static_cast< int >(val3); | |
39397 | { | |
39398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39399 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
39400 | wxPyEndAllowThreads(__tstate); | |
39401 | if (PyErr_Occurred()) SWIG_fail; | |
39402 | } | |
39403 | resultobj = SWIG_Py_Void(); | |
39404 | return resultobj; | |
39405 | fail: | |
39406 | return NULL; | |
39407 | } | |
39408 | ||
39409 | ||
39410 | SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39411 | PyObject *resultobj = 0; | |
39412 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39413 | int *arg2 = (int *) 0 ; | |
39414 | int *arg3 = (int *) 0 ; | |
39415 | void *argp1 = 0 ; | |
39416 | int res1 = 0 ; | |
39417 | int temp2 ; | |
39418 | int res2 = SWIG_TMPOBJ ; | |
39419 | int temp3 ; | |
39420 | int res3 = SWIG_TMPOBJ ; | |
39421 | PyObject *swig_obj[1] ; | |
39422 | ||
39423 | arg2 = &temp2; | |
39424 | arg3 = &temp3; | |
39425 | if (!args) SWIG_fail; | |
39426 | swig_obj[0] = args; | |
39427 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39428 | if (!SWIG_IsOK(res1)) { | |
39429 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39430 | } | |
39431 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39432 | { | |
39433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39434 | ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3); | |
39435 | wxPyEndAllowThreads(__tstate); | |
39436 | if (PyErr_Occurred()) SWIG_fail; | |
39437 | } | |
39438 | resultobj = SWIG_Py_Void(); | |
39439 | if (SWIG_IsTmpObj(res2)) { | |
39440 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
39441 | } else { | |
39442 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39443 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
39444 | } | |
39445 | if (SWIG_IsTmpObj(res3)) { | |
39446 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
39447 | } else { | |
39448 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39449 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
39450 | } | |
39451 | return resultobj; | |
39452 | fail: | |
39453 | return NULL; | |
39454 | } | |
39455 | ||
39456 | ||
39457 | SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39458 | PyObject *resultobj = 0; | |
39459 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39460 | int *arg2 = (int *) 0 ; | |
39461 | int *arg3 = (int *) 0 ; | |
39462 | void *argp1 = 0 ; | |
39463 | int res1 = 0 ; | |
39464 | int temp2 ; | |
39465 | int res2 = SWIG_TMPOBJ ; | |
39466 | int temp3 ; | |
39467 | int res3 = SWIG_TMPOBJ ; | |
39468 | PyObject *swig_obj[1] ; | |
39469 | ||
39470 | arg2 = &temp2; | |
39471 | arg3 = &temp3; | |
39472 | if (!args) SWIG_fail; | |
39473 | swig_obj[0] = args; | |
39474 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39475 | if (!SWIG_IsOK(res1)) { | |
39476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39477 | } | |
39478 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39479 | { | |
39480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39481 | ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3); | |
39482 | wxPyEndAllowThreads(__tstate); | |
39483 | if (PyErr_Occurred()) SWIG_fail; | |
39484 | } | |
39485 | resultobj = SWIG_Py_Void(); | |
39486 | if (SWIG_IsTmpObj(res2)) { | |
39487 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
39488 | } else { | |
39489 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39490 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
39491 | } | |
39492 | if (SWIG_IsTmpObj(res3)) { | |
39493 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
39494 | } else { | |
39495 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39496 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
39497 | } | |
39498 | return resultobj; | |
39499 | fail: | |
39500 | return NULL; | |
39501 | } | |
39502 | ||
39503 | ||
39504 | SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39505 | PyObject *resultobj = 0; | |
39506 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39507 | int *arg2 = (int *) 0 ; | |
39508 | int *arg3 = (int *) 0 ; | |
39509 | void *argp1 = 0 ; | |
39510 | int res1 = 0 ; | |
39511 | int temp2 ; | |
39512 | int res2 = SWIG_TMPOBJ ; | |
39513 | int temp3 ; | |
39514 | int res3 = SWIG_TMPOBJ ; | |
39515 | PyObject *swig_obj[1] ; | |
39516 | ||
39517 | arg2 = &temp2; | |
39518 | arg3 = &temp3; | |
39519 | if (!args) SWIG_fail; | |
39520 | swig_obj[0] = args; | |
39521 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39522 | if (!SWIG_IsOK(res1)) { | |
39523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39524 | } | |
39525 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39526 | { | |
39527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39528 | ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3); | |
39529 | wxPyEndAllowThreads(__tstate); | |
39530 | if (PyErr_Occurred()) SWIG_fail; | |
39531 | } | |
39532 | resultobj = SWIG_Py_Void(); | |
39533 | if (SWIG_IsTmpObj(res2)) { | |
39534 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
39535 | } else { | |
39536 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39537 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
39538 | } | |
39539 | if (SWIG_IsTmpObj(res3)) { | |
39540 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
39541 | } else { | |
39542 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39543 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
39544 | } | |
39545 | return resultobj; | |
39546 | fail: | |
39547 | return NULL; | |
d14a1e28 RD |
39548 | } |
39549 | ||
39550 | ||
0085ce49 RD |
39551 | SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39552 | PyObject *resultobj = 0; | |
39553 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39554 | wxSize result; | |
39555 | void *argp1 = 0 ; | |
39556 | int res1 = 0 ; | |
39557 | PyObject *swig_obj[1] ; | |
39558 | ||
39559 | if (!args) SWIG_fail; | |
39560 | swig_obj[0] = args; | |
39561 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39562 | if (!SWIG_IsOK(res1)) { | |
39563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39564 | } | |
39565 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39566 | { | |
39567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39568 | result = ((wxPyControl const *)arg1)->DoGetVirtualSize(); | |
39569 | wxPyEndAllowThreads(__tstate); | |
39570 | if (PyErr_Occurred()) SWIG_fail; | |
39571 | } | |
39572 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
39573 | return resultobj; | |
39574 | fail: | |
39575 | return NULL; | |
d14a1e28 RD |
39576 | } |
39577 | ||
39578 | ||
0085ce49 RD |
39579 | SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39580 | PyObject *resultobj = 0; | |
39581 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39582 | wxSize result; | |
39583 | void *argp1 = 0 ; | |
39584 | int res1 = 0 ; | |
39585 | PyObject *swig_obj[1] ; | |
39586 | ||
39587 | if (!args) SWIG_fail; | |
39588 | swig_obj[0] = args; | |
39589 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39590 | if (!SWIG_IsOK(res1)) { | |
39591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39592 | } | |
39593 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39594 | { | |
39595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39596 | result = ((wxPyControl const *)arg1)->DoGetBestSize(); | |
39597 | wxPyEndAllowThreads(__tstate); | |
39598 | if (PyErr_Occurred()) SWIG_fail; | |
39599 | } | |
39600 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
39601 | return resultobj; | |
39602 | fail: | |
39603 | return NULL; | |
d14a1e28 RD |
39604 | } |
39605 | ||
39606 | ||
0085ce49 RD |
39607 | SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39608 | PyObject *resultobj = 0; | |
39609 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39610 | SwigValueWrapper<wxVisualAttributes > result; | |
39611 | void *argp1 = 0 ; | |
39612 | int res1 = 0 ; | |
39613 | PyObject *swig_obj[1] ; | |
39614 | ||
39615 | if (!args) SWIG_fail; | |
39616 | swig_obj[0] = args; | |
39617 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39618 | if (!SWIG_IsOK(res1)) { | |
39619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39620 | } | |
39621 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39622 | { | |
39623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39624 | result = (arg1)->GetDefaultAttributes(); | |
39625 | wxPyEndAllowThreads(__tstate); | |
39626 | if (PyErr_Occurred()) SWIG_fail; | |
39627 | } | |
39628 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
39629 | return resultobj; | |
39630 | fail: | |
39631 | return NULL; | |
d14a1e28 RD |
39632 | } |
39633 | ||
39634 | ||
0085ce49 RD |
39635 | SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39636 | PyObject *resultobj = 0; | |
39637 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39638 | void *argp1 = 0 ; | |
39639 | int res1 = 0 ; | |
39640 | PyObject *swig_obj[1] ; | |
39641 | ||
39642 | if (!args) SWIG_fail; | |
39643 | swig_obj[0] = args; | |
39644 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39645 | if (!SWIG_IsOK(res1)) { | |
39646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39647 | } | |
39648 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39649 | { | |
39650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39651 | (arg1)->OnInternalIdle(); | |
39652 | wxPyEndAllowThreads(__tstate); | |
39653 | if (PyErr_Occurred()) SWIG_fail; | |
39654 | } | |
39655 | resultobj = SWIG_Py_Void(); | |
39656 | return resultobj; | |
39657 | fail: | |
39658 | return NULL; | |
39659 | } | |
39660 | ||
39661 | ||
39662 | SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39663 | PyObject *obj; | |
39664 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39665 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj)); | |
39666 | return SWIG_Py_Void(); | |
39667 | } | |
39668 | ||
39669 | SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39670 | return SWIG_Python_InitShadowInstance(args); | |
39671 | } | |
39672 | ||
39673 | SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39674 | PyObject *resultobj = 0; | |
39675 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
39676 | int arg2 = (int) 0 ; | |
39677 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
39678 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
704eda0c | 39679 | wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ; |
0085ce49 RD |
39680 | wxHelpEvent *result = 0 ; |
39681 | int val1 ; | |
39682 | int ecode1 = 0 ; | |
39683 | int val2 ; | |
39684 | int ecode2 = 0 ; | |
39685 | wxPoint temp3 ; | |
704eda0c RD |
39686 | int val4 ; |
39687 | int ecode4 = 0 ; | |
0085ce49 RD |
39688 | PyObject * obj0 = 0 ; |
39689 | PyObject * obj1 = 0 ; | |
39690 | PyObject * obj2 = 0 ; | |
704eda0c | 39691 | PyObject * obj3 = 0 ; |
0085ce49 | 39692 | char * kwnames[] = { |
704eda0c | 39693 | (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL |
0085ce49 RD |
39694 | }; |
39695 | ||
704eda0c | 39696 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
39697 | if (obj0) { |
39698 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
39699 | if (!SWIG_IsOK(ecode1)) { | |
39700 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
39701 | } | |
39702 | arg1 = static_cast< wxEventType >(val1); | |
39703 | } | |
39704 | if (obj1) { | |
39705 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39706 | if (!SWIG_IsOK(ecode2)) { | |
39707 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'"); | |
39708 | } | |
39709 | arg2 = static_cast< int >(val2); | |
39710 | } | |
39711 | if (obj2) { | |
d14a1e28 | 39712 | { |
0085ce49 RD |
39713 | arg3 = &temp3; |
39714 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 39715 | } |
0085ce49 | 39716 | } |
704eda0c RD |
39717 | if (obj3) { |
39718 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
39719 | if (!SWIG_IsOK(ecode4)) { | |
39720 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'"); | |
39721 | } | |
39722 | arg4 = static_cast< wxHelpEvent::Origin >(val4); | |
39723 | } | |
0085ce49 RD |
39724 | { |
39725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 39726 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4); |
0085ce49 RD |
39727 | wxPyEndAllowThreads(__tstate); |
39728 | if (PyErr_Occurred()) SWIG_fail; | |
39729 | } | |
39730 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 ); | |
39731 | return resultobj; | |
39732 | fail: | |
39733 | return NULL; | |
d14a1e28 RD |
39734 | } |
39735 | ||
39736 | ||
0085ce49 RD |
39737 | SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39738 | PyObject *resultobj = 0; | |
39739 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39740 | wxPoint result; | |
39741 | void *argp1 = 0 ; | |
39742 | int res1 = 0 ; | |
39743 | PyObject *swig_obj[1] ; | |
39744 | ||
39745 | if (!args) SWIG_fail; | |
39746 | swig_obj[0] = args; | |
39747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39748 | if (!SWIG_IsOK(res1)) { | |
39749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
39750 | } | |
39751 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39752 | { | |
39753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39754 | result = ((wxHelpEvent const *)arg1)->GetPosition(); | |
39755 | wxPyEndAllowThreads(__tstate); | |
39756 | if (PyErr_Occurred()) SWIG_fail; | |
39757 | } | |
39758 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
39759 | return resultobj; | |
39760 | fail: | |
39761 | return NULL; | |
39762 | } | |
39763 | ||
39764 | ||
39765 | SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39766 | PyObject *resultobj = 0; | |
39767 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39768 | wxPoint *arg2 = 0 ; | |
39769 | void *argp1 = 0 ; | |
39770 | int res1 = 0 ; | |
39771 | wxPoint temp2 ; | |
39772 | PyObject * obj0 = 0 ; | |
39773 | PyObject * obj1 = 0 ; | |
39774 | char * kwnames[] = { | |
39775 | (char *) "self",(char *) "pos", NULL | |
39776 | }; | |
39777 | ||
39778 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
39779 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39780 | if (!SWIG_IsOK(res1)) { | |
39781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
39782 | } | |
39783 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39784 | { | |
39785 | arg2 = &temp2; | |
39786 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39787 | } | |
39788 | { | |
39789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39790 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
39791 | wxPyEndAllowThreads(__tstate); | |
39792 | if (PyErr_Occurred()) SWIG_fail; | |
39793 | } | |
39794 | resultobj = SWIG_Py_Void(); | |
39795 | return resultobj; | |
39796 | fail: | |
39797 | return NULL; | |
d14a1e28 RD |
39798 | } |
39799 | ||
39800 | ||
0085ce49 RD |
39801 | SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39802 | PyObject *resultobj = 0; | |
39803 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39804 | wxString *result = 0 ; | |
39805 | void *argp1 = 0 ; | |
39806 | int res1 = 0 ; | |
39807 | PyObject *swig_obj[1] ; | |
39808 | ||
39809 | if (!args) SWIG_fail; | |
39810 | swig_obj[0] = args; | |
39811 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39812 | if (!SWIG_IsOK(res1)) { | |
39813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
39814 | } | |
39815 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39816 | { | |
39817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 39818 | { |
0085ce49 RD |
39819 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); |
39820 | result = (wxString *) &_result_ref; | |
093d3ff1 | 39821 | } |
0085ce49 RD |
39822 | wxPyEndAllowThreads(__tstate); |
39823 | if (PyErr_Occurred()) SWIG_fail; | |
39824 | } | |
39825 | { | |
39826 | #if wxUSE_UNICODE | |
39827 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
39828 | #else | |
39829 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
39830 | #endif | |
39831 | } | |
39832 | return resultobj; | |
39833 | fail: | |
39834 | return NULL; | |
39835 | } | |
39836 | ||
39837 | ||
39838 | SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39839 | PyObject *resultobj = 0; | |
39840 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39841 | wxString *arg2 = 0 ; | |
39842 | void *argp1 = 0 ; | |
39843 | int res1 = 0 ; | |
39844 | bool temp2 = false ; | |
39845 | PyObject * obj0 = 0 ; | |
39846 | PyObject * obj1 = 0 ; | |
39847 | char * kwnames[] = { | |
39848 | (char *) "self",(char *) "link", NULL | |
39849 | }; | |
39850 | ||
39851 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail; | |
39852 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39853 | if (!SWIG_IsOK(res1)) { | |
39854 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
39855 | } | |
39856 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39857 | { | |
39858 | arg2 = wxString_in_helper(obj1); | |
39859 | if (arg2 == NULL) SWIG_fail; | |
39860 | temp2 = true; | |
39861 | } | |
39862 | { | |
39863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39864 | (arg1)->SetLink((wxString const &)*arg2); | |
39865 | wxPyEndAllowThreads(__tstate); | |
39866 | if (PyErr_Occurred()) SWIG_fail; | |
39867 | } | |
39868 | resultobj = SWIG_Py_Void(); | |
39869 | { | |
39870 | if (temp2) | |
39871 | delete arg2; | |
39872 | } | |
39873 | return resultobj; | |
39874 | fail: | |
39875 | { | |
39876 | if (temp2) | |
39877 | delete arg2; | |
39878 | } | |
39879 | return NULL; | |
d14a1e28 RD |
39880 | } |
39881 | ||
39882 | ||
0085ce49 RD |
39883 | SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39884 | PyObject *resultobj = 0; | |
39885 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39886 | wxString *result = 0 ; | |
39887 | void *argp1 = 0 ; | |
39888 | int res1 = 0 ; | |
39889 | PyObject *swig_obj[1] ; | |
39890 | ||
39891 | if (!args) SWIG_fail; | |
39892 | swig_obj[0] = args; | |
39893 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39894 | if (!SWIG_IsOK(res1)) { | |
39895 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
39896 | } | |
39897 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39898 | { | |
39899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 39900 | { |
0085ce49 RD |
39901 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); |
39902 | result = (wxString *) &_result_ref; | |
d14a1e28 | 39903 | } |
0085ce49 RD |
39904 | wxPyEndAllowThreads(__tstate); |
39905 | if (PyErr_Occurred()) SWIG_fail; | |
39906 | } | |
39907 | { | |
39908 | #if wxUSE_UNICODE | |
39909 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
39910 | #else | |
39911 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
39912 | #endif | |
39913 | } | |
39914 | return resultobj; | |
39915 | fail: | |
39916 | return NULL; | |
39917 | } | |
39918 | ||
39919 | ||
39920 | SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39921 | PyObject *resultobj = 0; | |
39922 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39923 | wxString *arg2 = 0 ; | |
39924 | void *argp1 = 0 ; | |
39925 | int res1 = 0 ; | |
39926 | bool temp2 = false ; | |
39927 | PyObject * obj0 = 0 ; | |
39928 | PyObject * obj1 = 0 ; | |
39929 | char * kwnames[] = { | |
39930 | (char *) "self",(char *) "target", NULL | |
39931 | }; | |
39932 | ||
39933 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail; | |
39934 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39935 | if (!SWIG_IsOK(res1)) { | |
39936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
39937 | } | |
39938 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39939 | { | |
39940 | arg2 = wxString_in_helper(obj1); | |
39941 | if (arg2 == NULL) SWIG_fail; | |
39942 | temp2 = true; | |
39943 | } | |
39944 | { | |
39945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39946 | (arg1)->SetTarget((wxString const &)*arg2); | |
39947 | wxPyEndAllowThreads(__tstate); | |
39948 | if (PyErr_Occurred()) SWIG_fail; | |
39949 | } | |
39950 | resultobj = SWIG_Py_Void(); | |
39951 | { | |
39952 | if (temp2) | |
39953 | delete arg2; | |
39954 | } | |
39955 | return resultobj; | |
39956 | fail: | |
39957 | { | |
39958 | if (temp2) | |
39959 | delete arg2; | |
39960 | } | |
39961 | return NULL; | |
d14a1e28 RD |
39962 | } |
39963 | ||
39964 | ||
704eda0c RD |
39965 | SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39966 | PyObject *resultobj = 0; | |
39967 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39968 | wxHelpEvent::Origin result; | |
39969 | void *argp1 = 0 ; | |
39970 | int res1 = 0 ; | |
39971 | PyObject *swig_obj[1] ; | |
39972 | ||
39973 | if (!args) SWIG_fail; | |
39974 | swig_obj[0] = args; | |
39975 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39976 | if (!SWIG_IsOK(res1)) { | |
39977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
39978 | } | |
39979 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39980 | { | |
39981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39982 | result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin(); | |
39983 | wxPyEndAllowThreads(__tstate); | |
39984 | if (PyErr_Occurred()) SWIG_fail; | |
39985 | } | |
39986 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
39987 | return resultobj; | |
39988 | fail: | |
39989 | return NULL; | |
39990 | } | |
39991 | ||
39992 | ||
39993 | SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39994 | PyObject *resultobj = 0; | |
39995 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39996 | wxHelpEvent::Origin arg2 ; | |
39997 | void *argp1 = 0 ; | |
39998 | int res1 = 0 ; | |
39999 | int val2 ; | |
40000 | int ecode2 = 0 ; | |
40001 | PyObject * obj0 = 0 ; | |
40002 | PyObject * obj1 = 0 ; | |
40003 | char * kwnames[] = { | |
40004 | (char *) "self",(char *) "origin", NULL | |
40005 | }; | |
40006 | ||
40007 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail; | |
40008 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
40009 | if (!SWIG_IsOK(res1)) { | |
40010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
40011 | } | |
40012 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
40013 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
40014 | if (!SWIG_IsOK(ecode2)) { | |
40015 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'"); | |
40016 | } | |
40017 | arg2 = static_cast< wxHelpEvent::Origin >(val2); | |
40018 | { | |
40019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40020 | (arg1)->SetOrigin(arg2); | |
40021 | wxPyEndAllowThreads(__tstate); | |
40022 | if (PyErr_Occurred()) SWIG_fail; | |
40023 | } | |
40024 | resultobj = SWIG_Py_Void(); | |
40025 | return resultobj; | |
40026 | fail: | |
40027 | return NULL; | |
40028 | } | |
40029 | ||
40030 | ||
0085ce49 RD |
40031 | SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40032 | PyObject *obj; | |
40033 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40034 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj)); | |
40035 | return SWIG_Py_Void(); | |
d14a1e28 RD |
40036 | } |
40037 | ||
0085ce49 RD |
40038 | SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40039 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
40040 | } |
40041 | ||
0085ce49 RD |
40042 | SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
40043 | PyObject *resultobj = 0; | |
40044 | wxWindow *arg1 = (wxWindow *) NULL ; | |
40045 | bool arg2 = (bool) true ; | |
40046 | wxContextHelp *result = 0 ; | |
40047 | void *argp1 = 0 ; | |
40048 | int res1 = 0 ; | |
40049 | bool val2 ; | |
40050 | int ecode2 = 0 ; | |
40051 | PyObject * obj0 = 0 ; | |
40052 | PyObject * obj1 = 0 ; | |
40053 | char * kwnames[] = { | |
40054 | (char *) "window",(char *) "doNow", NULL | |
40055 | }; | |
40056 | ||
40057 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
40058 | if (obj0) { | |
40059 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40060 | if (!SWIG_IsOK(res1)) { | |
40061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
d14a1e28 | 40062 | } |
0085ce49 RD |
40063 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
40064 | } | |
40065 | if (obj1) { | |
40066 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
40067 | if (!SWIG_IsOK(ecode2)) { | |
40068 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'"); | |
40069 | } | |
40070 | arg2 = static_cast< bool >(val2); | |
40071 | } | |
40072 | { | |
40073 | if (!wxPyCheckForApp()) SWIG_fail; | |
40074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40075 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
40076 | wxPyEndAllowThreads(__tstate); | |
40077 | if (PyErr_Occurred()) SWIG_fail; | |
40078 | } | |
40079 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 ); | |
40080 | return resultobj; | |
40081 | fail: | |
40082 | return NULL; | |
d14a1e28 RD |
40083 | } |
40084 | ||
40085 | ||
0085ce49 RD |
40086 | SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40087 | PyObject *resultobj = 0; | |
40088 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
40089 | void *argp1 = 0 ; | |
40090 | int res1 = 0 ; | |
40091 | PyObject *swig_obj[1] ; | |
40092 | ||
40093 | if (!args) SWIG_fail; | |
40094 | swig_obj[0] = args; | |
40095 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 ); | |
40096 | if (!SWIG_IsOK(res1)) { | |
40097 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
40098 | } | |
40099 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
40100 | { | |
40101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40102 | delete arg1; | |
3a04f143 | 40103 | |
0085ce49 RD |
40104 | wxPyEndAllowThreads(__tstate); |
40105 | if (PyErr_Occurred()) SWIG_fail; | |
40106 | } | |
40107 | resultobj = SWIG_Py_Void(); | |
40108 | return resultobj; | |
40109 | fail: | |
40110 | return NULL; | |
40111 | } | |
40112 | ||
40113 | ||
40114 | SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40115 | PyObject *resultobj = 0; | |
40116 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
40117 | wxWindow *arg2 = (wxWindow *) NULL ; | |
40118 | bool result; | |
40119 | void *argp1 = 0 ; | |
40120 | int res1 = 0 ; | |
40121 | void *argp2 = 0 ; | |
40122 | int res2 = 0 ; | |
40123 | PyObject * obj0 = 0 ; | |
40124 | PyObject * obj1 = 0 ; | |
40125 | char * kwnames[] = { | |
40126 | (char *) "self",(char *) "window", NULL | |
40127 | }; | |
40128 | ||
40129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
40130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 ); | |
40131 | if (!SWIG_IsOK(res1)) { | |
40132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
40133 | } | |
40134 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
40135 | if (obj1) { | |
40136 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40137 | if (!SWIG_IsOK(res2)) { | |
40138 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3a04f143 | 40139 | } |
0085ce49 RD |
40140 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
40141 | } | |
40142 | { | |
40143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40144 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
40145 | wxPyEndAllowThreads(__tstate); | |
40146 | if (PyErr_Occurred()) SWIG_fail; | |
40147 | } | |
40148 | { | |
40149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40150 | } | |
40151 | return resultobj; | |
40152 | fail: | |
40153 | return NULL; | |
3a04f143 RD |
40154 | } |
40155 | ||
40156 | ||
0085ce49 RD |
40157 | SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40158 | PyObject *resultobj = 0; | |
40159 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
40160 | bool result; | |
40161 | void *argp1 = 0 ; | |
40162 | int res1 = 0 ; | |
40163 | PyObject *swig_obj[1] ; | |
40164 | ||
40165 | if (!args) SWIG_fail; | |
40166 | swig_obj[0] = args; | |
40167 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 ); | |
40168 | if (!SWIG_IsOK(res1)) { | |
40169 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
40170 | } | |
40171 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
40172 | { | |
40173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40174 | result = (bool)(arg1)->EndContextHelp(); | |
40175 | wxPyEndAllowThreads(__tstate); | |
40176 | if (PyErr_Occurred()) SWIG_fail; | |
40177 | } | |
40178 | { | |
40179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40180 | } | |
40181 | return resultobj; | |
40182 | fail: | |
40183 | return NULL; | |
40184 | } | |
40185 | ||
40186 | ||
40187 | SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
40188 | PyObject *obj; | |
40189 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40190 | SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj)); | |
40191 | return SWIG_Py_Void(); | |
40192 | } | |
40193 | ||
40194 | SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
40195 | return SWIG_Python_InitShadowInstance(args); | |
40196 | } | |
40197 | ||
40198 | SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40199 | PyObject *resultobj = 0; | |
40200 | wxWindow *arg1 = (wxWindow *) 0 ; | |
40201 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
40202 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
40203 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
40204 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
40205 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
40206 | long arg5 = (long) wxBU_AUTODRAW ; | |
40207 | wxContextHelpButton *result = 0 ; | |
40208 | void *argp1 = 0 ; | |
40209 | int res1 = 0 ; | |
40210 | int val2 ; | |
40211 | int ecode2 = 0 ; | |
40212 | wxPoint temp3 ; | |
40213 | wxSize temp4 ; | |
40214 | long val5 ; | |
40215 | int ecode5 = 0 ; | |
40216 | PyObject * obj0 = 0 ; | |
40217 | PyObject * obj1 = 0 ; | |
40218 | PyObject * obj2 = 0 ; | |
40219 | PyObject * obj3 = 0 ; | |
40220 | PyObject * obj4 = 0 ; | |
40221 | char * kwnames[] = { | |
40222 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
40223 | }; | |
40224 | ||
40225 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
40226 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40227 | if (!SWIG_IsOK(res1)) { | |
40228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
40229 | } | |
40230 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
40231 | if (obj1) { | |
40232 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
40233 | if (!SWIG_IsOK(ecode2)) { | |
40234 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'"); | |
40235 | } | |
40236 | arg2 = static_cast< int >(val2); | |
40237 | } | |
40238 | if (obj2) { | |
d14a1e28 | 40239 | { |
0085ce49 RD |
40240 | arg3 = &temp3; |
40241 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 40242 | } |
0085ce49 RD |
40243 | } |
40244 | if (obj3) { | |
4f89f6a3 | 40245 | { |
0085ce49 RD |
40246 | arg4 = &temp4; |
40247 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 40248 | } |
0085ce49 RD |
40249 | } |
40250 | if (obj4) { | |
40251 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
40252 | if (!SWIG_IsOK(ecode5)) { | |
40253 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'"); | |
40254 | } | |
40255 | arg5 = static_cast< long >(val5); | |
40256 | } | |
40257 | { | |
40258 | if (!wxPyCheckForApp()) SWIG_fail; | |
40259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40260 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
40261 | wxPyEndAllowThreads(__tstate); | |
40262 | if (PyErr_Occurred()) SWIG_fail; | |
40263 | } | |
40264 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 ); | |
40265 | return resultobj; | |
40266 | fail: | |
40267 | return NULL; | |
d14a1e28 RD |
40268 | } |
40269 | ||
40270 | ||
0085ce49 RD |
40271 | SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40272 | PyObject *obj; | |
40273 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40274 | SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj)); | |
40275 | return SWIG_Py_Void(); | |
d14a1e28 RD |
40276 | } |
40277 | ||
0085ce49 RD |
40278 | SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40279 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
40280 | } |
40281 | ||
f52cbe90 RD |
40282 | SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40283 | PyObject *resultobj = 0; | |
40284 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40285 | void *argp1 = 0 ; | |
40286 | int res1 = 0 ; | |
40287 | PyObject *swig_obj[1] ; | |
40288 | ||
40289 | if (!args) SWIG_fail; | |
40290 | swig_obj[0] = args; | |
40291 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 ); | |
40292 | if (!SWIG_IsOK(res1)) { | |
40293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40294 | } | |
40295 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40296 | { | |
40297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40298 | delete arg1; | |
40299 | ||
40300 | wxPyEndAllowThreads(__tstate); | |
40301 | if (PyErr_Occurred()) SWIG_fail; | |
40302 | } | |
40303 | resultobj = SWIG_Py_Void(); | |
40304 | return resultobj; | |
40305 | fail: | |
40306 | return NULL; | |
40307 | } | |
40308 | ||
40309 | ||
0085ce49 RD |
40310 | SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
40311 | PyObject *resultobj = 0; | |
40312 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40313 | wxHelpProvider *result = 0 ; | |
40314 | int res1 = 0 ; | |
40315 | PyObject * obj0 = 0 ; | |
40316 | char * kwnames[] = { | |
40317 | (char *) "helpProvider", NULL | |
40318 | }; | |
40319 | ||
40320 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail; | |
40321 | res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 ); | |
40322 | if (!SWIG_IsOK(res1)) { | |
40323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40324 | } | |
40325 | { | |
40326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40327 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
40328 | wxPyEndAllowThreads(__tstate); | |
40329 | if (PyErr_Occurred()) SWIG_fail; | |
40330 | } | |
40331 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 ); | |
40332 | return resultobj; | |
40333 | fail: | |
40334 | return NULL; | |
d14a1e28 RD |
40335 | } |
40336 | ||
40337 | ||
0085ce49 RD |
40338 | SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40339 | PyObject *resultobj = 0; | |
40340 | wxHelpProvider *result = 0 ; | |
40341 | ||
40342 | if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail; | |
40343 | { | |
40344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40345 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
40346 | wxPyEndAllowThreads(__tstate); | |
40347 | if (PyErr_Occurred()) SWIG_fail; | |
40348 | } | |
40349 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40350 | return resultobj; | |
40351 | fail: | |
40352 | return NULL; | |
40353 | } | |
40354 | ||
40355 | ||
40356 | SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40357 | PyObject *resultobj = 0; | |
40358 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40359 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40360 | wxString result; | |
40361 | void *argp1 = 0 ; | |
40362 | int res1 = 0 ; | |
40363 | void *argp2 = 0 ; | |
40364 | int res2 = 0 ; | |
40365 | PyObject * obj0 = 0 ; | |
40366 | PyObject * obj1 = 0 ; | |
40367 | char * kwnames[] = { | |
40368 | (char *) "self",(char *) "window", NULL | |
40369 | }; | |
40370 | ||
40371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
40372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40373 | if (!SWIG_IsOK(res1)) { | |
40374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40375 | } | |
40376 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40377 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40378 | if (!SWIG_IsOK(res2)) { | |
40379 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
40380 | } | |
40381 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40382 | { | |
40383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40384 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
40385 | wxPyEndAllowThreads(__tstate); | |
40386 | if (PyErr_Occurred()) SWIG_fail; | |
40387 | } | |
40388 | { | |
40389 | #if wxUSE_UNICODE | |
40390 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
40391 | #else | |
40392 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
40393 | #endif | |
40394 | } | |
40395 | return resultobj; | |
40396 | fail: | |
40397 | return NULL; | |
40398 | } | |
40399 | ||
40400 | ||
40401 | SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40402 | PyObject *resultobj = 0; | |
40403 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40404 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40405 | bool result; | |
40406 | void *argp1 = 0 ; | |
40407 | int res1 = 0 ; | |
40408 | void *argp2 = 0 ; | |
40409 | int res2 = 0 ; | |
40410 | PyObject * obj0 = 0 ; | |
40411 | PyObject * obj1 = 0 ; | |
40412 | char * kwnames[] = { | |
40413 | (char *) "self",(char *) "window", NULL | |
40414 | }; | |
40415 | ||
40416 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
40417 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40418 | if (!SWIG_IsOK(res1)) { | |
40419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40420 | } | |
40421 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40422 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40423 | if (!SWIG_IsOK(res2)) { | |
40424 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
40425 | } | |
40426 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40427 | { | |
40428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40429 | result = (bool)(arg1)->ShowHelp(arg2); | |
40430 | wxPyEndAllowThreads(__tstate); | |
40431 | if (PyErr_Occurred()) SWIG_fail; | |
40432 | } | |
40433 | { | |
40434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40435 | } | |
40436 | return resultobj; | |
40437 | fail: | |
40438 | return NULL; | |
40439 | } | |
40440 | ||
40441 | ||
b850e7f3 RD |
40442 | SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
40443 | PyObject *resultobj = 0; | |
40444 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40445 | wxWindowBase *arg2 = (wxWindowBase *) 0 ; | |
40446 | wxPoint *arg3 = 0 ; | |
40447 | wxHelpEvent::Origin arg4 ; | |
40448 | bool result; | |
40449 | void *argp1 = 0 ; | |
40450 | int res1 = 0 ; | |
40451 | void *argp2 = 0 ; | |
40452 | int res2 = 0 ; | |
40453 | wxPoint temp3 ; | |
40454 | int val4 ; | |
40455 | int ecode4 = 0 ; | |
40456 | PyObject * obj0 = 0 ; | |
40457 | PyObject * obj1 = 0 ; | |
40458 | PyObject * obj2 = 0 ; | |
40459 | PyObject * obj3 = 0 ; | |
40460 | char * kwnames[] = { | |
40461 | (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL | |
40462 | }; | |
40463 | ||
40464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
40465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40466 | if (!SWIG_IsOK(res1)) { | |
40467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40468 | } | |
40469 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40470 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 ); | |
40471 | if (!SWIG_IsOK(res2)) { | |
40472 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'"); | |
40473 | } | |
40474 | arg2 = reinterpret_cast< wxWindowBase * >(argp2); | |
40475 | { | |
40476 | arg3 = &temp3; | |
40477 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
40478 | } | |
40479 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
40480 | if (!SWIG_IsOK(ecode4)) { | |
40481 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'"); | |
40482 | } | |
40483 | arg4 = static_cast< wxHelpEvent::Origin >(val4); | |
40484 | { | |
40485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40486 | result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4); | |
40487 | wxPyEndAllowThreads(__tstate); | |
40488 | if (PyErr_Occurred()) SWIG_fail; | |
40489 | } | |
40490 | { | |
40491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40492 | } | |
40493 | return resultobj; | |
40494 | fail: | |
40495 | return NULL; | |
40496 | } | |
40497 | ||
40498 | ||
0085ce49 RD |
40499 | SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
40500 | PyObject *resultobj = 0; | |
40501 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40502 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40503 | wxString *arg3 = 0 ; | |
40504 | void *argp1 = 0 ; | |
40505 | int res1 = 0 ; | |
40506 | void *argp2 = 0 ; | |
40507 | int res2 = 0 ; | |
40508 | bool temp3 = false ; | |
40509 | PyObject * obj0 = 0 ; | |
40510 | PyObject * obj1 = 0 ; | |
40511 | PyObject * obj2 = 0 ; | |
40512 | char * kwnames[] = { | |
40513 | (char *) "self",(char *) "window",(char *) "text", NULL | |
40514 | }; | |
40515 | ||
40516 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
40517 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40518 | if (!SWIG_IsOK(res1)) { | |
40519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40520 | } | |
40521 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40522 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40523 | if (!SWIG_IsOK(res2)) { | |
40524 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
40525 | } | |
40526 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40527 | { | |
40528 | arg3 = wxString_in_helper(obj2); | |
40529 | if (arg3 == NULL) SWIG_fail; | |
40530 | temp3 = true; | |
40531 | } | |
40532 | { | |
40533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40534 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
40535 | wxPyEndAllowThreads(__tstate); | |
40536 | if (PyErr_Occurred()) SWIG_fail; | |
40537 | } | |
40538 | resultobj = SWIG_Py_Void(); | |
40539 | { | |
40540 | if (temp3) | |
40541 | delete arg3; | |
40542 | } | |
40543 | return resultobj; | |
40544 | fail: | |
40545 | { | |
40546 | if (temp3) | |
40547 | delete arg3; | |
40548 | } | |
40549 | return NULL; | |
40550 | } | |
40551 | ||
40552 | ||
40553 | SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40554 | PyObject *resultobj = 0; | |
40555 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40556 | int arg2 ; | |
40557 | wxString *arg3 = 0 ; | |
40558 | void *argp1 = 0 ; | |
40559 | int res1 = 0 ; | |
40560 | int val2 ; | |
40561 | int ecode2 = 0 ; | |
40562 | bool temp3 = false ; | |
40563 | PyObject * obj0 = 0 ; | |
40564 | PyObject * obj1 = 0 ; | |
40565 | PyObject * obj2 = 0 ; | |
40566 | char * kwnames[] = { | |
40567 | (char *) "self",(char *) "id",(char *) "text", NULL | |
40568 | }; | |
40569 | ||
40570 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
40571 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40572 | if (!SWIG_IsOK(res1)) { | |
40573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40574 | } | |
40575 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40576 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
40577 | if (!SWIG_IsOK(ecode2)) { | |
40578 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'"); | |
40579 | } | |
40580 | arg2 = static_cast< int >(val2); | |
40581 | { | |
40582 | arg3 = wxString_in_helper(obj2); | |
40583 | if (arg3 == NULL) SWIG_fail; | |
40584 | temp3 = true; | |
40585 | } | |
40586 | { | |
40587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40588 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
40589 | wxPyEndAllowThreads(__tstate); | |
40590 | if (PyErr_Occurred()) SWIG_fail; | |
40591 | } | |
40592 | resultobj = SWIG_Py_Void(); | |
40593 | { | |
40594 | if (temp3) | |
40595 | delete arg3; | |
40596 | } | |
40597 | return resultobj; | |
40598 | fail: | |
40599 | { | |
40600 | if (temp3) | |
40601 | delete arg3; | |
40602 | } | |
40603 | return NULL; | |
40604 | } | |
40605 | ||
40606 | ||
40607 | SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40608 | PyObject *resultobj = 0; | |
40609 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40610 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40611 | void *argp1 = 0 ; | |
40612 | int res1 = 0 ; | |
40613 | void *argp2 = 0 ; | |
40614 | int res2 = 0 ; | |
40615 | PyObject * obj0 = 0 ; | |
40616 | PyObject * obj1 = 0 ; | |
40617 | char * kwnames[] = { | |
40618 | (char *) "self",(char *) "window", NULL | |
40619 | }; | |
40620 | ||
40621 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
40622 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40623 | if (!SWIG_IsOK(res1)) { | |
40624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40625 | } | |
40626 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40627 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40628 | if (!SWIG_IsOK(res2)) { | |
40629 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
40630 | } | |
40631 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40632 | { | |
40633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40634 | (arg1)->RemoveHelp(arg2); | |
40635 | wxPyEndAllowThreads(__tstate); | |
40636 | if (PyErr_Occurred()) SWIG_fail; | |
40637 | } | |
40638 | resultobj = SWIG_Py_Void(); | |
40639 | return resultobj; | |
40640 | fail: | |
40641 | return NULL; | |
d14a1e28 RD |
40642 | } |
40643 | ||
40644 | ||
0085ce49 RD |
40645 | SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40646 | PyObject *resultobj = 0; | |
40647 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40648 | void *argp1 = 0 ; | |
40649 | int res1 = 0 ; | |
40650 | PyObject *swig_obj[1] ; | |
40651 | ||
40652 | if (!args) SWIG_fail; | |
40653 | swig_obj[0] = args; | |
40654 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40655 | if (!SWIG_IsOK(res1)) { | |
40656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40657 | } | |
40658 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40659 | { | |
40660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40661 | wxHelpProvider_Destroy(arg1); | |
40662 | wxPyEndAllowThreads(__tstate); | |
40663 | if (PyErr_Occurred()) SWIG_fail; | |
40664 | } | |
40665 | resultobj = SWIG_Py_Void(); | |
40666 | return resultobj; | |
40667 | fail: | |
40668 | return NULL; | |
22bfe96c RD |
40669 | } |
40670 | ||
40671 | ||
0085ce49 RD |
40672 | SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40673 | PyObject *obj; | |
40674 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40675 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj)); | |
40676 | return SWIG_Py_Void(); | |
b2dc1044 RD |
40677 | } |
40678 | ||
0085ce49 RD |
40679 | SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40680 | PyObject *resultobj = 0; | |
40681 | wxSimpleHelpProvider *result = 0 ; | |
40682 | ||
40683 | if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail; | |
40684 | { | |
40685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40686 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
40687 | wxPyEndAllowThreads(__tstate); | |
40688 | if (PyErr_Occurred()) SWIG_fail; | |
40689 | } | |
40690 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 ); | |
40691 | return resultobj; | |
40692 | fail: | |
40693 | return NULL; | |
40694 | } | |
40695 | ||
40696 | ||
40697 | SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
40698 | PyObject *obj; | |
40699 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40700 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj)); | |
40701 | return SWIG_Py_Void(); | |
40702 | } | |
40703 | ||
40704 | SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
40705 | return SWIG_Python_InitShadowInstance(args); | |
40706 | } | |
40707 | ||
40708 | SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40709 | PyObject *resultobj = 0; | |
40710 | wxBitmap *arg1 = 0 ; | |
40711 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
40712 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
40713 | wxGenericDragImage *result = 0 ; | |
40714 | void *argp1 = 0 ; | |
40715 | int res1 = 0 ; | |
40716 | void *argp2 = 0 ; | |
40717 | int res2 = 0 ; | |
40718 | PyObject * obj0 = 0 ; | |
40719 | PyObject * obj1 = 0 ; | |
40720 | char * kwnames[] = { | |
40721 | (char *) "image",(char *) "cursor", NULL | |
40722 | }; | |
40723 | ||
40724 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
40725 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
40726 | if (!SWIG_IsOK(res1)) { | |
40727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
40728 | } | |
40729 | if (!argp1) { | |
40730 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
40731 | } | |
40732 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
40733 | if (obj1) { | |
40734 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
40735 | if (!SWIG_IsOK(res2)) { | |
40736 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d14a1e28 | 40737 | } |
0085ce49 RD |
40738 | if (!argp2) { |
40739 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d14a1e28 | 40740 | } |
0085ce49 RD |
40741 | arg2 = reinterpret_cast< wxCursor * >(argp2); |
40742 | } | |
40743 | { | |
40744 | if (!wxPyCheckForApp()) SWIG_fail; | |
40745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40746 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
40747 | wxPyEndAllowThreads(__tstate); | |
40748 | if (PyErr_Occurred()) SWIG_fail; | |
40749 | } | |
40750 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 ); | |
40751 | return resultobj; | |
40752 | fail: | |
40753 | return NULL; | |
40754 | } | |
40755 | ||
40756 | ||
40757 | SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40758 | PyObject *resultobj = 0; | |
40759 | wxIcon *arg1 = 0 ; | |
40760 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
40761 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
40762 | wxGenericDragImage *result = 0 ; | |
40763 | void *argp1 = 0 ; | |
40764 | int res1 = 0 ; | |
40765 | void *argp2 = 0 ; | |
40766 | int res2 = 0 ; | |
40767 | PyObject * obj0 = 0 ; | |
40768 | PyObject * obj1 = 0 ; | |
40769 | char * kwnames[] = { | |
40770 | (char *) "image",(char *) "cursor", NULL | |
40771 | }; | |
40772 | ||
40773 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
40774 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
40775 | if (!SWIG_IsOK(res1)) { | |
40776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
40777 | } | |
40778 | if (!argp1) { | |
40779 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
40780 | } | |
40781 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
40782 | if (obj1) { | |
40783 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
40784 | if (!SWIG_IsOK(res2)) { | |
40785 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d14a1e28 | 40786 | } |
0085ce49 RD |
40787 | if (!argp2) { |
40788 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d14a1e28 | 40789 | } |
0085ce49 RD |
40790 | arg2 = reinterpret_cast< wxCursor * >(argp2); |
40791 | } | |
40792 | { | |
40793 | if (!wxPyCheckForApp()) SWIG_fail; | |
40794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40795 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
40796 | wxPyEndAllowThreads(__tstate); | |
40797 | if (PyErr_Occurred()) SWIG_fail; | |
40798 | } | |
40799 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
40800 | return resultobj; | |
40801 | fail: | |
40802 | return NULL; | |
40803 | } | |
40804 | ||
40805 | ||
40806 | SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40807 | PyObject *resultobj = 0; | |
40808 | wxString *arg1 = 0 ; | |
40809 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
40810 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
40811 | wxGenericDragImage *result = 0 ; | |
40812 | bool temp1 = false ; | |
40813 | void *argp2 = 0 ; | |
40814 | int res2 = 0 ; | |
40815 | PyObject * obj0 = 0 ; | |
40816 | PyObject * obj1 = 0 ; | |
40817 | char * kwnames[] = { | |
40818 | (char *) "str",(char *) "cursor", NULL | |
40819 | }; | |
40820 | ||
40821 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail; | |
40822 | { | |
40823 | arg1 = wxString_in_helper(obj0); | |
40824 | if (arg1 == NULL) SWIG_fail; | |
40825 | temp1 = true; | |
40826 | } | |
40827 | if (obj1) { | |
40828 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
40829 | if (!SWIG_IsOK(res2)) { | |
40830 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
7e08d4ef | 40831 | } |
0085ce49 RD |
40832 | if (!argp2) { |
40833 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
40834 | } | |
40835 | arg2 = reinterpret_cast< wxCursor * >(argp2); | |
40836 | } | |
40837 | { | |
40838 | if (!wxPyCheckForApp()) SWIG_fail; | |
40839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40840 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
40841 | wxPyEndAllowThreads(__tstate); | |
40842 | if (PyErr_Occurred()) SWIG_fail; | |
40843 | } | |
40844 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
40845 | { | |
40846 | if (temp1) | |
40847 | delete arg1; | |
40848 | } | |
40849 | return resultobj; | |
40850 | fail: | |
40851 | { | |
40852 | if (temp1) | |
40853 | delete arg1; | |
40854 | } | |
40855 | return NULL; | |
40856 | } | |
40857 | ||
40858 | ||
40859 | SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40860 | PyObject *resultobj = 0; | |
40861 | wxPyTreeCtrl *arg1 = 0 ; | |
40862 | wxTreeItemId *arg2 = 0 ; | |
40863 | wxGenericDragImage *result = 0 ; | |
40864 | void *argp1 = 0 ; | |
40865 | int res1 = 0 ; | |
40866 | void *argp2 = 0 ; | |
40867 | int res2 = 0 ; | |
40868 | PyObject * obj0 = 0 ; | |
40869 | PyObject * obj1 = 0 ; | |
40870 | char * kwnames[] = { | |
40871 | (char *) "treeCtrl",(char *) "id", NULL | |
40872 | }; | |
40873 | ||
40874 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
40875 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0); | |
40876 | if (!SWIG_IsOK(res1)) { | |
40877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'"); | |
40878 | } | |
40879 | if (!argp1) { | |
40880 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'"); | |
40881 | } | |
40882 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
40883 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 ); | |
40884 | if (!SWIG_IsOK(res2)) { | |
40885 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'"); | |
40886 | } | |
40887 | if (!argp2) { | |
40888 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'"); | |
40889 | } | |
40890 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
40891 | { | |
40892 | if (!wxPyCheckForApp()) SWIG_fail; | |
40893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40894 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
40895 | wxPyEndAllowThreads(__tstate); | |
40896 | if (PyErr_Occurred()) SWIG_fail; | |
40897 | } | |
40898 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
40899 | return resultobj; | |
40900 | fail: | |
40901 | return NULL; | |
40902 | } | |
40903 | ||
40904 | ||
40905 | SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40906 | PyObject *resultobj = 0; | |
40907 | wxPyListCtrl *arg1 = 0 ; | |
40908 | long arg2 ; | |
40909 | wxGenericDragImage *result = 0 ; | |
40910 | void *argp1 = 0 ; | |
40911 | int res1 = 0 ; | |
40912 | long val2 ; | |
40913 | int ecode2 = 0 ; | |
40914 | PyObject * obj0 = 0 ; | |
40915 | PyObject * obj1 = 0 ; | |
40916 | char * kwnames[] = { | |
40917 | (char *) "listCtrl",(char *) "id", NULL | |
40918 | }; | |
40919 | ||
40920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
40921 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0); | |
40922 | if (!SWIG_IsOK(res1)) { | |
40923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'"); | |
40924 | } | |
40925 | if (!argp1) { | |
40926 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'"); | |
40927 | } | |
40928 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
40929 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
40930 | if (!SWIG_IsOK(ecode2)) { | |
40931 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'"); | |
40932 | } | |
40933 | arg2 = static_cast< long >(val2); | |
40934 | { | |
40935 | if (!wxPyCheckForApp()) SWIG_fail; | |
40936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40937 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
40938 | wxPyEndAllowThreads(__tstate); | |
40939 | if (PyErr_Occurred()) SWIG_fail; | |
40940 | } | |
40941 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
40942 | return resultobj; | |
40943 | fail: | |
40944 | return NULL; | |
7e08d4ef RD |
40945 | } |
40946 | ||
40947 | ||
0085ce49 RD |
40948 | SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40949 | PyObject *resultobj = 0; | |
40950 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40951 | void *argp1 = 0 ; | |
40952 | int res1 = 0 ; | |
40953 | PyObject *swig_obj[1] ; | |
40954 | ||
40955 | if (!args) SWIG_fail; | |
40956 | swig_obj[0] = args; | |
40957 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 ); | |
40958 | if (!SWIG_IsOK(res1)) { | |
40959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40960 | } | |
40961 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40962 | { | |
40963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40964 | delete arg1; | |
d14a1e28 | 40965 | |
0085ce49 RD |
40966 | wxPyEndAllowThreads(__tstate); |
40967 | if (PyErr_Occurred()) SWIG_fail; | |
40968 | } | |
40969 | resultobj = SWIG_Py_Void(); | |
40970 | return resultobj; | |
40971 | fail: | |
40972 | return NULL; | |
40973 | } | |
40974 | ||
40975 | ||
40976 | SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40977 | PyObject *resultobj = 0; | |
40978 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40979 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
40980 | void *argp1 = 0 ; | |
40981 | int res1 = 0 ; | |
40982 | void *argp2 = 0 ; | |
40983 | int res2 = 0 ; | |
40984 | PyObject * obj0 = 0 ; | |
40985 | PyObject * obj1 = 0 ; | |
40986 | char * kwnames[] = { | |
40987 | (char *) "self",(char *) "bitmap", NULL | |
40988 | }; | |
40989 | ||
40990 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
40991 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40992 | if (!SWIG_IsOK(res1)) { | |
40993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40994 | } | |
40995 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40996 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
40997 | if (!SWIG_IsOK(res2)) { | |
40998 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
40999 | } | |
41000 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
41001 | { | |
41002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41003 | (arg1)->SetBackingBitmap(arg2); | |
41004 | wxPyEndAllowThreads(__tstate); | |
41005 | if (PyErr_Occurred()) SWIG_fail; | |
41006 | } | |
41007 | resultobj = SWIG_Py_Void(); | |
41008 | return resultobj; | |
41009 | fail: | |
41010 | return NULL; | |
41011 | } | |
41012 | ||
41013 | ||
41014 | SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41015 | PyObject *resultobj = 0; | |
41016 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41017 | wxPoint *arg2 = 0 ; | |
41018 | wxWindow *arg3 = (wxWindow *) 0 ; | |
41019 | bool arg4 = (bool) false ; | |
41020 | wxRect *arg5 = (wxRect *) NULL ; | |
41021 | bool result; | |
41022 | void *argp1 = 0 ; | |
41023 | int res1 = 0 ; | |
41024 | wxPoint temp2 ; | |
41025 | void *argp3 = 0 ; | |
41026 | int res3 = 0 ; | |
41027 | bool val4 ; | |
41028 | int ecode4 = 0 ; | |
41029 | void *argp5 = 0 ; | |
41030 | int res5 = 0 ; | |
41031 | PyObject * obj0 = 0 ; | |
41032 | PyObject * obj1 = 0 ; | |
41033 | PyObject * obj2 = 0 ; | |
41034 | PyObject * obj3 = 0 ; | |
41035 | PyObject * obj4 = 0 ; | |
41036 | char * kwnames[] = { | |
41037 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
41038 | }; | |
41039 | ||
41040 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
41041 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41042 | if (!SWIG_IsOK(res1)) { | |
41043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
41044 | } | |
41045 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41046 | { | |
41047 | arg2 = &temp2; | |
41048 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
41049 | } | |
41050 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41051 | if (!SWIG_IsOK(res3)) { | |
41052 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
41053 | } | |
41054 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
41055 | if (obj3) { | |
41056 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
41057 | if (!SWIG_IsOK(ecode4)) { | |
41058 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'"); | |
41059 | } | |
41060 | arg4 = static_cast< bool >(val4); | |
41061 | } | |
41062 | if (obj4) { | |
41063 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 ); | |
41064 | if (!SWIG_IsOK(res5)) { | |
41065 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'"); | |
d14a1e28 | 41066 | } |
0085ce49 RD |
41067 | arg5 = reinterpret_cast< wxRect * >(argp5); |
41068 | } | |
41069 | { | |
41070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41071 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
41072 | wxPyEndAllowThreads(__tstate); | |
41073 | if (PyErr_Occurred()) SWIG_fail; | |
41074 | } | |
41075 | { | |
41076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41077 | } | |
41078 | return resultobj; | |
41079 | fail: | |
41080 | return NULL; | |
41081 | } | |
41082 | ||
41083 | ||
41084 | SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41085 | PyObject *resultobj = 0; | |
41086 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41087 | wxPoint *arg2 = 0 ; | |
41088 | wxWindow *arg3 = (wxWindow *) 0 ; | |
41089 | wxWindow *arg4 = (wxWindow *) 0 ; | |
41090 | bool result; | |
41091 | void *argp1 = 0 ; | |
41092 | int res1 = 0 ; | |
41093 | wxPoint temp2 ; | |
41094 | void *argp3 = 0 ; | |
41095 | int res3 = 0 ; | |
41096 | void *argp4 = 0 ; | |
41097 | int res4 = 0 ; | |
41098 | PyObject * obj0 = 0 ; | |
41099 | PyObject * obj1 = 0 ; | |
41100 | PyObject * obj2 = 0 ; | |
41101 | PyObject * obj3 = 0 ; | |
41102 | char * kwnames[] = { | |
41103 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
41104 | }; | |
41105 | ||
41106 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
41107 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41108 | if (!SWIG_IsOK(res1)) { | |
41109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
41110 | } | |
41111 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41112 | { | |
41113 | arg2 = &temp2; | |
41114 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
41115 | } | |
41116 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41117 | if (!SWIG_IsOK(res3)) { | |
41118 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
41119 | } | |
41120 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
41121 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41122 | if (!SWIG_IsOK(res4)) { | |
41123 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
41124 | } | |
41125 | arg4 = reinterpret_cast< wxWindow * >(argp4); | |
41126 | { | |
41127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41128 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
41129 | wxPyEndAllowThreads(__tstate); | |
41130 | if (PyErr_Occurred()) SWIG_fail; | |
41131 | } | |
41132 | { | |
41133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41134 | } | |
41135 | return resultobj; | |
41136 | fail: | |
41137 | return NULL; | |
d14a1e28 RD |
41138 | } |
41139 | ||
41140 | ||
0085ce49 RD |
41141 | SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41142 | PyObject *resultobj = 0; | |
41143 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41144 | bool result; | |
41145 | void *argp1 = 0 ; | |
41146 | int res1 = 0 ; | |
41147 | PyObject *swig_obj[1] ; | |
41148 | ||
41149 | if (!args) SWIG_fail; | |
41150 | swig_obj[0] = args; | |
41151 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41152 | if (!SWIG_IsOK(res1)) { | |
41153 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
41154 | } | |
41155 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41156 | { | |
41157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41158 | result = (bool)(arg1)->EndDrag(); | |
41159 | wxPyEndAllowThreads(__tstate); | |
41160 | if (PyErr_Occurred()) SWIG_fail; | |
41161 | } | |
41162 | { | |
41163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41164 | } | |
41165 | return resultobj; | |
41166 | fail: | |
41167 | return NULL; | |
41168 | } | |
41169 | ||
41170 | ||
41171 | SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41172 | PyObject *resultobj = 0; | |
41173 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41174 | wxPoint *arg2 = 0 ; | |
41175 | bool result; | |
41176 | void *argp1 = 0 ; | |
41177 | int res1 = 0 ; | |
41178 | wxPoint temp2 ; | |
41179 | PyObject * obj0 = 0 ; | |
41180 | PyObject * obj1 = 0 ; | |
41181 | char * kwnames[] = { | |
41182 | (char *) "self",(char *) "pt", NULL | |
41183 | }; | |
41184 | ||
41185 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail; | |
41186 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41187 | if (!SWIG_IsOK(res1)) { | |
41188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
41189 | } | |
41190 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41191 | { | |
41192 | arg2 = &temp2; | |
41193 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
41194 | } | |
41195 | { | |
41196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41197 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
41198 | wxPyEndAllowThreads(__tstate); | |
41199 | if (PyErr_Occurred()) SWIG_fail; | |
41200 | } | |
41201 | { | |
41202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41203 | } | |
41204 | return resultobj; | |
41205 | fail: | |
41206 | return NULL; | |
d14a1e28 RD |
41207 | } |
41208 | ||
41209 | ||
0085ce49 RD |
41210 | SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41211 | PyObject *resultobj = 0; | |
41212 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41213 | bool result; | |
41214 | void *argp1 = 0 ; | |
41215 | int res1 = 0 ; | |
41216 | PyObject *swig_obj[1] ; | |
41217 | ||
41218 | if (!args) SWIG_fail; | |
41219 | swig_obj[0] = args; | |
41220 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41221 | if (!SWIG_IsOK(res1)) { | |
41222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
41223 | } | |
41224 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41225 | { | |
41226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41227 | result = (bool)(arg1)->Show(); | |
41228 | wxPyEndAllowThreads(__tstate); | |
41229 | if (PyErr_Occurred()) SWIG_fail; | |
41230 | } | |
41231 | { | |
41232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41233 | } | |
41234 | return resultobj; | |
41235 | fail: | |
41236 | return NULL; | |
d14a1e28 RD |
41237 | } |
41238 | ||
41239 | ||
0085ce49 RD |
41240 | SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41241 | PyObject *resultobj = 0; | |
41242 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41243 | bool result; | |
41244 | void *argp1 = 0 ; | |
41245 | int res1 = 0 ; | |
41246 | PyObject *swig_obj[1] ; | |
41247 | ||
41248 | if (!args) SWIG_fail; | |
41249 | swig_obj[0] = args; | |
41250 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41251 | if (!SWIG_IsOK(res1)) { | |
41252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
41253 | } | |
41254 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41255 | { | |
41256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41257 | result = (bool)(arg1)->Hide(); | |
41258 | wxPyEndAllowThreads(__tstate); | |
41259 | if (PyErr_Occurred()) SWIG_fail; | |
41260 | } | |
41261 | { | |
41262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41263 | } | |
41264 | return resultobj; | |
41265 | fail: | |
41266 | return NULL; | |
41267 | } | |
41268 | ||
41269 | ||
41270 | SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41271 | PyObject *resultobj = 0; | |
41272 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41273 | wxPoint *arg2 = 0 ; | |
41274 | wxRect result; | |
41275 | void *argp1 = 0 ; | |
41276 | int res1 = 0 ; | |
41277 | wxPoint temp2 ; | |
41278 | PyObject * obj0 = 0 ; | |
41279 | PyObject * obj1 = 0 ; | |
41280 | char * kwnames[] = { | |
41281 | (char *) "self",(char *) "pos", NULL | |
41282 | }; | |
41283 | ||
41284 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
41285 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41286 | if (!SWIG_IsOK(res1)) { | |
41287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
41288 | } | |
41289 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41290 | { | |
41291 | arg2 = &temp2; | |
41292 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
41293 | } | |
41294 | { | |
41295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41296 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
41297 | wxPyEndAllowThreads(__tstate); | |
41298 | if (PyErr_Occurred()) SWIG_fail; | |
41299 | } | |
41300 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
41301 | return resultobj; | |
41302 | fail: | |
41303 | return NULL; | |
41304 | } | |
41305 | ||
41306 | ||
41307 | SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41308 | PyObject *resultobj = 0; | |
41309 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41310 | wxDC *arg2 = 0 ; | |
41311 | wxPoint *arg3 = 0 ; | |
41312 | bool result; | |
41313 | void *argp1 = 0 ; | |
41314 | int res1 = 0 ; | |
41315 | void *argp2 = 0 ; | |
41316 | int res2 = 0 ; | |
41317 | wxPoint temp3 ; | |
41318 | PyObject * obj0 = 0 ; | |
41319 | PyObject * obj1 = 0 ; | |
41320 | PyObject * obj2 = 0 ; | |
41321 | char * kwnames[] = { | |
41322 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
41323 | }; | |
41324 | ||
41325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
41326 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41327 | if (!SWIG_IsOK(res1)) { | |
41328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
41329 | } | |
41330 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41331 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
41332 | if (!SWIG_IsOK(res2)) { | |
41333 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'"); | |
41334 | } | |
41335 | if (!argp2) { | |
41336 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'"); | |
41337 | } | |
41338 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
41339 | { | |
41340 | arg3 = &temp3; | |
41341 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
41342 | } | |
41343 | { | |
41344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41345 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
41346 | wxPyEndAllowThreads(__tstate); | |
41347 | if (PyErr_Occurred()) SWIG_fail; | |
41348 | } | |
41349 | { | |
41350 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41351 | } | |
41352 | return resultobj; | |
41353 | fail: | |
41354 | return NULL; | |
41355 | } | |
41356 | ||
41357 | ||
41358 | SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41359 | PyObject *resultobj = 0; | |
41360 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41361 | wxDC *arg2 = 0 ; | |
41362 | wxMemoryDC *arg3 = 0 ; | |
41363 | wxRect *arg4 = 0 ; | |
41364 | wxRect *arg5 = 0 ; | |
41365 | bool result; | |
41366 | void *argp1 = 0 ; | |
41367 | int res1 = 0 ; | |
41368 | void *argp2 = 0 ; | |
41369 | int res2 = 0 ; | |
41370 | void *argp3 = 0 ; | |
41371 | int res3 = 0 ; | |
41372 | wxRect temp4 ; | |
41373 | wxRect temp5 ; | |
41374 | PyObject * obj0 = 0 ; | |
41375 | PyObject * obj1 = 0 ; | |
41376 | PyObject * obj2 = 0 ; | |
41377 | PyObject * obj3 = 0 ; | |
41378 | PyObject * obj4 = 0 ; | |
41379 | char * kwnames[] = { | |
41380 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
41381 | }; | |
41382 | ||
41383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
41384 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41385 | if (!SWIG_IsOK(res1)) { | |
41386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
41387 | } | |
41388 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41389 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
41390 | if (!SWIG_IsOK(res2)) { | |
41391 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'"); | |
41392 | } | |
41393 | if (!argp2) { | |
41394 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'"); | |
41395 | } | |
41396 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
41397 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 ); | |
41398 | if (!SWIG_IsOK(res3)) { | |
41399 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'"); | |
41400 | } | |
41401 | if (!argp3) { | |
41402 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'"); | |
41403 | } | |
41404 | arg3 = reinterpret_cast< wxMemoryDC * >(argp3); | |
41405 | { | |
41406 | arg4 = &temp4; | |
41407 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
41408 | } | |
41409 | { | |
41410 | arg5 = &temp5; | |
41411 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
41412 | } | |
41413 | { | |
41414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41415 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
41416 | wxPyEndAllowThreads(__tstate); | |
41417 | if (PyErr_Occurred()) SWIG_fail; | |
41418 | } | |
41419 | { | |
41420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41421 | } | |
41422 | return resultobj; | |
41423 | fail: | |
41424 | return NULL; | |
41425 | } | |
41426 | ||
41427 | ||
41428 | SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41429 | PyObject *resultobj = 0; | |
41430 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41431 | wxPoint *arg2 = 0 ; | |
41432 | wxPoint *arg3 = 0 ; | |
41433 | bool arg4 ; | |
41434 | bool arg5 ; | |
41435 | bool result; | |
41436 | void *argp1 = 0 ; | |
41437 | int res1 = 0 ; | |
41438 | wxPoint temp2 ; | |
41439 | wxPoint temp3 ; | |
41440 | bool val4 ; | |
41441 | int ecode4 = 0 ; | |
41442 | bool val5 ; | |
41443 | int ecode5 = 0 ; | |
41444 | PyObject * obj0 = 0 ; | |
41445 | PyObject * obj1 = 0 ; | |
41446 | PyObject * obj2 = 0 ; | |
41447 | PyObject * obj3 = 0 ; | |
41448 | PyObject * obj4 = 0 ; | |
41449 | char * kwnames[] = { | |
41450 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
41451 | }; | |
41452 | ||
41453 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
41454 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41455 | if (!SWIG_IsOK(res1)) { | |
41456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
41457 | } | |
41458 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41459 | { | |
41460 | arg2 = &temp2; | |
41461 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
41462 | } | |
41463 | { | |
41464 | arg3 = &temp3; | |
41465 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
41466 | } | |
41467 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
41468 | if (!SWIG_IsOK(ecode4)) { | |
41469 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'"); | |
41470 | } | |
41471 | arg4 = static_cast< bool >(val4); | |
41472 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
41473 | if (!SWIG_IsOK(ecode5)) { | |
41474 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'"); | |
41475 | } | |
41476 | arg5 = static_cast< bool >(val5); | |
41477 | { | |
41478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41479 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
41480 | wxPyEndAllowThreads(__tstate); | |
41481 | if (PyErr_Occurred()) SWIG_fail; | |
41482 | } | |
41483 | { | |
41484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41485 | } | |
41486 | return resultobj; | |
41487 | fail: | |
41488 | return NULL; | |
d14a1e28 RD |
41489 | } |
41490 | ||
41491 | ||
0085ce49 RD |
41492 | SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41493 | PyObject *obj; | |
41494 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
41495 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj)); | |
41496 | return SWIG_Py_Void(); | |
d14a1e28 RD |
41497 | } |
41498 | ||
0085ce49 RD |
41499 | SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41500 | return SWIG_Python_InitShadowInstance(args); | |
41501 | } | |
d14a1e28 | 41502 | |
0085ce49 RD |
41503 | SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) { |
41504 | SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only."); | |
41505 | return 1; | |
d14a1e28 RD |
41506 | } |
41507 | ||
41508 | ||
0085ce49 RD |
41509 | SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) { |
41510 | PyObject *pyobj = 0; | |
41511 | ||
41512 | { | |
41513 | #if wxUSE_UNICODE | |
41514 | pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
41515 | #else | |
41516 | pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
41517 | #endif | |
41518 | } | |
41519 | return pyobj; | |
41520 | } | |
41521 | ||
41522 | ||
41523 | SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41524 | PyObject *resultobj = 0; | |
41525 | wxWindow *arg1 = (wxWindow *) 0 ; | |
41526 | int arg2 = (int) -1 ; | |
41527 | wxDateTime const &arg3_defvalue = wxDefaultDateTime ; | |
41528 | wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ; | |
41529 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
41530 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
41531 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
41532 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
41533 | long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
41534 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
41535 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
41536 | wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ; | |
41537 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
41538 | wxDatePickerCtrl *result = 0 ; | |
41539 | void *argp1 = 0 ; | |
41540 | int res1 = 0 ; | |
41541 | int val2 ; | |
41542 | int ecode2 = 0 ; | |
41543 | void *argp3 = 0 ; | |
41544 | int res3 = 0 ; | |
41545 | wxPoint temp4 ; | |
41546 | wxSize temp5 ; | |
41547 | long val6 ; | |
41548 | int ecode6 = 0 ; | |
41549 | void *argp7 = 0 ; | |
41550 | int res7 = 0 ; | |
41551 | bool temp8 = false ; | |
41552 | PyObject * obj0 = 0 ; | |
41553 | PyObject * obj1 = 0 ; | |
41554 | PyObject * obj2 = 0 ; | |
41555 | PyObject * obj3 = 0 ; | |
41556 | PyObject * obj4 = 0 ; | |
41557 | PyObject * obj5 = 0 ; | |
41558 | PyObject * obj6 = 0 ; | |
41559 | PyObject * obj7 = 0 ; | |
41560 | char * kwnames[] = { | |
41561 | (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
41562 | }; | |
41563 | ||
41564 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
41565 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41566 | if (!SWIG_IsOK(res1)) { | |
41567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
41568 | } | |
41569 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
41570 | if (obj1) { | |
41571 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
41572 | if (!SWIG_IsOK(ecode2)) { | |
41573 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
41574 | } | |
41575 | arg2 = static_cast< int >(val2); | |
41576 | } | |
41577 | if (obj2) { | |
41578 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41579 | if (!SWIG_IsOK(res3)) { | |
41580 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
d14a1e28 | 41581 | } |
0085ce49 RD |
41582 | if (!argp3) { |
41583 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
d14a1e28 | 41584 | } |
0085ce49 RD |
41585 | arg3 = reinterpret_cast< wxDateTime * >(argp3); |
41586 | } | |
41587 | if (obj3) { | |
d14a1e28 | 41588 | { |
0085ce49 RD |
41589 | arg4 = &temp4; |
41590 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 41591 | } |
0085ce49 RD |
41592 | } |
41593 | if (obj4) { | |
d14a1e28 | 41594 | { |
0085ce49 RD |
41595 | arg5 = &temp5; |
41596 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 41597 | } |
0085ce49 RD |
41598 | } |
41599 | if (obj5) { | |
41600 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
41601 | if (!SWIG_IsOK(ecode6)) { | |
41602 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'"); | |
41603 | } | |
41604 | arg6 = static_cast< long >(val6); | |
41605 | } | |
41606 | if (obj6) { | |
41607 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
41608 | if (!SWIG_IsOK(res7)) { | |
41609 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
41610 | } | |
41611 | if (!argp7) { | |
41612 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 41613 | } |
0085ce49 RD |
41614 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
41615 | } | |
41616 | if (obj7) { | |
d14a1e28 | 41617 | { |
0085ce49 RD |
41618 | arg8 = wxString_in_helper(obj7); |
41619 | if (arg8 == NULL) SWIG_fail; | |
41620 | temp8 = true; | |
d14a1e28 | 41621 | } |
0085ce49 RD |
41622 | } |
41623 | { | |
41624 | if (!wxPyCheckForApp()) SWIG_fail; | |
41625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41626 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
41627 | wxPyEndAllowThreads(__tstate); | |
41628 | if (PyErr_Occurred()) SWIG_fail; | |
41629 | } | |
41630 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 ); | |
41631 | { | |
41632 | if (temp8) | |
41633 | delete arg8; | |
41634 | } | |
41635 | return resultobj; | |
41636 | fail: | |
41637 | { | |
41638 | if (temp8) | |
41639 | delete arg8; | |
41640 | } | |
41641 | return NULL; | |
d14a1e28 RD |
41642 | } |
41643 | ||
41644 | ||
0085ce49 RD |
41645 | SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41646 | PyObject *resultobj = 0; | |
41647 | wxDatePickerCtrl *result = 0 ; | |
41648 | ||
41649 | if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail; | |
41650 | { | |
41651 | if (!wxPyCheckForApp()) SWIG_fail; | |
41652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41653 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(); | |
41654 | wxPyEndAllowThreads(__tstate); | |
41655 | if (PyErr_Occurred()) SWIG_fail; | |
41656 | } | |
41657 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 ); | |
41658 | return resultobj; | |
41659 | fail: | |
41660 | return NULL; | |
41661 | } | |
41662 | ||
41663 | ||
41664 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41665 | PyObject *resultobj = 0; | |
41666 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41667 | wxWindow *arg2 = (wxWindow *) 0 ; | |
41668 | int arg3 = (int) -1 ; | |
41669 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
41670 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
41671 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
41672 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
41673 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
41674 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
41675 | long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
41676 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
41677 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
41678 | wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ; | |
41679 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
41680 | bool result; | |
41681 | void *argp1 = 0 ; | |
41682 | int res1 = 0 ; | |
41683 | void *argp2 = 0 ; | |
41684 | int res2 = 0 ; | |
41685 | int val3 ; | |
41686 | int ecode3 = 0 ; | |
41687 | void *argp4 = 0 ; | |
41688 | int res4 = 0 ; | |
41689 | wxPoint temp5 ; | |
41690 | wxSize temp6 ; | |
41691 | long val7 ; | |
41692 | int ecode7 = 0 ; | |
41693 | void *argp8 = 0 ; | |
41694 | int res8 = 0 ; | |
41695 | bool temp9 = false ; | |
41696 | PyObject * obj0 = 0 ; | |
41697 | PyObject * obj1 = 0 ; | |
41698 | PyObject * obj2 = 0 ; | |
41699 | PyObject * obj3 = 0 ; | |
41700 | PyObject * obj4 = 0 ; | |
41701 | PyObject * obj5 = 0 ; | |
41702 | PyObject * obj6 = 0 ; | |
41703 | PyObject * obj7 = 0 ; | |
41704 | PyObject * obj8 = 0 ; | |
41705 | char * kwnames[] = { | |
41706 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
41707 | }; | |
41708 | ||
41709 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
41710 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41711 | if (!SWIG_IsOK(res1)) { | |
41712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41713 | } | |
41714 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41715 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41716 | if (!SWIG_IsOK(res2)) { | |
41717 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
41718 | } | |
41719 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
41720 | if (obj2) { | |
41721 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
41722 | if (!SWIG_IsOK(ecode3)) { | |
41723 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
41724 | } | |
41725 | arg3 = static_cast< int >(val3); | |
41726 | } | |
41727 | if (obj3) { | |
41728 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41729 | if (!SWIG_IsOK(res4)) { | |
41730 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'"); | |
7e08d4ef | 41731 | } |
0085ce49 RD |
41732 | if (!argp4) { |
41733 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'"); | |
7e08d4ef | 41734 | } |
0085ce49 RD |
41735 | arg4 = reinterpret_cast< wxDateTime * >(argp4); |
41736 | } | |
41737 | if (obj4) { | |
d14a1e28 | 41738 | { |
0085ce49 RD |
41739 | arg5 = &temp5; |
41740 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 41741 | } |
0085ce49 RD |
41742 | } |
41743 | if (obj5) { | |
d14a1e28 | 41744 | { |
0085ce49 RD |
41745 | arg6 = &temp6; |
41746 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
41747 | } | |
41748 | } | |
41749 | if (obj6) { | |
41750 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
41751 | if (!SWIG_IsOK(ecode7)) { | |
41752 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
41753 | } | |
41754 | arg7 = static_cast< long >(val7); | |
41755 | } | |
41756 | if (obj7) { | |
41757 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
41758 | if (!SWIG_IsOK(res8)) { | |
41759 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
41760 | } | |
41761 | if (!argp8) { | |
41762 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 41763 | } |
0085ce49 RD |
41764 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
41765 | } | |
41766 | if (obj8) { | |
d14a1e28 | 41767 | { |
0085ce49 RD |
41768 | arg9 = wxString_in_helper(obj8); |
41769 | if (arg9 == NULL) SWIG_fail; | |
41770 | temp9 = true; | |
d14a1e28 | 41771 | } |
0085ce49 RD |
41772 | } |
41773 | { | |
41774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41775 | result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
41776 | wxPyEndAllowThreads(__tstate); | |
41777 | if (PyErr_Occurred()) SWIG_fail; | |
41778 | } | |
41779 | { | |
41780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41781 | } | |
41782 | { | |
41783 | if (temp9) | |
41784 | delete arg9; | |
41785 | } | |
41786 | return resultobj; | |
41787 | fail: | |
41788 | { | |
41789 | if (temp9) | |
41790 | delete arg9; | |
41791 | } | |
41792 | return NULL; | |
41793 | } | |
41794 | ||
41795 | ||
41796 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41797 | PyObject *resultobj = 0; | |
41798 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41799 | wxDateTime *arg2 = 0 ; | |
41800 | void *argp1 = 0 ; | |
41801 | int res1 = 0 ; | |
41802 | void *argp2 = 0 ; | |
41803 | int res2 = 0 ; | |
41804 | PyObject * obj0 = 0 ; | |
41805 | PyObject * obj1 = 0 ; | |
41806 | char * kwnames[] = { | |
41807 | (char *) "self",(char *) "dt", NULL | |
41808 | }; | |
41809 | ||
41810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
41811 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41812 | if (!SWIG_IsOK(res1)) { | |
41813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41814 | } | |
41815 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41816 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41817 | if (!SWIG_IsOK(res2)) { | |
41818 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
41819 | } | |
41820 | if (!argp2) { | |
41821 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
41822 | } | |
41823 | arg2 = reinterpret_cast< wxDateTime * >(argp2); | |
41824 | { | |
41825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41826 | (arg1)->SetValue((wxDateTime const &)*arg2); | |
41827 | wxPyEndAllowThreads(__tstate); | |
41828 | if (PyErr_Occurred()) SWIG_fail; | |
41829 | } | |
41830 | resultobj = SWIG_Py_Void(); | |
41831 | return resultobj; | |
41832 | fail: | |
41833 | return NULL; | |
d14a1e28 RD |
41834 | } |
41835 | ||
41836 | ||
0085ce49 RD |
41837 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41838 | PyObject *resultobj = 0; | |
41839 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41840 | wxDateTime result; | |
41841 | void *argp1 = 0 ; | |
41842 | int res1 = 0 ; | |
41843 | PyObject *swig_obj[1] ; | |
41844 | ||
41845 | if (!args) SWIG_fail; | |
41846 | swig_obj[0] = args; | |
41847 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41848 | if (!SWIG_IsOK(res1)) { | |
41849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'"); | |
41850 | } | |
41851 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41852 | { | |
41853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41854 | result = ((wxDatePickerCtrl const *)arg1)->GetValue(); | |
41855 | wxPyEndAllowThreads(__tstate); | |
41856 | if (PyErr_Occurred()) SWIG_fail; | |
41857 | } | |
41858 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
41859 | return resultobj; | |
41860 | fail: | |
41861 | return NULL; | |
41862 | } | |
41863 | ||
41864 | ||
41865 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41866 | PyObject *resultobj = 0; | |
41867 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41868 | wxDateTime *arg2 = 0 ; | |
41869 | wxDateTime *arg3 = 0 ; | |
41870 | void *argp1 = 0 ; | |
41871 | int res1 = 0 ; | |
41872 | void *argp2 = 0 ; | |
41873 | int res2 = 0 ; | |
41874 | void *argp3 = 0 ; | |
41875 | int res3 = 0 ; | |
41876 | PyObject * obj0 = 0 ; | |
41877 | PyObject * obj1 = 0 ; | |
41878 | PyObject * obj2 = 0 ; | |
41879 | char * kwnames[] = { | |
41880 | (char *) "self",(char *) "dt1",(char *) "dt2", NULL | |
41881 | }; | |
41882 | ||
41883 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
41884 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41885 | if (!SWIG_IsOK(res1)) { | |
41886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41887 | } | |
41888 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41889 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41890 | if (!SWIG_IsOK(res2)) { | |
41891 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
41892 | } | |
41893 | if (!argp2) { | |
41894 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
41895 | } | |
41896 | arg2 = reinterpret_cast< wxDateTime * >(argp2); | |
41897 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41898 | if (!SWIG_IsOK(res3)) { | |
41899 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
41900 | } | |
41901 | if (!argp3) { | |
41902 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
41903 | } | |
41904 | arg3 = reinterpret_cast< wxDateTime * >(argp3); | |
41905 | { | |
41906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41907 | (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
41908 | wxPyEndAllowThreads(__tstate); | |
41909 | if (PyErr_Occurred()) SWIG_fail; | |
41910 | } | |
41911 | resultobj = SWIG_Py_Void(); | |
41912 | return resultobj; | |
41913 | fail: | |
41914 | return NULL; | |
d14a1e28 RD |
41915 | } |
41916 | ||
41917 | ||
0085ce49 RD |
41918 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41919 | PyObject *resultobj = 0; | |
41920 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41921 | wxDateTime result; | |
41922 | void *argp1 = 0 ; | |
41923 | int res1 = 0 ; | |
41924 | PyObject *swig_obj[1] ; | |
41925 | ||
41926 | if (!args) SWIG_fail; | |
41927 | swig_obj[0] = args; | |
41928 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41929 | if (!SWIG_IsOK(res1)) { | |
41930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41931 | } | |
41932 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41933 | { | |
41934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41935 | result = wxDatePickerCtrl_GetLowerLimit(arg1); | |
41936 | wxPyEndAllowThreads(__tstate); | |
41937 | if (PyErr_Occurred()) SWIG_fail; | |
41938 | } | |
41939 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
41940 | return resultobj; | |
41941 | fail: | |
41942 | return NULL; | |
d14a1e28 RD |
41943 | } |
41944 | ||
41945 | ||
0085ce49 RD |
41946 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41947 | PyObject *resultobj = 0; | |
41948 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41949 | wxDateTime result; | |
41950 | void *argp1 = 0 ; | |
41951 | int res1 = 0 ; | |
41952 | PyObject *swig_obj[1] ; | |
41953 | ||
41954 | if (!args) SWIG_fail; | |
41955 | swig_obj[0] = args; | |
41956 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41957 | if (!SWIG_IsOK(res1)) { | |
41958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41959 | } | |
41960 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41961 | { | |
41962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41963 | result = wxDatePickerCtrl_GetUpperLimit(arg1); | |
41964 | wxPyEndAllowThreads(__tstate); | |
41965 | if (PyErr_Occurred()) SWIG_fail; | |
41966 | } | |
41967 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
41968 | return resultobj; | |
41969 | fail: | |
41970 | return NULL; | |
d14a1e28 RD |
41971 | } |
41972 | ||
41973 | ||
0085ce49 RD |
41974 | SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41975 | PyObject *obj; | |
41976 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
41977 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj)); | |
41978 | return SWIG_Py_Void(); | |
d14a1e28 RD |
41979 | } |
41980 | ||
0085ce49 RD |
41981 | SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41982 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
41983 | } |
41984 | ||
704eda0c RD |
41985 | SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) { |
41986 | SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only."); | |
41987 | return 1; | |
41988 | } | |
41989 | ||
41990 | ||
41991 | SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) { | |
41992 | PyObject *pyobj = 0; | |
41993 | ||
41994 | { | |
41995 | #if wxUSE_UNICODE | |
41996 | pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len()); | |
41997 | #else | |
41998 | pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len()); | |
41999 | #endif | |
42000 | } | |
42001 | return pyobj; | |
42002 | } | |
42003 | ||
42004 | ||
42005 | SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42006 | PyObject *resultobj = 0; | |
42007 | wxWindow *arg1 = (wxWindow *) 0 ; | |
42008 | int arg2 ; | |
42009 | wxString *arg3 = 0 ; | |
42010 | wxString *arg4 = 0 ; | |
42011 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
42012 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
42013 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
42014 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
42015 | long arg7 = (long) wxHL_DEFAULT_STYLE ; | |
42016 | wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ; | |
42017 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
42018 | wxHyperlinkCtrl *result = 0 ; | |
42019 | void *argp1 = 0 ; | |
42020 | int res1 = 0 ; | |
42021 | int val2 ; | |
42022 | int ecode2 = 0 ; | |
42023 | bool temp3 = false ; | |
42024 | bool temp4 = false ; | |
42025 | wxPoint temp5 ; | |
42026 | wxSize temp6 ; | |
42027 | long val7 ; | |
42028 | int ecode7 = 0 ; | |
42029 | bool temp8 = false ; | |
42030 | PyObject * obj0 = 0 ; | |
42031 | PyObject * obj1 = 0 ; | |
42032 | PyObject * obj2 = 0 ; | |
42033 | PyObject * obj3 = 0 ; | |
42034 | PyObject * obj4 = 0 ; | |
42035 | PyObject * obj5 = 0 ; | |
42036 | PyObject * obj6 = 0 ; | |
42037 | PyObject * obj7 = 0 ; | |
42038 | char * kwnames[] = { | |
42039 | (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
42040 | }; | |
42041 | ||
42042 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
42043 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
42044 | if (!SWIG_IsOK(res1)) { | |
42045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
42046 | } | |
42047 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
42048 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
42049 | if (!SWIG_IsOK(ecode2)) { | |
42050 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'"); | |
42051 | } | |
42052 | arg2 = static_cast< int >(val2); | |
42053 | { | |
42054 | arg3 = wxString_in_helper(obj2); | |
42055 | if (arg3 == NULL) SWIG_fail; | |
42056 | temp3 = true; | |
42057 | } | |
42058 | { | |
42059 | arg4 = wxString_in_helper(obj3); | |
42060 | if (arg4 == NULL) SWIG_fail; | |
42061 | temp4 = true; | |
42062 | } | |
42063 | if (obj4) { | |
42064 | { | |
42065 | arg5 = &temp5; | |
42066 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
42067 | } | |
42068 | } | |
42069 | if (obj5) { | |
42070 | { | |
42071 | arg6 = &temp6; | |
42072 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
42073 | } | |
42074 | } | |
42075 | if (obj6) { | |
42076 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
42077 | if (!SWIG_IsOK(ecode7)) { | |
42078 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'"); | |
42079 | } | |
42080 | arg7 = static_cast< long >(val7); | |
42081 | } | |
42082 | if (obj7) { | |
42083 | { | |
42084 | arg8 = wxString_in_helper(obj7); | |
42085 | if (arg8 == NULL) SWIG_fail; | |
42086 | temp8 = true; | |
42087 | } | |
42088 | } | |
42089 | { | |
42090 | if (!wxPyCheckForApp()) SWIG_fail; | |
42091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42092 | result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
42093 | wxPyEndAllowThreads(__tstate); | |
42094 | if (PyErr_Occurred()) SWIG_fail; | |
42095 | } | |
42096 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 ); | |
42097 | { | |
42098 | if (temp3) | |
42099 | delete arg3; | |
42100 | } | |
42101 | { | |
42102 | if (temp4) | |
42103 | delete arg4; | |
42104 | } | |
42105 | { | |
42106 | if (temp8) | |
42107 | delete arg8; | |
42108 | } | |
42109 | return resultobj; | |
42110 | fail: | |
42111 | { | |
42112 | if (temp3) | |
42113 | delete arg3; | |
42114 | } | |
42115 | { | |
42116 | if (temp4) | |
42117 | delete arg4; | |
42118 | } | |
42119 | { | |
42120 | if (temp8) | |
42121 | delete arg8; | |
42122 | } | |
42123 | return NULL; | |
42124 | } | |
42125 | ||
42126 | ||
42127 | SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42128 | PyObject *resultobj = 0; | |
42129 | wxHyperlinkCtrl *result = 0 ; | |
42130 | ||
42131 | if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail; | |
42132 | { | |
42133 | if (!wxPyCheckForApp()) SWIG_fail; | |
42134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42135 | result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(); | |
42136 | wxPyEndAllowThreads(__tstate); | |
42137 | if (PyErr_Occurred()) SWIG_fail; | |
42138 | } | |
42139 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 ); | |
42140 | return resultobj; | |
42141 | fail: | |
42142 | return NULL; | |
42143 | } | |
42144 | ||
42145 | ||
42146 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42147 | PyObject *resultobj = 0; | |
42148 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42149 | wxWindow *arg2 = (wxWindow *) 0 ; | |
42150 | int arg3 ; | |
42151 | wxString *arg4 = 0 ; | |
42152 | wxString *arg5 = 0 ; | |
42153 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
42154 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
42155 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
42156 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
42157 | long arg8 = (long) wxHL_DEFAULT_STYLE ; | |
42158 | wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ; | |
42159 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
42160 | bool result; | |
42161 | void *argp1 = 0 ; | |
42162 | int res1 = 0 ; | |
42163 | void *argp2 = 0 ; | |
42164 | int res2 = 0 ; | |
42165 | int val3 ; | |
42166 | int ecode3 = 0 ; | |
42167 | bool temp4 = false ; | |
42168 | bool temp5 = false ; | |
42169 | wxPoint temp6 ; | |
42170 | wxSize temp7 ; | |
42171 | long val8 ; | |
42172 | int ecode8 = 0 ; | |
42173 | bool temp9 = false ; | |
42174 | PyObject * obj0 = 0 ; | |
42175 | PyObject * obj1 = 0 ; | |
42176 | PyObject * obj2 = 0 ; | |
42177 | PyObject * obj3 = 0 ; | |
42178 | PyObject * obj4 = 0 ; | |
42179 | PyObject * obj5 = 0 ; | |
42180 | PyObject * obj6 = 0 ; | |
42181 | PyObject * obj7 = 0 ; | |
42182 | PyObject * obj8 = 0 ; | |
42183 | char * kwnames[] = { | |
42184 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
42185 | }; | |
42186 | ||
42187 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
42188 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42189 | if (!SWIG_IsOK(res1)) { | |
42190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42191 | } | |
42192 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42193 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
42194 | if (!SWIG_IsOK(res2)) { | |
42195 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
42196 | } | |
42197 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
42198 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
42199 | if (!SWIG_IsOK(ecode3)) { | |
42200 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
42201 | } | |
42202 | arg3 = static_cast< int >(val3); | |
42203 | { | |
42204 | arg4 = wxString_in_helper(obj3); | |
42205 | if (arg4 == NULL) SWIG_fail; | |
42206 | temp4 = true; | |
42207 | } | |
42208 | { | |
42209 | arg5 = wxString_in_helper(obj4); | |
42210 | if (arg5 == NULL) SWIG_fail; | |
42211 | temp5 = true; | |
42212 | } | |
42213 | if (obj5) { | |
42214 | { | |
42215 | arg6 = &temp6; | |
42216 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
42217 | } | |
42218 | } | |
42219 | if (obj6) { | |
42220 | { | |
42221 | arg7 = &temp7; | |
42222 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
42223 | } | |
42224 | } | |
42225 | if (obj7) { | |
42226 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
42227 | if (!SWIG_IsOK(ecode8)) { | |
42228 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'"); | |
42229 | } | |
42230 | arg8 = static_cast< long >(val8); | |
42231 | } | |
42232 | if (obj8) { | |
42233 | { | |
42234 | arg9 = wxString_in_helper(obj8); | |
42235 | if (arg9 == NULL) SWIG_fail; | |
42236 | temp9 = true; | |
42237 | } | |
42238 | } | |
42239 | { | |
42240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42241 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9); | |
42242 | wxPyEndAllowThreads(__tstate); | |
42243 | if (PyErr_Occurred()) SWIG_fail; | |
42244 | } | |
42245 | { | |
42246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42247 | } | |
42248 | { | |
42249 | if (temp4) | |
42250 | delete arg4; | |
42251 | } | |
42252 | { | |
42253 | if (temp5) | |
42254 | delete arg5; | |
42255 | } | |
42256 | { | |
42257 | if (temp9) | |
42258 | delete arg9; | |
42259 | } | |
42260 | return resultobj; | |
42261 | fail: | |
42262 | { | |
42263 | if (temp4) | |
42264 | delete arg4; | |
42265 | } | |
42266 | { | |
42267 | if (temp5) | |
42268 | delete arg5; | |
42269 | } | |
42270 | { | |
42271 | if (temp9) | |
42272 | delete arg9; | |
42273 | } | |
42274 | return NULL; | |
42275 | } | |
42276 | ||
42277 | ||
42278 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42279 | PyObject *resultobj = 0; | |
42280 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42281 | wxColour result; | |
42282 | void *argp1 = 0 ; | |
42283 | int res1 = 0 ; | |
42284 | PyObject *swig_obj[1] ; | |
42285 | ||
42286 | if (!args) SWIG_fail; | |
42287 | swig_obj[0] = args; | |
42288 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42289 | if (!SWIG_IsOK(res1)) { | |
42290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42291 | } | |
42292 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42293 | { | |
42294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42295 | result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour(); | |
42296 | wxPyEndAllowThreads(__tstate); | |
42297 | if (PyErr_Occurred()) SWIG_fail; | |
42298 | } | |
42299 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
42300 | return resultobj; | |
42301 | fail: | |
42302 | return NULL; | |
42303 | } | |
42304 | ||
42305 | ||
42306 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42307 | PyObject *resultobj = 0; | |
42308 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42309 | wxColour *arg2 = 0 ; | |
42310 | void *argp1 = 0 ; | |
42311 | int res1 = 0 ; | |
42312 | wxColour temp2 ; | |
42313 | PyObject * obj0 = 0 ; | |
42314 | PyObject * obj1 = 0 ; | |
42315 | char * kwnames[] = { | |
42316 | (char *) "self",(char *) "colour", NULL | |
42317 | }; | |
42318 | ||
42319 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
42320 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42321 | if (!SWIG_IsOK(res1)) { | |
42322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42323 | } | |
42324 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42325 | { | |
42326 | arg2 = &temp2; | |
42327 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
42328 | } | |
42329 | { | |
42330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42331 | (arg1)->SetHoverColour((wxColour const &)*arg2); | |
42332 | wxPyEndAllowThreads(__tstate); | |
42333 | if (PyErr_Occurred()) SWIG_fail; | |
42334 | } | |
42335 | resultobj = SWIG_Py_Void(); | |
42336 | return resultobj; | |
42337 | fail: | |
42338 | return NULL; | |
42339 | } | |
42340 | ||
42341 | ||
42342 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42343 | PyObject *resultobj = 0; | |
42344 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42345 | wxColour result; | |
42346 | void *argp1 = 0 ; | |
42347 | int res1 = 0 ; | |
42348 | PyObject *swig_obj[1] ; | |
42349 | ||
42350 | if (!args) SWIG_fail; | |
42351 | swig_obj[0] = args; | |
42352 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42353 | if (!SWIG_IsOK(res1)) { | |
42354 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42355 | } | |
42356 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42357 | { | |
42358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42359 | result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour(); | |
42360 | wxPyEndAllowThreads(__tstate); | |
42361 | if (PyErr_Occurred()) SWIG_fail; | |
42362 | } | |
42363 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
42364 | return resultobj; | |
42365 | fail: | |
42366 | return NULL; | |
42367 | } | |
42368 | ||
42369 | ||
42370 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42371 | PyObject *resultobj = 0; | |
42372 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42373 | wxColour *arg2 = 0 ; | |
42374 | void *argp1 = 0 ; | |
42375 | int res1 = 0 ; | |
42376 | wxColour temp2 ; | |
42377 | PyObject * obj0 = 0 ; | |
42378 | PyObject * obj1 = 0 ; | |
42379 | char * kwnames[] = { | |
42380 | (char *) "self",(char *) "colour", NULL | |
42381 | }; | |
42382 | ||
42383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
42384 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42385 | if (!SWIG_IsOK(res1)) { | |
42386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42387 | } | |
42388 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42389 | { | |
42390 | arg2 = &temp2; | |
42391 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
42392 | } | |
42393 | { | |
42394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42395 | (arg1)->SetNormalColour((wxColour const &)*arg2); | |
42396 | wxPyEndAllowThreads(__tstate); | |
42397 | if (PyErr_Occurred()) SWIG_fail; | |
42398 | } | |
42399 | resultobj = SWIG_Py_Void(); | |
42400 | return resultobj; | |
42401 | fail: | |
42402 | return NULL; | |
42403 | } | |
42404 | ||
42405 | ||
42406 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42407 | PyObject *resultobj = 0; | |
42408 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42409 | wxColour result; | |
42410 | void *argp1 = 0 ; | |
42411 | int res1 = 0 ; | |
42412 | PyObject *swig_obj[1] ; | |
42413 | ||
42414 | if (!args) SWIG_fail; | |
42415 | swig_obj[0] = args; | |
42416 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42417 | if (!SWIG_IsOK(res1)) { | |
42418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42419 | } | |
42420 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42421 | { | |
42422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42423 | result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour(); | |
42424 | wxPyEndAllowThreads(__tstate); | |
42425 | if (PyErr_Occurred()) SWIG_fail; | |
42426 | } | |
42427 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
42428 | return resultobj; | |
42429 | fail: | |
42430 | return NULL; | |
42431 | } | |
42432 | ||
42433 | ||
42434 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42435 | PyObject *resultobj = 0; | |
42436 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42437 | wxColour *arg2 = 0 ; | |
42438 | void *argp1 = 0 ; | |
42439 | int res1 = 0 ; | |
42440 | wxColour temp2 ; | |
42441 | PyObject * obj0 = 0 ; | |
42442 | PyObject * obj1 = 0 ; | |
42443 | char * kwnames[] = { | |
42444 | (char *) "self",(char *) "colour", NULL | |
42445 | }; | |
42446 | ||
42447 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
42448 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42449 | if (!SWIG_IsOK(res1)) { | |
42450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42451 | } | |
42452 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42453 | { | |
42454 | arg2 = &temp2; | |
42455 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
42456 | } | |
42457 | { | |
42458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42459 | (arg1)->SetVisitedColour((wxColour const &)*arg2); | |
42460 | wxPyEndAllowThreads(__tstate); | |
42461 | if (PyErr_Occurred()) SWIG_fail; | |
42462 | } | |
42463 | resultobj = SWIG_Py_Void(); | |
42464 | return resultobj; | |
42465 | fail: | |
42466 | return NULL; | |
42467 | } | |
42468 | ||
42469 | ||
42470 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42471 | PyObject *resultobj = 0; | |
42472 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42473 | wxString result; | |
42474 | void *argp1 = 0 ; | |
42475 | int res1 = 0 ; | |
42476 | PyObject *swig_obj[1] ; | |
42477 | ||
42478 | if (!args) SWIG_fail; | |
42479 | swig_obj[0] = args; | |
42480 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42481 | if (!SWIG_IsOK(res1)) { | |
42482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42483 | } | |
42484 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42485 | { | |
42486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42487 | result = ((wxHyperlinkCtrl const *)arg1)->GetURL(); | |
42488 | wxPyEndAllowThreads(__tstate); | |
42489 | if (PyErr_Occurred()) SWIG_fail; | |
42490 | } | |
42491 | { | |
42492 | #if wxUSE_UNICODE | |
42493 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
42494 | #else | |
42495 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
42496 | #endif | |
42497 | } | |
42498 | return resultobj; | |
42499 | fail: | |
42500 | return NULL; | |
42501 | } | |
42502 | ||
42503 | ||
42504 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42505 | PyObject *resultobj = 0; | |
42506 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42507 | wxString *arg2 = 0 ; | |
42508 | void *argp1 = 0 ; | |
42509 | int res1 = 0 ; | |
42510 | bool temp2 = false ; | |
42511 | PyObject * obj0 = 0 ; | |
42512 | PyObject * obj1 = 0 ; | |
42513 | char * kwnames[] = { | |
42514 | (char *) "self",(char *) "url", NULL | |
42515 | }; | |
42516 | ||
42517 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail; | |
42518 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42519 | if (!SWIG_IsOK(res1)) { | |
42520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42521 | } | |
42522 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42523 | { | |
42524 | arg2 = wxString_in_helper(obj1); | |
42525 | if (arg2 == NULL) SWIG_fail; | |
42526 | temp2 = true; | |
42527 | } | |
42528 | { | |
42529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42530 | (arg1)->SetURL((wxString const &)*arg2); | |
42531 | wxPyEndAllowThreads(__tstate); | |
42532 | if (PyErr_Occurred()) SWIG_fail; | |
42533 | } | |
42534 | resultobj = SWIG_Py_Void(); | |
42535 | { | |
42536 | if (temp2) | |
42537 | delete arg2; | |
42538 | } | |
42539 | return resultobj; | |
42540 | fail: | |
42541 | { | |
42542 | if (temp2) | |
42543 | delete arg2; | |
42544 | } | |
42545 | return NULL; | |
42546 | } | |
42547 | ||
42548 | ||
42549 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42550 | PyObject *resultobj = 0; | |
42551 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42552 | bool arg2 = (bool) true ; | |
42553 | void *argp1 = 0 ; | |
42554 | int res1 = 0 ; | |
42555 | bool val2 ; | |
42556 | int ecode2 = 0 ; | |
42557 | PyObject * obj0 = 0 ; | |
42558 | PyObject * obj1 = 0 ; | |
42559 | char * kwnames[] = { | |
42560 | (char *) "self",(char *) "visited", NULL | |
42561 | }; | |
42562 | ||
42563 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail; | |
42564 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42565 | if (!SWIG_IsOK(res1)) { | |
42566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42567 | } | |
42568 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42569 | if (obj1) { | |
42570 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
42571 | if (!SWIG_IsOK(ecode2)) { | |
42572 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'"); | |
42573 | } | |
42574 | arg2 = static_cast< bool >(val2); | |
42575 | } | |
42576 | { | |
42577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42578 | (arg1)->SetVisited(arg2); | |
42579 | wxPyEndAllowThreads(__tstate); | |
42580 | if (PyErr_Occurred()) SWIG_fail; | |
42581 | } | |
42582 | resultobj = SWIG_Py_Void(); | |
42583 | return resultobj; | |
42584 | fail: | |
42585 | return NULL; | |
42586 | } | |
42587 | ||
42588 | ||
42589 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42590 | PyObject *resultobj = 0; | |
42591 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42592 | bool result; | |
42593 | void *argp1 = 0 ; | |
42594 | int res1 = 0 ; | |
42595 | PyObject *swig_obj[1] ; | |
42596 | ||
42597 | if (!args) SWIG_fail; | |
42598 | swig_obj[0] = args; | |
42599 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42600 | if (!SWIG_IsOK(res1)) { | |
42601 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42602 | } | |
42603 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42604 | { | |
42605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42606 | result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited(); | |
42607 | wxPyEndAllowThreads(__tstate); | |
42608 | if (PyErr_Occurred()) SWIG_fail; | |
42609 | } | |
42610 | { | |
42611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42612 | } | |
42613 | return resultobj; | |
42614 | fail: | |
42615 | return NULL; | |
42616 | } | |
42617 | ||
42618 | ||
42619 | SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42620 | PyObject *obj; | |
42621 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
42622 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj)); | |
42623 | return SWIG_Py_Void(); | |
42624 | } | |
42625 | ||
42626 | SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42627 | return SWIG_Python_InitShadowInstance(args); | |
42628 | } | |
42629 | ||
42630 | SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42631 | PyObject *resultobj = 0; | |
42632 | wxObject *arg1 = (wxObject *) 0 ; | |
42633 | int arg2 ; | |
42634 | wxString *arg3 = 0 ; | |
42635 | wxHyperlinkEvent *result = 0 ; | |
42636 | void *argp1 = 0 ; | |
42637 | int res1 = 0 ; | |
42638 | int val2 ; | |
42639 | int ecode2 = 0 ; | |
42640 | bool temp3 = false ; | |
42641 | PyObject * obj0 = 0 ; | |
42642 | PyObject * obj1 = 0 ; | |
42643 | PyObject * obj2 = 0 ; | |
42644 | char * kwnames[] = { | |
42645 | (char *) "generator",(char *) "id",(char *) "url", NULL | |
42646 | }; | |
42647 | ||
42648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
42649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 ); | |
42650 | if (!SWIG_IsOK(res1)) { | |
42651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'"); | |
42652 | } | |
42653 | arg1 = reinterpret_cast< wxObject * >(argp1); | |
42654 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
42655 | if (!SWIG_IsOK(ecode2)) { | |
42656 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'"); | |
42657 | } | |
42658 | arg2 = static_cast< int >(val2); | |
42659 | { | |
42660 | arg3 = wxString_in_helper(obj2); | |
42661 | if (arg3 == NULL) SWIG_fail; | |
42662 | temp3 = true; | |
42663 | } | |
42664 | { | |
42665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42666 | result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3); | |
42667 | wxPyEndAllowThreads(__tstate); | |
42668 | if (PyErr_Occurred()) SWIG_fail; | |
42669 | } | |
42670 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 ); | |
42671 | { | |
42672 | if (temp3) | |
42673 | delete arg3; | |
42674 | } | |
42675 | return resultobj; | |
42676 | fail: | |
42677 | { | |
42678 | if (temp3) | |
42679 | delete arg3; | |
42680 | } | |
42681 | return NULL; | |
42682 | } | |
42683 | ||
42684 | ||
42685 | SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42686 | PyObject *resultobj = 0; | |
42687 | wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ; | |
42688 | wxString result; | |
42689 | void *argp1 = 0 ; | |
42690 | int res1 = 0 ; | |
42691 | PyObject *swig_obj[1] ; | |
42692 | ||
42693 | if (!args) SWIG_fail; | |
42694 | swig_obj[0] = args; | |
42695 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 ); | |
42696 | if (!SWIG_IsOK(res1)) { | |
42697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'"); | |
42698 | } | |
42699 | arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1); | |
42700 | { | |
42701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42702 | result = ((wxHyperlinkEvent const *)arg1)->GetURL(); | |
42703 | wxPyEndAllowThreads(__tstate); | |
42704 | if (PyErr_Occurred()) SWIG_fail; | |
42705 | } | |
42706 | { | |
42707 | #if wxUSE_UNICODE | |
42708 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
42709 | #else | |
42710 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
42711 | #endif | |
42712 | } | |
42713 | return resultobj; | |
42714 | fail: | |
42715 | return NULL; | |
42716 | } | |
42717 | ||
42718 | ||
42719 | SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42720 | PyObject *resultobj = 0; | |
42721 | wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ; | |
42722 | wxString *arg2 = 0 ; | |
42723 | void *argp1 = 0 ; | |
42724 | int res1 = 0 ; | |
42725 | bool temp2 = false ; | |
42726 | PyObject * obj0 = 0 ; | |
42727 | PyObject * obj1 = 0 ; | |
42728 | char * kwnames[] = { | |
42729 | (char *) "self",(char *) "url", NULL | |
42730 | }; | |
42731 | ||
42732 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail; | |
42733 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 ); | |
42734 | if (!SWIG_IsOK(res1)) { | |
42735 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'"); | |
42736 | } | |
42737 | arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1); | |
42738 | { | |
42739 | arg2 = wxString_in_helper(obj1); | |
42740 | if (arg2 == NULL) SWIG_fail; | |
42741 | temp2 = true; | |
42742 | } | |
42743 | { | |
42744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42745 | (arg1)->SetURL((wxString const &)*arg2); | |
42746 | wxPyEndAllowThreads(__tstate); | |
42747 | if (PyErr_Occurred()) SWIG_fail; | |
42748 | } | |
42749 | resultobj = SWIG_Py_Void(); | |
42750 | { | |
42751 | if (temp2) | |
42752 | delete arg2; | |
42753 | } | |
42754 | return resultobj; | |
42755 | fail: | |
42756 | { | |
42757 | if (temp2) | |
42758 | delete arg2; | |
42759 | } | |
42760 | return NULL; | |
42761 | } | |
42762 | ||
42763 | ||
42764 | SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42765 | PyObject *obj; | |
42766 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
42767 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj)); | |
42768 | return SWIG_Py_Void(); | |
42769 | } | |
42770 | ||
42771 | SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42772 | return SWIG_Python_InitShadowInstance(args); | |
42773 | } | |
42774 | ||
b850e7f3 RD |
42775 | SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
42776 | PyObject *resultobj = 0; | |
42777 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42778 | wxWindow *arg2 = (wxWindow *) 0 ; | |
42779 | int arg3 ; | |
42780 | wxString const &arg4_defvalue = wxEmptyString ; | |
42781 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
42782 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
42783 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
42784 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
42785 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
42786 | long arg7 = (long) 0 ; | |
42787 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
42788 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
42789 | wxString const &arg9_defvalue = wxButtonNameStr ; | |
42790 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
42791 | bool result; | |
42792 | void *argp1 = 0 ; | |
42793 | int res1 = 0 ; | |
42794 | void *argp2 = 0 ; | |
42795 | int res2 = 0 ; | |
42796 | int val3 ; | |
42797 | int ecode3 = 0 ; | |
42798 | bool temp4 = false ; | |
42799 | wxPoint temp5 ; | |
42800 | wxSize temp6 ; | |
42801 | long val7 ; | |
42802 | int ecode7 = 0 ; | |
42803 | void *argp8 = 0 ; | |
42804 | int res8 = 0 ; | |
42805 | bool temp9 = false ; | |
42806 | PyObject * obj0 = 0 ; | |
42807 | PyObject * obj1 = 0 ; | |
42808 | PyObject * obj2 = 0 ; | |
42809 | PyObject * obj3 = 0 ; | |
42810 | PyObject * obj4 = 0 ; | |
42811 | PyObject * obj5 = 0 ; | |
42812 | PyObject * obj6 = 0 ; | |
42813 | PyObject * obj7 = 0 ; | |
42814 | PyObject * obj8 = 0 ; | |
42815 | char * kwnames[] = { | |
42816 | (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
42817 | }; | |
42818 | ||
42819 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
42820 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42821 | if (!SWIG_IsOK(res1)) { | |
42822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42823 | } | |
42824 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42825 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
42826 | if (!SWIG_IsOK(res2)) { | |
42827 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
42828 | } | |
42829 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
42830 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
42831 | if (!SWIG_IsOK(ecode3)) { | |
42832 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'"); | |
42833 | } | |
42834 | arg3 = static_cast< int >(val3); | |
42835 | if (obj3) { | |
42836 | { | |
42837 | arg4 = wxString_in_helper(obj3); | |
42838 | if (arg4 == NULL) SWIG_fail; | |
42839 | temp4 = true; | |
42840 | } | |
42841 | } | |
42842 | if (obj4) { | |
42843 | { | |
42844 | arg5 = &temp5; | |
42845 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
42846 | } | |
42847 | } | |
42848 | if (obj5) { | |
42849 | { | |
42850 | arg6 = &temp6; | |
42851 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
42852 | } | |
42853 | } | |
42854 | if (obj6) { | |
42855 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
42856 | if (!SWIG_IsOK(ecode7)) { | |
42857 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'"); | |
42858 | } | |
42859 | arg7 = static_cast< long >(val7); | |
42860 | } | |
42861 | if (obj7) { | |
42862 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
42863 | if (!SWIG_IsOK(res8)) { | |
42864 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
42865 | } | |
42866 | if (!argp8) { | |
42867 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
42868 | } | |
42869 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
42870 | } | |
42871 | if (obj8) { | |
42872 | { | |
42873 | arg9 = wxString_in_helper(obj8); | |
42874 | if (arg9 == NULL) SWIG_fail; | |
42875 | temp9 = true; | |
42876 | } | |
42877 | } | |
42878 | { | |
42879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42880 | result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
42881 | wxPyEndAllowThreads(__tstate); | |
42882 | if (PyErr_Occurred()) SWIG_fail; | |
42883 | } | |
42884 | { | |
42885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42886 | } | |
42887 | { | |
42888 | if (temp4) | |
42889 | delete arg4; | |
42890 | } | |
42891 | { | |
42892 | if (temp9) | |
42893 | delete arg9; | |
42894 | } | |
42895 | return resultobj; | |
42896 | fail: | |
42897 | { | |
42898 | if (temp4) | |
42899 | delete arg4; | |
42900 | } | |
42901 | { | |
42902 | if (temp9) | |
42903 | delete arg9; | |
42904 | } | |
42905 | return NULL; | |
42906 | } | |
42907 | ||
42908 | ||
42909 | SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42910 | PyObject *resultobj = 0; | |
42911 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42912 | int arg2 ; | |
42913 | void *argp1 = 0 ; | |
42914 | int res1 = 0 ; | |
42915 | int val2 ; | |
42916 | int ecode2 = 0 ; | |
42917 | PyObject * obj0 = 0 ; | |
42918 | PyObject * obj1 = 0 ; | |
42919 | char * kwnames[] = { | |
42920 | (char *) "self",(char *) "newmargin", NULL | |
42921 | }; | |
42922 | ||
42923 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail; | |
42924 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42925 | if (!SWIG_IsOK(res1)) { | |
42926 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42927 | } | |
42928 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42929 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
42930 | if (!SWIG_IsOK(ecode2)) { | |
42931 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'"); | |
42932 | } | |
42933 | arg2 = static_cast< int >(val2); | |
42934 | { | |
42935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42936 | (arg1)->SetInternalMargin(arg2); | |
42937 | wxPyEndAllowThreads(__tstate); | |
42938 | if (PyErr_Occurred()) SWIG_fail; | |
42939 | } | |
42940 | resultobj = SWIG_Py_Void(); | |
42941 | return resultobj; | |
42942 | fail: | |
42943 | return NULL; | |
42944 | } | |
42945 | ||
42946 | ||
42947 | SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42948 | PyObject *resultobj = 0; | |
42949 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42950 | int result; | |
42951 | void *argp1 = 0 ; | |
42952 | int res1 = 0 ; | |
42953 | PyObject *swig_obj[1] ; | |
42954 | ||
42955 | if (!args) SWIG_fail; | |
42956 | swig_obj[0] = args; | |
42957 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42958 | if (!SWIG_IsOK(res1)) { | |
42959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
42960 | } | |
42961 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42962 | { | |
42963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42964 | result = (int)((wxPickerBase const *)arg1)->GetInternalMargin(); | |
42965 | wxPyEndAllowThreads(__tstate); | |
42966 | if (PyErr_Occurred()) SWIG_fail; | |
42967 | } | |
42968 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
42969 | return resultobj; | |
42970 | fail: | |
42971 | return NULL; | |
42972 | } | |
42973 | ||
42974 | ||
42975 | SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42976 | PyObject *resultobj = 0; | |
42977 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42978 | int arg2 ; | |
42979 | void *argp1 = 0 ; | |
42980 | int res1 = 0 ; | |
42981 | int val2 ; | |
42982 | int ecode2 = 0 ; | |
42983 | PyObject * obj0 = 0 ; | |
42984 | PyObject * obj1 = 0 ; | |
42985 | char * kwnames[] = { | |
42986 | (char *) "self",(char *) "prop", NULL | |
42987 | }; | |
42988 | ||
42989 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail; | |
42990 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42991 | if (!SWIG_IsOK(res1)) { | |
42992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42993 | } | |
42994 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42995 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
42996 | if (!SWIG_IsOK(ecode2)) { | |
42997 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'"); | |
42998 | } | |
42999 | arg2 = static_cast< int >(val2); | |
43000 | { | |
43001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43002 | (arg1)->SetTextCtrlProportion(arg2); | |
43003 | wxPyEndAllowThreads(__tstate); | |
43004 | if (PyErr_Occurred()) SWIG_fail; | |
43005 | } | |
43006 | resultobj = SWIG_Py_Void(); | |
43007 | return resultobj; | |
43008 | fail: | |
43009 | return NULL; | |
43010 | } | |
43011 | ||
43012 | ||
43013 | SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43014 | PyObject *resultobj = 0; | |
43015 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43016 | int result; | |
43017 | void *argp1 = 0 ; | |
43018 | int res1 = 0 ; | |
43019 | PyObject *swig_obj[1] ; | |
43020 | ||
43021 | if (!args) SWIG_fail; | |
43022 | swig_obj[0] = args; | |
43023 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43024 | if (!SWIG_IsOK(res1)) { | |
43025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
43026 | } | |
43027 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43028 | { | |
43029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43030 | result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion(); | |
43031 | wxPyEndAllowThreads(__tstate); | |
43032 | if (PyErr_Occurred()) SWIG_fail; | |
43033 | } | |
43034 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
43035 | return resultobj; | |
43036 | fail: | |
43037 | return NULL; | |
43038 | } | |
43039 | ||
43040 | ||
10044bf1 RD |
43041 | SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
43042 | PyObject *resultobj = 0; | |
43043 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43044 | int arg2 ; | |
43045 | void *argp1 = 0 ; | |
43046 | int res1 = 0 ; | |
43047 | int val2 ; | |
43048 | int ecode2 = 0 ; | |
43049 | PyObject * obj0 = 0 ; | |
43050 | PyObject * obj1 = 0 ; | |
43051 | char * kwnames[] = { | |
43052 | (char *) "self",(char *) "prop", NULL | |
43053 | }; | |
43054 | ||
43055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail; | |
43056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43057 | if (!SWIG_IsOK(res1)) { | |
43058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
43059 | } | |
43060 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43061 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
43062 | if (!SWIG_IsOK(ecode2)) { | |
43063 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'"); | |
43064 | } | |
43065 | arg2 = static_cast< int >(val2); | |
43066 | { | |
43067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43068 | (arg1)->SetPickerCtrlProportion(arg2); | |
43069 | wxPyEndAllowThreads(__tstate); | |
43070 | if (PyErr_Occurred()) SWIG_fail; | |
43071 | } | |
43072 | resultobj = SWIG_Py_Void(); | |
43073 | return resultobj; | |
43074 | fail: | |
43075 | return NULL; | |
43076 | } | |
43077 | ||
43078 | ||
43079 | SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43080 | PyObject *resultobj = 0; | |
43081 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43082 | int result; | |
43083 | void *argp1 = 0 ; | |
43084 | int res1 = 0 ; | |
43085 | PyObject *swig_obj[1] ; | |
43086 | ||
43087 | if (!args) SWIG_fail; | |
43088 | swig_obj[0] = args; | |
43089 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43090 | if (!SWIG_IsOK(res1)) { | |
43091 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
43092 | } | |
43093 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43094 | { | |
43095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43096 | result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion(); | |
43097 | wxPyEndAllowThreads(__tstate); | |
43098 | if (PyErr_Occurred()) SWIG_fail; | |
43099 | } | |
43100 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
43101 | return resultobj; | |
43102 | fail: | |
43103 | return NULL; | |
43104 | } | |
43105 | ||
43106 | ||
b02396e8 RD |
43107 | SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
43108 | PyObject *resultobj = 0; | |
43109 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43110 | bool result; | |
43111 | void *argp1 = 0 ; | |
43112 | int res1 = 0 ; | |
43113 | PyObject *swig_obj[1] ; | |
43114 | ||
43115 | if (!args) SWIG_fail; | |
43116 | swig_obj[0] = args; | |
43117 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43118 | if (!SWIG_IsOK(res1)) { | |
43119 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
43120 | } | |
43121 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43122 | { | |
43123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43124 | result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable(); | |
43125 | wxPyEndAllowThreads(__tstate); | |
43126 | if (PyErr_Occurred()) SWIG_fail; | |
43127 | } | |
43128 | { | |
43129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43130 | } | |
43131 | return resultobj; | |
43132 | fail: | |
43133 | return NULL; | |
43134 | } | |
43135 | ||
43136 | ||
43137 | SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43138 | PyObject *resultobj = 0; | |
43139 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43140 | bool arg2 = (bool) true ; | |
43141 | void *argp1 = 0 ; | |
43142 | int res1 = 0 ; | |
43143 | bool val2 ; | |
43144 | int ecode2 = 0 ; | |
43145 | PyObject * obj0 = 0 ; | |
43146 | PyObject * obj1 = 0 ; | |
43147 | char * kwnames[] = { | |
43148 | (char *) "self",(char *) "grow", NULL | |
43149 | }; | |
43150 | ||
43151 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail; | |
43152 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43153 | if (!SWIG_IsOK(res1)) { | |
43154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
43155 | } | |
43156 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43157 | if (obj1) { | |
43158 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
43159 | if (!SWIG_IsOK(ecode2)) { | |
43160 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'"); | |
43161 | } | |
43162 | arg2 = static_cast< bool >(val2); | |
43163 | } | |
43164 | { | |
43165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43166 | (arg1)->SetTextCtrlGrowable(arg2); | |
43167 | wxPyEndAllowThreads(__tstate); | |
43168 | if (PyErr_Occurred()) SWIG_fail; | |
43169 | } | |
43170 | resultobj = SWIG_Py_Void(); | |
43171 | return resultobj; | |
43172 | fail: | |
43173 | return NULL; | |
43174 | } | |
43175 | ||
43176 | ||
43177 | SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43178 | PyObject *resultobj = 0; | |
43179 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43180 | bool result; | |
43181 | void *argp1 = 0 ; | |
43182 | int res1 = 0 ; | |
43183 | PyObject *swig_obj[1] ; | |
43184 | ||
43185 | if (!args) SWIG_fail; | |
43186 | swig_obj[0] = args; | |
43187 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43188 | if (!SWIG_IsOK(res1)) { | |
43189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
43190 | } | |
43191 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43192 | { | |
43193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43194 | result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable(); | |
43195 | wxPyEndAllowThreads(__tstate); | |
43196 | if (PyErr_Occurred()) SWIG_fail; | |
43197 | } | |
43198 | { | |
43199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43200 | } | |
43201 | return resultobj; | |
43202 | fail: | |
43203 | return NULL; | |
43204 | } | |
43205 | ||
43206 | ||
43207 | SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43208 | PyObject *resultobj = 0; | |
43209 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43210 | bool arg2 = (bool) true ; | |
43211 | void *argp1 = 0 ; | |
43212 | int res1 = 0 ; | |
43213 | bool val2 ; | |
43214 | int ecode2 = 0 ; | |
43215 | PyObject * obj0 = 0 ; | |
43216 | PyObject * obj1 = 0 ; | |
43217 | char * kwnames[] = { | |
43218 | (char *) "self",(char *) "grow", NULL | |
43219 | }; | |
43220 | ||
43221 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail; | |
43222 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43223 | if (!SWIG_IsOK(res1)) { | |
43224 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
43225 | } | |
43226 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43227 | if (obj1) { | |
43228 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
43229 | if (!SWIG_IsOK(ecode2)) { | |
43230 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'"); | |
43231 | } | |
43232 | arg2 = static_cast< bool >(val2); | |
43233 | } | |
43234 | { | |
43235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43236 | (arg1)->SetPickerCtrlGrowable(arg2); | |
43237 | wxPyEndAllowThreads(__tstate); | |
43238 | if (PyErr_Occurred()) SWIG_fail; | |
43239 | } | |
43240 | resultobj = SWIG_Py_Void(); | |
43241 | return resultobj; | |
43242 | fail: | |
43243 | return NULL; | |
43244 | } | |
43245 | ||
43246 | ||
b850e7f3 RD |
43247 | SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
43248 | PyObject *resultobj = 0; | |
43249 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43250 | bool result; | |
43251 | void *argp1 = 0 ; | |
43252 | int res1 = 0 ; | |
43253 | PyObject *swig_obj[1] ; | |
43254 | ||
43255 | if (!args) SWIG_fail; | |
43256 | swig_obj[0] = args; | |
43257 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43258 | if (!SWIG_IsOK(res1)) { | |
43259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
43260 | } | |
43261 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43262 | { | |
43263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43264 | result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl(); | |
43265 | wxPyEndAllowThreads(__tstate); | |
43266 | if (PyErr_Occurred()) SWIG_fail; | |
43267 | } | |
43268 | { | |
43269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43270 | } | |
43271 | return resultobj; | |
43272 | fail: | |
43273 | return NULL; | |
43274 | } | |
43275 | ||
43276 | ||
43277 | SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43278 | PyObject *resultobj = 0; | |
43279 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43280 | wxTextCtrl *result = 0 ; | |
43281 | void *argp1 = 0 ; | |
43282 | int res1 = 0 ; | |
43283 | PyObject *swig_obj[1] ; | |
43284 | ||
43285 | if (!args) SWIG_fail; | |
43286 | swig_obj[0] = args; | |
43287 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43288 | if (!SWIG_IsOK(res1)) { | |
43289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
43290 | } | |
43291 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43292 | { | |
43293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43294 | result = (wxTextCtrl *)(arg1)->GetTextCtrl(); | |
43295 | wxPyEndAllowThreads(__tstate); | |
43296 | if (PyErr_Occurred()) SWIG_fail; | |
43297 | } | |
43298 | { | |
43299 | resultobj = wxPyMake_wxObject(result, 0); | |
43300 | } | |
43301 | return resultobj; | |
43302 | fail: | |
43303 | return NULL; | |
43304 | } | |
43305 | ||
43306 | ||
43307 | SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43308 | PyObject *resultobj = 0; | |
43309 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43310 | wxControl *result = 0 ; | |
43311 | void *argp1 = 0 ; | |
43312 | int res1 = 0 ; | |
43313 | PyObject *swig_obj[1] ; | |
43314 | ||
43315 | if (!args) SWIG_fail; | |
43316 | swig_obj[0] = args; | |
43317 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43318 | if (!SWIG_IsOK(res1)) { | |
43319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
43320 | } | |
43321 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43322 | { | |
43323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43324 | result = (wxControl *)(arg1)->GetPickerCtrl(); | |
43325 | wxPyEndAllowThreads(__tstate); | |
43326 | if (PyErr_Occurred()) SWIG_fail; | |
43327 | } | |
43328 | { | |
43329 | resultobj = wxPyMake_wxObject(result, 0); | |
43330 | } | |
43331 | return resultobj; | |
43332 | fail: | |
43333 | return NULL; | |
43334 | } | |
43335 | ||
43336 | ||
43337 | SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43338 | PyObject *obj; | |
43339 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
43340 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj)); | |
43341 | return SWIG_Py_Void(); | |
43342 | } | |
43343 | ||
43344 | SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) { | |
43345 | SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only."); | |
43346 | return 1; | |
43347 | } | |
43348 | ||
43349 | ||
43350 | SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) { | |
43351 | PyObject *pyobj = 0; | |
43352 | ||
43353 | { | |
43354 | #if wxUSE_UNICODE | |
43355 | pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len()); | |
43356 | #else | |
43357 | pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len()); | |
43358 | #endif | |
43359 | } | |
43360 | return pyobj; | |
43361 | } | |
43362 | ||
43363 | ||
43364 | SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43365 | PyObject *resultobj = 0; | |
43366 | wxWindow *arg1 = (wxWindow *) 0 ; | |
43367 | int arg2 = (int) -1 ; | |
43368 | wxColour const &arg3_defvalue = *wxBLACK ; | |
43369 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
43370 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
43371 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
43372 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
43373 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
43374 | long arg6 = (long) wxCLRP_DEFAULT_STYLE ; | |
43375 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
43376 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
43377 | wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ; | |
43378 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
43379 | wxColourPickerCtrl *result = 0 ; | |
43380 | void *argp1 = 0 ; | |
43381 | int res1 = 0 ; | |
43382 | int val2 ; | |
43383 | int ecode2 = 0 ; | |
43384 | wxColour temp3 ; | |
43385 | wxPoint temp4 ; | |
43386 | wxSize temp5 ; | |
43387 | long val6 ; | |
43388 | int ecode6 = 0 ; | |
43389 | void *argp7 = 0 ; | |
43390 | int res7 = 0 ; | |
43391 | bool temp8 = false ; | |
43392 | PyObject * obj0 = 0 ; | |
43393 | PyObject * obj1 = 0 ; | |
43394 | PyObject * obj2 = 0 ; | |
43395 | PyObject * obj3 = 0 ; | |
43396 | PyObject * obj4 = 0 ; | |
43397 | PyObject * obj5 = 0 ; | |
43398 | PyObject * obj6 = 0 ; | |
43399 | PyObject * obj7 = 0 ; | |
43400 | char * kwnames[] = { | |
43401 | (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
43402 | }; | |
43403 | ||
43404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
43405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
43406 | if (!SWIG_IsOK(res1)) { | |
43407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
43408 | } | |
43409 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
43410 | if (obj1) { | |
43411 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
43412 | if (!SWIG_IsOK(ecode2)) { | |
43413 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
43414 | } | |
43415 | arg2 = static_cast< int >(val2); | |
43416 | } | |
43417 | if (obj2) { | |
43418 | { | |
43419 | arg3 = &temp3; | |
43420 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
43421 | } | |
43422 | } | |
43423 | if (obj3) { | |
43424 | { | |
43425 | arg4 = &temp4; | |
43426 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
43427 | } | |
43428 | } | |
43429 | if (obj4) { | |
43430 | { | |
43431 | arg5 = &temp5; | |
43432 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
43433 | } | |
43434 | } | |
43435 | if (obj5) { | |
43436 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
43437 | if (!SWIG_IsOK(ecode6)) { | |
43438 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'"); | |
43439 | } | |
43440 | arg6 = static_cast< long >(val6); | |
43441 | } | |
43442 | if (obj6) { | |
43443 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
43444 | if (!SWIG_IsOK(res7)) { | |
43445 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
43446 | } | |
43447 | if (!argp7) { | |
43448 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
43449 | } | |
43450 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
43451 | } | |
43452 | if (obj7) { | |
43453 | { | |
43454 | arg8 = wxString_in_helper(obj7); | |
43455 | if (arg8 == NULL) SWIG_fail; | |
43456 | temp8 = true; | |
43457 | } | |
43458 | } | |
43459 | { | |
43460 | if (!wxPyCheckForApp()) SWIG_fail; | |
43461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43462 | result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
43463 | wxPyEndAllowThreads(__tstate); | |
43464 | if (PyErr_Occurred()) SWIG_fail; | |
43465 | } | |
43466 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 ); | |
43467 | { | |
43468 | if (temp8) | |
43469 | delete arg8; | |
43470 | } | |
43471 | return resultobj; | |
43472 | fail: | |
43473 | { | |
43474 | if (temp8) | |
43475 | delete arg8; | |
43476 | } | |
43477 | return NULL; | |
43478 | } | |
43479 | ||
43480 | ||
43481 | SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43482 | PyObject *resultobj = 0; | |
43483 | wxColourPickerCtrl *result = 0 ; | |
43484 | ||
43485 | if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail; | |
43486 | { | |
43487 | if (!wxPyCheckForApp()) SWIG_fail; | |
43488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43489 | result = (wxColourPickerCtrl *)new wxColourPickerCtrl(); | |
43490 | wxPyEndAllowThreads(__tstate); | |
43491 | if (PyErr_Occurred()) SWIG_fail; | |
43492 | } | |
43493 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 ); | |
43494 | return resultobj; | |
43495 | fail: | |
43496 | return NULL; | |
43497 | } | |
43498 | ||
43499 | ||
43500 | SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43501 | PyObject *resultobj = 0; | |
43502 | wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ; | |
43503 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43504 | int arg3 ; | |
43505 | wxColour const &arg4_defvalue = *wxBLACK ; | |
43506 | wxColour *arg4 = (wxColour *) &arg4_defvalue ; | |
43507 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
43508 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
43509 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
43510 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
43511 | long arg7 = (long) wxCLRP_DEFAULT_STYLE ; | |
43512 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
43513 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
43514 | wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ; | |
43515 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
43516 | bool result; | |
43517 | void *argp1 = 0 ; | |
43518 | int res1 = 0 ; | |
43519 | void *argp2 = 0 ; | |
43520 | int res2 = 0 ; | |
43521 | int val3 ; | |
43522 | int ecode3 = 0 ; | |
43523 | wxColour temp4 ; | |
43524 | wxPoint temp5 ; | |
43525 | wxSize temp6 ; | |
43526 | long val7 ; | |
43527 | int ecode7 = 0 ; | |
43528 | void *argp8 = 0 ; | |
43529 | int res8 = 0 ; | |
43530 | bool temp9 = false ; | |
43531 | PyObject * obj0 = 0 ; | |
43532 | PyObject * obj1 = 0 ; | |
43533 | PyObject * obj2 = 0 ; | |
43534 | PyObject * obj3 = 0 ; | |
43535 | PyObject * obj4 = 0 ; | |
43536 | PyObject * obj5 = 0 ; | |
43537 | PyObject * obj6 = 0 ; | |
43538 | PyObject * obj7 = 0 ; | |
43539 | PyObject * obj8 = 0 ; | |
43540 | char * kwnames[] = { | |
43541 | (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
43542 | }; | |
43543 | ||
43544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
43545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 ); | |
43546 | if (!SWIG_IsOK(res1)) { | |
43547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'"); | |
43548 | } | |
43549 | arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1); | |
43550 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
43551 | if (!SWIG_IsOK(res2)) { | |
43552 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
43553 | } | |
43554 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
43555 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
43556 | if (!SWIG_IsOK(ecode3)) { | |
43557 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
43558 | } | |
43559 | arg3 = static_cast< int >(val3); | |
43560 | if (obj3) { | |
43561 | { | |
43562 | arg4 = &temp4; | |
43563 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
43564 | } | |
43565 | } | |
43566 | if (obj4) { | |
43567 | { | |
43568 | arg5 = &temp5; | |
43569 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
43570 | } | |
43571 | } | |
43572 | if (obj5) { | |
43573 | { | |
43574 | arg6 = &temp6; | |
43575 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
43576 | } | |
43577 | } | |
43578 | if (obj6) { | |
43579 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
43580 | if (!SWIG_IsOK(ecode7)) { | |
43581 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
43582 | } | |
43583 | arg7 = static_cast< long >(val7); | |
43584 | } | |
43585 | if (obj7) { | |
43586 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
43587 | if (!SWIG_IsOK(res8)) { | |
43588 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
43589 | } | |
43590 | if (!argp8) { | |
43591 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
43592 | } | |
43593 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
43594 | } | |
43595 | if (obj8) { | |
43596 | { | |
43597 | arg9 = wxString_in_helper(obj8); | |
43598 | if (arg9 == NULL) SWIG_fail; | |
43599 | temp9 = true; | |
43600 | } | |
43601 | } | |
43602 | { | |
43603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43604 | result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
43605 | wxPyEndAllowThreads(__tstate); | |
43606 | if (PyErr_Occurred()) SWIG_fail; | |
43607 | } | |
43608 | { | |
43609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43610 | } | |
43611 | { | |
43612 | if (temp9) | |
43613 | delete arg9; | |
43614 | } | |
43615 | return resultobj; | |
43616 | fail: | |
43617 | { | |
43618 | if (temp9) | |
43619 | delete arg9; | |
43620 | } | |
43621 | return NULL; | |
43622 | } | |
43623 | ||
43624 | ||
43625 | SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43626 | PyObject *resultobj = 0; | |
43627 | wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ; | |
43628 | wxColour result; | |
43629 | void *argp1 = 0 ; | |
43630 | int res1 = 0 ; | |
43631 | PyObject *swig_obj[1] ; | |
43632 | ||
43633 | if (!args) SWIG_fail; | |
43634 | swig_obj[0] = args; | |
43635 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 ); | |
43636 | if (!SWIG_IsOK(res1)) { | |
43637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'"); | |
43638 | } | |
43639 | arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1); | |
43640 | { | |
43641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43642 | result = ((wxColourPickerCtrl const *)arg1)->GetColour(); | |
43643 | wxPyEndAllowThreads(__tstate); | |
43644 | if (PyErr_Occurred()) SWIG_fail; | |
43645 | } | |
43646 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
43647 | return resultobj; | |
43648 | fail: | |
43649 | return NULL; | |
43650 | } | |
43651 | ||
43652 | ||
43653 | SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43654 | PyObject *resultobj = 0; | |
43655 | wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ; | |
43656 | wxColour *arg2 = 0 ; | |
43657 | void *argp1 = 0 ; | |
43658 | int res1 = 0 ; | |
43659 | wxColour temp2 ; | |
43660 | PyObject * obj0 = 0 ; | |
43661 | PyObject * obj1 = 0 ; | |
43662 | char * kwnames[] = { | |
43663 | (char *) "self",(char *) "col", NULL | |
43664 | }; | |
43665 | ||
43666 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
43667 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 ); | |
43668 | if (!SWIG_IsOK(res1)) { | |
43669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'"); | |
43670 | } | |
43671 | arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1); | |
43672 | { | |
43673 | arg2 = &temp2; | |
43674 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
43675 | } | |
43676 | { | |
43677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43678 | (arg1)->SetColour((wxColour const &)*arg2); | |
43679 | wxPyEndAllowThreads(__tstate); | |
43680 | if (PyErr_Occurred()) SWIG_fail; | |
43681 | } | |
43682 | resultobj = SWIG_Py_Void(); | |
43683 | return resultobj; | |
43684 | fail: | |
43685 | return NULL; | |
43686 | } | |
43687 | ||
43688 | ||
43689 | SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43690 | PyObject *obj; | |
43691 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
43692 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj)); | |
43693 | return SWIG_Py_Void(); | |
43694 | } | |
43695 | ||
43696 | SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43697 | return SWIG_Python_InitShadowInstance(args); | |
43698 | } | |
43699 | ||
43700 | SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43701 | PyObject *resultobj = 0; | |
43702 | wxObject *arg1 = (wxObject *) 0 ; | |
43703 | int arg2 ; | |
43704 | wxColour *arg3 = 0 ; | |
43705 | wxColourPickerEvent *result = 0 ; | |
43706 | void *argp1 = 0 ; | |
43707 | int res1 = 0 ; | |
43708 | int val2 ; | |
43709 | int ecode2 = 0 ; | |
43710 | wxColour temp3 ; | |
43711 | PyObject * obj0 = 0 ; | |
43712 | PyObject * obj1 = 0 ; | |
43713 | PyObject * obj2 = 0 ; | |
43714 | char * kwnames[] = { | |
43715 | (char *) "generator",(char *) "id",(char *) "col", NULL | |
43716 | }; | |
43717 | ||
43718 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
43719 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 ); | |
43720 | if (!SWIG_IsOK(res1)) { | |
43721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'"); | |
43722 | } | |
43723 | arg1 = reinterpret_cast< wxObject * >(argp1); | |
43724 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
43725 | if (!SWIG_IsOK(ecode2)) { | |
43726 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'"); | |
43727 | } | |
43728 | arg2 = static_cast< int >(val2); | |
43729 | { | |
43730 | arg3 = &temp3; | |
43731 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
43732 | } | |
43733 | { | |
43734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43735 | result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3); | |
43736 | wxPyEndAllowThreads(__tstate); | |
43737 | if (PyErr_Occurred()) SWIG_fail; | |
43738 | } | |
43739 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 ); | |
43740 | return resultobj; | |
43741 | fail: | |
43742 | return NULL; | |
43743 | } | |
43744 | ||
43745 | ||
43746 | SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43747 | PyObject *resultobj = 0; | |
43748 | wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ; | |
43749 | wxColour result; | |
43750 | void *argp1 = 0 ; | |
43751 | int res1 = 0 ; | |
43752 | PyObject *swig_obj[1] ; | |
43753 | ||
43754 | if (!args) SWIG_fail; | |
43755 | swig_obj[0] = args; | |
43756 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 ); | |
43757 | if (!SWIG_IsOK(res1)) { | |
43758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'"); | |
43759 | } | |
43760 | arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1); | |
43761 | { | |
43762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43763 | result = ((wxColourPickerEvent const *)arg1)->GetColour(); | |
43764 | wxPyEndAllowThreads(__tstate); | |
43765 | if (PyErr_Occurred()) SWIG_fail; | |
43766 | } | |
43767 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
43768 | return resultobj; | |
43769 | fail: | |
43770 | return NULL; | |
43771 | } | |
43772 | ||
43773 | ||
43774 | SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43775 | PyObject *resultobj = 0; | |
43776 | wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ; | |
43777 | wxColour *arg2 = 0 ; | |
43778 | void *argp1 = 0 ; | |
43779 | int res1 = 0 ; | |
43780 | wxColour temp2 ; | |
43781 | PyObject * obj0 = 0 ; | |
43782 | PyObject * obj1 = 0 ; | |
43783 | char * kwnames[] = { | |
43784 | (char *) "self",(char *) "c", NULL | |
43785 | }; | |
43786 | ||
43787 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
43788 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 ); | |
43789 | if (!SWIG_IsOK(res1)) { | |
43790 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'"); | |
43791 | } | |
43792 | arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1); | |
43793 | { | |
43794 | arg2 = &temp2; | |
43795 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
43796 | } | |
43797 | { | |
43798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43799 | (arg1)->SetColour((wxColour const &)*arg2); | |
43800 | wxPyEndAllowThreads(__tstate); | |
43801 | if (PyErr_Occurred()) SWIG_fail; | |
43802 | } | |
43803 | resultobj = SWIG_Py_Void(); | |
43804 | return resultobj; | |
43805 | fail: | |
43806 | return NULL; | |
43807 | } | |
43808 | ||
43809 | ||
43810 | SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43811 | PyObject *obj; | |
43812 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
43813 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj)); | |
43814 | return SWIG_Py_Void(); | |
43815 | } | |
43816 | ||
43817 | SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43818 | return SWIG_Python_InitShadowInstance(args); | |
43819 | } | |
43820 | ||
43821 | SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) { | |
43822 | SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only."); | |
43823 | return 1; | |
43824 | } | |
43825 | ||
43826 | ||
43827 | SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) { | |
43828 | PyObject *pyobj = 0; | |
43829 | ||
43830 | { | |
43831 | #if wxUSE_UNICODE | |
43832 | pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len()); | |
43833 | #else | |
43834 | pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len()); | |
43835 | #endif | |
43836 | } | |
43837 | return pyobj; | |
43838 | } | |
43839 | ||
43840 | ||
43841 | SWIGINTERN int FileSelectorPromptStr_set(PyObject *) { | |
43842 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only."); | |
43843 | return 1; | |
43844 | } | |
43845 | ||
43846 | ||
43847 | SWIGINTERN PyObject *FileSelectorPromptStr_get(void) { | |
43848 | PyObject *pyobj = 0; | |
43849 | ||
43850 | { | |
43851 | #if wxUSE_UNICODE | |
43852 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
43853 | #else | |
43854 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
43855 | #endif | |
43856 | } | |
43857 | return pyobj; | |
43858 | } | |
43859 | ||
43860 | ||
43861 | SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) { | |
43862 | SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only."); | |
43863 | return 1; | |
43864 | } | |
43865 | ||
43866 | ||
43867 | SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) { | |
43868 | PyObject *pyobj = 0; | |
43869 | ||
43870 | { | |
43871 | #if wxUSE_UNICODE | |
43872 | pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len()); | |
43873 | #else | |
43874 | pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len()); | |
43875 | #endif | |
43876 | } | |
43877 | return pyobj; | |
43878 | } | |
43879 | ||
43880 | ||
43881 | SWIGINTERN int DirSelectorPromptStr_set(PyObject *) { | |
43882 | SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only."); | |
43883 | return 1; | |
43884 | } | |
43885 | ||
43886 | ||
43887 | SWIGINTERN PyObject *DirSelectorPromptStr_get(void) { | |
43888 | PyObject *pyobj = 0; | |
43889 | ||
43890 | { | |
43891 | #if wxUSE_UNICODE | |
43892 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
43893 | #else | |
43894 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
43895 | #endif | |
43896 | } | |
43897 | return pyobj; | |
43898 | } | |
43899 | ||
43900 | ||
43901 | SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) { | |
43902 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
43903 | return 1; | |
43904 | } | |
43905 | ||
43906 | ||
43907 | SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) { | |
43908 | PyObject *pyobj = 0; | |
43909 | ||
43910 | { | |
43911 | #if wxUSE_UNICODE | |
43912 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
43913 | #else | |
43914 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
43915 | #endif | |
43916 | } | |
43917 | return pyobj; | |
43918 | } | |
43919 | ||
43920 | ||
43921 | SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43922 | PyObject *resultobj = 0; | |
43923 | wxWindow *arg1 = (wxWindow *) 0 ; | |
43924 | int arg2 = (int) -1 ; | |
43925 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
43926 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
43927 | wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ; | |
43928 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
43929 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
43930 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
43931 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
43932 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
43933 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
43934 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
43935 | long arg8 = (long) wxFLP_DEFAULT_STYLE ; | |
43936 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
43937 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
43938 | wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ; | |
43939 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
43940 | wxFilePickerCtrl *result = 0 ; | |
43941 | void *argp1 = 0 ; | |
43942 | int res1 = 0 ; | |
43943 | int val2 ; | |
43944 | int ecode2 = 0 ; | |
43945 | bool temp3 = false ; | |
43946 | bool temp4 = false ; | |
43947 | bool temp5 = false ; | |
43948 | wxPoint temp6 ; | |
43949 | wxSize temp7 ; | |
43950 | long val8 ; | |
43951 | int ecode8 = 0 ; | |
43952 | void *argp9 = 0 ; | |
43953 | int res9 = 0 ; | |
43954 | bool temp10 = false ; | |
43955 | PyObject * obj0 = 0 ; | |
43956 | PyObject * obj1 = 0 ; | |
43957 | PyObject * obj2 = 0 ; | |
43958 | PyObject * obj3 = 0 ; | |
43959 | PyObject * obj4 = 0 ; | |
43960 | PyObject * obj5 = 0 ; | |
43961 | PyObject * obj6 = 0 ; | |
43962 | PyObject * obj7 = 0 ; | |
43963 | PyObject * obj8 = 0 ; | |
43964 | PyObject * obj9 = 0 ; | |
43965 | char * kwnames[] = { | |
43966 | (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
43967 | }; | |
43968 | ||
43969 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
43970 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
43971 | if (!SWIG_IsOK(res1)) { | |
43972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
43973 | } | |
43974 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
43975 | if (obj1) { | |
43976 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
43977 | if (!SWIG_IsOK(ecode2)) { | |
43978 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
43979 | } | |
43980 | arg2 = static_cast< int >(val2); | |
43981 | } | |
43982 | if (obj2) { | |
43983 | { | |
43984 | arg3 = wxString_in_helper(obj2); | |
43985 | if (arg3 == NULL) SWIG_fail; | |
43986 | temp3 = true; | |
43987 | } | |
43988 | } | |
43989 | if (obj3) { | |
43990 | { | |
43991 | arg4 = wxString_in_helper(obj3); | |
43992 | if (arg4 == NULL) SWIG_fail; | |
43993 | temp4 = true; | |
43994 | } | |
43995 | } | |
43996 | if (obj4) { | |
43997 | { | |
43998 | arg5 = wxString_in_helper(obj4); | |
43999 | if (arg5 == NULL) SWIG_fail; | |
44000 | temp5 = true; | |
44001 | } | |
44002 | } | |
44003 | if (obj5) { | |
44004 | { | |
44005 | arg6 = &temp6; | |
44006 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
44007 | } | |
44008 | } | |
44009 | if (obj6) { | |
44010 | { | |
44011 | arg7 = &temp7; | |
44012 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
44013 | } | |
44014 | } | |
44015 | if (obj7) { | |
44016 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
44017 | if (!SWIG_IsOK(ecode8)) { | |
44018 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'"); | |
44019 | } | |
44020 | arg8 = static_cast< long >(val8); | |
44021 | } | |
44022 | if (obj8) { | |
44023 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
44024 | if (!SWIG_IsOK(res9)) { | |
44025 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
44026 | } | |
44027 | if (!argp9) { | |
44028 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
44029 | } | |
44030 | arg9 = reinterpret_cast< wxValidator * >(argp9); | |
44031 | } | |
44032 | if (obj9) { | |
44033 | { | |
44034 | arg10 = wxString_in_helper(obj9); | |
44035 | if (arg10 == NULL) SWIG_fail; | |
44036 | temp10 = true; | |
44037 | } | |
44038 | } | |
44039 | { | |
44040 | if (!wxPyCheckForApp()) SWIG_fail; | |
44041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44042 | result = (wxFilePickerCtrl *)new wxFilePickerCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
44043 | wxPyEndAllowThreads(__tstate); | |
44044 | if (PyErr_Occurred()) SWIG_fail; | |
44045 | } | |
44046 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 ); | |
44047 | { | |
44048 | if (temp3) | |
44049 | delete arg3; | |
44050 | } | |
44051 | { | |
44052 | if (temp4) | |
44053 | delete arg4; | |
44054 | } | |
44055 | { | |
44056 | if (temp5) | |
44057 | delete arg5; | |
44058 | } | |
44059 | { | |
44060 | if (temp10) | |
44061 | delete arg10; | |
44062 | } | |
44063 | return resultobj; | |
44064 | fail: | |
44065 | { | |
44066 | if (temp3) | |
44067 | delete arg3; | |
44068 | } | |
44069 | { | |
44070 | if (temp4) | |
44071 | delete arg4; | |
44072 | } | |
44073 | { | |
44074 | if (temp5) | |
44075 | delete arg5; | |
44076 | } | |
44077 | { | |
44078 | if (temp10) | |
44079 | delete arg10; | |
44080 | } | |
44081 | return NULL; | |
44082 | } | |
44083 | ||
44084 | ||
44085 | SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44086 | PyObject *resultobj = 0; | |
44087 | wxFilePickerCtrl *result = 0 ; | |
44088 | ||
44089 | if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail; | |
44090 | { | |
44091 | if (!wxPyCheckForApp()) SWIG_fail; | |
44092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44093 | result = (wxFilePickerCtrl *)new wxFilePickerCtrl(); | |
44094 | wxPyEndAllowThreads(__tstate); | |
44095 | if (PyErr_Occurred()) SWIG_fail; | |
44096 | } | |
44097 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 ); | |
44098 | return resultobj; | |
44099 | fail: | |
44100 | return NULL; | |
44101 | } | |
44102 | ||
44103 | ||
44104 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44105 | PyObject *resultobj = 0; | |
44106 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
44107 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44108 | int arg3 = (int) -1 ; | |
44109 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
44110 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
44111 | wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ; | |
44112 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
44113 | wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
44114 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
44115 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
44116 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
44117 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
44118 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
44119 | long arg9 = (long) wxFLP_DEFAULT_STYLE ; | |
44120 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
44121 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
44122 | wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ; | |
44123 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
44124 | bool result; | |
44125 | void *argp1 = 0 ; | |
44126 | int res1 = 0 ; | |
44127 | void *argp2 = 0 ; | |
44128 | int res2 = 0 ; | |
44129 | int val3 ; | |
44130 | int ecode3 = 0 ; | |
44131 | bool temp4 = false ; | |
44132 | bool temp5 = false ; | |
44133 | bool temp6 = false ; | |
44134 | wxPoint temp7 ; | |
44135 | wxSize temp8 ; | |
44136 | long val9 ; | |
44137 | int ecode9 = 0 ; | |
44138 | void *argp10 = 0 ; | |
44139 | int res10 = 0 ; | |
44140 | bool temp11 = false ; | |
44141 | PyObject * obj0 = 0 ; | |
44142 | PyObject * obj1 = 0 ; | |
44143 | PyObject * obj2 = 0 ; | |
44144 | PyObject * obj3 = 0 ; | |
44145 | PyObject * obj4 = 0 ; | |
44146 | PyObject * obj5 = 0 ; | |
44147 | PyObject * obj6 = 0 ; | |
44148 | PyObject * obj7 = 0 ; | |
44149 | PyObject * obj8 = 0 ; | |
44150 | PyObject * obj9 = 0 ; | |
44151 | PyObject * obj10 = 0 ; | |
44152 | char * kwnames[] = { | |
44153 | (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
44154 | }; | |
44155 | ||
44156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
44157 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
44158 | if (!SWIG_IsOK(res1)) { | |
44159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'"); | |
44160 | } | |
44161 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44162 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
44163 | if (!SWIG_IsOK(res2)) { | |
44164 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
44165 | } | |
44166 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
44167 | if (obj2) { | |
44168 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
44169 | if (!SWIG_IsOK(ecode3)) { | |
44170 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
44171 | } | |
44172 | arg3 = static_cast< int >(val3); | |
44173 | } | |
44174 | if (obj3) { | |
44175 | { | |
44176 | arg4 = wxString_in_helper(obj3); | |
44177 | if (arg4 == NULL) SWIG_fail; | |
44178 | temp4 = true; | |
44179 | } | |
44180 | } | |
44181 | if (obj4) { | |
44182 | { | |
44183 | arg5 = wxString_in_helper(obj4); | |
44184 | if (arg5 == NULL) SWIG_fail; | |
44185 | temp5 = true; | |
44186 | } | |
44187 | } | |
44188 | if (obj5) { | |
44189 | { | |
44190 | arg6 = wxString_in_helper(obj5); | |
44191 | if (arg6 == NULL) SWIG_fail; | |
44192 | temp6 = true; | |
44193 | } | |
44194 | } | |
44195 | if (obj6) { | |
44196 | { | |
44197 | arg7 = &temp7; | |
44198 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
44199 | } | |
44200 | } | |
44201 | if (obj7) { | |
44202 | { | |
44203 | arg8 = &temp8; | |
44204 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
44205 | } | |
44206 | } | |
44207 | if (obj8) { | |
44208 | ecode9 = SWIG_AsVal_long(obj8, &val9); | |
44209 | if (!SWIG_IsOK(ecode9)) { | |
44210 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'"); | |
44211 | } | |
44212 | arg9 = static_cast< long >(val9); | |
44213 | } | |
44214 | if (obj9) { | |
44215 | res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0); | |
44216 | if (!SWIG_IsOK(res10)) { | |
44217 | SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
44218 | } | |
44219 | if (!argp10) { | |
44220 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
44221 | } | |
44222 | arg10 = reinterpret_cast< wxValidator * >(argp10); | |
44223 | } | |
44224 | if (obj10) { | |
44225 | { | |
44226 | arg11 = wxString_in_helper(obj10); | |
44227 | if (arg11 == NULL) SWIG_fail; | |
44228 | temp11 = true; | |
44229 | } | |
44230 | } | |
44231 | { | |
44232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44233 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxString const &)*arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
44234 | wxPyEndAllowThreads(__tstate); | |
44235 | if (PyErr_Occurred()) SWIG_fail; | |
44236 | } | |
44237 | { | |
44238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44239 | } | |
44240 | { | |
44241 | if (temp4) | |
44242 | delete arg4; | |
44243 | } | |
44244 | { | |
44245 | if (temp5) | |
44246 | delete arg5; | |
44247 | } | |
44248 | { | |
44249 | if (temp6) | |
44250 | delete arg6; | |
44251 | } | |
44252 | { | |
44253 | if (temp11) | |
44254 | delete arg11; | |
44255 | } | |
44256 | return resultobj; | |
44257 | fail: | |
44258 | { | |
44259 | if (temp4) | |
44260 | delete arg4; | |
44261 | } | |
44262 | { | |
44263 | if (temp5) | |
44264 | delete arg5; | |
44265 | } | |
44266 | { | |
44267 | if (temp6) | |
44268 | delete arg6; | |
44269 | } | |
44270 | { | |
44271 | if (temp11) | |
44272 | delete arg11; | |
44273 | } | |
44274 | return NULL; | |
44275 | } | |
44276 | ||
44277 | ||
44278 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44279 | PyObject *resultobj = 0; | |
44280 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
44281 | wxString result; | |
44282 | void *argp1 = 0 ; | |
44283 | int res1 = 0 ; | |
44284 | PyObject *swig_obj[1] ; | |
44285 | ||
44286 | if (!args) SWIG_fail; | |
44287 | swig_obj[0] = args; | |
44288 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
44289 | if (!SWIG_IsOK(res1)) { | |
44290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'"); | |
44291 | } | |
44292 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44293 | { | |
44294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44295 | result = ((wxFilePickerCtrl const *)arg1)->GetPath(); | |
44296 | wxPyEndAllowThreads(__tstate); | |
44297 | if (PyErr_Occurred()) SWIG_fail; | |
44298 | } | |
44299 | { | |
44300 | #if wxUSE_UNICODE | |
44301 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44302 | #else | |
44303 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44304 | #endif | |
44305 | } | |
44306 | return resultobj; | |
44307 | fail: | |
44308 | return NULL; | |
44309 | } | |
44310 | ||
44311 | ||
44312 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44313 | PyObject *resultobj = 0; | |
44314 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
44315 | wxString *arg2 = 0 ; | |
44316 | void *argp1 = 0 ; | |
44317 | int res1 = 0 ; | |
44318 | bool temp2 = false ; | |
44319 | PyObject * obj0 = 0 ; | |
44320 | PyObject * obj1 = 0 ; | |
44321 | char * kwnames[] = { | |
44322 | (char *) "self",(char *) "str", NULL | |
44323 | }; | |
44324 | ||
44325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44326 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
44327 | if (!SWIG_IsOK(res1)) { | |
44328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'"); | |
44329 | } | |
44330 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44331 | { | |
44332 | arg2 = wxString_in_helper(obj1); | |
44333 | if (arg2 == NULL) SWIG_fail; | |
44334 | temp2 = true; | |
44335 | } | |
44336 | { | |
44337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44338 | (arg1)->SetPath((wxString const &)*arg2); | |
44339 | wxPyEndAllowThreads(__tstate); | |
44340 | if (PyErr_Occurred()) SWIG_fail; | |
44341 | } | |
44342 | resultobj = SWIG_Py_Void(); | |
44343 | { | |
44344 | if (temp2) | |
44345 | delete arg2; | |
44346 | } | |
44347 | return resultobj; | |
44348 | fail: | |
44349 | { | |
44350 | if (temp2) | |
44351 | delete arg2; | |
44352 | } | |
44353 | return NULL; | |
44354 | } | |
44355 | ||
44356 | ||
b02396e8 RD |
44357 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
44358 | PyObject *resultobj = 0; | |
44359 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
44360 | wxString *arg2 = 0 ; | |
44361 | bool result; | |
44362 | void *argp1 = 0 ; | |
44363 | int res1 = 0 ; | |
44364 | bool temp2 = false ; | |
44365 | PyObject * obj0 = 0 ; | |
44366 | PyObject * obj1 = 0 ; | |
44367 | char * kwnames[] = { | |
44368 | (char *) "self",(char *) "path", NULL | |
44369 | }; | |
44370 | ||
44371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
44373 | if (!SWIG_IsOK(res1)) { | |
44374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'"); | |
44375 | } | |
44376 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44377 | { | |
44378 | arg2 = wxString_in_helper(obj1); | |
44379 | if (arg2 == NULL) SWIG_fail; | |
44380 | temp2 = true; | |
44381 | } | |
44382 | { | |
44383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44384 | result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2); | |
44385 | wxPyEndAllowThreads(__tstate); | |
44386 | if (PyErr_Occurred()) SWIG_fail; | |
44387 | } | |
44388 | { | |
44389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44390 | } | |
44391 | { | |
44392 | if (temp2) | |
44393 | delete arg2; | |
44394 | } | |
44395 | return resultobj; | |
44396 | fail: | |
44397 | { | |
44398 | if (temp2) | |
44399 | delete arg2; | |
44400 | } | |
44401 | return NULL; | |
44402 | } | |
44403 | ||
44404 | ||
44405 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44406 | PyObject *resultobj = 0; | |
44407 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
44408 | wxString result; | |
44409 | void *argp1 = 0 ; | |
44410 | int res1 = 0 ; | |
44411 | PyObject *swig_obj[1] ; | |
44412 | ||
44413 | if (!args) SWIG_fail; | |
44414 | swig_obj[0] = args; | |
44415 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
44416 | if (!SWIG_IsOK(res1)) { | |
44417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'"); | |
44418 | } | |
44419 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44420 | { | |
44421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44422 | result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue(); | |
44423 | wxPyEndAllowThreads(__tstate); | |
44424 | if (PyErr_Occurred()) SWIG_fail; | |
44425 | } | |
44426 | { | |
44427 | #if wxUSE_UNICODE | |
44428 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44429 | #else | |
44430 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44431 | #endif | |
44432 | } | |
44433 | return resultobj; | |
44434 | fail: | |
44435 | return NULL; | |
44436 | } | |
44437 | ||
44438 | ||
b850e7f3 RD |
44439 | SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
44440 | PyObject *obj; | |
44441 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
44442 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj)); | |
44443 | return SWIG_Py_Void(); | |
44444 | } | |
44445 | ||
44446 | SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44447 | return SWIG_Python_InitShadowInstance(args); | |
44448 | } | |
44449 | ||
44450 | SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44451 | PyObject *resultobj = 0; | |
44452 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44453 | int arg2 = (int) -1 ; | |
44454 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
44455 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
44456 | wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ; | |
44457 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
44458 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
44459 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
44460 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
44461 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
44462 | long arg7 = (long) wxDIRP_DEFAULT_STYLE ; | |
44463 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
44464 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
44465 | wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ; | |
44466 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
44467 | wxDirPickerCtrl *result = 0 ; | |
44468 | void *argp1 = 0 ; | |
44469 | int res1 = 0 ; | |
44470 | int val2 ; | |
44471 | int ecode2 = 0 ; | |
44472 | bool temp3 = false ; | |
44473 | bool temp4 = false ; | |
44474 | wxPoint temp5 ; | |
44475 | wxSize temp6 ; | |
44476 | long val7 ; | |
44477 | int ecode7 = 0 ; | |
44478 | void *argp8 = 0 ; | |
44479 | int res8 = 0 ; | |
44480 | bool temp9 = false ; | |
44481 | PyObject * obj0 = 0 ; | |
44482 | PyObject * obj1 = 0 ; | |
44483 | PyObject * obj2 = 0 ; | |
44484 | PyObject * obj3 = 0 ; | |
44485 | PyObject * obj4 = 0 ; | |
44486 | PyObject * obj5 = 0 ; | |
44487 | PyObject * obj6 = 0 ; | |
44488 | PyObject * obj7 = 0 ; | |
44489 | PyObject * obj8 = 0 ; | |
44490 | char * kwnames[] = { | |
44491 | (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
44492 | }; | |
44493 | ||
44494 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
44495 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
44496 | if (!SWIG_IsOK(res1)) { | |
44497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
44498 | } | |
44499 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
44500 | if (obj1) { | |
44501 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
44502 | if (!SWIG_IsOK(ecode2)) { | |
44503 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
44504 | } | |
44505 | arg2 = static_cast< int >(val2); | |
44506 | } | |
44507 | if (obj2) { | |
44508 | { | |
44509 | arg3 = wxString_in_helper(obj2); | |
44510 | if (arg3 == NULL) SWIG_fail; | |
44511 | temp3 = true; | |
44512 | } | |
44513 | } | |
44514 | if (obj3) { | |
44515 | { | |
44516 | arg4 = wxString_in_helper(obj3); | |
44517 | if (arg4 == NULL) SWIG_fail; | |
44518 | temp4 = true; | |
44519 | } | |
44520 | } | |
44521 | if (obj4) { | |
44522 | { | |
44523 | arg5 = &temp5; | |
44524 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
44525 | } | |
44526 | } | |
44527 | if (obj5) { | |
44528 | { | |
44529 | arg6 = &temp6; | |
44530 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
44531 | } | |
44532 | } | |
44533 | if (obj6) { | |
44534 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
44535 | if (!SWIG_IsOK(ecode7)) { | |
44536 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'"); | |
44537 | } | |
44538 | arg7 = static_cast< long >(val7); | |
44539 | } | |
44540 | if (obj7) { | |
44541 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
44542 | if (!SWIG_IsOK(res8)) { | |
44543 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
44544 | } | |
44545 | if (!argp8) { | |
44546 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
44547 | } | |
44548 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
44549 | } | |
44550 | if (obj8) { | |
44551 | { | |
44552 | arg9 = wxString_in_helper(obj8); | |
44553 | if (arg9 == NULL) SWIG_fail; | |
44554 | temp9 = true; | |
44555 | } | |
44556 | } | |
44557 | { | |
44558 | if (!wxPyCheckForApp()) SWIG_fail; | |
44559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44560 | result = (wxDirPickerCtrl *)new wxDirPickerCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
44561 | wxPyEndAllowThreads(__tstate); | |
44562 | if (PyErr_Occurred()) SWIG_fail; | |
44563 | } | |
44564 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 ); | |
44565 | { | |
44566 | if (temp3) | |
44567 | delete arg3; | |
44568 | } | |
44569 | { | |
44570 | if (temp4) | |
44571 | delete arg4; | |
44572 | } | |
44573 | { | |
44574 | if (temp9) | |
44575 | delete arg9; | |
44576 | } | |
44577 | return resultobj; | |
44578 | fail: | |
44579 | { | |
44580 | if (temp3) | |
44581 | delete arg3; | |
44582 | } | |
44583 | { | |
44584 | if (temp4) | |
44585 | delete arg4; | |
44586 | } | |
44587 | { | |
44588 | if (temp9) | |
44589 | delete arg9; | |
44590 | } | |
44591 | return NULL; | |
44592 | } | |
44593 | ||
44594 | ||
44595 | SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44596 | PyObject *resultobj = 0; | |
44597 | wxDirPickerCtrl *result = 0 ; | |
44598 | ||
44599 | if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail; | |
44600 | { | |
44601 | if (!wxPyCheckForApp()) SWIG_fail; | |
44602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44603 | result = (wxDirPickerCtrl *)new wxDirPickerCtrl(); | |
44604 | wxPyEndAllowThreads(__tstate); | |
44605 | if (PyErr_Occurred()) SWIG_fail; | |
44606 | } | |
44607 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 ); | |
44608 | return resultobj; | |
44609 | fail: | |
44610 | return NULL; | |
44611 | } | |
44612 | ||
44613 | ||
44614 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44615 | PyObject *resultobj = 0; | |
44616 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44617 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44618 | int arg3 = (int) -1 ; | |
44619 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
44620 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
44621 | wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ; | |
44622 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
44623 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
44624 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
44625 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
44626 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
44627 | long arg8 = (long) wxDIRP_DEFAULT_STYLE ; | |
44628 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
44629 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
44630 | wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ; | |
44631 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
44632 | bool result; | |
44633 | void *argp1 = 0 ; | |
44634 | int res1 = 0 ; | |
44635 | void *argp2 = 0 ; | |
44636 | int res2 = 0 ; | |
44637 | int val3 ; | |
44638 | int ecode3 = 0 ; | |
44639 | bool temp4 = false ; | |
44640 | bool temp5 = false ; | |
44641 | wxPoint temp6 ; | |
44642 | wxSize temp7 ; | |
44643 | long val8 ; | |
44644 | int ecode8 = 0 ; | |
44645 | void *argp9 = 0 ; | |
44646 | int res9 = 0 ; | |
44647 | bool temp10 = false ; | |
44648 | PyObject * obj0 = 0 ; | |
44649 | PyObject * obj1 = 0 ; | |
44650 | PyObject * obj2 = 0 ; | |
44651 | PyObject * obj3 = 0 ; | |
44652 | PyObject * obj4 = 0 ; | |
44653 | PyObject * obj5 = 0 ; | |
44654 | PyObject * obj6 = 0 ; | |
44655 | PyObject * obj7 = 0 ; | |
44656 | PyObject * obj8 = 0 ; | |
44657 | PyObject * obj9 = 0 ; | |
44658 | char * kwnames[] = { | |
44659 | (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
44660 | }; | |
44661 | ||
44662 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
44663 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44664 | if (!SWIG_IsOK(res1)) { | |
44665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'"); | |
44666 | } | |
44667 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44668 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
44669 | if (!SWIG_IsOK(res2)) { | |
44670 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
44671 | } | |
44672 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
44673 | if (obj2) { | |
44674 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
44675 | if (!SWIG_IsOK(ecode3)) { | |
44676 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
44677 | } | |
44678 | arg3 = static_cast< int >(val3); | |
44679 | } | |
44680 | if (obj3) { | |
44681 | { | |
44682 | arg4 = wxString_in_helper(obj3); | |
44683 | if (arg4 == NULL) SWIG_fail; | |
44684 | temp4 = true; | |
44685 | } | |
44686 | } | |
44687 | if (obj4) { | |
44688 | { | |
44689 | arg5 = wxString_in_helper(obj4); | |
44690 | if (arg5 == NULL) SWIG_fail; | |
44691 | temp5 = true; | |
44692 | } | |
44693 | } | |
44694 | if (obj5) { | |
44695 | { | |
44696 | arg6 = &temp6; | |
44697 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
44698 | } | |
44699 | } | |
44700 | if (obj6) { | |
44701 | { | |
44702 | arg7 = &temp7; | |
44703 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
44704 | } | |
44705 | } | |
44706 | if (obj7) { | |
44707 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
44708 | if (!SWIG_IsOK(ecode8)) { | |
44709 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'"); | |
44710 | } | |
44711 | arg8 = static_cast< long >(val8); | |
44712 | } | |
44713 | if (obj8) { | |
44714 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
44715 | if (!SWIG_IsOK(res9)) { | |
44716 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
44717 | } | |
44718 | if (!argp9) { | |
44719 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
44720 | } | |
44721 | arg9 = reinterpret_cast< wxValidator * >(argp9); | |
44722 | } | |
44723 | if (obj9) { | |
44724 | { | |
44725 | arg10 = wxString_in_helper(obj9); | |
44726 | if (arg10 == NULL) SWIG_fail; | |
44727 | temp10 = true; | |
44728 | } | |
44729 | } | |
44730 | { | |
44731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44732 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
44733 | wxPyEndAllowThreads(__tstate); | |
44734 | if (PyErr_Occurred()) SWIG_fail; | |
44735 | } | |
44736 | { | |
44737 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44738 | } | |
44739 | { | |
44740 | if (temp4) | |
44741 | delete arg4; | |
44742 | } | |
44743 | { | |
44744 | if (temp5) | |
44745 | delete arg5; | |
44746 | } | |
44747 | { | |
44748 | if (temp10) | |
44749 | delete arg10; | |
44750 | } | |
44751 | return resultobj; | |
44752 | fail: | |
44753 | { | |
44754 | if (temp4) | |
44755 | delete arg4; | |
44756 | } | |
44757 | { | |
44758 | if (temp5) | |
44759 | delete arg5; | |
44760 | } | |
44761 | { | |
44762 | if (temp10) | |
44763 | delete arg10; | |
44764 | } | |
44765 | return NULL; | |
44766 | } | |
44767 | ||
44768 | ||
44769 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44770 | PyObject *resultobj = 0; | |
44771 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44772 | wxString result; | |
44773 | void *argp1 = 0 ; | |
44774 | int res1 = 0 ; | |
44775 | PyObject *swig_obj[1] ; | |
44776 | ||
44777 | if (!args) SWIG_fail; | |
44778 | swig_obj[0] = args; | |
44779 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44780 | if (!SWIG_IsOK(res1)) { | |
44781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'"); | |
44782 | } | |
44783 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44784 | { | |
44785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44786 | result = ((wxDirPickerCtrl const *)arg1)->GetPath(); | |
44787 | wxPyEndAllowThreads(__tstate); | |
44788 | if (PyErr_Occurred()) SWIG_fail; | |
44789 | } | |
44790 | { | |
44791 | #if wxUSE_UNICODE | |
44792 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44793 | #else | |
44794 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44795 | #endif | |
44796 | } | |
44797 | return resultobj; | |
44798 | fail: | |
44799 | return NULL; | |
44800 | } | |
44801 | ||
44802 | ||
44803 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44804 | PyObject *resultobj = 0; | |
44805 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44806 | wxString *arg2 = 0 ; | |
44807 | void *argp1 = 0 ; | |
44808 | int res1 = 0 ; | |
44809 | bool temp2 = false ; | |
44810 | PyObject * obj0 = 0 ; | |
44811 | PyObject * obj1 = 0 ; | |
44812 | char * kwnames[] = { | |
44813 | (char *) "self",(char *) "str", NULL | |
44814 | }; | |
44815 | ||
44816 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44817 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44818 | if (!SWIG_IsOK(res1)) { | |
44819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'"); | |
44820 | } | |
44821 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44822 | { | |
44823 | arg2 = wxString_in_helper(obj1); | |
44824 | if (arg2 == NULL) SWIG_fail; | |
44825 | temp2 = true; | |
44826 | } | |
44827 | { | |
44828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44829 | (arg1)->SetPath((wxString const &)*arg2); | |
44830 | wxPyEndAllowThreads(__tstate); | |
44831 | if (PyErr_Occurred()) SWIG_fail; | |
44832 | } | |
44833 | resultobj = SWIG_Py_Void(); | |
44834 | { | |
44835 | if (temp2) | |
44836 | delete arg2; | |
44837 | } | |
44838 | return resultobj; | |
44839 | fail: | |
44840 | { | |
44841 | if (temp2) | |
44842 | delete arg2; | |
44843 | } | |
44844 | return NULL; | |
44845 | } | |
44846 | ||
44847 | ||
b02396e8 RD |
44848 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
44849 | PyObject *resultobj = 0; | |
44850 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44851 | wxString *arg2 = 0 ; | |
44852 | bool result; | |
44853 | void *argp1 = 0 ; | |
44854 | int res1 = 0 ; | |
44855 | bool temp2 = false ; | |
44856 | PyObject * obj0 = 0 ; | |
44857 | PyObject * obj1 = 0 ; | |
44858 | char * kwnames[] = { | |
44859 | (char *) "self",(char *) "path", NULL | |
44860 | }; | |
44861 | ||
44862 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44863 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44864 | if (!SWIG_IsOK(res1)) { | |
44865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'"); | |
44866 | } | |
44867 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44868 | { | |
44869 | arg2 = wxString_in_helper(obj1); | |
44870 | if (arg2 == NULL) SWIG_fail; | |
44871 | temp2 = true; | |
44872 | } | |
44873 | { | |
44874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44875 | result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2); | |
44876 | wxPyEndAllowThreads(__tstate); | |
44877 | if (PyErr_Occurred()) SWIG_fail; | |
44878 | } | |
44879 | { | |
44880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44881 | } | |
44882 | { | |
44883 | if (temp2) | |
44884 | delete arg2; | |
44885 | } | |
44886 | return resultobj; | |
44887 | fail: | |
44888 | { | |
44889 | if (temp2) | |
44890 | delete arg2; | |
44891 | } | |
44892 | return NULL; | |
44893 | } | |
44894 | ||
44895 | ||
44896 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44897 | PyObject *resultobj = 0; | |
44898 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44899 | wxString result; | |
44900 | void *argp1 = 0 ; | |
44901 | int res1 = 0 ; | |
44902 | PyObject *swig_obj[1] ; | |
44903 | ||
44904 | if (!args) SWIG_fail; | |
44905 | swig_obj[0] = args; | |
44906 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44907 | if (!SWIG_IsOK(res1)) { | |
44908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'"); | |
44909 | } | |
44910 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44911 | { | |
44912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44913 | result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue(); | |
44914 | wxPyEndAllowThreads(__tstate); | |
44915 | if (PyErr_Occurred()) SWIG_fail; | |
44916 | } | |
44917 | { | |
44918 | #if wxUSE_UNICODE | |
44919 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44920 | #else | |
44921 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44922 | #endif | |
44923 | } | |
44924 | return resultobj; | |
44925 | fail: | |
44926 | return NULL; | |
44927 | } | |
44928 | ||
44929 | ||
b850e7f3 RD |
44930 | SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
44931 | PyObject *obj; | |
44932 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
44933 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj)); | |
44934 | return SWIG_Py_Void(); | |
44935 | } | |
44936 | ||
44937 | SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44938 | return SWIG_Python_InitShadowInstance(args); | |
44939 | } | |
44940 | ||
44941 | SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44942 | PyObject *resultobj = 0; | |
44943 | wxEventType arg1 ; | |
44944 | wxObject *arg2 = (wxObject *) 0 ; | |
44945 | int arg3 ; | |
44946 | wxString *arg4 = 0 ; | |
44947 | wxFileDirPickerEvent *result = 0 ; | |
44948 | int val1 ; | |
44949 | int ecode1 = 0 ; | |
44950 | void *argp2 = 0 ; | |
44951 | int res2 = 0 ; | |
44952 | int val3 ; | |
44953 | int ecode3 = 0 ; | |
44954 | bool temp4 = false ; | |
44955 | PyObject * obj0 = 0 ; | |
44956 | PyObject * obj1 = 0 ; | |
44957 | PyObject * obj2 = 0 ; | |
44958 | PyObject * obj3 = 0 ; | |
44959 | char * kwnames[] = { | |
44960 | (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL | |
44961 | }; | |
44962 | ||
44963 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
44964 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
44965 | if (!SWIG_IsOK(ecode1)) { | |
44966 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
44967 | } | |
44968 | arg1 = static_cast< wxEventType >(val1); | |
44969 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 ); | |
44970 | if (!SWIG_IsOK(res2)) { | |
44971 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'"); | |
44972 | } | |
44973 | arg2 = reinterpret_cast< wxObject * >(argp2); | |
44974 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
44975 | if (!SWIG_IsOK(ecode3)) { | |
44976 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'"); | |
44977 | } | |
44978 | arg3 = static_cast< int >(val3); | |
44979 | { | |
44980 | arg4 = wxString_in_helper(obj3); | |
44981 | if (arg4 == NULL) SWIG_fail; | |
44982 | temp4 = true; | |
44983 | } | |
44984 | { | |
44985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44986 | result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4); | |
44987 | wxPyEndAllowThreads(__tstate); | |
44988 | if (PyErr_Occurred()) SWIG_fail; | |
44989 | } | |
44990 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 ); | |
44991 | { | |
44992 | if (temp4) | |
44993 | delete arg4; | |
44994 | } | |
44995 | return resultobj; | |
44996 | fail: | |
44997 | { | |
44998 | if (temp4) | |
44999 | delete arg4; | |
45000 | } | |
45001 | return NULL; | |
45002 | } | |
45003 | ||
45004 | ||
45005 | SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45006 | PyObject *resultobj = 0; | |
45007 | wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ; | |
45008 | wxString result; | |
45009 | void *argp1 = 0 ; | |
45010 | int res1 = 0 ; | |
45011 | PyObject *swig_obj[1] ; | |
45012 | ||
45013 | if (!args) SWIG_fail; | |
45014 | swig_obj[0] = args; | |
45015 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 ); | |
45016 | if (!SWIG_IsOK(res1)) { | |
45017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'"); | |
45018 | } | |
45019 | arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1); | |
45020 | { | |
45021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45022 | result = ((wxFileDirPickerEvent const *)arg1)->GetPath(); | |
45023 | wxPyEndAllowThreads(__tstate); | |
45024 | if (PyErr_Occurred()) SWIG_fail; | |
45025 | } | |
45026 | { | |
45027 | #if wxUSE_UNICODE | |
45028 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
45029 | #else | |
45030 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
45031 | #endif | |
45032 | } | |
45033 | return resultobj; | |
45034 | fail: | |
45035 | return NULL; | |
45036 | } | |
45037 | ||
45038 | ||
45039 | SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45040 | PyObject *resultobj = 0; | |
45041 | wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ; | |
45042 | wxString *arg2 = 0 ; | |
45043 | void *argp1 = 0 ; | |
45044 | int res1 = 0 ; | |
45045 | bool temp2 = false ; | |
45046 | PyObject * obj0 = 0 ; | |
45047 | PyObject * obj1 = 0 ; | |
45048 | char * kwnames[] = { | |
45049 | (char *) "self",(char *) "p", NULL | |
45050 | }; | |
45051 | ||
45052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
45053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 ); | |
45054 | if (!SWIG_IsOK(res1)) { | |
45055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'"); | |
45056 | } | |
45057 | arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1); | |
45058 | { | |
45059 | arg2 = wxString_in_helper(obj1); | |
45060 | if (arg2 == NULL) SWIG_fail; | |
45061 | temp2 = true; | |
45062 | } | |
45063 | { | |
45064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45065 | (arg1)->SetPath((wxString const &)*arg2); | |
45066 | wxPyEndAllowThreads(__tstate); | |
45067 | if (PyErr_Occurred()) SWIG_fail; | |
45068 | } | |
45069 | resultobj = SWIG_Py_Void(); | |
45070 | { | |
45071 | if (temp2) | |
45072 | delete arg2; | |
45073 | } | |
45074 | return resultobj; | |
45075 | fail: | |
45076 | { | |
45077 | if (temp2) | |
45078 | delete arg2; | |
45079 | } | |
45080 | return NULL; | |
45081 | } | |
45082 | ||
45083 | ||
45084 | SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45085 | PyObject *obj; | |
45086 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
45087 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj)); | |
45088 | return SWIG_Py_Void(); | |
45089 | } | |
45090 | ||
45091 | SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45092 | return SWIG_Python_InitShadowInstance(args); | |
45093 | } | |
45094 | ||
45095 | SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) { | |
45096 | SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only."); | |
45097 | return 1; | |
45098 | } | |
45099 | ||
45100 | ||
45101 | SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) { | |
45102 | PyObject *pyobj = 0; | |
45103 | ||
45104 | { | |
45105 | #if wxUSE_UNICODE | |
45106 | pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len()); | |
45107 | #else | |
45108 | pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len()); | |
45109 | #endif | |
45110 | } | |
45111 | return pyobj; | |
45112 | } | |
45113 | ||
45114 | ||
45115 | SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45116 | PyObject *resultobj = 0; | |
45117 | wxWindow *arg1 = (wxWindow *) 0 ; | |
45118 | int arg2 = (int) -1 ; | |
f89238b9 | 45119 | wxFont const &arg3_defvalue = wxNullFont ; |
b850e7f3 RD |
45120 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; |
45121 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
45122 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
45123 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
45124 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
45125 | long arg6 = (long) wxFNTP_DEFAULT_STYLE ; | |
45126 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
45127 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
45128 | wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ; | |
45129 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
45130 | wxFontPickerCtrl *result = 0 ; | |
45131 | void *argp1 = 0 ; | |
45132 | int res1 = 0 ; | |
45133 | int val2 ; | |
45134 | int ecode2 = 0 ; | |
45135 | void *argp3 = 0 ; | |
45136 | int res3 = 0 ; | |
45137 | wxPoint temp4 ; | |
45138 | wxSize temp5 ; | |
45139 | long val6 ; | |
45140 | int ecode6 = 0 ; | |
45141 | void *argp7 = 0 ; | |
45142 | int res7 = 0 ; | |
45143 | bool temp8 = false ; | |
45144 | PyObject * obj0 = 0 ; | |
45145 | PyObject * obj1 = 0 ; | |
45146 | PyObject * obj2 = 0 ; | |
45147 | PyObject * obj3 = 0 ; | |
45148 | PyObject * obj4 = 0 ; | |
45149 | PyObject * obj5 = 0 ; | |
45150 | PyObject * obj6 = 0 ; | |
45151 | PyObject * obj7 = 0 ; | |
45152 | char * kwnames[] = { | |
45153 | (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
45154 | }; | |
45155 | ||
45156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
45157 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
45158 | if (!SWIG_IsOK(res1)) { | |
45159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
45160 | } | |
45161 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
45162 | if (obj1) { | |
45163 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
45164 | if (!SWIG_IsOK(ecode2)) { | |
45165 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
45166 | } | |
45167 | arg2 = static_cast< int >(val2); | |
45168 | } | |
45169 | if (obj2) { | |
45170 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
45171 | if (!SWIG_IsOK(res3)) { | |
45172 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
45173 | } | |
45174 | if (!argp3) { | |
45175 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
45176 | } | |
45177 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
45178 | } | |
45179 | if (obj3) { | |
45180 | { | |
45181 | arg4 = &temp4; | |
45182 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
45183 | } | |
45184 | } | |
45185 | if (obj4) { | |
45186 | { | |
45187 | arg5 = &temp5; | |
45188 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
45189 | } | |
45190 | } | |
45191 | if (obj5) { | |
45192 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
45193 | if (!SWIG_IsOK(ecode6)) { | |
45194 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'"); | |
45195 | } | |
45196 | arg6 = static_cast< long >(val6); | |
45197 | } | |
45198 | if (obj6) { | |
45199 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
45200 | if (!SWIG_IsOK(res7)) { | |
45201 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
45202 | } | |
45203 | if (!argp7) { | |
45204 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
45205 | } | |
45206 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
45207 | } | |
45208 | if (obj7) { | |
45209 | { | |
45210 | arg8 = wxString_in_helper(obj7); | |
45211 | if (arg8 == NULL) SWIG_fail; | |
45212 | temp8 = true; | |
45213 | } | |
45214 | } | |
45215 | { | |
45216 | if (!wxPyCheckForApp()) SWIG_fail; | |
45217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45218 | result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
45219 | wxPyEndAllowThreads(__tstate); | |
45220 | if (PyErr_Occurred()) SWIG_fail; | |
45221 | } | |
45222 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 ); | |
45223 | { | |
45224 | if (temp8) | |
45225 | delete arg8; | |
45226 | } | |
45227 | return resultobj; | |
45228 | fail: | |
45229 | { | |
45230 | if (temp8) | |
45231 | delete arg8; | |
45232 | } | |
45233 | return NULL; | |
45234 | } | |
45235 | ||
45236 | ||
45237 | SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45238 | PyObject *resultobj = 0; | |
45239 | wxFontPickerCtrl *result = 0 ; | |
45240 | ||
45241 | if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail; | |
45242 | { | |
45243 | if (!wxPyCheckForApp()) SWIG_fail; | |
45244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45245 | result = (wxFontPickerCtrl *)new wxFontPickerCtrl(); | |
45246 | wxPyEndAllowThreads(__tstate); | |
45247 | if (PyErr_Occurred()) SWIG_fail; | |
45248 | } | |
45249 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 ); | |
45250 | return resultobj; | |
45251 | fail: | |
45252 | return NULL; | |
45253 | } | |
45254 | ||
45255 | ||
45256 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45257 | PyObject *resultobj = 0; | |
45258 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45259 | wxWindow *arg2 = (wxWindow *) 0 ; | |
45260 | int arg3 = (int) -1 ; | |
f89238b9 | 45261 | wxFont const &arg4_defvalue = wxNullFont ; |
b850e7f3 RD |
45262 | wxFont *arg4 = (wxFont *) &arg4_defvalue ; |
45263 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
45264 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
45265 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
45266 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
45267 | long arg7 = (long) wxFNTP_DEFAULT_STYLE ; | |
45268 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
45269 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
45270 | wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ; | |
45271 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
45272 | bool result; | |
45273 | void *argp1 = 0 ; | |
45274 | int res1 = 0 ; | |
45275 | void *argp2 = 0 ; | |
45276 | int res2 = 0 ; | |
45277 | int val3 ; | |
45278 | int ecode3 = 0 ; | |
45279 | void *argp4 = 0 ; | |
45280 | int res4 = 0 ; | |
45281 | wxPoint temp5 ; | |
45282 | wxSize temp6 ; | |
45283 | long val7 ; | |
45284 | int ecode7 = 0 ; | |
45285 | void *argp8 = 0 ; | |
45286 | int res8 = 0 ; | |
45287 | bool temp9 = false ; | |
45288 | PyObject * obj0 = 0 ; | |
45289 | PyObject * obj1 = 0 ; | |
45290 | PyObject * obj2 = 0 ; | |
45291 | PyObject * obj3 = 0 ; | |
45292 | PyObject * obj4 = 0 ; | |
45293 | PyObject * obj5 = 0 ; | |
45294 | PyObject * obj6 = 0 ; | |
45295 | PyObject * obj7 = 0 ; | |
45296 | PyObject * obj8 = 0 ; | |
45297 | char * kwnames[] = { | |
45298 | (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
45299 | }; | |
45300 | ||
45301 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
45302 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45303 | if (!SWIG_IsOK(res1)) { | |
45304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'"); | |
45305 | } | |
45306 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45307 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
45308 | if (!SWIG_IsOK(res2)) { | |
45309 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
45310 | } | |
45311 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
45312 | if (obj2) { | |
45313 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
45314 | if (!SWIG_IsOK(ecode3)) { | |
45315 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
45316 | } | |
45317 | arg3 = static_cast< int >(val3); | |
45318 | } | |
45319 | if (obj3) { | |
45320 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0); | |
45321 | if (!SWIG_IsOK(res4)) { | |
45322 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'"); | |
45323 | } | |
45324 | if (!argp4) { | |
45325 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'"); | |
45326 | } | |
45327 | arg4 = reinterpret_cast< wxFont * >(argp4); | |
45328 | } | |
45329 | if (obj4) { | |
45330 | { | |
45331 | arg5 = &temp5; | |
45332 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
45333 | } | |
45334 | } | |
45335 | if (obj5) { | |
45336 | { | |
45337 | arg6 = &temp6; | |
45338 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
45339 | } | |
45340 | } | |
45341 | if (obj6) { | |
45342 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
45343 | if (!SWIG_IsOK(ecode7)) { | |
45344 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
45345 | } | |
45346 | arg7 = static_cast< long >(val7); | |
45347 | } | |
45348 | if (obj7) { | |
45349 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
45350 | if (!SWIG_IsOK(res8)) { | |
45351 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
45352 | } | |
45353 | if (!argp8) { | |
45354 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
45355 | } | |
45356 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
45357 | } | |
45358 | if (obj8) { | |
45359 | { | |
45360 | arg9 = wxString_in_helper(obj8); | |
45361 | if (arg9 == NULL) SWIG_fail; | |
45362 | temp9 = true; | |
45363 | } | |
45364 | } | |
45365 | { | |
45366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45367 | result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
45368 | wxPyEndAllowThreads(__tstate); | |
45369 | if (PyErr_Occurred()) SWIG_fail; | |
45370 | } | |
45371 | { | |
45372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
45373 | } | |
45374 | { | |
45375 | if (temp9) | |
45376 | delete arg9; | |
45377 | } | |
45378 | return resultobj; | |
45379 | fail: | |
45380 | { | |
45381 | if (temp9) | |
45382 | delete arg9; | |
45383 | } | |
45384 | return NULL; | |
45385 | } | |
45386 | ||
45387 | ||
45388 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45389 | PyObject *resultobj = 0; | |
45390 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45391 | wxFont result; | |
45392 | void *argp1 = 0 ; | |
45393 | int res1 = 0 ; | |
45394 | PyObject *swig_obj[1] ; | |
45395 | ||
45396 | if (!args) SWIG_fail; | |
45397 | swig_obj[0] = args; | |
45398 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45399 | if (!SWIG_IsOK(res1)) { | |
45400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'"); | |
45401 | } | |
45402 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45403 | { | |
45404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45405 | result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont(); | |
45406 | wxPyEndAllowThreads(__tstate); | |
45407 | if (PyErr_Occurred()) SWIG_fail; | |
45408 | } | |
45409 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
45410 | return resultobj; | |
45411 | fail: | |
45412 | return NULL; | |
45413 | } | |
45414 | ||
45415 | ||
45416 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45417 | PyObject *resultobj = 0; | |
45418 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45419 | wxFont *arg2 = 0 ; | |
45420 | void *argp1 = 0 ; | |
45421 | int res1 = 0 ; | |
45422 | void *argp2 = 0 ; | |
45423 | int res2 = 0 ; | |
45424 | PyObject * obj0 = 0 ; | |
45425 | PyObject * obj1 = 0 ; | |
45426 | char * kwnames[] = { | |
45427 | (char *) "self",(char *) "f", NULL | |
45428 | }; | |
45429 | ||
45430 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
45431 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45432 | if (!SWIG_IsOK(res1)) { | |
45433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'"); | |
45434 | } | |
45435 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45436 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
45437 | if (!SWIG_IsOK(res2)) { | |
45438 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
45439 | } | |
45440 | if (!argp2) { | |
45441 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
45442 | } | |
45443 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
45444 | { | |
45445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45446 | (arg1)->SetSelectedFont((wxFont const &)*arg2); | |
45447 | wxPyEndAllowThreads(__tstate); | |
45448 | if (PyErr_Occurred()) SWIG_fail; | |
45449 | } | |
45450 | resultobj = SWIG_Py_Void(); | |
45451 | return resultobj; | |
45452 | fail: | |
45453 | return NULL; | |
45454 | } | |
45455 | ||
45456 | ||
45457 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45458 | PyObject *resultobj = 0; | |
45459 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45460 | unsigned int arg2 ; | |
45461 | void *argp1 = 0 ; | |
45462 | int res1 = 0 ; | |
45463 | unsigned int val2 ; | |
45464 | int ecode2 = 0 ; | |
45465 | PyObject * obj0 = 0 ; | |
45466 | PyObject * obj1 = 0 ; | |
45467 | char * kwnames[] = { | |
45468 | (char *) "self",(char *) "max", NULL | |
45469 | }; | |
45470 | ||
45471 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
45472 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45473 | if (!SWIG_IsOK(res1)) { | |
45474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'"); | |
45475 | } | |
45476 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45477 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
45478 | if (!SWIG_IsOK(ecode2)) { | |
45479 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'"); | |
45480 | } | |
45481 | arg2 = static_cast< unsigned int >(val2); | |
45482 | { | |
45483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45484 | (arg1)->SetMaxPointSize(arg2); | |
45485 | wxPyEndAllowThreads(__tstate); | |
45486 | if (PyErr_Occurred()) SWIG_fail; | |
45487 | } | |
45488 | resultobj = SWIG_Py_Void(); | |
45489 | return resultobj; | |
45490 | fail: | |
45491 | return NULL; | |
45492 | } | |
45493 | ||
45494 | ||
45495 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45496 | PyObject *resultobj = 0; | |
45497 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45498 | unsigned int result; | |
45499 | void *argp1 = 0 ; | |
45500 | int res1 = 0 ; | |
45501 | PyObject *swig_obj[1] ; | |
45502 | ||
45503 | if (!args) SWIG_fail; | |
45504 | swig_obj[0] = args; | |
45505 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45506 | if (!SWIG_IsOK(res1)) { | |
45507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'"); | |
45508 | } | |
45509 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45510 | { | |
45511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45512 | result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize(); | |
45513 | wxPyEndAllowThreads(__tstate); | |
45514 | if (PyErr_Occurred()) SWIG_fail; | |
45515 | } | |
45516 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); | |
45517 | return resultobj; | |
45518 | fail: | |
45519 | return NULL; | |
45520 | } | |
45521 | ||
45522 | ||
45523 | SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45524 | PyObject *obj; | |
45525 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
45526 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj)); | |
45527 | return SWIG_Py_Void(); | |
45528 | } | |
45529 | ||
45530 | SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45531 | return SWIG_Python_InitShadowInstance(args); | |
45532 | } | |
45533 | ||
45534 | SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45535 | PyObject *resultobj = 0; | |
45536 | wxObject *arg1 = (wxObject *) 0 ; | |
45537 | int arg2 ; | |
45538 | wxFont *arg3 = 0 ; | |
45539 | wxFontPickerEvent *result = 0 ; | |
45540 | void *argp1 = 0 ; | |
45541 | int res1 = 0 ; | |
45542 | int val2 ; | |
45543 | int ecode2 = 0 ; | |
45544 | void *argp3 = 0 ; | |
45545 | int res3 = 0 ; | |
45546 | PyObject * obj0 = 0 ; | |
45547 | PyObject * obj1 = 0 ; | |
45548 | PyObject * obj2 = 0 ; | |
45549 | char * kwnames[] = { | |
45550 | (char *) "generator",(char *) "id",(char *) "f", NULL | |
45551 | }; | |
45552 | ||
45553 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
45554 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 ); | |
45555 | if (!SWIG_IsOK(res1)) { | |
45556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'"); | |
45557 | } | |
45558 | arg1 = reinterpret_cast< wxObject * >(argp1); | |
45559 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
45560 | if (!SWIG_IsOK(ecode2)) { | |
45561 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'"); | |
45562 | } | |
45563 | arg2 = static_cast< int >(val2); | |
45564 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
45565 | if (!SWIG_IsOK(res3)) { | |
45566 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
45567 | } | |
45568 | if (!argp3) { | |
45569 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
45570 | } | |
45571 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
45572 | { | |
45573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45574 | result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3); | |
45575 | wxPyEndAllowThreads(__tstate); | |
45576 | if (PyErr_Occurred()) SWIG_fail; | |
45577 | } | |
45578 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 ); | |
45579 | return resultobj; | |
45580 | fail: | |
45581 | return NULL; | |
45582 | } | |
45583 | ||
45584 | ||
45585 | SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45586 | PyObject *resultobj = 0; | |
45587 | wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ; | |
45588 | wxFont result; | |
45589 | void *argp1 = 0 ; | |
45590 | int res1 = 0 ; | |
45591 | PyObject *swig_obj[1] ; | |
45592 | ||
45593 | if (!args) SWIG_fail; | |
45594 | swig_obj[0] = args; | |
45595 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 ); | |
45596 | if (!SWIG_IsOK(res1)) { | |
45597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'"); | |
45598 | } | |
45599 | arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1); | |
45600 | { | |
45601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45602 | result = ((wxFontPickerEvent const *)arg1)->GetFont(); | |
45603 | wxPyEndAllowThreads(__tstate); | |
45604 | if (PyErr_Occurred()) SWIG_fail; | |
45605 | } | |
45606 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
45607 | return resultobj; | |
45608 | fail: | |
45609 | return NULL; | |
45610 | } | |
45611 | ||
45612 | ||
45613 | SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45614 | PyObject *resultobj = 0; | |
45615 | wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ; | |
45616 | wxFont *arg2 = 0 ; | |
45617 | void *argp1 = 0 ; | |
45618 | int res1 = 0 ; | |
45619 | void *argp2 = 0 ; | |
45620 | int res2 = 0 ; | |
45621 | PyObject * obj0 = 0 ; | |
45622 | PyObject * obj1 = 0 ; | |
45623 | char * kwnames[] = { | |
45624 | (char *) "self",(char *) "c", NULL | |
45625 | }; | |
45626 | ||
45627 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
45628 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 ); | |
45629 | if (!SWIG_IsOK(res1)) { | |
45630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'"); | |
45631 | } | |
45632 | arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1); | |
45633 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
45634 | if (!SWIG_IsOK(res2)) { | |
45635 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
45636 | } | |
45637 | if (!argp2) { | |
45638 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
45639 | } | |
45640 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
45641 | { | |
45642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45643 | (arg1)->SetFont((wxFont const &)*arg2); | |
45644 | wxPyEndAllowThreads(__tstate); | |
45645 | if (PyErr_Occurred()) SWIG_fail; | |
45646 | } | |
45647 | resultobj = SWIG_Py_Void(); | |
45648 | return resultobj; | |
45649 | fail: | |
45650 | return NULL; | |
45651 | } | |
45652 | ||
45653 | ||
45654 | SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45655 | PyObject *obj; | |
45656 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
45657 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj)); | |
45658 | return SWIG_Py_Void(); | |
45659 | } | |
45660 | ||
45661 | SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45662 | return SWIG_Python_InitShadowInstance(args); | |
45663 | } | |
45664 | ||
5172800e RD |
45665 | SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) { |
45666 | SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only."); | |
45667 | return 1; | |
45668 | } | |
45669 | ||
45670 | ||
45671 | SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) { | |
45672 | PyObject *pyobj = 0; | |
45673 | ||
45674 | { | |
45675 | #if wxUSE_UNICODE | |
45676 | pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len()); | |
45677 | #else | |
45678 | pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len()); | |
45679 | #endif | |
45680 | } | |
45681 | return pyobj; | |
45682 | } | |
45683 | ||
45684 | ||
45685 | SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45686 | PyObject *resultobj = 0; | |
45687 | wxWindow *arg1 = (wxWindow *) 0 ; | |
45688 | int arg2 = (int) -1 ; | |
45689 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
45690 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
45691 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
45692 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
45693 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
45694 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
45695 | long arg6 = (long) wxCP_DEFAULT_STYLE ; | |
45696 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
45697 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
45698 | wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ; | |
45699 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
45700 | wxCollapsiblePane *result = 0 ; | |
45701 | void *argp1 = 0 ; | |
45702 | int res1 = 0 ; | |
45703 | int val2 ; | |
45704 | int ecode2 = 0 ; | |
45705 | bool temp3 = false ; | |
45706 | wxPoint temp4 ; | |
45707 | wxSize temp5 ; | |
45708 | long val6 ; | |
45709 | int ecode6 = 0 ; | |
45710 | void *argp7 = 0 ; | |
45711 | int res7 = 0 ; | |
45712 | bool temp8 = false ; | |
45713 | PyObject * obj0 = 0 ; | |
45714 | PyObject * obj1 = 0 ; | |
45715 | PyObject * obj2 = 0 ; | |
45716 | PyObject * obj3 = 0 ; | |
45717 | PyObject * obj4 = 0 ; | |
45718 | PyObject * obj5 = 0 ; | |
45719 | PyObject * obj6 = 0 ; | |
45720 | PyObject * obj7 = 0 ; | |
45721 | char * kwnames[] = { | |
45722 | (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL | |
45723 | }; | |
45724 | ||
45725 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
45726 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
45727 | if (!SWIG_IsOK(res1)) { | |
45728 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
45729 | } | |
45730 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
45731 | if (obj1) { | |
45732 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
45733 | if (!SWIG_IsOK(ecode2)) { | |
45734 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'"); | |
45735 | } | |
45736 | arg2 = static_cast< int >(val2); | |
45737 | } | |
45738 | if (obj2) { | |
45739 | { | |
45740 | arg3 = wxString_in_helper(obj2); | |
45741 | if (arg3 == NULL) SWIG_fail; | |
45742 | temp3 = true; | |
45743 | } | |
45744 | } | |
45745 | if (obj3) { | |
45746 | { | |
45747 | arg4 = &temp4; | |
45748 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
45749 | } | |
45750 | } | |
45751 | if (obj4) { | |
45752 | { | |
45753 | arg5 = &temp5; | |
45754 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
45755 | } | |
45756 | } | |
45757 | if (obj5) { | |
45758 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
45759 | if (!SWIG_IsOK(ecode6)) { | |
45760 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'"); | |
45761 | } | |
45762 | arg6 = static_cast< long >(val6); | |
45763 | } | |
45764 | if (obj6) { | |
45765 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
45766 | if (!SWIG_IsOK(res7)) { | |
45767 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
45768 | } | |
45769 | if (!argp7) { | |
45770 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
45771 | } | |
45772 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
45773 | } | |
45774 | if (obj7) { | |
45775 | { | |
45776 | arg8 = wxString_in_helper(obj7); | |
45777 | if (arg8 == NULL) SWIG_fail; | |
45778 | temp8 = true; | |
45779 | } | |
45780 | } | |
45781 | { | |
45782 | if (!wxPyCheckForApp()) SWIG_fail; | |
45783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45784 | result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
45785 | wxPyEndAllowThreads(__tstate); | |
45786 | if (PyErr_Occurred()) SWIG_fail; | |
45787 | } | |
45788 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 ); | |
45789 | { | |
45790 | if (temp3) | |
45791 | delete arg3; | |
45792 | } | |
45793 | { | |
45794 | if (temp8) | |
45795 | delete arg8; | |
45796 | } | |
45797 | return resultobj; | |
45798 | fail: | |
45799 | { | |
45800 | if (temp3) | |
45801 | delete arg3; | |
45802 | } | |
45803 | { | |
45804 | if (temp8) | |
45805 | delete arg8; | |
45806 | } | |
45807 | return NULL; | |
45808 | } | |
45809 | ||
45810 | ||
45811 | SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45812 | PyObject *resultobj = 0; | |
45813 | wxCollapsiblePane *result = 0 ; | |
45814 | ||
45815 | if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail; | |
45816 | { | |
45817 | if (!wxPyCheckForApp()) SWIG_fail; | |
45818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45819 | result = (wxCollapsiblePane *)new wxCollapsiblePane(); | |
45820 | wxPyEndAllowThreads(__tstate); | |
45821 | if (PyErr_Occurred()) SWIG_fail; | |
45822 | } | |
45823 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 ); | |
45824 | return resultobj; | |
45825 | fail: | |
45826 | return NULL; | |
45827 | } | |
45828 | ||
45829 | ||
45830 | SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45831 | PyObject *resultobj = 0; | |
45832 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
45833 | wxWindow *arg2 = (wxWindow *) 0 ; | |
45834 | int arg3 = (int) -1 ; | |
45835 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
45836 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
45837 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
45838 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
45839 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
45840 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
45841 | long arg7 = (long) wxCP_DEFAULT_STYLE ; | |
45842 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
45843 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
45844 | wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ; | |
45845 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
45846 | bool result; | |
45847 | void *argp1 = 0 ; | |
45848 | int res1 = 0 ; | |
45849 | void *argp2 = 0 ; | |
45850 | int res2 = 0 ; | |
45851 | int val3 ; | |
45852 | int ecode3 = 0 ; | |
45853 | bool temp4 = false ; | |
45854 | wxPoint temp5 ; | |
45855 | wxSize temp6 ; | |
45856 | long val7 ; | |
45857 | int ecode7 = 0 ; | |
45858 | void *argp8 = 0 ; | |
45859 | int res8 = 0 ; | |
45860 | bool temp9 = false ; | |
45861 | PyObject * obj0 = 0 ; | |
45862 | PyObject * obj1 = 0 ; | |
45863 | PyObject * obj2 = 0 ; | |
45864 | PyObject * obj3 = 0 ; | |
45865 | PyObject * obj4 = 0 ; | |
45866 | PyObject * obj5 = 0 ; | |
45867 | PyObject * obj6 = 0 ; | |
45868 | PyObject * obj7 = 0 ; | |
45869 | PyObject * obj8 = 0 ; | |
45870 | char * kwnames[] = { | |
45871 | (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL | |
45872 | }; | |
45873 | ||
45874 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
45875 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
45876 | if (!SWIG_IsOK(res1)) { | |
45877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'"); | |
45878 | } | |
45879 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
45880 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
45881 | if (!SWIG_IsOK(res2)) { | |
45882 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
45883 | } | |
45884 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
45885 | if (obj2) { | |
45886 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
45887 | if (!SWIG_IsOK(ecode3)) { | |
45888 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'"); | |
45889 | } | |
45890 | arg3 = static_cast< int >(val3); | |
45891 | } | |
45892 | if (obj3) { | |
45893 | { | |
45894 | arg4 = wxString_in_helper(obj3); | |
45895 | if (arg4 == NULL) SWIG_fail; | |
45896 | temp4 = true; | |
45897 | } | |
45898 | } | |
45899 | if (obj4) { | |
45900 | { | |
45901 | arg5 = &temp5; | |
45902 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
45903 | } | |
45904 | } | |
45905 | if (obj5) { | |
45906 | { | |
45907 | arg6 = &temp6; | |
45908 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
45909 | } | |
45910 | } | |
45911 | if (obj6) { | |
45912 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
45913 | if (!SWIG_IsOK(ecode7)) { | |
45914 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'"); | |
45915 | } | |
45916 | arg7 = static_cast< long >(val7); | |
45917 | } | |
45918 | if (obj7) { | |
45919 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
45920 | if (!SWIG_IsOK(res8)) { | |
45921 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
45922 | } | |
45923 | if (!argp8) { | |
45924 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
45925 | } | |
45926 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
45927 | } | |
45928 | if (obj8) { | |
45929 | { | |
45930 | arg9 = wxString_in_helper(obj8); | |
45931 | if (arg9 == NULL) SWIG_fail; | |
45932 | temp9 = true; | |
45933 | } | |
45934 | } | |
45935 | { | |
45936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45937 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
45938 | wxPyEndAllowThreads(__tstate); | |
45939 | if (PyErr_Occurred()) SWIG_fail; | |
45940 | } | |
45941 | { | |
45942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
45943 | } | |
45944 | { | |
45945 | if (temp4) | |
45946 | delete arg4; | |
45947 | } | |
45948 | { | |
45949 | if (temp9) | |
45950 | delete arg9; | |
45951 | } | |
45952 | return resultobj; | |
45953 | fail: | |
45954 | { | |
45955 | if (temp4) | |
45956 | delete arg4; | |
45957 | } | |
45958 | { | |
45959 | if (temp9) | |
45960 | delete arg9; | |
45961 | } | |
45962 | return NULL; | |
45963 | } | |
45964 | ||
45965 | ||
45966 | SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45967 | PyObject *resultobj = 0; | |
45968 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
45969 | bool arg2 = (bool) true ; | |
45970 | void *argp1 = 0 ; | |
45971 | int res1 = 0 ; | |
45972 | bool val2 ; | |
45973 | int ecode2 = 0 ; | |
45974 | PyObject * obj0 = 0 ; | |
45975 | PyObject * obj1 = 0 ; | |
45976 | char * kwnames[] = { | |
45977 | (char *) "self",(char *) "collapse", NULL | |
45978 | }; | |
45979 | ||
45980 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail; | |
45981 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
45982 | if (!SWIG_IsOK(res1)) { | |
45983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'"); | |
45984 | } | |
45985 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
45986 | if (obj1) { | |
45987 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
45988 | if (!SWIG_IsOK(ecode2)) { | |
45989 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'"); | |
45990 | } | |
45991 | arg2 = static_cast< bool >(val2); | |
45992 | } | |
45993 | { | |
45994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45995 | (arg1)->Collapse(arg2); | |
45996 | wxPyEndAllowThreads(__tstate); | |
45997 | if (PyErr_Occurred()) SWIG_fail; | |
45998 | } | |
45999 | resultobj = SWIG_Py_Void(); | |
46000 | return resultobj; | |
46001 | fail: | |
46002 | return NULL; | |
46003 | } | |
46004 | ||
46005 | ||
46006 | SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46007 | PyObject *resultobj = 0; | |
46008 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
46009 | void *argp1 = 0 ; | |
46010 | int res1 = 0 ; | |
46011 | PyObject *swig_obj[1] ; | |
46012 | ||
46013 | if (!args) SWIG_fail; | |
46014 | swig_obj[0] = args; | |
46015 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
46016 | if (!SWIG_IsOK(res1)) { | |
46017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'"); | |
46018 | } | |
46019 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
46020 | { | |
46021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46022 | (arg1)->Expand(); | |
46023 | wxPyEndAllowThreads(__tstate); | |
46024 | if (PyErr_Occurred()) SWIG_fail; | |
46025 | } | |
46026 | resultobj = SWIG_Py_Void(); | |
46027 | return resultobj; | |
46028 | fail: | |
46029 | return NULL; | |
46030 | } | |
46031 | ||
46032 | ||
46033 | SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46034 | PyObject *resultobj = 0; | |
46035 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
46036 | bool result; | |
46037 | void *argp1 = 0 ; | |
46038 | int res1 = 0 ; | |
46039 | PyObject *swig_obj[1] ; | |
46040 | ||
46041 | if (!args) SWIG_fail; | |
46042 | swig_obj[0] = args; | |
46043 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
46044 | if (!SWIG_IsOK(res1)) { | |
46045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'"); | |
46046 | } | |
46047 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
46048 | { | |
46049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46050 | result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed(); | |
46051 | wxPyEndAllowThreads(__tstate); | |
46052 | if (PyErr_Occurred()) SWIG_fail; | |
46053 | } | |
46054 | { | |
46055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
46056 | } | |
46057 | return resultobj; | |
46058 | fail: | |
46059 | return NULL; | |
46060 | } | |
46061 | ||
46062 | ||
46063 | SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46064 | PyObject *resultobj = 0; | |
46065 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
46066 | bool result; | |
46067 | void *argp1 = 0 ; | |
46068 | int res1 = 0 ; | |
46069 | PyObject *swig_obj[1] ; | |
46070 | ||
46071 | if (!args) SWIG_fail; | |
46072 | swig_obj[0] = args; | |
46073 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
46074 | if (!SWIG_IsOK(res1)) { | |
46075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'"); | |
46076 | } | |
46077 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
46078 | { | |
46079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46080 | result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded(); | |
46081 | wxPyEndAllowThreads(__tstate); | |
46082 | if (PyErr_Occurred()) SWIG_fail; | |
46083 | } | |
46084 | { | |
46085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
46086 | } | |
46087 | return resultobj; | |
46088 | fail: | |
46089 | return NULL; | |
46090 | } | |
46091 | ||
46092 | ||
46093 | SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46094 | PyObject *resultobj = 0; | |
46095 | wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ; | |
46096 | wxWindow *result = 0 ; | |
46097 | void *argp1 = 0 ; | |
46098 | int res1 = 0 ; | |
46099 | PyObject *swig_obj[1] ; | |
46100 | ||
46101 | if (!args) SWIG_fail; | |
46102 | swig_obj[0] = args; | |
46103 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 ); | |
46104 | if (!SWIG_IsOK(res1)) { | |
46105 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'"); | |
46106 | } | |
46107 | arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1); | |
46108 | { | |
46109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46110 | result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane(); | |
46111 | wxPyEndAllowThreads(__tstate); | |
46112 | if (PyErr_Occurred()) SWIG_fail; | |
46113 | } | |
46114 | { | |
46115 | resultobj = wxPyMake_wxObject(result, 0); | |
46116 | } | |
46117 | return resultobj; | |
46118 | fail: | |
46119 | return NULL; | |
46120 | } | |
46121 | ||
46122 | ||
46123 | SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46124 | PyObject *obj; | |
46125 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
46126 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj)); | |
46127 | return SWIG_Py_Void(); | |
46128 | } | |
46129 | ||
46130 | SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46131 | return SWIG_Python_InitShadowInstance(args); | |
46132 | } | |
46133 | ||
46134 | SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
46135 | PyObject *resultobj = 0; | |
46136 | wxObject *arg1 = (wxObject *) 0 ; | |
46137 | int arg2 ; | |
46138 | bool arg3 ; | |
46139 | wxCollapsiblePaneEvent *result = 0 ; | |
46140 | void *argp1 = 0 ; | |
46141 | int res1 = 0 ; | |
46142 | int val2 ; | |
46143 | int ecode2 = 0 ; | |
46144 | bool val3 ; | |
46145 | int ecode3 = 0 ; | |
46146 | PyObject * obj0 = 0 ; | |
46147 | PyObject * obj1 = 0 ; | |
46148 | PyObject * obj2 = 0 ; | |
46149 | char * kwnames[] = { | |
46150 | (char *) "generator",(char *) "id",(char *) "collapsed", NULL | |
46151 | }; | |
46152 | ||
46153 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
46154 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 ); | |
46155 | if (!SWIG_IsOK(res1)) { | |
46156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'"); | |
46157 | } | |
46158 | arg1 = reinterpret_cast< wxObject * >(argp1); | |
46159 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
46160 | if (!SWIG_IsOK(ecode2)) { | |
46161 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'"); | |
46162 | } | |
46163 | arg2 = static_cast< int >(val2); | |
46164 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
46165 | if (!SWIG_IsOK(ecode3)) { | |
46166 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'"); | |
46167 | } | |
46168 | arg3 = static_cast< bool >(val3); | |
46169 | { | |
46170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46171 | result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3); | |
46172 | wxPyEndAllowThreads(__tstate); | |
46173 | if (PyErr_Occurred()) SWIG_fail; | |
46174 | } | |
46175 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 ); | |
46176 | return resultobj; | |
46177 | fail: | |
46178 | return NULL; | |
46179 | } | |
46180 | ||
46181 | ||
46182 | SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46183 | PyObject *resultobj = 0; | |
46184 | wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ; | |
46185 | bool result; | |
46186 | void *argp1 = 0 ; | |
46187 | int res1 = 0 ; | |
46188 | PyObject *swig_obj[1] ; | |
46189 | ||
46190 | if (!args) SWIG_fail; | |
46191 | swig_obj[0] = args; | |
46192 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 ); | |
46193 | if (!SWIG_IsOK(res1)) { | |
46194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'"); | |
46195 | } | |
46196 | arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1); | |
46197 | { | |
46198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46199 | result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed(); | |
46200 | wxPyEndAllowThreads(__tstate); | |
46201 | if (PyErr_Occurred()) SWIG_fail; | |
46202 | } | |
46203 | { | |
46204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
46205 | } | |
46206 | return resultobj; | |
46207 | fail: | |
46208 | return NULL; | |
46209 | } | |
46210 | ||
46211 | ||
46212 | SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
46213 | PyObject *resultobj = 0; | |
46214 | wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ; | |
46215 | bool arg2 ; | |
46216 | void *argp1 = 0 ; | |
46217 | int res1 = 0 ; | |
46218 | bool val2 ; | |
46219 | int ecode2 = 0 ; | |
46220 | PyObject * obj0 = 0 ; | |
46221 | PyObject * obj1 = 0 ; | |
46222 | char * kwnames[] = { | |
46223 | (char *) "self",(char *) "c", NULL | |
46224 | }; | |
46225 | ||
46226 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail; | |
46227 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 ); | |
46228 | if (!SWIG_IsOK(res1)) { | |
46229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'"); | |
46230 | } | |
46231 | arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1); | |
46232 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
46233 | if (!SWIG_IsOK(ecode2)) { | |
46234 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'"); | |
46235 | } | |
46236 | arg2 = static_cast< bool >(val2); | |
46237 | { | |
46238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46239 | (arg1)->SetCollapsed(arg2); | |
46240 | wxPyEndAllowThreads(__tstate); | |
46241 | if (PyErr_Occurred()) SWIG_fail; | |
46242 | } | |
46243 | resultobj = SWIG_Py_Void(); | |
46244 | return resultobj; | |
46245 | fail: | |
46246 | return NULL; | |
46247 | } | |
46248 | ||
46249 | ||
46250 | SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46251 | PyObject *obj; | |
46252 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
46253 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj)); | |
46254 | return SWIG_Py_Void(); | |
46255 | } | |
46256 | ||
46257 | SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46258 | return SWIG_Python_InitShadowInstance(args); | |
46259 | } | |
46260 | ||
3f7f284d RD |
46261 | SWIGINTERN int SearchCtrlNameStr_set(PyObject *) { |
46262 | SWIG_Error(SWIG_AttributeError,"Variable SearchCtrlNameStr is read-only."); | |
46263 | return 1; | |
46264 | } | |
46265 | ||
46266 | ||
46267 | SWIGINTERN PyObject *SearchCtrlNameStr_get(void) { | |
46268 | PyObject *pyobj = 0; | |
46269 | ||
46270 | { | |
46271 | #if wxUSE_UNICODE | |
46272 | pyobj = PyUnicode_FromWideChar((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len()); | |
46273 | #else | |
46274 | pyobj = PyString_FromStringAndSize((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len()); | |
46275 | #endif | |
46276 | } | |
46277 | return pyobj; | |
46278 | } | |
46279 | ||
46280 | ||
46281 | SWIGINTERN PyObject *_wrap_new_SearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
46282 | PyObject *resultobj = 0; | |
46283 | wxWindow *arg1 = (wxWindow *) 0 ; | |
46284 | int arg2 = (int) -1 ; | |
46285 | wxString const &arg3_defvalue = wxEmptyString ; | |
46286 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
46287 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
46288 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
46289 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
46290 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
46291 | long arg6 = (long) 0 ; | |
46292 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
46293 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
46294 | wxString const &arg8_defvalue = wxPySearchCtrlNameStr ; | |
46295 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
46296 | wxSearchCtrl *result = 0 ; | |
46297 | void *argp1 = 0 ; | |
46298 | int res1 = 0 ; | |
46299 | int val2 ; | |
46300 | int ecode2 = 0 ; | |
46301 | bool temp3 = false ; | |
46302 | wxPoint temp4 ; | |
46303 | wxSize temp5 ; | |
46304 | long val6 ; | |
46305 | int ecode6 = 0 ; | |
46306 | void *argp7 = 0 ; | |
46307 | int res7 = 0 ; | |
46308 | bool temp8 = false ; | |
46309 | PyObject * obj0 = 0 ; | |
46310 | PyObject * obj1 = 0 ; | |
46311 | PyObject * obj2 = 0 ; | |
46312 | PyObject * obj3 = 0 ; | |
46313 | PyObject * obj4 = 0 ; | |
46314 | PyObject * obj5 = 0 ; | |
46315 | PyObject * obj6 = 0 ; | |
46316 | PyObject * obj7 = 0 ; | |
46317 | char * kwnames[] = { | |
46318 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
46319 | }; | |
46320 | ||
46321 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_SearchCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
46322 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
46323 | if (!SWIG_IsOK(res1)) { | |
46324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SearchCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
46325 | } | |
46326 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
46327 | if (obj1) { | |
46328 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
46329 | if (!SWIG_IsOK(ecode2)) { | |
46330 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SearchCtrl" "', expected argument " "2"" of type '" "int""'"); | |
46331 | } | |
46332 | arg2 = static_cast< int >(val2); | |
46333 | } | |
46334 | if (obj2) { | |
46335 | { | |
46336 | arg3 = wxString_in_helper(obj2); | |
46337 | if (arg3 == NULL) SWIG_fail; | |
46338 | temp3 = true; | |
46339 | } | |
46340 | } | |
46341 | if (obj3) { | |
46342 | { | |
46343 | arg4 = &temp4; | |
46344 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
46345 | } | |
46346 | } | |
46347 | if (obj4) { | |
46348 | { | |
46349 | arg5 = &temp5; | |
46350 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
46351 | } | |
46352 | } | |
46353 | if (obj5) { | |
46354 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
46355 | if (!SWIG_IsOK(ecode6)) { | |
46356 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SearchCtrl" "', expected argument " "6"" of type '" "long""'"); | |
46357 | } | |
46358 | arg6 = static_cast< long >(val6); | |
46359 | } | |
46360 | if (obj6) { | |
46361 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
46362 | if (!SWIG_IsOK(res7)) { | |
46363 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
46364 | } | |
46365 | if (!argp7) { | |
46366 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
46367 | } | |
46368 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
46369 | } | |
46370 | if (obj7) { | |
46371 | { | |
46372 | arg8 = wxString_in_helper(obj7); | |
46373 | if (arg8 == NULL) SWIG_fail; | |
46374 | temp8 = true; | |
46375 | } | |
46376 | } | |
46377 | { | |
46378 | if (!wxPyCheckForApp()) SWIG_fail; | |
46379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46380 | result = (wxSearchCtrl *)new wxSearchCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
46381 | wxPyEndAllowThreads(__tstate); | |
46382 | if (PyErr_Occurred()) SWIG_fail; | |
46383 | } | |
46384 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_NEW | 0 ); | |
46385 | { | |
46386 | if (temp3) | |
46387 | delete arg3; | |
46388 | } | |
46389 | { | |
46390 | if (temp8) | |
46391 | delete arg8; | |
46392 | } | |
46393 | return resultobj; | |
46394 | fail: | |
46395 | { | |
46396 | if (temp3) | |
46397 | delete arg3; | |
46398 | } | |
46399 | { | |
46400 | if (temp8) | |
46401 | delete arg8; | |
46402 | } | |
46403 | return NULL; | |
46404 | } | |
46405 | ||
46406 | ||
46407 | SWIGINTERN PyObject *_wrap_new_PreSearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46408 | PyObject *resultobj = 0; | |
46409 | wxSearchCtrl *result = 0 ; | |
46410 | ||
46411 | if (!SWIG_Python_UnpackTuple(args,"new_PreSearchCtrl",0,0,0)) SWIG_fail; | |
46412 | { | |
46413 | if (!wxPyCheckForApp()) SWIG_fail; | |
46414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46415 | result = (wxSearchCtrl *)new wxSearchCtrl(); | |
46416 | wxPyEndAllowThreads(__tstate); | |
46417 | if (PyErr_Occurred()) SWIG_fail; | |
46418 | } | |
46419 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_OWN | 0 ); | |
46420 | return resultobj; | |
46421 | fail: | |
46422 | return NULL; | |
46423 | } | |
46424 | ||
46425 | ||
46426 | SWIGINTERN PyObject *_wrap_SearchCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
46427 | PyObject *resultobj = 0; | |
46428 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46429 | wxWindow *arg2 = (wxWindow *) 0 ; | |
46430 | int arg3 = (int) -1 ; | |
46431 | wxString const &arg4_defvalue = wxEmptyString ; | |
46432 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
46433 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
46434 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
46435 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
46436 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
46437 | long arg7 = (long) 0 ; | |
46438 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
46439 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
46440 | wxString const &arg9_defvalue = wxPySearchCtrlNameStr ; | |
46441 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
46442 | bool result; | |
46443 | void *argp1 = 0 ; | |
46444 | int res1 = 0 ; | |
46445 | void *argp2 = 0 ; | |
46446 | int res2 = 0 ; | |
46447 | int val3 ; | |
46448 | int ecode3 = 0 ; | |
46449 | bool temp4 = false ; | |
46450 | wxPoint temp5 ; | |
46451 | wxSize temp6 ; | |
46452 | long val7 ; | |
46453 | int ecode7 = 0 ; | |
46454 | void *argp8 = 0 ; | |
46455 | int res8 = 0 ; | |
46456 | bool temp9 = false ; | |
46457 | PyObject * obj0 = 0 ; | |
46458 | PyObject * obj1 = 0 ; | |
46459 | PyObject * obj2 = 0 ; | |
46460 | PyObject * obj3 = 0 ; | |
46461 | PyObject * obj4 = 0 ; | |
46462 | PyObject * obj5 = 0 ; | |
46463 | PyObject * obj6 = 0 ; | |
46464 | PyObject * obj7 = 0 ; | |
46465 | PyObject * obj8 = 0 ; | |
46466 | char * kwnames[] = { | |
46467 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
46468 | }; | |
46469 | ||
46470 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:SearchCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
46471 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46472 | if (!SWIG_IsOK(res1)) { | |
46473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_Create" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); | |
46474 | } | |
46475 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46476 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
46477 | if (!SWIG_IsOK(res2)) { | |
46478 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
46479 | } | |
46480 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
46481 | if (obj2) { | |
46482 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
46483 | if (!SWIG_IsOK(ecode3)) { | |
46484 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SearchCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
46485 | } | |
46486 | arg3 = static_cast< int >(val3); | |
46487 | } | |
46488 | if (obj3) { | |
46489 | { | |
46490 | arg4 = wxString_in_helper(obj3); | |
46491 | if (arg4 == NULL) SWIG_fail; | |
46492 | temp4 = true; | |
46493 | } | |
46494 | } | |
46495 | if (obj4) { | |
46496 | { | |
46497 | arg5 = &temp5; | |
46498 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
46499 | } | |
46500 | } | |
46501 | if (obj5) { | |
46502 | { | |
46503 | arg6 = &temp6; | |
46504 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
46505 | } | |
46506 | } | |
46507 | if (obj6) { | |
46508 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
46509 | if (!SWIG_IsOK(ecode7)) { | |
46510 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SearchCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
46511 | } | |
46512 | arg7 = static_cast< long >(val7); | |
46513 | } | |
46514 | if (obj7) { | |
46515 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
46516 | if (!SWIG_IsOK(res8)) { | |
46517 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
46518 | } | |
46519 | if (!argp8) { | |
46520 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
46521 | } | |
46522 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
46523 | } | |
46524 | if (obj8) { | |
46525 | { | |
46526 | arg9 = wxString_in_helper(obj8); | |
46527 | if (arg9 == NULL) SWIG_fail; | |
46528 | temp9 = true; | |
46529 | } | |
46530 | } | |
46531 | { | |
46532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46533 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
46534 | wxPyEndAllowThreads(__tstate); | |
46535 | if (PyErr_Occurred()) SWIG_fail; | |
46536 | } | |
46537 | { | |
46538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
46539 | } | |
46540 | { | |
46541 | if (temp4) | |
46542 | delete arg4; | |
46543 | } | |
46544 | { | |
46545 | if (temp9) | |
46546 | delete arg9; | |
46547 | } | |
46548 | return resultobj; | |
46549 | fail: | |
46550 | { | |
46551 | if (temp4) | |
46552 | delete arg4; | |
46553 | } | |
46554 | { | |
46555 | if (temp9) | |
46556 | delete arg9; | |
46557 | } | |
46558 | return NULL; | |
46559 | } | |
46560 | ||
46561 | ||
46562 | SWIGINTERN PyObject *_wrap_SearchCtrl_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
46563 | PyObject *resultobj = 0; | |
46564 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46565 | wxMenu *arg2 = (wxMenu *) 0 ; | |
46566 | void *argp1 = 0 ; | |
46567 | int res1 = 0 ; | |
46568 | void *argp2 = 0 ; | |
46569 | int res2 = 0 ; | |
46570 | PyObject * obj0 = 0 ; | |
46571 | PyObject * obj1 = 0 ; | |
46572 | char * kwnames[] = { | |
46573 | (char *) "self",(char *) "menu", NULL | |
46574 | }; | |
46575 | ||
46576 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail; | |
46577 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46578 | if (!SWIG_IsOK(res1)) { | |
46579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); | |
46580 | } | |
46581 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46582 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
46583 | if (!SWIG_IsOK(res2)) { | |
46584 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
46585 | } | |
46586 | arg2 = reinterpret_cast< wxMenu * >(argp2); | |
46587 | { | |
46588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46589 | (arg1)->SetMenu(arg2); | |
46590 | wxPyEndAllowThreads(__tstate); | |
46591 | if (PyErr_Occurred()) SWIG_fail; | |
46592 | } | |
46593 | resultobj = SWIG_Py_Void(); | |
46594 | return resultobj; | |
46595 | fail: | |
46596 | return NULL; | |
46597 | } | |
46598 | ||
46599 | ||
46600 | SWIGINTERN PyObject *_wrap_SearchCtrl_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46601 | PyObject *resultobj = 0; | |
46602 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46603 | wxMenu *result = 0 ; | |
46604 | void *argp1 = 0 ; | |
46605 | int res1 = 0 ; | |
46606 | PyObject *swig_obj[1] ; | |
46607 | ||
46608 | if (!args) SWIG_fail; | |
46609 | swig_obj[0] = args; | |
46610 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46611 | if (!SWIG_IsOK(res1)) { | |
46612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); | |
46613 | } | |
46614 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46615 | { | |
46616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46617 | result = (wxMenu *)(arg1)->GetMenu(); | |
46618 | wxPyEndAllowThreads(__tstate); | |
46619 | if (PyErr_Occurred()) SWIG_fail; | |
46620 | } | |
46621 | { | |
46622 | resultobj = wxPyMake_wxObject(result, 0); | |
46623 | } | |
46624 | return resultobj; | |
46625 | fail: | |
46626 | return NULL; | |
46627 | } | |
46628 | ||
46629 | ||
70b63a99 | 46630 | SWIGINTERN PyObject *_wrap_SearchCtrl_ShowSearchButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3f7f284d RD |
46631 | PyObject *resultobj = 0; |
46632 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46633 | bool arg2 ; | |
46634 | void *argp1 = 0 ; | |
46635 | int res1 = 0 ; | |
46636 | bool val2 ; | |
46637 | int ecode2 = 0 ; | |
46638 | PyObject * obj0 = 0 ; | |
46639 | PyObject * obj1 = 0 ; | |
46640 | char * kwnames[] = { | |
46641 | (char *) "self",(char *) "show", NULL | |
46642 | }; | |
46643 | ||
70b63a99 | 46644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowSearchButton",kwnames,&obj0,&obj1)) SWIG_fail; |
3f7f284d RD |
46645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); |
46646 | if (!SWIG_IsOK(res1)) { | |
70b63a99 | 46647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); |
3f7f284d RD |
46648 | } |
46649 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46650 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
46651 | if (!SWIG_IsOK(ecode2)) { | |
70b63a99 | 46652 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "2"" of type '" "bool""'"); |
3f7f284d RD |
46653 | } |
46654 | arg2 = static_cast< bool >(val2); | |
46655 | { | |
46656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
70b63a99 | 46657 | (arg1)->ShowSearchButton(arg2); |
3f7f284d RD |
46658 | wxPyEndAllowThreads(__tstate); |
46659 | if (PyErr_Occurred()) SWIG_fail; | |
46660 | } | |
46661 | resultobj = SWIG_Py_Void(); | |
46662 | return resultobj; | |
46663 | fail: | |
46664 | return NULL; | |
46665 | } | |
46666 | ||
46667 | ||
70b63a99 | 46668 | SWIGINTERN PyObject *_wrap_SearchCtrl_IsSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3f7f284d RD |
46669 | PyObject *resultobj = 0; |
46670 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46671 | bool result; | |
46672 | void *argp1 = 0 ; | |
46673 | int res1 = 0 ; | |
46674 | PyObject *swig_obj[1] ; | |
46675 | ||
46676 | if (!args) SWIG_fail; | |
46677 | swig_obj[0] = args; | |
46678 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46679 | if (!SWIG_IsOK(res1)) { | |
70b63a99 | 46680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'"); |
3f7f284d RD |
46681 | } |
46682 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46683 | { | |
46684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
70b63a99 | 46685 | result = (bool)((wxSearchCtrl const *)arg1)->IsSearchButtonVisible(); |
3f7f284d RD |
46686 | wxPyEndAllowThreads(__tstate); |
46687 | if (PyErr_Occurred()) SWIG_fail; | |
46688 | } | |
46689 | { | |
46690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
46691 | } | |
46692 | return resultobj; | |
46693 | fail: | |
46694 | return NULL; | |
46695 | } | |
46696 | ||
46697 | ||
70b63a99 | 46698 | SWIGINTERN PyObject *_wrap_SearchCtrl_ShowCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3f7f284d RD |
46699 | PyObject *resultobj = 0; |
46700 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46701 | bool arg2 ; | |
46702 | void *argp1 = 0 ; | |
46703 | int res1 = 0 ; | |
46704 | bool val2 ; | |
46705 | int ecode2 = 0 ; | |
46706 | PyObject * obj0 = 0 ; | |
46707 | PyObject * obj1 = 0 ; | |
46708 | char * kwnames[] = { | |
46709 | (char *) "self",(char *) "show", NULL | |
46710 | }; | |
46711 | ||
70b63a99 | 46712 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowCancelButton",kwnames,&obj0,&obj1)) SWIG_fail; |
3f7f284d RD |
46713 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); |
46714 | if (!SWIG_IsOK(res1)) { | |
70b63a99 | 46715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); |
3f7f284d RD |
46716 | } |
46717 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46718 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
46719 | if (!SWIG_IsOK(ecode2)) { | |
70b63a99 | 46720 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "2"" of type '" "bool""'"); |
3f7f284d RD |
46721 | } |
46722 | arg2 = static_cast< bool >(val2); | |
46723 | { | |
46724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
70b63a99 | 46725 | (arg1)->ShowCancelButton(arg2); |
3f7f284d RD |
46726 | wxPyEndAllowThreads(__tstate); |
46727 | if (PyErr_Occurred()) SWIG_fail; | |
46728 | } | |
46729 | resultobj = SWIG_Py_Void(); | |
46730 | return resultobj; | |
46731 | fail: | |
46732 | return NULL; | |
46733 | } | |
46734 | ||
46735 | ||
70b63a99 | 46736 | SWIGINTERN PyObject *_wrap_SearchCtrl_IsCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3f7f284d RD |
46737 | PyObject *resultobj = 0; |
46738 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46739 | bool result; | |
46740 | void *argp1 = 0 ; | |
46741 | int res1 = 0 ; | |
46742 | PyObject *swig_obj[1] ; | |
46743 | ||
46744 | if (!args) SWIG_fail; | |
46745 | swig_obj[0] = args; | |
46746 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46747 | if (!SWIG_IsOK(res1)) { | |
70b63a99 | 46748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'"); |
3f7f284d RD |
46749 | } |
46750 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46751 | { | |
46752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
70b63a99 | 46753 | result = (bool)((wxSearchCtrl const *)arg1)->IsCancelButtonVisible(); |
3f7f284d RD |
46754 | wxPyEndAllowThreads(__tstate); |
46755 | if (PyErr_Occurred()) SWIG_fail; | |
46756 | } | |
46757 | { | |
46758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
46759 | } | |
46760 | return resultobj; | |
46761 | fail: | |
46762 | return NULL; | |
46763 | } | |
46764 | ||
46765 | ||
6646ca90 RD |
46766 | SWIGINTERN PyObject *_wrap_SearchCtrl_SetDescriptiveText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
46767 | PyObject *resultobj = 0; | |
46768 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46769 | wxString *arg2 = 0 ; | |
46770 | void *argp1 = 0 ; | |
46771 | int res1 = 0 ; | |
46772 | bool temp2 = false ; | |
46773 | PyObject * obj0 = 0 ; | |
46774 | PyObject * obj1 = 0 ; | |
46775 | char * kwnames[] = { | |
46776 | (char *) "self",(char *) "text", NULL | |
46777 | }; | |
46778 | ||
46779 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetDescriptiveText",kwnames,&obj0,&obj1)) SWIG_fail; | |
46780 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46781 | if (!SWIG_IsOK(res1)) { | |
46782 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetDescriptiveText" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); | |
46783 | } | |
46784 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46785 | { | |
46786 | arg2 = wxString_in_helper(obj1); | |
46787 | if (arg2 == NULL) SWIG_fail; | |
46788 | temp2 = true; | |
46789 | } | |
46790 | { | |
46791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46792 | (arg1)->SetDescriptiveText((wxString const &)*arg2); | |
46793 | wxPyEndAllowThreads(__tstate); | |
46794 | if (PyErr_Occurred()) SWIG_fail; | |
46795 | } | |
46796 | resultobj = SWIG_Py_Void(); | |
46797 | { | |
46798 | if (temp2) | |
46799 | delete arg2; | |
46800 | } | |
46801 | return resultobj; | |
46802 | fail: | |
46803 | { | |
46804 | if (temp2) | |
46805 | delete arg2; | |
46806 | } | |
46807 | return NULL; | |
46808 | } | |
46809 | ||
46810 | ||
46811 | SWIGINTERN PyObject *_wrap_SearchCtrl_GetDescriptiveText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46812 | PyObject *resultobj = 0; | |
46813 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46814 | wxString result; | |
46815 | void *argp1 = 0 ; | |
46816 | int res1 = 0 ; | |
46817 | PyObject *swig_obj[1] ; | |
46818 | ||
46819 | if (!args) SWIG_fail; | |
46820 | swig_obj[0] = args; | |
46821 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46822 | if (!SWIG_IsOK(res1)) { | |
46823 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetDescriptiveText" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'"); | |
46824 | } | |
46825 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46826 | { | |
46827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46828 | result = ((wxSearchCtrl const *)arg1)->GetDescriptiveText(); | |
46829 | wxPyEndAllowThreads(__tstate); | |
46830 | if (PyErr_Occurred()) SWIG_fail; | |
46831 | } | |
46832 | { | |
46833 | #if wxUSE_UNICODE | |
46834 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
46835 | #else | |
46836 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
46837 | #endif | |
46838 | } | |
46839 | return resultobj; | |
46840 | fail: | |
46841 | return NULL; | |
46842 | } | |
46843 | ||
46844 | ||
3f7f284d RD |
46845 | SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
46846 | PyObject *resultobj = 0; | |
46847 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46848 | wxBitmap *arg2 = 0 ; | |
46849 | void *argp1 = 0 ; | |
46850 | int res1 = 0 ; | |
46851 | void *argp2 = 0 ; | |
46852 | int res2 = 0 ; | |
46853 | PyObject * obj0 = 0 ; | |
46854 | PyObject * obj1 = 0 ; | |
46855 | char * kwnames[] = { | |
46856 | (char *) "self",(char *) "bitmap", NULL | |
46857 | }; | |
46858 | ||
46859 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
46860 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46861 | if (!SWIG_IsOK(res1)) { | |
46862 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); | |
46863 | } | |
46864 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46865 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
46866 | if (!SWIG_IsOK(res2)) { | |
46867 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
46868 | } | |
46869 | if (!argp2) { | |
46870 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
46871 | } | |
46872 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
46873 | { | |
46874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46875 | (arg1)->SetSearchBitmap((wxBitmap const &)*arg2); | |
46876 | wxPyEndAllowThreads(__tstate); | |
46877 | if (PyErr_Occurred()) SWIG_fail; | |
46878 | } | |
46879 | resultobj = SWIG_Py_Void(); | |
46880 | return resultobj; | |
46881 | fail: | |
46882 | return NULL; | |
46883 | } | |
46884 | ||
46885 | ||
46886 | SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchMenuBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
46887 | PyObject *resultobj = 0; | |
46888 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46889 | wxBitmap *arg2 = 0 ; | |
46890 | void *argp1 = 0 ; | |
46891 | int res1 = 0 ; | |
46892 | void *argp2 = 0 ; | |
46893 | int res2 = 0 ; | |
46894 | PyObject * obj0 = 0 ; | |
46895 | PyObject * obj1 = 0 ; | |
46896 | char * kwnames[] = { | |
46897 | (char *) "self",(char *) "bitmap", NULL | |
46898 | }; | |
46899 | ||
46900 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchMenuBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
46901 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46902 | if (!SWIG_IsOK(res1)) { | |
46903 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); | |
46904 | } | |
46905 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46906 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
46907 | if (!SWIG_IsOK(res2)) { | |
46908 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
46909 | } | |
46910 | if (!argp2) { | |
46911 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
46912 | } | |
46913 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
46914 | { | |
46915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46916 | (arg1)->SetSearchMenuBitmap((wxBitmap const &)*arg2); | |
46917 | wxPyEndAllowThreads(__tstate); | |
46918 | if (PyErr_Occurred()) SWIG_fail; | |
46919 | } | |
46920 | resultobj = SWIG_Py_Void(); | |
46921 | return resultobj; | |
46922 | fail: | |
46923 | return NULL; | |
46924 | } | |
46925 | ||
46926 | ||
46927 | SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
46928 | PyObject *resultobj = 0; | |
46929 | wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ; | |
46930 | wxBitmap *arg2 = 0 ; | |
46931 | void *argp1 = 0 ; | |
46932 | int res1 = 0 ; | |
46933 | void *argp2 = 0 ; | |
46934 | int res2 = 0 ; | |
46935 | PyObject * obj0 = 0 ; | |
46936 | PyObject * obj1 = 0 ; | |
46937 | char * kwnames[] = { | |
46938 | (char *) "self",(char *) "bitmap", NULL | |
46939 | }; | |
46940 | ||
46941 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
46942 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 ); | |
46943 | if (!SWIG_IsOK(res1)) { | |
46944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'"); | |
46945 | } | |
46946 | arg1 = reinterpret_cast< wxSearchCtrl * >(argp1); | |
46947 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
46948 | if (!SWIG_IsOK(res2)) { | |
46949 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
46950 | } | |
46951 | if (!argp2) { | |
46952 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
46953 | } | |
46954 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
46955 | { | |
46956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
46957 | (arg1)->SetCancelBitmap((wxBitmap const &)*arg2); | |
46958 | wxPyEndAllowThreads(__tstate); | |
46959 | if (PyErr_Occurred()) SWIG_fail; | |
46960 | } | |
46961 | resultobj = SWIG_Py_Void(); | |
46962 | return resultobj; | |
46963 | fail: | |
46964 | return NULL; | |
46965 | } | |
46966 | ||
46967 | ||
46968 | SWIGINTERN PyObject *SearchCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46969 | PyObject *obj; | |
46970 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
46971 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSearchCtrl, SWIG_NewClientData(obj)); | |
46972 | return SWIG_Py_Void(); | |
46973 | } | |
46974 | ||
46975 | SWIGINTERN PyObject *SearchCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
46976 | return SWIG_Python_InitShadowInstance(args); | |
46977 | } | |
46978 | ||
b850e7f3 RD |
46979 | static PyMethodDef SwigMethods[] = { |
46980 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46981 | { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL}, | |
46982 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46983 | { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL}, | |
46984 | { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL}, | |
46985 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46986 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL}, | |
46987 | { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL}, | |
46988 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46989 | { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL}, | |
46990 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46991 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL}, | |
46992 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL}, | |
46993 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL}, | |
46994 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL}, | |
46995 | { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL}, | |
46996 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46997 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46998 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46999 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47000 | { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47001 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47002 | { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL}, | |
47003 | { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL}, | |
47004 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL}, | |
47005 | { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL}, | |
47006 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47007 | { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL}, | |
47008 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47009 | { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL}, | |
47010 | { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL}, | |
47011 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47012 | { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL}, | |
47013 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47014 | { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL}, | |
47015 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL}, | |
47016 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47017 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL}, | |
47018 | { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL}, | |
47019 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47020 | { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL}, | |
47021 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47022 | { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL}, | |
47023 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47024 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL}, | |
47025 | { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL}, | |
47026 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47027 | { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL}, | |
47028 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47029 | { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL}, | |
47030 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47031 | { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL}, | |
47032 | { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL}, | |
47033 | { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL}, | |
47034 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47035 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL}, | |
47036 | { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL}, | |
47037 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47038 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47039 | { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL}, | |
47040 | { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL}, | |
47041 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b850e7f3 RD |
47042 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, |
47043 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL}, | |
47044 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47045 | { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL}, | |
47046 | { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL}, | |
47047 | { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL}, | |
47048 | { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL}, | |
47049 | { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL}, | |
47050 | { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL}, | |
47051 | { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL}, | |
47052 | { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL}, | |
47053 | { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL}, | |
47054 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47055 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL}, | |
47056 | { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL}, | |
47057 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47058 | { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL}, | |
47059 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47060 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47061 | { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL}, | |
47062 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47063 | { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL}, | |
ae5bc7f3 | 47064 | { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL}, |
b850e7f3 RD |
47065 | { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL}, |
47066 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47067 | { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL}, | |
47068 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47069 | { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL}, | |
47070 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47071 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL}, | |
47072 | { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL}, | |
47073 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47074 | { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL}, | |
47075 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47076 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47077 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL}, | |
47078 | { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL}, | |
47079 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47080 | { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL}, | |
47081 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47082 | { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL}, | |
47083 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL}, | |
47084 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47085 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL}, | |
47086 | { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL}, | |
47087 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47088 | { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL}, | |
47089 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47090 | { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47091 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47092 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL}, | |
47093 | { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL}, | |
47094 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47095 | { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL}, | |
47096 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47097 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL}, | |
47098 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47099 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47100 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47101 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL}, | |
47102 | { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL}, | |
47103 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47104 | { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL}, | |
47105 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47106 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47107 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47108 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47109 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47110 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47111 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47112 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47113 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47114 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47115 | { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL}, | |
47116 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47117 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47118 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47119 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47120 | { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL}, | |
47121 | { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47122 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47123 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47124 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47125 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47126 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL}, | |
47127 | { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL}, | |
47128 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47129 | { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL}, | |
47130 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47131 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47132 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47133 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL}, | |
47134 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL}, | |
47135 | { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL}, | |
47136 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47137 | { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL}, | |
47138 | { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL}, | |
47139 | { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47140 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47141 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47142 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47143 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47144 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47145 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47146 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47147 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47148 | { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL}, | |
47149 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL}, | |
47150 | { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL}, | |
47151 | { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL}, | |
47152 | { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL}, | |
47153 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL}, | |
47154 | { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL}, | |
47155 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47156 | { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL}, | |
47157 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL}, | |
47158 | { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL}, | |
47159 | { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL}, | |
47160 | { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL}, | |
47161 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL}, | |
47162 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL}, | |
47163 | { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL}, | |
47164 | { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL}, | |
47165 | { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL}, | |
47166 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47167 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL}, | |
47168 | { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL}, | |
47169 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47170 | { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL}, | |
47171 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47172 | { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL}, | |
47173 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
47174 | { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL}, |
47175 | { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b850e7f3 RD |
47176 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, |
47177 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47178 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47179 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL}, | |
47180 | { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL}, | |
47181 | { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL}, | |
47182 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL}, | |
47183 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL}, | |
47184 | { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL}, | |
47185 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL}, | |
47186 | { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL}, | |
47187 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47188 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47189 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47190 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47191 | { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL}, | |
47192 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL}, | |
b02396e8 | 47193 | { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL}, |
b850e7f3 RD |
47194 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, |
47195 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47196 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47197 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47198 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47199 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47200 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47201 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL}, | |
47202 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47203 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47204 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47205 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47206 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47207 | { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL}, | |
47208 | { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL}, | |
47209 | { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL}, | |
47210 | { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL}, | |
47211 | { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL}, | |
47212 | { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL}, | |
47213 | { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL}, | |
47214 | { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL}, | |
47215 | { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL}, | |
47216 | { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL}, | |
47217 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47218 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL}, | |
47219 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL}, | |
47220 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL}, | |
47221 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47222 | { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL}, | |
47223 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
d7645bfd | 47224 | { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL}, |
b39fe951 | 47225 | { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL}, |
b850e7f3 RD |
47226 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL}, |
47227 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47228 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47229 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL}, | |
47230 | { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL}, | |
47231 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47232 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL}, | |
47233 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL}, | |
47234 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL}, | |
47235 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL}, | |
47236 | { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL}, | |
47237 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47238 | { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL}, | |
47239 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47240 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL}, | |
47241 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL}, | |
47242 | { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL}, | |
47243 | { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL}, | |
47244 | { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL}, | |
47245 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47246 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47247 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL}, | |
47248 | { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL}, | |
47249 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47250 | { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL}, | |
47251 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47252 | { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL}, | |
47253 | { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL}, | |
47254 | { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL}, | |
47255 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47256 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47257 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47258 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47259 | { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL}, | |
47260 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47261 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL}, | |
47262 | { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL}, | |
47263 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47264 | { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL}, | |
47265 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47266 | { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL}, | |
47267 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47268 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47269 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47270 | { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL}, | |
47271 | { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL}, | |
47272 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47273 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47274 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL}, | |
47275 | { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL}, | |
47276 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47277 | { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL}, | |
47278 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47279 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL}, | |
47280 | { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL}, | |
47281 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47282 | { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL}, | |
47283 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47284 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47285 | { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL}, | |
47286 | { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL}, | |
47287 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47288 | { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL}, | |
47289 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47290 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47291 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47292 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47293 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47294 | { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47295 | { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47296 | { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL}, | |
47297 | { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL}, | |
47298 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47299 | { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47300 | { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47301 | { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47302 | { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47303 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47304 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL}, | |
47305 | { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL}, | |
47306 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47307 | { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL}, | |
47308 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47309 | { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL}, | |
47310 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47311 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47312 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL}, | |
47313 | { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL}, | |
47314 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47315 | { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL}, | |
47316 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47317 | { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL}, | |
47318 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47319 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47320 | { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL}, | |
47321 | { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL}, | |
47322 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47323 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47324 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47325 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47326 | { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL}, | |
47327 | { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL}, | |
47328 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47329 | { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL}, | |
47330 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47331 | { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL}, | |
47332 | { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL}, | |
47333 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47334 | { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL}, | |
47335 | { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL}, | |
47336 | { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL}, | |
47337 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47338 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47339 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL}, | |
47340 | { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL}, | |
47341 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47342 | { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL}, | |
47343 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47344 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47345 | { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL}, | |
47346 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47347 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL}, | |
47348 | { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL}, | |
47349 | { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL}, | |
47350 | { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47351 | { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL}, | |
47352 | { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL}, | |
47353 | { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47354 | { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47355 | { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47356 | { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47357 | { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL}, | |
47358 | { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47359 | { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47360 | { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47361 | { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47362 | { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL}, | |
47363 | { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 47364 | { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL}, |
e9d6f3a4 RD |
47365 | { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL}, |
47366 | { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL}, | |
0085ce49 RD |
47367 | { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
47368 | { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL}, | |
e9d6f3a4 | 47369 | { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL}, |
0085ce49 RD |
47370 | { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL}, |
47371 | { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47372 | { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL}, | |
47373 | { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47374 | { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47375 | { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 47376 | { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 47377 | { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
704eda0c | 47378 | { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
47379 | { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
47380 | { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL}, | |
47381 | { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47382 | { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL}, | |
47383 | { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47384 | { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL}, | |
47385 | { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47386 | { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL}, | |
47387 | { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL}, | |
47388 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47389 | { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL}, | |
47390 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47391 | { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL}, | |
47392 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47393 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
47394 | { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL}, |
47395 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
47396 | { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
47397 | { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
47398 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL}, |
47399 | { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL}, | |
47400 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47401 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL}, | |
47402 | { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL}, | |
47403 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47404 | { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL}, | |
47405 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47406 | { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL}, | |
47407 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL}, | |
47408 | { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL}, | |
47409 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47410 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL}, | |
47411 | { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL}, | |
47412 | { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47413 | { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL}, | |
47414 | { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47415 | { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL}, | |
47416 | { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL}, | |
47417 | { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL}, | |
47418 | { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47419 | { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL}, | |
47420 | { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL}, | |
47421 | { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47422 | { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL}, | |
47423 | { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47424 | { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47425 | { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47426 | { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47427 | { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47428 | { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47429 | { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47430 | { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL}, | |
47431 | { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL}, | |
47432 | { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL}, | |
47433 | { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47434 | { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL}, | |
47435 | { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL}, | |
47436 | { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47437 | { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL}, | |
47438 | { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47439 | { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL}, | |
47440 | { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL}, | |
47441 | { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL}, | |
47442 | { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL}, | |
47443 | { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47444 | { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL}, | |
47445 | { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL}, | |
47446 | { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL}, | |
47447 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL}, | |
47448 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL}, | |
47449 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL}, | |
47450 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL}, | |
47451 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL}, | |
47452 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL}, | |
47453 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL}, | |
47454 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL}, | |
47455 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL}, | |
47456 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL}, | |
47457 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL}, | |
47458 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL}, | |
47459 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL}, | |
47460 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL}, | |
47461 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL}, | |
47462 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL}, | |
47463 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47464 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL}, | |
47465 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47466 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47467 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47468 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47469 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47470 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47471 | { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL}, | |
47472 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47473 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL}, | |
47474 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47475 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL}, | |
47476 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47477 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47478 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47479 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47480 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47481 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47482 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47483 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL}, | |
47484 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47485 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47486 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47487 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47488 | { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL}, | |
47489 | { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL}, | |
47490 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47491 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47492 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47493 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47494 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47495 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47496 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47497 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47498 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47499 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47500 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47501 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47502 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47503 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47504 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47505 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47506 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL}, | |
47507 | { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL}, | |
47508 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL}, | |
47509 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL}, | |
47510 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47511 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47512 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL}, | |
47513 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL}, | |
47514 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47515 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL}, | |
47516 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL}, | |
47517 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47518 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47519 | { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL}, | |
47520 | { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL}, | |
47521 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL}, | |
47522 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47523 | { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL}, | |
47524 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4976f996 RD |
47525 | { (char *)"ToolBar_SetToolNormalBitmap", (PyCFunction) _wrap_ToolBar_SetToolNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
47526 | { (char *)"ToolBar_SetToolDisabledBitmap", (PyCFunction) _wrap_ToolBar_SetToolDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
47527 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
47528 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL}, | |
47529 | { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL}, | |
47530 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47531 | { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL}, | |
47532 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47533 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47534 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47535 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL}, | |
47536 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL}, | |
47537 | { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL}, | |
47538 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL}, | |
47539 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL}, | |
47540 | { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL}, | |
47541 | { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47542 | { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL}, | |
47543 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL}, | |
47544 | { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL}, | |
47545 | { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL}, | |
47546 | { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL}, | |
47547 | { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL}, | |
47548 | { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL}, | |
47549 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47550 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47551 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47552 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47553 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47554 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47555 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47556 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47557 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47558 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47559 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47560 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47561 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47562 | { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL}, | |
47563 | { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL}, | |
47564 | { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL}, | |
47565 | { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL}, | |
47566 | { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL}, | |
47567 | { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL}, | |
47568 | { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL}, | |
47569 | { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL}, | |
47570 | { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL}, | |
47571 | { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL}, | |
47572 | { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL}, | |
47573 | { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL}, | |
47574 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL}, | |
47575 | { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL}, | |
47576 | { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL}, | |
47577 | { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL}, | |
47578 | { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL}, | |
47579 | { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL}, | |
47580 | { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL}, | |
47581 | { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL}, | |
47582 | { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL}, | |
47583 | { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL}, | |
47584 | { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL}, | |
47585 | { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL}, | |
47586 | { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL}, | |
47587 | { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL}, | |
47588 | { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL}, | |
47589 | { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL}, | |
47590 | { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL}, | |
47591 | { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL}, | |
47592 | { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL}, | |
47593 | { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL}, | |
47594 | { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL}, | |
47595 | { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL}, | |
47596 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL}, | |
47597 | { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL}, | |
47598 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47599 | { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL}, | |
47600 | { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL}, | |
47601 | { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL}, | |
47602 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL}, | |
47603 | { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL}, | |
47604 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL}, | |
47605 | { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL}, | |
47606 | { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL}, | |
47607 | { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL}, | |
47608 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL}, | |
47609 | { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL}, | |
47610 | { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL}, | |
47611 | { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL}, | |
47612 | { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL}, | |
47613 | { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL}, | |
47614 | { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL}, | |
47615 | { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL}, | |
47616 | { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL}, | |
47617 | { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL}, | |
47618 | { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL}, | |
47619 | { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL}, | |
47620 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL}, | |
47621 | { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL}, | |
47622 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL}, | |
47623 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47624 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL}, | |
47625 | { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL}, | |
47626 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47627 | { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL}, | |
47628 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47629 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47630 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47631 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47632 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47633 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47634 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL}, | |
47635 | { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL}, | |
47636 | { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL}, | |
47637 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47638 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47639 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47640 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47641 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47642 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47643 | { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47644 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47645 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47646 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47647 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47648 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47649 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47650 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47651 | { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL}, | |
47652 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL}, | |
47653 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL}, | |
47654 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47655 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL}, | |
47656 | { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL}, | |
47657 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47658 | { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL}, | |
47659 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47660 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47661 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47662 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47663 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47664 | { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL}, | |
47665 | { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL}, | |
47666 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47667 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47668 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47669 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47670 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL}, | |
47671 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47672 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL}, | |
47673 | { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL}, | |
47674 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47675 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47676 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47677 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47678 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47679 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c | 47680 | { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
47681 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, |
47682 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47683 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47684 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47685 | { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47686 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47687 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47688 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47689 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47690 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47691 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47692 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47693 | { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47694 | { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47695 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47696 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL}, | |
47697 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47698 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL}, | |
47699 | { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL}, | |
47700 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47701 | { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL}, | |
47702 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47703 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47704 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47705 | { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL}, | |
47706 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47707 | { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL}, | |
47708 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47709 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47710 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47711 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL}, | |
47712 | { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL}, | |
47713 | { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL}, | |
47714 | { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL}, | |
47715 | { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL}, | |
47716 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47717 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47718 | { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL}, | |
47719 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL}, | |
47720 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL}, | |
47721 | { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL}, | |
47722 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47723 | { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL}, | |
47724 | { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL}, | |
47725 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47726 | { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL}, | |
47727 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47728 | { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL}, | |
47729 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL}, | |
47730 | { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL}, | |
b02396e8 | 47731 | { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL}, |
0085ce49 RD |
47732 | { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL}, |
47733 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47734 | { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL}, | |
47735 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47736 | { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL}, | |
47737 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47738 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL}, | |
47739 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL}, | |
47740 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47741 | { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL}, | |
47742 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47743 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL}, | |
47744 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47745 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47746 | { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL}, | |
47747 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL}, | |
47748 | { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL}, | |
47749 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47750 | { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL}, | |
47751 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47752 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47753 | { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL}, | |
47754 | { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL}, | |
47755 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47756 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL}, | |
47757 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47758 | { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL}, | |
47759 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL}, | |
47760 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47761 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47762 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47763 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47764 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47765 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47766 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47767 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47768 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47769 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47770 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47771 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47772 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47773 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47774 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47775 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47776 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47777 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47778 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47779 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47780 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47781 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47782 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47783 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47784 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47785 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1ceb4f4d | 47786 | { (char *)"TreeCtrl_IsEmpty", (PyCFunction)_wrap_TreeCtrl_IsEmpty, METH_O, NULL}, |
0085ce49 RD |
47787 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
47788 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL}, | |
47789 | { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL}, | |
47790 | { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL}, | |
47791 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47792 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47793 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47794 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47795 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47796 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47797 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL}, | |
47798 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47799 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47800 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47801 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47802 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47803 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47804 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47805 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47806 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47807 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL}, | |
47808 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
453fb36b RD |
47809 | { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL}, |
47810 | { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL}, | |
0085ce49 | 47811 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL}, |
1ceb4f4d RD |
47812 | { (char *)"TreeCtrl_CollapseAllChildren", (PyCFunction) _wrap_TreeCtrl_CollapseAllChildren, METH_VARARGS | METH_KEYWORDS, NULL}, |
47813 | { (char *)"TreeCtrl_CollapseAll", (PyCFunction)_wrap_TreeCtrl_CollapseAll, METH_O, NULL}, | |
0085ce49 RD |
47814 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL}, |
47815 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47816 | { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL}, | |
47817 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47818 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL}, | |
47819 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47820 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47821 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47822 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47823 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47824 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL}, | |
47825 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47826 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47827 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47828 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2131d850 RD |
47829 | { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
47830 | { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL}, | |
0085ce49 RD |
47831 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL}, |
47832 | { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL}, | |
47833 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47834 | { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL}, | |
47835 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47836 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c | 47837 | { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
47838 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL}, |
47839 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47840 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL}, | |
47841 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL}, | |
47842 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47843 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47844 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL}, | |
47845 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL}, | |
47846 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47847 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL}, | |
47848 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47849 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL}, | |
47850 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL}, | |
47851 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL}, | |
47852 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47853 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL}, | |
47854 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL}, | |
47855 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL}, | |
47856 | { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL}, | |
47857 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47858 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL}, | |
47859 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47860 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47861 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL}, | |
47862 | { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL}, | |
47863 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47864 | { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL}, | |
47865 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
47866 | { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
47867 | { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47868 | { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47869 | { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47870 | { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47871 | { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL}, | |
47872 | { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL}, | |
47873 | { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL}, | |
47874 | { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL}, | |
47875 | { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL}, | |
47876 | { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL}, | |
47877 | { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL}, | |
47878 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL}, | |
47879 | { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL}, | |
47880 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47881 | { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL}, | |
47882 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47883 | { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL}, | |
47884 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47885 | { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL}, | |
47886 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
47887 | { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL}, |
47888 | { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
47889 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL}, |
47890 | { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL}, | |
47891 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47892 | { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL}, | |
47893 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47894 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL}, | |
47895 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL}, | |
47896 | { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL}, | |
47897 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47898 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL}, | |
47899 | { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL}, | |
f52cbe90 | 47900 | { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL}, |
0085ce49 RD |
47901 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
47902 | { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL}, | |
47903 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47904 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b850e7f3 | 47905 | { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
47906 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL}, |
47907 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47908 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47909 | { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL}, | |
47910 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL}, | |
47911 | { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL}, | |
47912 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL}, | |
47913 | { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL}, | |
47914 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47915 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47916 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47917 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47918 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47919 | { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL}, | |
47920 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47921 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47922 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47923 | { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL}, | |
47924 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47925 | { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL}, | |
47926 | { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL}, | |
47927 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47928 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47929 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47930 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47931 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL}, | |
47932 | { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL}, | |
47933 | { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47934 | { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL}, | |
47935 | { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47936 | { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47937 | { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL}, | |
47938 | { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47939 | { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL}, | |
47940 | { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL}, | |
47941 | { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL}, | |
47942 | { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL}, | |
704eda0c RD |
47943 | { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, |
47944 | { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL}, | |
47945 | { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47946 | { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL}, | |
47947 | { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47948 | { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL}, | |
47949 | { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47950 | { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL}, | |
47951 | { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47952 | { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL}, | |
47953 | { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47954 | { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47955 | { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL}, | |
47956 | { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL}, | |
47957 | { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL}, | |
47958 | { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47959 | { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL}, | |
47960 | { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47961 | { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL}, | |
47962 | { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL}, | |
b850e7f3 RD |
47963 | { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL}, |
47964 | { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47965 | { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL}, | |
47966 | { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47967 | { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL}, | |
10044bf1 RD |
47968 | { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL}, |
47969 | { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL}, | |
b02396e8 RD |
47970 | { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL}, |
47971 | { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47972 | { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL}, | |
47973 | { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b850e7f3 RD |
47974 | { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL}, |
47975 | { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL}, | |
47976 | { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL}, | |
47977 | { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL}, | |
47978 | { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47979 | { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL}, | |
47980 | { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47981 | { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL}, | |
47982 | { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47983 | { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL}, | |
47984 | { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL}, | |
47985 | { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47986 | { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL}, | |
47987 | { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47988 | { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL}, | |
47989 | { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL}, | |
47990 | { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47991 | { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL}, | |
47992 | { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
47993 | { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL}, | |
47994 | { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b02396e8 RD |
47995 | { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL}, |
47996 | { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL}, | |
b850e7f3 RD |
47997 | { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL}, |
47998 | { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL}, | |
47999 | { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48000 | { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL}, | |
48001 | { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48002 | { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL}, | |
48003 | { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b02396e8 RD |
48004 | { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL}, |
48005 | { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL}, | |
b850e7f3 RD |
48006 | { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL}, |
48007 | { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL}, | |
48008 | { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48009 | { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL}, | |
48010 | { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48011 | { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL}, | |
48012 | { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL}, | |
48013 | { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48014 | { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL}, | |
48015 | { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48016 | { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL}, | |
48017 | { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48018 | { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48019 | { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL}, | |
48020 | { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL}, | |
48021 | { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL}, | |
48022 | { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48023 | { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL}, | |
48024 | { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48025 | { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL}, | |
48026 | { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL}, | |
5172800e RD |
48027 | { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL}, |
48028 | { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL}, | |
48029 | { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48030 | { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48031 | { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL}, | |
48032 | { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL}, | |
48033 | { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL}, | |
48034 | { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL}, | |
48035 | { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL}, | |
48036 | { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL}, | |
48037 | { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48038 | { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL}, | |
48039 | { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48040 | { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL}, | |
48041 | { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL}, | |
3f7f284d RD |
48042 | { (char *)"new_SearchCtrl", (PyCFunction) _wrap_new_SearchCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, |
48043 | { (char *)"new_PreSearchCtrl", (PyCFunction)_wrap_new_PreSearchCtrl, METH_NOARGS, NULL}, | |
48044 | { (char *)"SearchCtrl_Create", (PyCFunction) _wrap_SearchCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48045 | { (char *)"SearchCtrl_SetMenu", (PyCFunction) _wrap_SearchCtrl_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48046 | { (char *)"SearchCtrl_GetMenu", (PyCFunction)_wrap_SearchCtrl_GetMenu, METH_O, NULL}, | |
70b63a99 RD |
48047 | { (char *)"SearchCtrl_ShowSearchButton", (PyCFunction) _wrap_SearchCtrl_ShowSearchButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
48048 | { (char *)"SearchCtrl_IsSearchButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsSearchButtonVisible, METH_O, NULL}, | |
48049 | { (char *)"SearchCtrl_ShowCancelButton", (PyCFunction) _wrap_SearchCtrl_ShowCancelButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48050 | { (char *)"SearchCtrl_IsCancelButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsCancelButtonVisible, METH_O, NULL}, | |
6646ca90 RD |
48051 | { (char *)"SearchCtrl_SetDescriptiveText", (PyCFunction) _wrap_SearchCtrl_SetDescriptiveText, METH_VARARGS | METH_KEYWORDS, NULL}, |
48052 | { (char *)"SearchCtrl_GetDescriptiveText", (PyCFunction)_wrap_SearchCtrl_GetDescriptiveText, METH_O, NULL}, | |
3f7f284d RD |
48053 | { (char *)"SearchCtrl_SetSearchBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
48054 | { (char *)"SearchCtrl_SetSearchMenuBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchMenuBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48055 | { (char *)"SearchCtrl_SetCancelBitmap", (PyCFunction) _wrap_SearchCtrl_SetCancelBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
48056 | { (char *)"SearchCtrl_swigregister", SearchCtrl_swigregister, METH_VARARGS, NULL}, | |
48057 | { (char *)"SearchCtrl_swiginit", SearchCtrl_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
48058 | { NULL, NULL, 0, NULL } |
48059 | }; | |
48060 | ||
48061 | ||
48062 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
48063 | ||
48064 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
48065 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
48066 | } | |
48067 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
48068 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
48069 | } | |
48070 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
48071 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
48072 | } | |
48073 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
48074 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
48075 | } | |
48076 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
48077 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
48078 | } | |
48079 | static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) { | |
48080 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
48081 | } | |
48082 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
48083 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
48084 | } | |
48085 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
48086 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
48087 | } | |
b850e7f3 RD |
48088 | static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) { |
48089 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x)); | |
48090 | } | |
48091 | static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) { | |
48092 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x)); | |
48093 | } | |
48094 | static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) { | |
48095 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x)); | |
48096 | } | |
0085ce49 RD |
48097 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { |
48098 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
48099 | } | |
48100 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
48101 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
48102 | } | |
48103 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
48104 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
48105 | } | |
0085ce49 RD |
48106 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { |
48107 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
48108 | } | |
34e0a3bb RD |
48109 | static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) { |
48110 | return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
48111 | } | |
2131d850 RD |
48112 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
48113 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
48114 | } | |
0085ce49 RD |
48115 | static void *_p_wxListEventTo_p_wxEvent(void *x) { |
48116 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
48117 | } | |
48118 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
48119 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
48120 | } | |
48121 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
48122 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
48123 | } | |
48124 | static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) { | |
48125 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
48126 | } | |
48127 | static void *_p_wxTreebookEventTo_p_wxEvent(void *x) { | |
48128 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
48129 | } | |
48130 | static void *_p_wxToolbookEventTo_p_wxEvent(void *x) { | |
48131 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
48132 | } | |
48133 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
48134 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
48135 | } | |
48136 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
48137 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
48138 | } | |
48139 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
48140 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
48141 | } | |
48142 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
48143 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
48144 | } | |
48145 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
48146 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
48147 | } | |
48148 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
48149 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
48150 | } | |
48151 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
48152 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
48153 | } | |
48154 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
48155 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
48156 | } | |
48157 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
48158 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
48159 | } | |
48160 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { | |
48161 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
48162 | } | |
5172800e RD |
48163 | static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) { |
48164 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x)); | |
48165 | } | |
0085ce49 RD |
48166 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
48167 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
48168 | } | |
48169 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
48170 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
48171 | } | |
34e0a3bb RD |
48172 | static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) { |
48173 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
48174 | } | |
0085ce49 RD |
48175 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { |
48176 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
48177 | } | |
48178 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
48179 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
48180 | } | |
48181 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
48182 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
48183 | } | |
48184 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
48185 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
48186 | } | |
48187 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
48188 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
48189 | } | |
704eda0c RD |
48190 | static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) { |
48191 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x)); | |
48192 | } | |
0085ce49 RD |
48193 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { |
48194 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
48195 | } | |
48196 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
48197 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
48198 | } | |
48199 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
48200 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
48201 | } | |
48202 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
48203 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
48204 | } | |
48205 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
48206 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
48207 | } | |
48208 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
48209 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
48210 | } | |
48211 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
48212 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
48213 | } | |
48214 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
48215 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
48216 | } | |
48217 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
48218 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
48219 | } | |
48220 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
48221 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
48222 | } | |
48223 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
48224 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
48225 | } | |
b850e7f3 RD |
48226 | static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) { |
48227 | return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
48228 | } | |
48229 | static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) { | |
48230 | return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
48231 | } | |
48232 | static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) { | |
48233 | return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
48234 | } | |
48235 | static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) { | |
48236 | return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
48237 | } | |
0085ce49 RD |
48238 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
48239 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
48240 | } | |
48241 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
48242 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
48243 | } | |
48244 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
48245 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
48246 | } | |
48247 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
48248 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
48249 | } | |
48250 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
48251 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
48252 | } | |
48253 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
48254 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
48255 | } | |
48256 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
48257 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
48258 | } | |
5172800e RD |
48259 | static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) { |
48260 | return (void *)((wxControl *) ((wxCollapsiblePane *) x)); | |
48261 | } | |
0085ce49 RD |
48262 | static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) { |
48263 | return (void *)((wxControl *) ((wxBookCtrlBase *) x)); | |
48264 | } | |
48265 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
48266 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
48267 | } | |
b850e7f3 RD |
48268 | static void *_p_wxPickerBaseTo_p_wxControl(void *x) { |
48269 | return (void *)((wxControl *) ((wxPickerBase *) x)); | |
48270 | } | |
0085ce49 RD |
48271 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { |
48272 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
48273 | } | |
48274 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
48275 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
48276 | } | |
3f7f284d RD |
48277 | static void *_p_wxSearchCtrlTo_p_wxControl(void *x) { |
48278 | return (void *)((wxControl *) (wxTextCtrl *) ((wxSearchCtrl *) x)); | |
48279 | } | |
0085ce49 RD |
48280 | static void *_p_wxToolbookTo_p_wxControl(void *x) { |
48281 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x)); | |
48282 | } | |
48283 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
48284 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
48285 | } | |
48286 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
48287 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
48288 | } | |
48289 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
48290 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
48291 | } | |
48292 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
48293 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
48294 | } | |
48295 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
48296 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
48297 | } | |
48298 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
48299 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
48300 | } | |
48301 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
48302 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
48303 | } | |
48304 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
48305 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
48306 | } | |
48307 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
48308 | return (void *)((wxControl *) ((wxGauge *) x)); | |
48309 | } | |
48310 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
48311 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
48312 | } | |
48313 | static void *_p_wxChoicebookTo_p_wxControl(void *x) { | |
48314 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x)); | |
48315 | } | |
48316 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
48317 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x)); | |
48318 | } | |
704eda0c RD |
48319 | static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) { |
48320 | return (void *)((wxControl *) ((wxHyperlinkCtrl *) x)); | |
48321 | } | |
0085ce49 RD |
48322 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { |
48323 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
48324 | } | |
48325 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
48326 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
48327 | } | |
48328 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
48329 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
48330 | } | |
48331 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
48332 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
48333 | } | |
48334 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
48335 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
48336 | } | |
48337 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
48338 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
48339 | } | |
48340 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
48341 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
48342 | } | |
48343 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
48344 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x)); | |
48345 | } | |
48346 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
48347 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
48348 | } | |
48349 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
48350 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
48351 | } | |
48352 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
48353 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
48354 | } | |
48355 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
48356 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
48357 | } | |
48358 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
48359 | return (void *)((wxControl *) ((wxSlider *) x)); | |
48360 | } | |
48361 | static void *_p_wxTreebookTo_p_wxControl(void *x) { | |
48362 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x)); | |
48363 | } | |
48364 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
48365 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
48366 | } | |
48367 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
48368 | return (void *)((wxControl *) ((wxButton *) x)); | |
48369 | } | |
48370 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
48371 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
48372 | } | |
48373 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
48374 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
48375 | } | |
48376 | static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) { | |
48377 | return (void *)((wxControl *) ((wxDatePickerCtrl *) x)); | |
48378 | } | |
b850e7f3 RD |
48379 | static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) { |
48380 | return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
48381 | } | |
48382 | static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) { | |
48383 | return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
48384 | } | |
48385 | static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) { | |
48386 | return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
48387 | } | |
48388 | static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) { | |
48389 | return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
48390 | } | |
0085ce49 RD |
48391 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { |
48392 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
48393 | } | |
48394 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
48395 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
48396 | } | |
48397 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
48398 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
48399 | } | |
3f7f284d RD |
48400 | static void *_p_wxSearchCtrlTo_p_wxTextCtrl(void *x) { |
48401 | return (void *)((wxTextCtrl *) ((wxSearchCtrl *) x)); | |
48402 | } | |
0085ce49 RD |
48403 | static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) { |
48404 | return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
48405 | } | |
48406 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
48407 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
48408 | } | |
48409 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
48410 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
48411 | } | |
48412 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
48413 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
48414 | } | |
48415 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
48416 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
48417 | } | |
48418 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
48419 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
48420 | } | |
48421 | static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) { | |
48422 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
48423 | } | |
48424 | static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) { | |
48425 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
48426 | } | |
48427 | static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) { | |
48428 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
48429 | } | |
48430 | static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) { | |
48431 | return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x)); | |
48432 | } | |
48433 | static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) { | |
48434 | return (void *)((wxBookCtrlBase *) ((wxListbook *) x)); | |
48435 | } | |
48436 | static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) { | |
48437 | return (void *)((wxBookCtrlBase *) ((wxToolbook *) x)); | |
48438 | } | |
48439 | static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) { | |
48440 | return (void *)((wxBookCtrlBase *) ((wxTreebook *) x)); | |
48441 | } | |
48442 | static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) { | |
48443 | return (void *)((wxBookCtrlBase *) ((wxNotebook *) x)); | |
48444 | } | |
5172800e RD |
48445 | static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) { |
48446 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x)); | |
48447 | } | |
4976f996 RD |
48448 | static void *_p_wxEventBlockerTo_p_wxEvtHandler(void *x) { |
48449 | return (void *)((wxEvtHandler *) ((wxEventBlocker *) x)); | |
48450 | } | |
0085ce49 RD |
48451 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { |
48452 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
48453 | } | |
48454 | static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) { | |
48455 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
48456 | } | |
48457 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
48458 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
48459 | } | |
48460 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
48461 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
48462 | } | |
48463 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
48464 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
48465 | } | |
b850e7f3 RD |
48466 | static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) { |
48467 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x)); | |
48468 | } | |
0085ce49 RD |
48469 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { |
48470 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
48471 | } | |
48472 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
48473 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
48474 | } | |
48475 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
48476 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
48477 | } | |
3f7f284d RD |
48478 | static void *_p_wxSearchCtrlTo_p_wxEvtHandler(void *x) { |
48479 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x)); | |
48480 | } | |
0085ce49 RD |
48481 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { |
48482 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
48483 | } | |
4976f996 RD |
48484 | static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) { |
48485 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
48486 | } | |
0085ce49 RD |
48487 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { |
48488 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
48489 | } | |
48490 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
48491 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
48492 | } | |
48493 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
48494 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
48495 | } | |
48496 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
48497 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
48498 | } | |
48499 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
48500 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
48501 | } | |
48502 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
48503 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
48504 | } | |
48505 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
48506 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
48507 | } | |
48508 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
48509 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
48510 | } | |
48511 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
48512 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
48513 | } | |
48514 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
48515 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
48516 | } | |
48517 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
48518 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
48519 | } | |
48520 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
48521 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
48522 | } | |
48523 | static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) { | |
48524 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
48525 | } | |
48526 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
48527 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
48528 | } | |
704eda0c RD |
48529 | static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) { |
48530 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x)); | |
48531 | } | |
0085ce49 RD |
48532 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { |
48533 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
48534 | } | |
48535 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
48536 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
48537 | } | |
48538 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
48539 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
48540 | } | |
48541 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
48542 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
48543 | } | |
48544 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
48545 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
48546 | } | |
48547 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
48548 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
48549 | } | |
48550 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
48551 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
48552 | } | |
48553 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
48554 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
48555 | } | |
48556 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
48557 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
48558 | } | |
48559 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
48560 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
48561 | } | |
48562 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
48563 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
48564 | } | |
48565 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
48566 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
48567 | } | |
48568 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
48569 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
48570 | } | |
48571 | static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) { | |
48572 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
48573 | } | |
48574 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
48575 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
48576 | } | |
48577 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
48578 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
48579 | } | |
48580 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
48581 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
48582 | } | |
48583 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
48584 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
48585 | } | |
48586 | static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) { | |
48587 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
48588 | } | |
b850e7f3 RD |
48589 | static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) { |
48590 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
48591 | } | |
48592 | static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) { | |
48593 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
48594 | } | |
48595 | static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) { | |
48596 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
48597 | } | |
48598 | static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) { | |
48599 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
48600 | } | |
0085ce49 RD |
48601 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { |
48602 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
48603 | } | |
48604 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
48605 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
48606 | } | |
48607 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
48608 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
48609 | } | |
48610 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
48611 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
48612 | } | |
48613 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
48614 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
48615 | } | |
48616 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
48617 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
48618 | } | |
48619 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
48620 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
48621 | } | |
48622 | static void *_p_wxToolbookTo_p_wxObject(void *x) { | |
48623 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
48624 | } | |
4976f996 RD |
48625 | static void *_p_wxEventBlockerTo_p_wxObject(void *x) { |
48626 | return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x)); | |
48627 | } | |
0085ce49 RD |
48628 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
48629 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
48630 | } | |
34e0a3bb RD |
48631 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
48632 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
48633 | } | |
0085ce49 RD |
48634 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
48635 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
48636 | } | |
48637 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
48638 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
48639 | } | |
48640 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
48641 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
48642 | } | |
48643 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
48644 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
48645 | } | |
48646 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
48647 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
48648 | } | |
48649 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
48650 | return (void *)((wxObject *) ((wxSizer *) x)); | |
48651 | } | |
48652 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
48653 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
48654 | } | |
48655 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
48656 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
48657 | } | |
48658 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
48659 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
48660 | } | |
48661 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
48662 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
48663 | } | |
48664 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
48665 | return (void *)((wxObject *) ((wxEvent *) x)); | |
48666 | } | |
0085ce49 RD |
48667 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
48668 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
48669 | } | |
4976f996 RD |
48670 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { |
48671 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
48672 | } | |
3f7f284d RD |
48673 | static void *_p_wxSearchCtrlTo_p_wxObject(void *x) { |
48674 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x)); | |
48675 | } | |
0085ce49 RD |
48676 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { |
48677 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
48678 | } | |
48679 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
48680 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
48681 | } | |
b850e7f3 RD |
48682 | static void *_p_wxPickerBaseTo_p_wxObject(void *x) { |
48683 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x)); | |
48684 | } | |
0085ce49 RD |
48685 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { |
48686 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
48687 | } | |
48688 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
48689 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
48690 | } | |
2131d850 RD |
48691 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
48692 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
48693 | } | |
0085ce49 RD |
48694 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
48695 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
48696 | } | |
48697 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
48698 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
48699 | } | |
48700 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
48701 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
48702 | } | |
48703 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
48704 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
48705 | } | |
48706 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
48707 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
48708 | } | |
48709 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
48710 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
48711 | } | |
48712 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
48713 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
48714 | } | |
48715 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
48716 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
48717 | } | |
48718 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
48719 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
48720 | } | |
48721 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
48722 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
48723 | } | |
48724 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
48725 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
48726 | } | |
48727 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
48728 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
48729 | } | |
48730 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
48731 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
48732 | } | |
48733 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
48734 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
48735 | } | |
b850e7f3 RD |
48736 | static void *_p_wxColourPickerEventTo_p_wxObject(void *x) { |
48737 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x)); | |
48738 | } | |
48739 | static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) { | |
48740 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x)); | |
48741 | } | |
48742 | static void *_p_wxFontPickerEventTo_p_wxObject(void *x) { | |
48743 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x)); | |
48744 | } | |
0085ce49 RD |
48745 | static void *_p_wxChoiceTo_p_wxObject(void *x) { |
48746 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
48747 | } | |
48748 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
48749 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
48750 | } | |
48751 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
48752 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
48753 | } | |
48754 | static void *_p_wxTreebookTo_p_wxObject(void *x) { | |
48755 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
48756 | } | |
48757 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
48758 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
48759 | } | |
704eda0c RD |
48760 | static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) { |
48761 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x)); | |
48762 | } | |
0085ce49 RD |
48763 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { |
48764 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
48765 | } | |
48766 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
48767 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
48768 | } | |
48769 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
48770 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
48771 | } | |
48772 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
48773 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
48774 | } | |
48775 | static void *_p_wxChoicebookTo_p_wxObject(void *x) { | |
48776 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
48777 | } | |
48778 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
48779 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
48780 | } | |
48781 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
48782 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
48783 | } | |
48784 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
48785 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
48786 | } | |
48787 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
48788 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
48789 | } | |
48790 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
48791 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
48792 | } | |
48793 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
48794 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
48795 | } | |
48796 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
48797 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
48798 | } | |
48799 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
48800 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
48801 | } | |
48802 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
48803 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
48804 | } | |
48805 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
48806 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
48807 | } | |
48808 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
48809 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
48810 | } | |
48811 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
48812 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
48813 | } | |
48814 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
48815 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
48816 | } | |
48817 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
48818 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
48819 | } | |
48820 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
48821 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
48822 | } | |
48823 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
48824 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
48825 | } | |
5172800e RD |
48826 | static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) { |
48827 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x)); | |
48828 | } | |
0085ce49 RD |
48829 | static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) { |
48830 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
48831 | } | |
48832 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
48833 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
48834 | } | |
48835 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
48836 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
48837 | } | |
48838 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
48839 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
48840 | } | |
48841 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
48842 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
48843 | } | |
48844 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
48845 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
48846 | } | |
48847 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
48848 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
48849 | } | |
48850 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
48851 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
48852 | } | |
48853 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
48854 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
48855 | } | |
48856 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
48857 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
48858 | } | |
48859 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
48860 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
48861 | } | |
48862 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
48863 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
48864 | } | |
48865 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
48866 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
48867 | } | |
48868 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
48869 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
48870 | } | |
580080c5 RD |
48871 | static void *_p_wxTGAHandlerTo_p_wxObject(void *x) { |
48872 | return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x)); | |
48873 | } | |
0085ce49 RD |
48874 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
48875 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
48876 | } | |
34e0a3bb RD |
48877 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
48878 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
48879 | } | |
0085ce49 RD |
48880 | static void *_p_wxListEventTo_p_wxObject(void *x) { |
48881 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
48882 | } | |
48883 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
48884 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
48885 | } | |
48886 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
48887 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
48888 | } | |
48889 | static void *_p_wxButtonTo_p_wxObject(void *x) { | |
48890 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
48891 | } | |
48892 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
48893 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
48894 | } | |
48895 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
48896 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
48897 | } | |
48898 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
48899 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
48900 | } | |
0085ce49 RD |
48901 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
48902 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
48903 | } | |
580080c5 RD |
48904 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
48905 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
48906 | } | |
0085ce49 RD |
48907 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
48908 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
48909 | } | |
48910 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
48911 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
48912 | } | |
48913 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
48914 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
48915 | } | |
48916 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
48917 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
48918 | } | |
48919 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
48920 | return (void *)((wxObject *) ((wxListItem *) x)); | |
48921 | } | |
48922 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
48923 | return (void *)((wxObject *) ((wxImage *) x)); | |
48924 | } | |
48925 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
48926 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
48927 | } | |
48928 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
48929 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
48930 | } | |
48931 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
48932 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
48933 | } | |
48934 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
48935 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
48936 | } | |
48937 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
48938 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
48939 | } | |
48940 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
48941 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
48942 | } | |
48943 | static void *_p_wxChoicebookEventTo_p_wxObject(void *x) { | |
48944 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
48945 | } | |
48946 | static void *_p_wxTreebookEventTo_p_wxObject(void *x) { | |
48947 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
48948 | } | |
48949 | static void *_p_wxToolbookEventTo_p_wxObject(void *x) { | |
48950 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
48951 | } | |
48952 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
48953 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
48954 | } | |
48955 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
48956 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
48957 | } | |
48958 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
48959 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
48960 | } | |
48961 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
48962 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
48963 | } | |
48964 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
48965 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
48966 | } | |
48967 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
48968 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
48969 | } | |
48970 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
48971 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
48972 | } | |
5172800e RD |
48973 | static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) { |
48974 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x)); | |
48975 | } | |
0085ce49 RD |
48976 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
48977 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
48978 | } | |
48979 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
48980 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
48981 | } | |
48982 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
48983 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
48984 | } | |
48985 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
48986 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
48987 | } | |
48988 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
48989 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
48990 | } | |
48991 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
48992 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
48993 | } | |
48994 | static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) { | |
48995 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
48996 | } | |
48997 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
48998 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
48999 | } | |
49000 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
49001 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
49002 | } | |
49003 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
49004 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
49005 | } | |
49006 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
49007 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
49008 | } | |
49009 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
49010 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
49011 | } | |
49012 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
49013 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
49014 | } | |
49015 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
49016 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
49017 | } | |
49018 | static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) { | |
49019 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
49020 | } | |
b850e7f3 RD |
49021 | static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) { |
49022 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
49023 | } | |
49024 | static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) { | |
49025 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
49026 | } | |
49027 | static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) { | |
49028 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
49029 | } | |
49030 | static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) { | |
49031 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
49032 | } | |
0085ce49 RD |
49033 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { |
49034 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
49035 | } | |
704eda0c RD |
49036 | static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) { |
49037 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x)); | |
49038 | } | |
0085ce49 RD |
49039 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { |
49040 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
49041 | } | |
49042 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
49043 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
49044 | } | |
49045 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
49046 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
49047 | } | |
49048 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
49049 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
49050 | } | |
5172800e RD |
49051 | static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) { |
49052 | return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x)); | |
49053 | } | |
0085ce49 RD |
49054 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { |
49055 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
49056 | } | |
49057 | static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) { | |
49058 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x)); | |
49059 | } | |
49060 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
49061 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
49062 | } | |
b850e7f3 RD |
49063 | static void *_p_wxPickerBaseTo_p_wxWindow(void *x) { |
49064 | return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x)); | |
49065 | } | |
0085ce49 RD |
49066 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { |
49067 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
49068 | } | |
49069 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
49070 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
49071 | } | |
3f7f284d RD |
49072 | static void *_p_wxSearchCtrlTo_p_wxWindow(void *x) { |
49073 | return (void *)((wxWindow *) (wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x)); | |
49074 | } | |
0085ce49 RD |
49075 | static void *_p_wxToolbookTo_p_wxWindow(void *x) { |
49076 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
49077 | } | |
49078 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
49079 | return (void *)((wxWindow *) ((wxControl *) x)); | |
49080 | } | |
49081 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
49082 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
49083 | } | |
49084 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
49085 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
49086 | } | |
49087 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
49088 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
49089 | } | |
49090 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
49091 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
49092 | } | |
49093 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
49094 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
49095 | } | |
49096 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
49097 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
49098 | } | |
49099 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
49100 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
49101 | } | |
49102 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
49103 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
49104 | } | |
49105 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
49106 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
49107 | } | |
49108 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
49109 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
49110 | } | |
49111 | static void *_p_wxChoicebookTo_p_wxWindow(void *x) { | |
49112 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
49113 | } | |
49114 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
49115 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
49116 | } | |
704eda0c RD |
49117 | static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) { |
49118 | return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x)); | |
49119 | } | |
0085ce49 RD |
49120 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { |
49121 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
49122 | } | |
49123 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
49124 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
49125 | } | |
49126 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
49127 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
49128 | } | |
49129 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
49130 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
49131 | } | |
49132 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
49133 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
49134 | } | |
49135 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
49136 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
49137 | } | |
49138 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
49139 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
49140 | } | |
49141 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
49142 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
49143 | } | |
49144 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
49145 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
49146 | } | |
49147 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
49148 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
49149 | } | |
49150 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
49151 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
49152 | } | |
49153 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
49154 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
49155 | } | |
49156 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
49157 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
49158 | } | |
49159 | static void *_p_wxTreebookTo_p_wxWindow(void *x) { | |
49160 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
49161 | } | |
49162 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
49163 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
49164 | } | |
49165 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
49166 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
49167 | } | |
49168 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
49169 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
49170 | } | |
49171 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
49172 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
49173 | } | |
49174 | static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) { | |
49175 | return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x)); | |
49176 | } | |
b850e7f3 RD |
49177 | static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) { |
49178 | return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
49179 | } | |
49180 | static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) { | |
49181 | return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
49182 | } | |
49183 | static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) { | |
49184 | return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
49185 | } | |
49186 | static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) { | |
49187 | return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
49188 | } | |
0085ce49 RD |
49189 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { |
49190 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
49191 | } | |
49192 | static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
49193 | return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
49194 | } | |
49195 | static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
49196 | return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
49197 | } | |
49198 | static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
49199 | return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
49200 | } | |
49201 | static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
49202 | return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
49203 | } | |
49204 | static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
49205 | return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
49206 | } | |
49207 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
49208 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
49209 | } | |
704eda0c RD |
49210 | static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) { |
49211 | return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x)); | |
49212 | } | |
2131d850 RD |
49213 | static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) { |
49214 | return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
49215 | } | |
b850e7f3 RD |
49216 | static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) { |
49217 | return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x)); | |
49218 | } | |
49219 | static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) { | |
49220 | return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x)); | |
49221 | } | |
49222 | static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) { | |
49223 | return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x)); | |
49224 | } | |
0085ce49 RD |
49225 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { |
49226 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
49227 | } | |
49228 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
49229 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
49230 | } | |
49231 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
49232 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
49233 | } | |
49234 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
49235 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
49236 | } | |
49237 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
49238 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
49239 | } | |
0085ce49 RD |
49240 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { |
49241 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
49242 | } | |
2131d850 RD |
49243 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { |
49244 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
49245 | } | |
0085ce49 RD |
49246 | static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) { |
49247 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
49248 | } | |
49249 | static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) { | |
49250 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
49251 | } | |
49252 | static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) { | |
49253 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
49254 | } | |
49255 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
49256 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
49257 | } | |
49258 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
49259 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
49260 | } | |
49261 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
49262 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
49263 | } | |
5172800e RD |
49264 | static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) { |
49265 | return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x)); | |
49266 | } | |
0085ce49 RD |
49267 | static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) { |
49268 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
49269 | } | |
49270 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
49271 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
49272 | } | |
49273 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
49274 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
49275 | } | |
49276 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
49277 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
49278 | } | |
49279 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
49280 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
49281 | } | |
49282 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
49283 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
49284 | } | |
49285 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
49286 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
49287 | } | |
49288 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
49289 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
49290 | } | |
49291 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
49292 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
49293 | } | |
49294 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
49295 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
49296 | } | |
49297 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
49298 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
49299 | } | |
49300 | static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0}; | |
49301 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; | |
49302 | 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}; | |
49303 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
49304 | static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0}; | |
49305 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
49306 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
49307 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
49308 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; | |
49309 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
49310 | static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0}; | |
49311 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
49312 | static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0}; | |
49313 | static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0}; | |
49314 | static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0}; | |
49315 | static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0}; | |
49316 | static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0}; | |
49317 | static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0}; | |
49318 | static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0}; | |
49319 | static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0}; | |
49320 | static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0}; | |
5172800e RD |
49321 | static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0}; |
49322 | static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0}; | |
0085ce49 | 49323 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; |
b850e7f3 RD |
49324 | static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0}; |
49325 | static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
49326 | static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0}; |
49327 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
49328 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 49329 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
49330 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
49331 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
49332 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
49333 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
49334 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
49335 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
49336 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
49337 | static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0}; | |
49338 | static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0}; | |
49339 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0}; | |
49340 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0}; | |
49341 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
49342 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
49343 | static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0}; | |
49344 | static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0}; | |
49345 | static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0}; | |
b850e7f3 | 49346 | static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
49347 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; |
49348 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
49349 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
49350 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
49351 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
49352 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
49353 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
49354 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
34e0a3bb | 49355 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
49356 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; |
49357 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
49358 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
49359 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
49360 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
49361 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
34e0a3bb | 49362 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
49363 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
49364 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
49365 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
49366 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
49367 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
49368 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
49369 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
49370 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
49371 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
49372 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
49373 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
49374 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
4976f996 | 49375 | static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0}; |
0085ce49 RD |
49376 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; |
49377 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
49378 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
b850e7f3 RD |
49379 | static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0}; |
49380 | static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0}; | |
0085ce49 | 49381 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; |
b850e7f3 RD |
49382 | static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0}; |
49383 | static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
49384 | static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0}; |
49385 | static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0}; | |
49386 | static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0}; | |
49387 | static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0}; | |
49388 | static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0}; | |
704eda0c RD |
49389 | static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0}; |
49390 | static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
49391 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
49392 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
49393 | static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0}; | |
49394 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0}; | |
49395 | static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0}; | |
49396 | static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0}; | |
49397 | static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0}; | |
49398 | static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0}; | |
49399 | static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0}; | |
49400 | static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0}; | |
49401 | static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0}; | |
49402 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
3f7f284d | 49403 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
49404 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0}; |
49405 | static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0}; | |
49406 | static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0}; | |
49407 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
49408 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
49409 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
0085ce49 | 49410 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 49411 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
0085ce49 RD |
49412 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; |
49413 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
49414 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
49415 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
49416 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
0085ce49 | 49417 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; |
4976f996 | 49418 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; |
0085ce49 RD |
49419 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; |
49420 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
49421 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
0085ce49 RD |
49422 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; |
49423 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
4976f996 | 49424 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; |
3f7f284d | 49425 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; |
5172800e | 49426 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
b850e7f3 RD |
49427 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; |
49428 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
49429 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
49430 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
704eda0c | 49431 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; |
2131d850 | 49432 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; |
0085ce49 RD |
49433 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; |
49434 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
580080c5 | 49435 | static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0}; |
0085ce49 | 49436 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; |
580080c5 | 49437 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
0085ce49 RD |
49438 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0}; |
49439 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
49440 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
b850e7f3 | 49441 | static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
49442 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; |
49443 | static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0}; | |
49444 | static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0}; | |
49445 | static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0}; | |
49446 | static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0}; | |
49447 | static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0}; | |
49448 | static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0}; | |
49449 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; | |
49450 | static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0}; | |
3f7f284d | 49451 | static swig_type_info _swigt__p_wxSearchCtrl = {"_p_wxSearchCtrl", "wxSearchCtrl *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
49452 | static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0}; |
49453 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
49454 | static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0}; | |
49455 | static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0}; | |
49456 | static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0}; | |
49457 | static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0}; | |
49458 | static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0}; | |
49459 | static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0}; | |
49460 | static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0}; | |
49461 | static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0}; | |
49462 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; | |
49463 | static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0}; | |
49464 | static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0}; | |
49465 | static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0}; | |
49466 | static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0}; | |
49467 | static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0}; | |
49468 | static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0}; | |
49469 | static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0}; | |
49470 | static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0}; | |
49471 | static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
49472 | static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0}; |
49473 | static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0}; | |
49474 | static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0}; | |
49475 | static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0}; | |
49476 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0}; | |
49477 | static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0}; | |
49478 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
b850e7f3 | 49479 | static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
49480 | |
49481 | static swig_type_info *swig_type_initial[] = { | |
49482 | &_swigt__p_bool, | |
49483 | &_swigt__p_char, | |
49484 | &_swigt__p_form_ops_t, | |
49485 | &_swigt__p_int, | |
49486 | &_swigt__p_long, | |
49487 | &_swigt__p_unsigned_char, | |
49488 | &_swigt__p_unsigned_int, | |
49489 | &_swigt__p_unsigned_long, | |
49490 | &_swigt__p_void, | |
49491 | &_swigt__p_wxANIHandler, | |
49492 | &_swigt__p_wxAcceleratorTable, | |
49493 | &_swigt__p_wxActivateEvent, | |
49494 | &_swigt__p_wxArrayInt, | |
49495 | &_swigt__p_wxArrayString, | |
49496 | &_swigt__p_wxBMPHandler, | |
49497 | &_swigt__p_wxBitmap, | |
49498 | &_swigt__p_wxBitmapButton, | |
49499 | &_swigt__p_wxBookCtrlBase, | |
49500 | &_swigt__p_wxBookCtrlBaseEvent, | |
49501 | &_swigt__p_wxBoxSizer, | |
49502 | &_swigt__p_wxButton, | |
49503 | &_swigt__p_wxCURHandler, | |
49504 | &_swigt__p_wxCheckBox, | |
49505 | &_swigt__p_wxCheckListBox, | |
49506 | &_swigt__p_wxChildFocusEvent, | |
49507 | &_swigt__p_wxChoice, | |
49508 | &_swigt__p_wxChoicebook, | |
49509 | &_swigt__p_wxChoicebookEvent, | |
2131d850 | 49510 | &_swigt__p_wxClipboardTextEvent, |
0085ce49 | 49511 | &_swigt__p_wxCloseEvent, |
5172800e RD |
49512 | &_swigt__p_wxCollapsiblePane, |
49513 | &_swigt__p_wxCollapsiblePaneEvent, | |
0085ce49 | 49514 | &_swigt__p_wxColour, |
b850e7f3 RD |
49515 | &_swigt__p_wxColourPickerCtrl, |
49516 | &_swigt__p_wxColourPickerEvent, | |
0085ce49 RD |
49517 | &_swigt__p_wxComboBox, |
49518 | &_swigt__p_wxCommandEvent, | |
49519 | &_swigt__p_wxContextHelp, | |
49520 | &_swigt__p_wxContextHelpButton, | |
49521 | &_swigt__p_wxContextMenuEvent, | |
49522 | &_swigt__p_wxControl, | |
49523 | &_swigt__p_wxControlWithItems, | |
49524 | &_swigt__p_wxCursor, | |
49525 | &_swigt__p_wxDC, | |
49526 | &_swigt__p_wxDateEvent, | |
49527 | &_swigt__p_wxDatePickerCtrl, | |
49528 | &_swigt__p_wxDateTime, | |
49529 | &_swigt__p_wxDirFilterListCtrl, | |
b850e7f3 | 49530 | &_swigt__p_wxDirPickerCtrl, |
0085ce49 RD |
49531 | &_swigt__p_wxDisplayChangedEvent, |
49532 | &_swigt__p_wxDropFilesEvent, | |
49533 | &_swigt__p_wxDuplexMode, | |
49534 | &_swigt__p_wxEraseEvent, | |
49535 | &_swigt__p_wxEvent, | |
4976f996 | 49536 | &_swigt__p_wxEventBlocker, |
0085ce49 RD |
49537 | &_swigt__p_wxEvtHandler, |
49538 | &_swigt__p_wxFSFile, | |
b850e7f3 RD |
49539 | &_swigt__p_wxFileDirPickerEvent, |
49540 | &_swigt__p_wxFilePickerCtrl, | |
0085ce49 RD |
49541 | &_swigt__p_wxFileSystem, |
49542 | &_swigt__p_wxFlexGridSizer, | |
49543 | &_swigt__p_wxFocusEvent, | |
49544 | &_swigt__p_wxFont, | |
b850e7f3 RD |
49545 | &_swigt__p_wxFontPickerCtrl, |
49546 | &_swigt__p_wxFontPickerEvent, | |
0085ce49 RD |
49547 | &_swigt__p_wxGBSizerItem, |
49548 | &_swigt__p_wxGIFHandler, | |
49549 | &_swigt__p_wxGauge, | |
49550 | &_swigt__p_wxGenericDirCtrl, | |
49551 | &_swigt__p_wxGenericDragImage, | |
49552 | &_swigt__p_wxGridBagSizer, | |
49553 | &_swigt__p_wxGridSizer, | |
49554 | &_swigt__p_wxHelpEvent, | |
49555 | &_swigt__p_wxHelpProvider, | |
704eda0c RD |
49556 | &_swigt__p_wxHyperlinkCtrl, |
49557 | &_swigt__p_wxHyperlinkEvent, | |
0085ce49 RD |
49558 | &_swigt__p_wxICOHandler, |
49559 | &_swigt__p_wxIcon, | |
49560 | &_swigt__p_wxIconizeEvent, | |
49561 | &_swigt__p_wxIdleEvent, | |
49562 | &_swigt__p_wxImage, | |
49563 | &_swigt__p_wxImageHandler, | |
49564 | &_swigt__p_wxImageList, | |
49565 | &_swigt__p_wxIndividualLayoutConstraint, | |
49566 | &_swigt__p_wxInitDialogEvent, | |
49567 | &_swigt__p_wxItemContainer, | |
49568 | &_swigt__p_wxJPEGHandler, | |
49569 | &_swigt__p_wxKeyEvent, | |
49570 | &_swigt__p_wxLayoutConstraints, | |
49571 | &_swigt__p_wxListBox, | |
49572 | &_swigt__p_wxListEvent, | |
49573 | &_swigt__p_wxListItem, | |
49574 | &_swigt__p_wxListItemAttr, | |
49575 | &_swigt__p_wxListView, | |
49576 | &_swigt__p_wxListbook, | |
49577 | &_swigt__p_wxListbookEvent, | |
49578 | &_swigt__p_wxMaximizeEvent, | |
49579 | &_swigt__p_wxMemoryDC, | |
49580 | &_swigt__p_wxMenu, | |
49581 | &_swigt__p_wxMenuBar, | |
49582 | &_swigt__p_wxMenuEvent, | |
49583 | &_swigt__p_wxMenuItem, | |
49584 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 49585 | &_swigt__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
49586 | &_swigt__p_wxMouseEvent, |
49587 | &_swigt__p_wxMoveEvent, | |
49588 | &_swigt__p_wxNavigationKeyEvent, | |
49589 | &_swigt__p_wxNcPaintEvent, | |
49590 | &_swigt__p_wxNotebook, | |
49591 | &_swigt__p_wxNotebookEvent, | |
49592 | &_swigt__p_wxNotifyEvent, | |
49593 | &_swigt__p_wxObject, | |
49594 | &_swigt__p_wxPCXHandler, | |
49595 | &_swigt__p_wxPNGHandler, | |
49596 | &_swigt__p_wxPNMHandler, | |
49597 | &_swigt__p_wxPaintEvent, | |
49598 | &_swigt__p_wxPaletteChangedEvent, | |
49599 | &_swigt__p_wxPaperSize, | |
b850e7f3 | 49600 | &_swigt__p_wxPickerBase, |
0085ce49 RD |
49601 | &_swigt__p_wxPoint, |
49602 | &_swigt__p_wxPyApp, | |
49603 | &_swigt__p_wxPyCommandEvent, | |
49604 | &_swigt__p_wxPyControl, | |
49605 | &_swigt__p_wxPyEvent, | |
49606 | &_swigt__p_wxPyImageHandler, | |
49607 | &_swigt__p_wxPyListCtrl, | |
49608 | &_swigt__p_wxPySizer, | |
49609 | &_swigt__p_wxPyTreeCtrl, | |
49610 | &_swigt__p_wxPyTreeItemData, | |
49611 | &_swigt__p_wxPyValidator, | |
49612 | &_swigt__p_wxQueryNewPaletteEvent, | |
49613 | &_swigt__p_wxRadioBox, | |
49614 | &_swigt__p_wxRadioButton, | |
49615 | &_swigt__p_wxRect, | |
49616 | &_swigt__p_wxScrollBar, | |
49617 | &_swigt__p_wxScrollEvent, | |
49618 | &_swigt__p_wxScrollWinEvent, | |
3f7f284d | 49619 | &_swigt__p_wxSearchCtrl, |
0085ce49 RD |
49620 | &_swigt__p_wxSetCursorEvent, |
49621 | &_swigt__p_wxShowEvent, | |
49622 | &_swigt__p_wxSimpleHelpProvider, | |
49623 | &_swigt__p_wxSize, | |
49624 | &_swigt__p_wxSizeEvent, | |
49625 | &_swigt__p_wxSizer, | |
49626 | &_swigt__p_wxSizerItem, | |
49627 | &_swigt__p_wxSlider, | |
49628 | &_swigt__p_wxSpinButton, | |
49629 | &_swigt__p_wxSpinCtrl, | |
49630 | &_swigt__p_wxSpinEvent, | |
49631 | &_swigt__p_wxStaticBitmap, | |
49632 | &_swigt__p_wxStaticBox, | |
49633 | &_swigt__p_wxStaticBoxSizer, | |
49634 | &_swigt__p_wxStaticLine, | |
49635 | &_swigt__p_wxStaticText, | |
49636 | &_swigt__p_wxStdDialogButtonSizer, | |
49637 | &_swigt__p_wxString, | |
49638 | &_swigt__p_wxSysColourChangedEvent, | |
580080c5 | 49639 | &_swigt__p_wxTGAHandler, |
0085ce49 RD |
49640 | &_swigt__p_wxTIFFHandler, |
49641 | &_swigt__p_wxTextAttr, | |
49642 | &_swigt__p_wxTextCtrl, | |
49643 | &_swigt__p_wxTextUrlEvent, | |
49644 | &_swigt__p_wxToggleButton, | |
49645 | &_swigt__p_wxToolBar, | |
49646 | &_swigt__p_wxToolBarBase, | |
49647 | &_swigt__p_wxToolBarToolBase, | |
49648 | &_swigt__p_wxToolbook, | |
49649 | &_swigt__p_wxToolbookEvent, | |
0085ce49 RD |
49650 | &_swigt__p_wxTreeEvent, |
49651 | &_swigt__p_wxTreeItemId, | |
49652 | &_swigt__p_wxTreebook, | |
49653 | &_swigt__p_wxTreebookEvent, | |
49654 | &_swigt__p_wxUpdateUIEvent, | |
49655 | &_swigt__p_wxValidator, | |
49656 | &_swigt__p_wxVisualAttributes, | |
49657 | &_swigt__p_wxWindow, | |
b850e7f3 | 49658 | &_swigt__p_wxWindowBase, |
0085ce49 RD |
49659 | &_swigt__p_wxWindowCreateEvent, |
49660 | &_swigt__p_wxWindowDestroyEvent, | |
49661 | &_swigt__p_wxXPMHandler, | |
49662 | }; | |
49663 | ||
49664 | static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}}; | |
49665 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
49666 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
49667 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
49668 | static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; | |
49669 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
49670 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
49671 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
49672 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; | |
49673 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
49674 | static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}}; | |
49675 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
49676 | 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}}; | |
49677 | 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}}; | |
49678 | 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}}; | |
49679 | 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}}; | |
49680 | static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}}; | |
49681 | static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
49682 | 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}}; | |
49683 | static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}}; | |
49684 | static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5172800e RD |
49685 | static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}}; |
49686 | static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 49687 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 RD |
49688 | static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
49689 | static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
49690 | static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}}; |
49691 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 49692 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
49693 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
49694 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49695 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49696 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49697 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49698 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49699 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5172800e | 49700 | static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
49701 | static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}}; |
49702 | static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}}; | |
3f7f284d | 49703 | static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxControl, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
49704 | 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}}; |
49705 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
49706 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; | |
49707 | static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
49708 | static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}}; | |
49709 | static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
b850e7f3 | 49710 | static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
49711 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; |
49712 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49713 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49714 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49715 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49716 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49717 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 49718 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
49719 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; |
49720 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49721 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49722 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49723 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49724 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 49725 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
49726 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
49727 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49728 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49729 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49730 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49731 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49732 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49733 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49734 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49735 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49736 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5172800e | 49737 | static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}}; |
4976f996 | 49738 | static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
49739 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; |
49740 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
49741 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
4976f996 | 49742 | static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEventBlocker, _p_wxEventBlockerTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 RD |
49743 | static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}}; |
49744 | static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 49745 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 RD |
49746 | static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
49747 | static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
49748 | static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}}; |
49749 | static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
49750 | static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}}; | |
49751 | static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49752 | static swig_cast_info _swigc__p_wxHelpProvider[] = { {&_swigt__p_wxHelpProvider, 0, 0, 0}, {&_swigt__p_wxSimpleHelpProvider, _p_wxSimpleHelpProviderTo_p_wxHelpProvider, 0, 0},{0, 0, 0, 0}}; | |
704eda0c RD |
49753 | static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
49754 | static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
49755 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
49756 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
49757 | 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}}; | |
49758 | static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49759 | 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}}; | |
49760 | static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49761 | static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}}; | |
49762 | static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
49763 | static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}}; | |
49764 | static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}}; | |
49765 | static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49766 | static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}}; | |
3f7f284d | 49767 | static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
49768 | static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; |
49769 | static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}}; | |
49770 | static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49771 | 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}}; | |
49772 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 49773 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 49774 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
49775 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; |
49776 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
49777 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
49778 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
49779 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 49780 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; |
4976f996 | 49781 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
49782 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; |
49783 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
49784 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
49785 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
49786 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
4976f996 | 49787 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; |
3f7f284d | 49788 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
5172800e | 49789 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 RD |
49790 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; |
49791 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
49792 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
49793 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
704eda0c | 49794 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 49795 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
49796 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; |
49797 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 49798 | static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 49799 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 49800 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
49801 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; |
49802 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
4976f996 | 49803 | static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxEventBlocker, _p_wxEventBlockerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 49804 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 | 49805 | static swig_cast_info _swigc__p_wxPickerBase[] = { {&_swigt__p_wxPickerBase, 0, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxPickerBase, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
49806 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; |
49807 | static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}}; | |
49808 | 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}}; | |
49809 | static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
49810 | static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}}; | |
49811 | static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}}; | |
49812 | static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}}; | |
49813 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
49814 | static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}}; | |
3f7f284d | 49815 | static swig_cast_info _swigc__p_wxSearchCtrl[] = { {&_swigt__p_wxSearchCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
49816 | static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}}; |
49817 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
49818 | static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}}; | |
49819 | static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}}; | |
49820 | static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
49821 | static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49822 | static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
49823 | static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}}; | |
49824 | static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}}; | |
49825 | static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}}; | |
49826 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
49827 | static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
3f7f284d | 49828 | static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxTextCtrl, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
49829 | static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}}; |
49830 | static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}}; | |
49831 | static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}}; | |
49832 | 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}}; | |
49833 | static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}}; | |
49834 | static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}}; | |
49835 | static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
49836 | static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}}; |
49837 | static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}}; | |
49838 | static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}}; | |
49839 | static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
49840 | 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}}; | |
49841 | static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}}; | |
3f7f284d | 49842 | static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 | 49843 | static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
49844 | |
49845 | static swig_cast_info *swig_cast_initial[] = { | |
49846 | _swigc__p_bool, | |
49847 | _swigc__p_char, | |
49848 | _swigc__p_form_ops_t, | |
49849 | _swigc__p_int, | |
49850 | _swigc__p_long, | |
49851 | _swigc__p_unsigned_char, | |
49852 | _swigc__p_unsigned_int, | |
49853 | _swigc__p_unsigned_long, | |
49854 | _swigc__p_void, | |
49855 | _swigc__p_wxANIHandler, | |
49856 | _swigc__p_wxAcceleratorTable, | |
49857 | _swigc__p_wxActivateEvent, | |
49858 | _swigc__p_wxArrayInt, | |
49859 | _swigc__p_wxArrayString, | |
49860 | _swigc__p_wxBMPHandler, | |
49861 | _swigc__p_wxBitmap, | |
49862 | _swigc__p_wxBitmapButton, | |
49863 | _swigc__p_wxBookCtrlBase, | |
49864 | _swigc__p_wxBookCtrlBaseEvent, | |
49865 | _swigc__p_wxBoxSizer, | |
49866 | _swigc__p_wxButton, | |
49867 | _swigc__p_wxCURHandler, | |
49868 | _swigc__p_wxCheckBox, | |
49869 | _swigc__p_wxCheckListBox, | |
49870 | _swigc__p_wxChildFocusEvent, | |
49871 | _swigc__p_wxChoice, | |
49872 | _swigc__p_wxChoicebook, | |
49873 | _swigc__p_wxChoicebookEvent, | |
2131d850 | 49874 | _swigc__p_wxClipboardTextEvent, |
0085ce49 | 49875 | _swigc__p_wxCloseEvent, |
5172800e RD |
49876 | _swigc__p_wxCollapsiblePane, |
49877 | _swigc__p_wxCollapsiblePaneEvent, | |
0085ce49 | 49878 | _swigc__p_wxColour, |
b850e7f3 RD |
49879 | _swigc__p_wxColourPickerCtrl, |
49880 | _swigc__p_wxColourPickerEvent, | |
0085ce49 RD |
49881 | _swigc__p_wxComboBox, |
49882 | _swigc__p_wxCommandEvent, | |
49883 | _swigc__p_wxContextHelp, | |
49884 | _swigc__p_wxContextHelpButton, | |
49885 | _swigc__p_wxContextMenuEvent, | |
49886 | _swigc__p_wxControl, | |
49887 | _swigc__p_wxControlWithItems, | |
49888 | _swigc__p_wxCursor, | |
49889 | _swigc__p_wxDC, | |
49890 | _swigc__p_wxDateEvent, | |
49891 | _swigc__p_wxDatePickerCtrl, | |
49892 | _swigc__p_wxDateTime, | |
49893 | _swigc__p_wxDirFilterListCtrl, | |
b850e7f3 | 49894 | _swigc__p_wxDirPickerCtrl, |
0085ce49 RD |
49895 | _swigc__p_wxDisplayChangedEvent, |
49896 | _swigc__p_wxDropFilesEvent, | |
49897 | _swigc__p_wxDuplexMode, | |
49898 | _swigc__p_wxEraseEvent, | |
49899 | _swigc__p_wxEvent, | |
4976f996 | 49900 | _swigc__p_wxEventBlocker, |
0085ce49 RD |
49901 | _swigc__p_wxEvtHandler, |
49902 | _swigc__p_wxFSFile, | |
b850e7f3 RD |
49903 | _swigc__p_wxFileDirPickerEvent, |
49904 | _swigc__p_wxFilePickerCtrl, | |
0085ce49 RD |
49905 | _swigc__p_wxFileSystem, |
49906 | _swigc__p_wxFlexGridSizer, | |
49907 | _swigc__p_wxFocusEvent, | |
49908 | _swigc__p_wxFont, | |
b850e7f3 RD |
49909 | _swigc__p_wxFontPickerCtrl, |
49910 | _swigc__p_wxFontPickerEvent, | |
0085ce49 RD |
49911 | _swigc__p_wxGBSizerItem, |
49912 | _swigc__p_wxGIFHandler, | |
49913 | _swigc__p_wxGauge, | |
49914 | _swigc__p_wxGenericDirCtrl, | |
49915 | _swigc__p_wxGenericDragImage, | |
49916 | _swigc__p_wxGridBagSizer, | |
49917 | _swigc__p_wxGridSizer, | |
49918 | _swigc__p_wxHelpEvent, | |
49919 | _swigc__p_wxHelpProvider, | |
704eda0c RD |
49920 | _swigc__p_wxHyperlinkCtrl, |
49921 | _swigc__p_wxHyperlinkEvent, | |
0085ce49 RD |
49922 | _swigc__p_wxICOHandler, |
49923 | _swigc__p_wxIcon, | |
49924 | _swigc__p_wxIconizeEvent, | |
49925 | _swigc__p_wxIdleEvent, | |
49926 | _swigc__p_wxImage, | |
49927 | _swigc__p_wxImageHandler, | |
49928 | _swigc__p_wxImageList, | |
49929 | _swigc__p_wxIndividualLayoutConstraint, | |
49930 | _swigc__p_wxInitDialogEvent, | |
49931 | _swigc__p_wxItemContainer, | |
49932 | _swigc__p_wxJPEGHandler, | |
49933 | _swigc__p_wxKeyEvent, | |
49934 | _swigc__p_wxLayoutConstraints, | |
49935 | _swigc__p_wxListBox, | |
49936 | _swigc__p_wxListEvent, | |
49937 | _swigc__p_wxListItem, | |
49938 | _swigc__p_wxListItemAttr, | |
49939 | _swigc__p_wxListView, | |
49940 | _swigc__p_wxListbook, | |
49941 | _swigc__p_wxListbookEvent, | |
49942 | _swigc__p_wxMaximizeEvent, | |
49943 | _swigc__p_wxMemoryDC, | |
49944 | _swigc__p_wxMenu, | |
49945 | _swigc__p_wxMenuBar, | |
49946 | _swigc__p_wxMenuEvent, | |
49947 | _swigc__p_wxMenuItem, | |
49948 | _swigc__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 49949 | _swigc__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
49950 | _swigc__p_wxMouseEvent, |
49951 | _swigc__p_wxMoveEvent, | |
49952 | _swigc__p_wxNavigationKeyEvent, | |
49953 | _swigc__p_wxNcPaintEvent, | |
49954 | _swigc__p_wxNotebook, | |
49955 | _swigc__p_wxNotebookEvent, | |
49956 | _swigc__p_wxNotifyEvent, | |
49957 | _swigc__p_wxObject, | |
49958 | _swigc__p_wxPCXHandler, | |
49959 | _swigc__p_wxPNGHandler, | |
49960 | _swigc__p_wxPNMHandler, | |
49961 | _swigc__p_wxPaintEvent, | |
49962 | _swigc__p_wxPaletteChangedEvent, | |
49963 | _swigc__p_wxPaperSize, | |
b850e7f3 | 49964 | _swigc__p_wxPickerBase, |
0085ce49 RD |
49965 | _swigc__p_wxPoint, |
49966 | _swigc__p_wxPyApp, | |
49967 | _swigc__p_wxPyCommandEvent, | |
49968 | _swigc__p_wxPyControl, | |
49969 | _swigc__p_wxPyEvent, | |
49970 | _swigc__p_wxPyImageHandler, | |
49971 | _swigc__p_wxPyListCtrl, | |
49972 | _swigc__p_wxPySizer, | |
49973 | _swigc__p_wxPyTreeCtrl, | |
49974 | _swigc__p_wxPyTreeItemData, | |
49975 | _swigc__p_wxPyValidator, | |
49976 | _swigc__p_wxQueryNewPaletteEvent, | |
49977 | _swigc__p_wxRadioBox, | |
49978 | _swigc__p_wxRadioButton, | |
49979 | _swigc__p_wxRect, | |
49980 | _swigc__p_wxScrollBar, | |
49981 | _swigc__p_wxScrollEvent, | |
49982 | _swigc__p_wxScrollWinEvent, | |
3f7f284d | 49983 | _swigc__p_wxSearchCtrl, |
0085ce49 RD |
49984 | _swigc__p_wxSetCursorEvent, |
49985 | _swigc__p_wxShowEvent, | |
49986 | _swigc__p_wxSimpleHelpProvider, | |
49987 | _swigc__p_wxSize, | |
49988 | _swigc__p_wxSizeEvent, | |
49989 | _swigc__p_wxSizer, | |
49990 | _swigc__p_wxSizerItem, | |
49991 | _swigc__p_wxSlider, | |
49992 | _swigc__p_wxSpinButton, | |
49993 | _swigc__p_wxSpinCtrl, | |
49994 | _swigc__p_wxSpinEvent, | |
49995 | _swigc__p_wxStaticBitmap, | |
49996 | _swigc__p_wxStaticBox, | |
49997 | _swigc__p_wxStaticBoxSizer, | |
49998 | _swigc__p_wxStaticLine, | |
49999 | _swigc__p_wxStaticText, | |
50000 | _swigc__p_wxStdDialogButtonSizer, | |
50001 | _swigc__p_wxString, | |
50002 | _swigc__p_wxSysColourChangedEvent, | |
580080c5 | 50003 | _swigc__p_wxTGAHandler, |
0085ce49 RD |
50004 | _swigc__p_wxTIFFHandler, |
50005 | _swigc__p_wxTextAttr, | |
50006 | _swigc__p_wxTextCtrl, | |
50007 | _swigc__p_wxTextUrlEvent, | |
50008 | _swigc__p_wxToggleButton, | |
50009 | _swigc__p_wxToolBar, | |
50010 | _swigc__p_wxToolBarBase, | |
50011 | _swigc__p_wxToolBarToolBase, | |
50012 | _swigc__p_wxToolbook, | |
50013 | _swigc__p_wxToolbookEvent, | |
0085ce49 RD |
50014 | _swigc__p_wxTreeEvent, |
50015 | _swigc__p_wxTreeItemId, | |
50016 | _swigc__p_wxTreebook, | |
50017 | _swigc__p_wxTreebookEvent, | |
50018 | _swigc__p_wxUpdateUIEvent, | |
50019 | _swigc__p_wxValidator, | |
50020 | _swigc__p_wxVisualAttributes, | |
50021 | _swigc__p_wxWindow, | |
b850e7f3 | 50022 | _swigc__p_wxWindowBase, |
0085ce49 RD |
50023 | _swigc__p_wxWindowCreateEvent, |
50024 | _swigc__p_wxWindowDestroyEvent, | |
50025 | _swigc__p_wxXPMHandler, | |
50026 | }; | |
50027 | ||
50028 | ||
50029 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
50030 | ||
50031 | static swig_const_info swig_const_table[] = { | |
50032 | {0, 0, 0, 0.0, 0, 0}}; | |
50033 | ||
50034 | #ifdef __cplusplus | |
50035 | } | |
50036 | #endif | |
50037 | /* ----------------------------------------------------------------------------- | |
50038 | * Type initialization: | |
50039 | * This problem is tough by the requirement that no dynamic | |
50040 | * memory is used. Also, since swig_type_info structures store pointers to | |
50041 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
50042 | * to swig_type_info structures, we need some lookup code at initialization. | |
50043 | * The idea is that swig generates all the structures that are needed. | |
50044 | * The runtime then collects these partially filled structures. | |
50045 | * The SWIG_InitializeModule function takes these initial arrays out of | |
50046 | * swig_module, and does all the lookup, filling in the swig_module.types | |
50047 | * array with the correct data and linking the correct swig_cast_info | |
50048 | * structures together. | |
50049 | * | |
50050 | * The generated swig_type_info structures are assigned staticly to an initial | |
50051 | * array. We just loop though that array, and handle each type individually. | |
50052 | * First we lookup if this type has been already loaded, and if so, use the | |
50053 | * loaded structure instead of the generated one. Then we have to fill in the | |
50054 | * cast linked list. The cast data is initially stored in something like a | |
50055 | * two-dimensional array. Each row corresponds to a type (there are the same | |
50056 | * number of rows as there are in the swig_type_initial array). Each entry in | |
50057 | * a column is one of the swig_cast_info structures for that type. | |
50058 | * The cast_initial array is actually an array of arrays, because each row has | |
50059 | * a variable number of columns. So to actually build the cast linked list, | |
50060 | * we find the array of casts associated with the type, and loop through it | |
50061 | * adding the casts to the list. The one last trick we need to do is making | |
50062 | * sure the type pointer in the swig_cast_info struct is correct. | |
50063 | * | |
50064 | * First off, we lookup the cast->type name to see if it is already loaded. | |
50065 | * There are three cases to handle: | |
50066 | * 1) If the cast->type has already been loaded AND the type we are adding | |
50067 | * casting info to has not been loaded (it is in this module), THEN we | |
50068 | * replace the cast->type pointer with the type pointer that has already | |
50069 | * been loaded. | |
50070 | * 2) If BOTH types (the one we are adding casting info to, and the | |
50071 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
50072 | * the previous module so we just ignore it. | |
50073 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
50074 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
50075 | * be correct. | |
50076 | * ----------------------------------------------------------------------------- */ | |
50077 | ||
50078 | #ifdef __cplusplus | |
50079 | extern "C" { | |
50080 | #if 0 | |
50081 | } /* c-mode */ | |
50082 | #endif | |
50083 | #endif | |
50084 | ||
50085 | #if 0 | |
50086 | #define SWIGRUNTIME_DEBUG | |
50087 | #endif | |
50088 | ||
50089 | SWIGRUNTIME void | |
50090 | SWIG_InitializeModule(void *clientdata) { | |
50091 | size_t i; | |
50092 | swig_module_info *module_head; | |
50093 | static int init_run = 0; | |
50094 | ||
50095 | clientdata = clientdata; | |
50096 | ||
50097 | if (init_run) return; | |
50098 | init_run = 1; | |
50099 | ||
50100 | /* Initialize the swig_module */ | |
50101 | swig_module.type_initial = swig_type_initial; | |
50102 | swig_module.cast_initial = swig_cast_initial; | |
50103 | ||
50104 | /* Try and load any already created modules */ | |
50105 | module_head = SWIG_GetModule(clientdata); | |
50106 | if (module_head) { | |
50107 | swig_module.next = module_head->next; | |
50108 | module_head->next = &swig_module; | |
50109 | } else { | |
50110 | /* This is the first module loaded */ | |
50111 | swig_module.next = &swig_module; | |
50112 | SWIG_SetModule(clientdata, &swig_module); | |
50113 | } | |
50114 | ||
50115 | /* Now work on filling in swig_module.types */ | |
50116 | #ifdef SWIGRUNTIME_DEBUG | |
50117 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
50118 | #endif | |
50119 | for (i = 0; i < swig_module.size; ++i) { | |
50120 | swig_type_info *type = 0; | |
50121 | swig_type_info *ret; | |
50122 | swig_cast_info *cast; | |
d14a1e28 | 50123 | |
0085ce49 RD |
50124 | #ifdef SWIGRUNTIME_DEBUG |
50125 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
50126 | #endif | |
d14a1e28 | 50127 | |
0085ce49 RD |
50128 | /* if there is another module already loaded */ |
50129 | if (swig_module.next != &swig_module) { | |
50130 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
093d3ff1 | 50131 | } |
0085ce49 RD |
50132 | if (type) { |
50133 | /* Overwrite clientdata field */ | |
50134 | #ifdef SWIGRUNTIME_DEBUG | |
50135 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
50136 | #endif | |
50137 | if (swig_module.type_initial[i]->clientdata) { | |
50138 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
50139 | #ifdef SWIGRUNTIME_DEBUG | |
50140 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
50141 | #endif | |
50142 | } | |
50143 | } else { | |
50144 | type = swig_module.type_initial[i]; | |
093d3ff1 | 50145 | } |
d14a1e28 | 50146 | |
0085ce49 RD |
50147 | /* Insert casting types */ |
50148 | cast = swig_module.cast_initial[i]; | |
50149 | while (cast->type) { | |
50150 | /* Don't need to add information already in the list */ | |
50151 | ret = 0; | |
50152 | #ifdef SWIGRUNTIME_DEBUG | |
50153 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
50154 | #endif | |
50155 | if (swig_module.next != &swig_module) { | |
50156 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
50157 | #ifdef SWIGRUNTIME_DEBUG | |
50158 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
50159 | #endif | |
50160 | } | |
50161 | if (ret) { | |
50162 | if (type == swig_module.type_initial[i]) { | |
50163 | #ifdef SWIGRUNTIME_DEBUG | |
50164 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
50165 | #endif | |
50166 | cast->type = ret; | |
50167 | ret = 0; | |
50168 | } else { | |
50169 | /* Check for casting already in the list */ | |
50170 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
50171 | #ifdef SWIGRUNTIME_DEBUG | |
50172 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
50173 | #endif | |
50174 | if (!ocast) ret = 0; | |
50175 | } | |
50176 | } | |
50177 | ||
50178 | if (!ret) { | |
50179 | #ifdef SWIGRUNTIME_DEBUG | |
50180 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
50181 | #endif | |
50182 | if (type->cast) { | |
50183 | type->cast->prev = cast; | |
50184 | cast->next = type->cast; | |
50185 | } | |
50186 | type->cast = cast; | |
50187 | } | |
50188 | cast++; | |
093d3ff1 | 50189 | } |
0085ce49 RD |
50190 | /* Set entry in modules->types array equal to the type */ |
50191 | swig_module.types[i] = type; | |
50192 | } | |
50193 | swig_module.types[i] = 0; | |
50194 | ||
50195 | #ifdef SWIGRUNTIME_DEBUG | |
50196 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
50197 | for (i = 0; i < swig_module.size; ++i) { | |
50198 | int j = 0; | |
50199 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
50200 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
50201 | while (cast->type) { | |
50202 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
50203 | cast++; | |
50204 | ++j; | |
50205 | } | |
50206 | printf("---- Total casts: %d\n",j); | |
50207 | } | |
50208 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
50209 | #endif | |
50210 | } | |
50211 | ||
50212 | /* This function will propagate the clientdata field of type to | |
50213 | * any new swig_type_info structures that have been added into the list | |
50214 | * of equivalent types. It is like calling | |
50215 | * SWIG_TypeClientData(type, clientdata) a second time. | |
50216 | */ | |
50217 | SWIGRUNTIME void | |
50218 | SWIG_PropagateClientData(void) { | |
50219 | size_t i; | |
50220 | swig_cast_info *equiv; | |
50221 | static int init_run = 0; | |
50222 | ||
50223 | if (init_run) return; | |
50224 | init_run = 1; | |
50225 | ||
50226 | for (i = 0; i < swig_module.size; i++) { | |
50227 | if (swig_module.types[i]->clientdata) { | |
50228 | equiv = swig_module.types[i]->cast; | |
50229 | while (equiv) { | |
50230 | if (!equiv->converter) { | |
50231 | if (equiv->type && !equiv->type->clientdata) | |
50232 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
50233 | } | |
50234 | equiv = equiv->next; | |
50235 | } | |
093d3ff1 | 50236 | } |
0085ce49 RD |
50237 | } |
50238 | } | |
50239 | ||
50240 | #ifdef __cplusplus | |
50241 | #if 0 | |
50242 | { | |
50243 | /* c-mode */ | |
50244 | #endif | |
50245 | } | |
50246 | #endif | |
50247 | ||
50248 | ||
50249 | ||
50250 | #ifdef __cplusplus | |
50251 | extern "C" { | |
50252 | #endif | |
50253 | ||
50254 | /* Python-specific SWIG API */ | |
50255 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
50256 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
50257 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
50258 | ||
50259 | /* ----------------------------------------------------------------------------- | |
50260 | * global variable support code. | |
50261 | * ----------------------------------------------------------------------------- */ | |
50262 | ||
50263 | typedef struct swig_globalvar { | |
50264 | char *name; /* Name of global variable */ | |
50265 | PyObject *(*get_attr)(void); /* Return the current value */ | |
50266 | int (*set_attr)(PyObject *); /* Set the value */ | |
50267 | struct swig_globalvar *next; | |
50268 | } swig_globalvar; | |
50269 | ||
50270 | typedef struct swig_varlinkobject { | |
50271 | PyObject_HEAD | |
50272 | swig_globalvar *vars; | |
50273 | } swig_varlinkobject; | |
50274 | ||
50275 | SWIGINTERN PyObject * | |
50276 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
50277 | return PyString_FromString("<Swig global variables>"); | |
50278 | } | |
50279 | ||
50280 | SWIGINTERN PyObject * | |
50281 | swig_varlink_str(swig_varlinkobject *v) { | |
50282 | PyObject *str = PyString_FromString("("); | |
50283 | swig_globalvar *var; | |
50284 | for (var = v->vars; var; var=var->next) { | |
50285 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
50286 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
50287 | } | |
50288 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
50289 | return str; | |
50290 | } | |
50291 | ||
50292 | SWIGINTERN int | |
50293 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
50294 | PyObject *str = swig_varlink_str(v); | |
50295 | fprintf(fp,"Swig global variables "); | |
50296 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
50297 | Py_DECREF(str); | |
50298 | return 0; | |
50299 | } | |
50300 | ||
50301 | SWIGINTERN void | |
50302 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
50303 | swig_globalvar *var = v->vars; | |
50304 | while (var) { | |
50305 | swig_globalvar *n = var->next; | |
50306 | free(var->name); | |
50307 | free(var); | |
50308 | var = n; | |
093d3ff1 | 50309 | } |
0085ce49 RD |
50310 | } |
50311 | ||
50312 | SWIGINTERN PyObject * | |
50313 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
50314 | PyObject *res = NULL; | |
50315 | swig_globalvar *var = v->vars; | |
50316 | while (var) { | |
50317 | if (strcmp(var->name,n) == 0) { | |
50318 | res = (*var->get_attr)(); | |
50319 | break; | |
50320 | } | |
50321 | var = var->next; | |
093d3ff1 | 50322 | } |
0085ce49 RD |
50323 | if (res == NULL && !PyErr_Occurred()) { |
50324 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
093d3ff1 | 50325 | } |
0085ce49 RD |
50326 | return res; |
50327 | } | |
50328 | ||
50329 | SWIGINTERN int | |
50330 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
50331 | int res = 1; | |
50332 | swig_globalvar *var = v->vars; | |
50333 | while (var) { | |
50334 | if (strcmp(var->name,n) == 0) { | |
50335 | res = (*var->set_attr)(p); | |
50336 | break; | |
50337 | } | |
50338 | var = var->next; | |
093d3ff1 | 50339 | } |
0085ce49 RD |
50340 | if (res == 1 && !PyErr_Occurred()) { |
50341 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
53aa7709 | 50342 | } |
0085ce49 RD |
50343 | return res; |
50344 | } | |
50345 | ||
50346 | SWIGINTERN PyTypeObject* | |
50347 | swig_varlink_type(void) { | |
50348 | static char varlink__doc__[] = "Swig var link object"; | |
50349 | static PyTypeObject varlink_type; | |
50350 | static int type_init = 0; | |
50351 | if (!type_init) { | |
50352 | const PyTypeObject tmp | |
50353 | = { | |
50354 | PyObject_HEAD_INIT(NULL) | |
50355 | 0, /* Number of items in variable part (ob_size) */ | |
50356 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
50357 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
50358 | 0, /* Itemsize (tp_itemsize) */ | |
50359 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
50360 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
50361 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
50362 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
50363 | 0, /* tp_compare */ | |
50364 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
50365 | 0, /* tp_as_number */ | |
50366 | 0, /* tp_as_sequence */ | |
50367 | 0, /* tp_as_mapping */ | |
50368 | 0, /* tp_hash */ | |
50369 | 0, /* tp_call */ | |
50370 | (reprfunc)swig_varlink_str, /* tp_str */ | |
50371 | 0, /* tp_getattro */ | |
50372 | 0, /* tp_setattro */ | |
50373 | 0, /* tp_as_buffer */ | |
50374 | 0, /* tp_flags */ | |
50375 | varlink__doc__, /* tp_doc */ | |
50376 | 0, /* tp_traverse */ | |
50377 | 0, /* tp_clear */ | |
50378 | 0, /* tp_richcompare */ | |
50379 | 0, /* tp_weaklistoffset */ | |
50380 | #if PY_VERSION_HEX >= 0x02020000 | |
50381 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
50382 | #endif | |
50383 | #if PY_VERSION_HEX >= 0x02030000 | |
50384 | 0, /* tp_del */ | |
50385 | #endif | |
50386 | #ifdef COUNT_ALLOCS | |
50387 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
50388 | #endif | |
50389 | }; | |
50390 | varlink_type = tmp; | |
50391 | varlink_type.ob_type = &PyType_Type; | |
50392 | type_init = 1; | |
53aa7709 | 50393 | } |
0085ce49 RD |
50394 | return &varlink_type; |
50395 | } | |
50396 | ||
50397 | /* Create a variable linking object for use later */ | |
50398 | SWIGINTERN PyObject * | |
50399 | SWIG_Python_newvarlink(void) { | |
50400 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
50401 | if (result) { | |
50402 | result->vars = 0; | |
50403 | } | |
50404 | return ((PyObject*) result); | |
50405 | } | |
50406 | ||
50407 | SWIGINTERN void | |
50408 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
50409 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
50410 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
50411 | if (gv) { | |
50412 | size_t size = strlen(name)+1; | |
50413 | gv->name = (char *)malloc(size); | |
50414 | if (gv->name) { | |
50415 | strncpy(gv->name,name,size); | |
50416 | gv->get_attr = get_attr; | |
50417 | gv->set_attr = set_attr; | |
50418 | gv->next = v->vars; | |
50419 | } | |
53aa7709 | 50420 | } |
0085ce49 RD |
50421 | v->vars = gv; |
50422 | } | |
50423 | ||
50424 | SWIGINTERN PyObject * | |
50425 | SWIG_globals() { | |
50426 | static PyObject *_SWIG_globals = 0; | |
50427 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
50428 | return _SWIG_globals; | |
50429 | } | |
50430 | ||
50431 | /* ----------------------------------------------------------------------------- | |
50432 | * constants/methods manipulation | |
50433 | * ----------------------------------------------------------------------------- */ | |
50434 | ||
50435 | /* Install Constants */ | |
50436 | SWIGINTERN void | |
50437 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
50438 | PyObject *obj = 0; | |
50439 | size_t i; | |
50440 | for (i = 0; constants[i].type; ++i) { | |
50441 | switch(constants[i].type) { | |
50442 | case SWIG_PY_POINTER: | |
50443 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
50444 | break; | |
50445 | case SWIG_PY_BINARY: | |
50446 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
50447 | break; | |
50448 | default: | |
50449 | obj = 0; | |
50450 | break; | |
50451 | } | |
50452 | if (obj) { | |
50453 | PyDict_SetItemString(d, constants[i].name, obj); | |
50454 | Py_DECREF(obj); | |
50455 | } | |
53aa7709 | 50456 | } |
0085ce49 RD |
50457 | } |
50458 | ||
50459 | /* -----------------------------------------------------------------------------*/ | |
50460 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
50461 | /* -----------------------------------------------------------------------------*/ | |
50462 | ||
50463 | SWIGINTERN void | |
50464 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
50465 | swig_const_info *const_table, | |
50466 | swig_type_info **types, | |
50467 | swig_type_info **types_initial) { | |
50468 | size_t i; | |
50469 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 50470 | const char *c = methods[i].ml_doc; |
0085ce49 RD |
50471 | if (c && (c = strstr(c, "swig_ptr: "))) { |
50472 | int j; | |
50473 | swig_const_info *ci = 0; | |
453fb36b | 50474 | const char *name = c + 10; |
0085ce49 RD |
50475 | for (j = 0; const_table[j].type; ++j) { |
50476 | if (strncmp(const_table[j].name, name, | |
50477 | strlen(const_table[j].name)) == 0) { | |
50478 | ci = &(const_table[j]); | |
50479 | break; | |
50480 | } | |
50481 | } | |
50482 | if (ci) { | |
50483 | size_t shift = (ci->ptype) - types; | |
50484 | swig_type_info *ty = types_initial[shift]; | |
50485 | size_t ldoc = (c - methods[i].ml_doc); | |
50486 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
50487 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
50488 | if (ndoc) { | |
50489 | char *buff = ndoc; | |
50490 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
50491 | if (ptr) { | |
50492 | strncpy(buff, methods[i].ml_doc, ldoc); | |
50493 | buff += ldoc; | |
50494 | strncpy(buff, "swig_ptr: ", 10); | |
50495 | buff += 10; | |
50496 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
50497 | methods[i].ml_doc = ndoc; | |
50498 | } | |
50499 | } | |
50500 | } | |
50501 | } | |
53aa7709 | 50502 | } |
0085ce49 RD |
50503 | } |
50504 | ||
50505 | #ifdef __cplusplus | |
50506 | } | |
50507 | #endif | |
50508 | ||
50509 | /* -----------------------------------------------------------------------------* | |
50510 | * Partial Init method | |
50511 | * -----------------------------------------------------------------------------*/ | |
50512 | ||
50513 | #ifdef __cplusplus | |
50514 | extern "C" | |
50515 | #endif | |
50516 | SWIGEXPORT void SWIG_init(void) { | |
50517 | PyObject *m, *d; | |
50518 | ||
50519 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
50520 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
50521 | ||
50522 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
50523 | d = PyModule_GetDict(m); | |
50524 | ||
50525 | SWIG_InitializeModule(0); | |
50526 | SWIG_InstallConstants(d,swig_const_table); | |
50527 | ||
50528 | ||
50529 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
50530 | SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set); | |
50531 | SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT))); | |
50532 | SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP))); | |
50533 | SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT))); | |
50534 | SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM))); | |
50535 | SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK))); | |
50536 | SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT))); | |
50537 | SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW))); | |
50538 | SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set); | |
50539 | SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE))); | |
50540 | SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE))); | |
50541 | SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER))); | |
50542 | SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED))); | |
50543 | SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED))); | |
50544 | SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED))); | |
50545 | SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set); | |
50546 | SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set); | |
50547 | SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set); | |
50548 | SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL))); | |
50549 | SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL))); | |
50550 | SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH))); | |
0085ce49 RD |
50551 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set); |
50552 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set); | |
50553 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set); | |
3f7f284d | 50554 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set); |
0085ce49 RD |
50555 | SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set); |
50556 | SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set); | |
50557 | SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL))); | |
50558 | SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL))); | |
50559 | SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY))); | |
50560 | SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE))); | |
50561 | SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB))); | |
50562 | SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT))); | |
50563 | SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER))); | |
50564 | SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT))); | |
50565 | SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE))); | |
50566 | SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH))); | |
50567 | SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER))); | |
50568 | SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD))); | |
50569 | SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL))); | |
50570 | SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL))); | |
50571 | SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP))); | |
50572 | SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP))); | |
50573 | SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP))); | |
50574 | SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP))); | |
0085ce49 RD |
50575 | SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2))); |
50576 | SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE))); | |
50577 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT))); | |
50578 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT))); | |
50579 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE))); | |
50580 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER))); | |
50581 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT))); | |
50582 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED))); | |
50583 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR))); | |
50584 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR))); | |
50585 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE))); | |
50586 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE))); | |
50587 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT))); | |
50588 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC))); | |
50589 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE))); | |
50590 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT))); | |
50591 | SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT))); | |
50592 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT))); | |
50593 | SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT))); | |
50594 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS))); | |
50595 | SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN))); | |
50596 | SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE))); | |
50597 | SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT))); | |
50598 | SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW))); | |
50599 | SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND))); | |
50600 | SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord))); | |
50601 | SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord))); | |
f5263701 | 50602 | SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY))); |
0085ce49 RD |
50603 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
50604 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
50605 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
50606 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
50607 | SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set); | |
50608 | SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set); | |
50609 | SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set); | |
50610 | SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL))); | |
50611 | SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL))); | |
50612 | SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS))); | |
50613 | SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP))); | |
50614 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); | |
50615 | SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set); | |
50616 | SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set); | |
50617 | SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set); | |
50618 | SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL))); | |
50619 | SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL))); | |
50620 | SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS))); | |
50621 | SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS))); | |
50622 | SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS))); | |
50623 | SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT))); | |
50624 | SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP))); | |
50625 | SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT))); | |
50626 | SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM))); | |
50627 | SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH))); | |
50628 | SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE))); | |
50629 | SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE))); | |
50630 | SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set); | |
50631 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
50632 | SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set); | |
50633 | SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT))); | |
50634 | SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP))); | |
50635 | SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM))); | |
50636 | SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT))); | |
50637 | SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT))); | |
50638 | SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK))); | |
e9d6f3a4 | 50639 | SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR))); |
110fa173 RD |
50640 | SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE))); |
50641 | SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON))); | |
50642 | SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL))); | |
50643 | SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM))); | |
50644 | SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE))); | |
0085ce49 RD |
50645 | SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH))); |
50646 | SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP))); | |
50647 | SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT))); | |
50648 | SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT))); | |
50649 | SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM))); | |
50650 | SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE))); | |
50651 | SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME))); | |
50652 | SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE))); | |
50653 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON))); | |
50654 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL))); | |
50655 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM))); | |
b02396e8 | 50656 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE))); |
0085ce49 RD |
50657 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
50658 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
50659 | SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT))); | |
50660 | SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP))); | |
50661 | SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM))); | |
50662 | SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT))); | |
50663 | SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT))); | |
50664 | SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK))); | |
50665 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
50666 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
50667 | SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT))); | |
50668 | SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP))); | |
50669 | SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM))); | |
50670 | SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT))); | |
50671 | SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT))); | |
50672 | SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK))); | |
50673 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED)); | |
50674 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING)); | |
50675 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED)); | |
50676 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING)); | |
50677 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED)); | |
50678 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED)); | |
50679 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED)); | |
50680 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING)); | |
50681 | SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON))); | |
50682 | SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR))); | |
50683 | SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL))); | |
50684 | SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL))); | |
50685 | SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL))); | |
8f514ab4 RD |
50686 | SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP))); |
50687 | SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT))); | |
50688 | SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM))); | |
50689 | SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT))); | |
0085ce49 RD |
50690 | SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS))); |
50691 | SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT))); | |
50692 | SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE))); | |
50693 | SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS))); | |
50694 | SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT))); | |
50695 | SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER))); | |
50696 | SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN))); | |
50697 | SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT))); | |
50698 | SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT))); | |
704eda0c | 50699 | SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS))); |
0085ce49 RD |
50700 | SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set); |
50701 | SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES))); | |
50702 | SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES))); | |
50703 | SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON))); | |
50704 | SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON))); | |
50705 | SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST))); | |
50706 | SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT))); | |
50707 | SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP))); | |
50708 | SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT))); | |
50709 | SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE))); | |
50710 | SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL))); | |
50711 | SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS))); | |
50712 | SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER))); | |
50713 | SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER))); | |
50714 | SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL))); | |
50715 | SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING))); | |
50716 | SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING))); | |
50717 | SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE))); | |
50718 | SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN))); | |
50719 | SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT))); | |
50720 | SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE))); | |
50721 | SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT))); | |
50722 | SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE))); | |
50723 | SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA))); | |
50724 | SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM))); | |
50725 | SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH))); | |
50726 | SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT))); | |
50727 | SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE))); | |
50728 | SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED))); | |
50729 | SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED))); | |
50730 | SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED))); | |
50731 | SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT))); | |
50732 | SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED))); | |
50733 | SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED))); | |
50734 | SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE))); | |
50735 | SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED))); | |
50736 | SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE))); | |
50737 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE))); | |
50738 | SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW))); | |
50739 | SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE))); | |
50740 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON))); | |
50741 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL))); | |
50742 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT))); | |
50743 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON))); | |
50744 | SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT))); | |
50745 | SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT))); | |
50746 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM))); | |
704eda0c | 50747 | SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM))); |
0085ce49 RD |
50748 | SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE))); |
50749 | SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL))); | |
50750 | SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW))); | |
50751 | SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT))); | |
50752 | SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT))); | |
50753 | SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT))); | |
50754 | SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT))); | |
50755 | SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP))); | |
50756 | SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID))); | |
50757 | SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT))); | |
50758 | SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT))); | |
50759 | SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE))); | |
50760 | SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER))); | |
50761 | SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE))); | |
50762 | SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER))); | |
50763 | SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS))); | |
50764 | SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON))); | |
50765 | SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL))); | |
50766 | SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP))); | |
50767 | SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN))); | |
50768 | SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT))); | |
50769 | SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT))); | |
50770 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
50771 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
50772 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
50773 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
50774 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
50775 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
50776 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
50777 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
50778 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
50779 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
50780 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
50781 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
50782 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
50783 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
50784 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
50785 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
50786 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
50787 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
50788 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
50789 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
50790 | ||
50791 | // Map renamed classes back to their common name for OOR | |
50792 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
50793 | ||
50794 | SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set); | |
50795 | SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS))); | |
50796 | SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS))); | |
50797 | SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES))); | |
50798 | SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT))); | |
50799 | SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE))); | |
50800 | SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE))); | |
50801 | SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED))); | |
50802 | SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT))); | |
50803 | SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS))); | |
50804 | SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT))); | |
50805 | SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES))); | |
50806 | SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT))); | |
50807 | SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE))); | |
50808 | SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS))); | |
0085ce49 RD |
50809 | SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal))); |
50810 | SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected))); | |
50811 | SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded))); | |
50812 | SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded))); | |
50813 | SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max))); | |
50814 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE))); | |
50815 | SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW))); | |
50816 | SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE))); | |
50817 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON))); | |
50818 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON))); | |
50819 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT))); | |
50820 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL))); | |
50821 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT))); | |
50822 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON))); | |
50823 | SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT))); | |
50824 | SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT))); | |
50825 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART))); | |
50826 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART))); | |
50827 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM))); | |
50828 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
50829 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
50830 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
50831 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
50832 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
50833 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
50834 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
50835 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
50836 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
50837 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
50838 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
50839 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
50840 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
50841 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
50842 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
50843 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
50844 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
50845 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
50846 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
50847 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
50848 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU)); | |
b02396e8 | 50849 | SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set); |
0085ce49 RD |
50850 | |
50851 | // Map renamed classes back to their common name for OOR | |
50852 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
50853 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
50854 | ||
50855 | SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set); | |
50856 | SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY))); | |
50857 | SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST))); | |
50858 | SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS))); | |
50859 | SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL))); | |
50860 | SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS))); | |
0085ce49 RD |
50861 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
50862 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
704eda0c RD |
50863 | SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown))); |
50864 | SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard))); | |
50865 | SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton))); | |
0085ce49 RD |
50866 | |
50867 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
50868 | ||
50869 | SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set); | |
50870 | SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT))); | |
50871 | SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN))); | |
50872 | SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN))); | |
50873 | SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY))); | |
50874 | SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE))); | |
704eda0c RD |
50875 | SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set); |
50876 | SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU))); | |
33d6fd3b RD |
50877 | SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT))); |
50878 | SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT))); | |
50879 | SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE))); | |
704eda0c RD |
50880 | SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE))); |
50881 | PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK)); | |
b850e7f3 RD |
50882 | SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL))); |
50883 | SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set); | |
50884 | SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL))); | |
50885 | SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL))); | |
50886 | SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE))); | |
50887 | PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED)); | |
50888 | SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set); | |
50889 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set); | |
50890 | SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set); | |
50891 | SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set); | |
50892 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set); | |
50893 | SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN))); | |
50894 | SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE))); | |
50895 | SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT))); | |
50896 | SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST))); | |
50897 | SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR))); | |
50898 | SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST))); | |
50899 | SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR))); | |
50900 | SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL))); | |
50901 | SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE))); | |
50902 | SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL))); | |
50903 | SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE))); | |
50904 | PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED)); | |
50905 | PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED)); | |
50906 | SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set); | |
50907 | SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL))); | |
50908 | SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL))); | |
50909 | SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL))); | |
50910 | SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE))); | |
50911 | PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED)); | |
5172800e RD |
50912 | SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set); |
50913 | SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE))); | |
50914 | SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE))); | |
50915 | PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED)); | |
3f7f284d | 50916 | SWIG_addvarlink(SWIG_globals(),(char*)"SearchCtrlNameStr",SearchCtrlNameStr_get, SearchCtrlNameStr_set); |
4ed51f4d RD |
50917 | PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN)); |
50918 | PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN)); | |
d14a1e28 RD |
50919 | } |
50920 |