]>
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] | |
2496 | #define SWIGTYPE_p_wxColour swig_types[30] | |
b850e7f3 RD |
2497 | #define SWIGTYPE_p_wxColourPickerCtrl swig_types[31] |
2498 | #define SWIGTYPE_p_wxColourPickerEvent swig_types[32] | |
2499 | #define SWIGTYPE_p_wxComboBox swig_types[33] | |
2500 | #define SWIGTYPE_p_wxCommandEvent swig_types[34] | |
2501 | #define SWIGTYPE_p_wxContextHelp swig_types[35] | |
2502 | #define SWIGTYPE_p_wxContextHelpButton swig_types[36] | |
2503 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[37] | |
2504 | #define SWIGTYPE_p_wxControl swig_types[38] | |
2505 | #define SWIGTYPE_p_wxControlWithItems swig_types[39] | |
2506 | #define SWIGTYPE_p_wxCursor swig_types[40] | |
2507 | #define SWIGTYPE_p_wxDC swig_types[41] | |
2508 | #define SWIGTYPE_p_wxDateEvent swig_types[42] | |
2509 | #define SWIGTYPE_p_wxDatePickerCtrl swig_types[43] | |
2510 | #define SWIGTYPE_p_wxDateTime swig_types[44] | |
2511 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45] | |
2512 | #define SWIGTYPE_p_wxDirPickerCtrl swig_types[46] | |
2513 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47] | |
2514 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[48] | |
2515 | #define SWIGTYPE_p_wxDuplexMode swig_types[49] | |
2516 | #define SWIGTYPE_p_wxEraseEvent swig_types[50] | |
2517 | #define SWIGTYPE_p_wxEvent swig_types[51] | |
2518 | #define SWIGTYPE_p_wxEvtHandler swig_types[52] | |
2519 | #define SWIGTYPE_p_wxFSFile swig_types[53] | |
2520 | #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54] | |
2521 | #define SWIGTYPE_p_wxFilePickerCtrl swig_types[55] | |
2522 | #define SWIGTYPE_p_wxFileSystem swig_types[56] | |
2523 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[57] | |
2524 | #define SWIGTYPE_p_wxFocusEvent swig_types[58] | |
2525 | #define SWIGTYPE_p_wxFont swig_types[59] | |
2526 | #define SWIGTYPE_p_wxFontPickerCtrl swig_types[60] | |
2527 | #define SWIGTYPE_p_wxFontPickerEvent swig_types[61] | |
2528 | #define SWIGTYPE_p_wxGBSizerItem swig_types[62] | |
2529 | #define SWIGTYPE_p_wxGIFHandler swig_types[63] | |
2530 | #define SWIGTYPE_p_wxGauge swig_types[64] | |
2531 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[65] | |
2532 | #define SWIGTYPE_p_wxGenericDragImage swig_types[66] | |
2533 | #define SWIGTYPE_p_wxGridBagSizer swig_types[67] | |
2534 | #define SWIGTYPE_p_wxGridSizer swig_types[68] | |
2535 | #define SWIGTYPE_p_wxHelpEvent swig_types[69] | |
2536 | #define SWIGTYPE_p_wxHelpProvider swig_types[70] | |
2537 | #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71] | |
2538 | #define SWIGTYPE_p_wxHyperlinkEvent swig_types[72] | |
2539 | #define SWIGTYPE_p_wxICOHandler swig_types[73] | |
2540 | #define SWIGTYPE_p_wxIcon swig_types[74] | |
2541 | #define SWIGTYPE_p_wxIconizeEvent swig_types[75] | |
2542 | #define SWIGTYPE_p_wxIdleEvent swig_types[76] | |
2543 | #define SWIGTYPE_p_wxImage swig_types[77] | |
2544 | #define SWIGTYPE_p_wxImageHandler swig_types[78] | |
2545 | #define SWIGTYPE_p_wxImageList swig_types[79] | |
2546 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80] | |
2547 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[81] | |
2548 | #define SWIGTYPE_p_wxItemContainer swig_types[82] | |
2549 | #define SWIGTYPE_p_wxJPEGHandler swig_types[83] | |
2550 | #define SWIGTYPE_p_wxKeyEvent swig_types[84] | |
2551 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[85] | |
2552 | #define SWIGTYPE_p_wxListBox swig_types[86] | |
2553 | #define SWIGTYPE_p_wxListEvent swig_types[87] | |
2554 | #define SWIGTYPE_p_wxListItem swig_types[88] | |
2555 | #define SWIGTYPE_p_wxListItemAttr swig_types[89] | |
2556 | #define SWIGTYPE_p_wxListView swig_types[90] | |
2557 | #define SWIGTYPE_p_wxListbook swig_types[91] | |
2558 | #define SWIGTYPE_p_wxListbookEvent swig_types[92] | |
2559 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[93] | |
2560 | #define SWIGTYPE_p_wxMemoryDC swig_types[94] | |
2561 | #define SWIGTYPE_p_wxMenu swig_types[95] | |
2562 | #define SWIGTYPE_p_wxMenuBar swig_types[96] | |
2563 | #define SWIGTYPE_p_wxMenuEvent swig_types[97] | |
2564 | #define SWIGTYPE_p_wxMenuItem swig_types[98] | |
2565 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99] | |
34e0a3bb RD |
2566 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[100] |
2567 | #define SWIGTYPE_p_wxMouseEvent swig_types[101] | |
2568 | #define SWIGTYPE_p_wxMoveEvent swig_types[102] | |
2569 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[103] | |
2570 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[104] | |
2571 | #define SWIGTYPE_p_wxNotebook swig_types[105] | |
2572 | #define SWIGTYPE_p_wxNotebookEvent swig_types[106] | |
2573 | #define SWIGTYPE_p_wxNotifyEvent swig_types[107] | |
2574 | #define SWIGTYPE_p_wxObject swig_types[108] | |
2575 | #define SWIGTYPE_p_wxPCXHandler swig_types[109] | |
2576 | #define SWIGTYPE_p_wxPNGHandler swig_types[110] | |
2577 | #define SWIGTYPE_p_wxPNMHandler swig_types[111] | |
2578 | #define SWIGTYPE_p_wxPaintEvent swig_types[112] | |
2579 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPaperSize swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPickerBase swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPoint swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPyApp swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPyControl swig_types[119] | |
2586 | #define SWIGTYPE_p_wxPyEvent swig_types[120] | |
2587 | #define SWIGTYPE_p_wxPyImageHandler swig_types[121] | |
2588 | #define SWIGTYPE_p_wxPyListCtrl swig_types[122] | |
2589 | #define SWIGTYPE_p_wxPySizer swig_types[123] | |
2590 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[124] | |
2591 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[125] | |
2592 | #define SWIGTYPE_p_wxPyValidator swig_types[126] | |
2593 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127] | |
2594 | #define SWIGTYPE_p_wxRadioBox swig_types[128] | |
2595 | #define SWIGTYPE_p_wxRadioButton swig_types[129] | |
2596 | #define SWIGTYPE_p_wxRect swig_types[130] | |
2597 | #define SWIGTYPE_p_wxScrollBar swig_types[131] | |
2598 | #define SWIGTYPE_p_wxScrollEvent swig_types[132] | |
2599 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[133] | |
2600 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[134] | |
2601 | #define SWIGTYPE_p_wxShowEvent swig_types[135] | |
2602 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[136] | |
2603 | #define SWIGTYPE_p_wxSize swig_types[137] | |
2604 | #define SWIGTYPE_p_wxSizeEvent swig_types[138] | |
2605 | #define SWIGTYPE_p_wxSizer swig_types[139] | |
2606 | #define SWIGTYPE_p_wxSizerItem swig_types[140] | |
2607 | #define SWIGTYPE_p_wxSlider swig_types[141] | |
2608 | #define SWIGTYPE_p_wxSpinButton swig_types[142] | |
2609 | #define SWIGTYPE_p_wxSpinCtrl swig_types[143] | |
2610 | #define SWIGTYPE_p_wxSpinEvent swig_types[144] | |
2611 | #define SWIGTYPE_p_wxStaticBitmap swig_types[145] | |
2612 | #define SWIGTYPE_p_wxStaticBox swig_types[146] | |
2613 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[147] | |
2614 | #define SWIGTYPE_p_wxStaticLine swig_types[148] | |
2615 | #define SWIGTYPE_p_wxStaticText swig_types[149] | |
2616 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[150] | |
2617 | #define SWIGTYPE_p_wxString swig_types[151] | |
2618 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[152] | |
580080c5 RD |
2619 | #define SWIGTYPE_p_wxTGAHandler swig_types[153] |
2620 | #define SWIGTYPE_p_wxTIFFHandler swig_types[154] | |
2621 | #define SWIGTYPE_p_wxTextAttr swig_types[155] | |
2622 | #define SWIGTYPE_p_wxTextCtrl swig_types[156] | |
2623 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[157] | |
2624 | #define SWIGTYPE_p_wxToggleButton swig_types[158] | |
2625 | #define SWIGTYPE_p_wxToolBar swig_types[159] | |
2626 | #define SWIGTYPE_p_wxToolBarBase swig_types[160] | |
2627 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[161] | |
2628 | #define SWIGTYPE_p_wxToolbook swig_types[162] | |
2629 | #define SWIGTYPE_p_wxToolbookEvent swig_types[163] | |
2630 | #define SWIGTYPE_p_wxTreeEvent swig_types[164] | |
2631 | #define SWIGTYPE_p_wxTreeItemId swig_types[165] | |
2632 | #define SWIGTYPE_p_wxTreebook swig_types[166] | |
2633 | #define SWIGTYPE_p_wxTreebookEvent swig_types[167] | |
2634 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[168] | |
2635 | #define SWIGTYPE_p_wxValidator swig_types[169] | |
2636 | #define SWIGTYPE_p_wxVisualAttributes swig_types[170] | |
2637 | #define SWIGTYPE_p_wxWindow swig_types[171] | |
2638 | #define SWIGTYPE_p_wxWindowBase swig_types[172] | |
2639 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[173] | |
2640 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[174] | |
2641 | #define SWIGTYPE_p_wxXPMHandler swig_types[175] | |
2642 | static swig_type_info *swig_types[177]; | |
2643 | static swig_module_info swig_module = {swig_types, 176, 0, 0, 0, 0}; | |
32fe5131 RD |
2644 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2645 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
093d3ff1 RD |
2646 | |
2647 | /* -------- TYPES TABLE (END) -------- */ | |
2648 | ||
0085ce49 RD |
2649 | #if (PY_VERSION_HEX <= 0x02000000) |
2650 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2651 | # error "This python version requires to use swig with the '-classic' option" | |
2652 | # endif | |
2653 | #endif | |
2654 | #if (PY_VERSION_HEX <= 0x02020000) | |
2655 | # error "This python version requires to use swig with the '-nomodern' option" | |
2656 | #endif | |
2657 | #if (PY_VERSION_HEX <= 0x02020000) | |
2658 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2659 | #endif | |
2660 | #ifndef METH_O | |
2661 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2662 | #endif | |
093d3ff1 RD |
2663 | |
2664 | /*----------------------------------------------- | |
2665 | @(target):= _controls_.so | |
2666 | ------------------------------------------------*/ | |
2667 | #define SWIG_init init_controls_ | |
2668 | ||
2669 | #define SWIG_name "_controls_" | |
2670 | ||
0085ce49 RD |
2671 | #define SWIGVERSION 0x010329 |
2672 | ||
2673 | ||
2674 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) | |
2675 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
2676 | ||
2677 | ||
2678 | #include <stdexcept> | |
2679 | ||
2680 | ||
2681 | namespace swig { | |
2682 | class PyObject_ptr { | |
2683 | protected: | |
2684 | PyObject *_obj; | |
2685 | ||
2686 | public: | |
2687 | PyObject_ptr() :_obj(0) | |
2688 | { | |
2689 | } | |
2690 | ||
2691 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2692 | { | |
2693 | Py_XINCREF(_obj); | |
2694 | } | |
2695 | ||
2696 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2697 | { | |
2698 | if (initial_ref) Py_XINCREF(_obj); | |
2699 | } | |
2700 | ||
2701 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2702 | { | |
2703 | Py_XINCREF(item._obj); | |
2704 | Py_XDECREF(_obj); | |
2705 | _obj = item._obj; | |
2706 | return *this; | |
2707 | } | |
2708 | ||
2709 | ~PyObject_ptr() | |
2710 | { | |
2711 | Py_XDECREF(_obj); | |
2712 | } | |
2713 | ||
2714 | operator PyObject *() const | |
2715 | { | |
2716 | return _obj; | |
2717 | } | |
2718 | ||
2719 | PyObject *operator->() const | |
2720 | { | |
2721 | return _obj; | |
2722 | } | |
2723 | }; | |
2724 | } | |
2725 | ||
2726 | ||
2727 | namespace swig { | |
2728 | struct PyObject_var : PyObject_ptr { | |
2729 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2730 | ||
2731 | PyObject_var & operator = (PyObject* obj) | |
2732 | { | |
2733 | Py_XDECREF(_obj); | |
2734 | _obj = obj; | |
2735 | return *this; | |
2736 | } | |
2737 | }; | |
2738 | } | |
2739 | ||
2740 | ||
093d3ff1 RD |
2741 | #include "wx/wxPython/wxPython.h" |
2742 | #include "wx/wxPython/pyclasses.h" | |
2743 | ||
2744 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
2745 | static const wxString wxPyEmptyString(wxEmptyString); | |
2746 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
2747 | ||
2748 | const wxArrayString wxPyEmptyStringArray; | |
2749 | ||
2750 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
2751 | ||
0085ce49 | 2752 | #define SWIG_From_long PyInt_FromLong |
093d3ff1 RD |
2753 | |
2754 | ||
0085ce49 RD |
2755 | SWIGINTERNINLINE PyObject * |
2756 | SWIG_From_int (int value) | |
2757 | { | |
2758 | return SWIG_From_long (value); | |
2759 | } | |
093d3ff1 RD |
2760 | |
2761 | ||
0085ce49 RD |
2762 | #include <limits.h> |
2763 | #ifndef LLONG_MIN | |
2764 | # define LLONG_MIN LONG_LONG_MIN | |
2765 | #endif | |
2766 | #ifndef LLONG_MAX | |
2767 | # define LLONG_MAX LONG_LONG_MAX | |
2768 | #endif | |
2769 | #ifndef ULLONG_MAX | |
2770 | # define ULLONG_MAX ULONG_LONG_MAX | |
2771 | #endif | |
093d3ff1 RD |
2772 | |
2773 | ||
2774 | SWIGINTERN int | |
0085ce49 | 2775 | SWIG_AsVal_long (PyObject* obj, long* val) |
093d3ff1 RD |
2776 | { |
2777 | if (PyNumber_Check(obj)) { | |
2778 | if (val) *val = PyInt_AsLong(obj); | |
0085ce49 | 2779 | return SWIG_OK; |
093d3ff1 | 2780 | } |
0085ce49 | 2781 | return SWIG_TypeError; |
093d3ff1 RD |
2782 | } |
2783 | ||
2784 | ||
093d3ff1 | 2785 | SWIGINTERN int |
0085ce49 RD |
2786 | SWIG_AsVal_int (PyObject * obj, int *val) |
2787 | { | |
093d3ff1 | 2788 | long v; |
0085ce49 RD |
2789 | int res = SWIG_AsVal_long (obj, &v); |
2790 | if (SWIG_IsOK(res)) { | |
2791 | if ((v < INT_MIN || v > INT_MAX)) { | |
2792 | return SWIG_OverflowError; | |
093d3ff1 | 2793 | } else { |
0085ce49 | 2794 | if (val) *val = static_cast< int >(v); |
093d3ff1 | 2795 | } |
0085ce49 RD |
2796 | } |
2797 | return res; | |
994141e6 RD |
2798 | } |
2799 | ||
c32bde28 | 2800 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
15afbcd0 | 2801 | |
093d3ff1 | 2802 | SWIGINTERN int |
0085ce49 | 2803 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
15afbcd0 | 2804 | { |
c32bde28 RD |
2805 | if (obj == Py_True) { |
2806 | if (val) *val = true; | |
0085ce49 RD |
2807 | return SWIG_OK; |
2808 | } else if (obj == Py_False) { | |
c32bde28 | 2809 | if (val) *val = false; |
0085ce49 | 2810 | return SWIG_OK; |
093d3ff1 | 2811 | } else { |
0085ce49 RD |
2812 | long v = 0; |
2813 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2814 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2815 | return res; | |
c32bde28 | 2816 | } |
15afbcd0 RD |
2817 | } |
2818 | ||
b2dc1044 RD |
2819 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); |
2820 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
2821 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
2822 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
2823 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
2824 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
2825 | |
2826 | #include <wx/checklst.h> | |
d14a1e28 | 2827 | |
b2dc1044 | 2828 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
0085ce49 | 2829 | SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){ |
e9d6f3a4 RD |
2830 | if (clientData) |
2831 | { | |
d14a1e28 RD |
2832 | wxPyClientData* data = new wxPyClientData(clientData); |
2833 | self->Insert(item, pos, data); | |
e9d6f3a4 RD |
2834 | } |
2835 | else | |
d14a1e28 RD |
2836 | self->Insert(item, pos); |
2837 | } | |
50f151d7 RD |
2838 | |
2839 | SWIGINTERN int | |
2840 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) | |
2841 | { | |
2842 | long v = 0; | |
2843 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
2844 | return SWIG_TypeError; | |
2845 | } | |
2846 | else if (val) | |
2847 | *val = (unsigned long)v; | |
2848 | return SWIG_OK; | |
2849 | } | |
2850 | ||
2851 | ||
2852 | SWIGINTERN int | |
2853 | SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) | |
2854 | { | |
2855 | unsigned long v; | |
2856 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); | |
2857 | if (SWIG_IsOK(res)) { | |
2858 | if ((v > UINT_MAX)) { | |
2859 | return SWIG_OverflowError; | |
2860 | } else { | |
2861 | if (val) *val = static_cast< unsigned int >(v); | |
2862 | } | |
2863 | } | |
2864 | return res; | |
2865 | } | |
2866 | ||
0085ce49 | 2867 | SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){ |
e9d6f3a4 | 2868 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
7e08d4ef RD |
2869 | wxArrayInt lst; |
2870 | self->GetSelections(lst); | |
2871 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
e9d6f3a4 RD |
2872 | for (size_t i=0; i<lst.GetCount(); i++) |
2873 | { | |
7e08d4ef RD |
2874 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); |
2875 | } | |
e9d6f3a4 | 2876 | wxPyEndBlockThreads(blocked); |
7e08d4ef RD |
2877 | return tup; |
2878 | } | |
0085ce49 | 2879 | SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
c3eb6258 RD |
2880 | #ifdef __WXMSW__ |
2881 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2882 | self->GetItem(item)->SetTextColour(c); | |
2883 | #endif | |
2884 | } | |
0085ce49 | 2885 | SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ |
c3eb6258 RD |
2886 | #ifdef __WXMSW__ |
2887 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2888 | self->GetItem(item)->SetBackgroundColour(c); | |
2889 | #endif | |
2890 | } | |
0085ce49 | 2891 | SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ |
c3eb6258 RD |
2892 | #ifdef __WXMSW__ |
2893 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
2894 | self->GetItem(item)->SetFont(f); | |
2895 | #endif | |
2896 | } | |
b2dc1044 | 2897 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
0085ce49 | 2898 | SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
d14a1e28 RD |
2899 | self->AppendText(text); |
2900 | } | |
0085ce49 | 2901 | SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ |
d14a1e28 RD |
2902 | return self->GetValue().Mid(from, to - from); |
2903 | } | |
b2dc1044 RD |
2904 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
2905 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
33b885b9 | 2906 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
b2dc1044 RD |
2907 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
2908 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
75219dcb RD |
2909 | |
2910 | SWIGINTERNINLINE PyObject* | |
2911 | SWIG_From_unsigned_SS_long (unsigned long value) | |
2912 | { | |
2913 | return (value > LONG_MAX) ? | |
2914 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
2915 | } | |
2916 | ||
2917 | ||
2918 | SWIGINTERNINLINE PyObject * | |
2919 | SWIG_From_size_t (size_t value) | |
2920 | { | |
2921 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
2922 | } | |
2923 | ||
50f151d7 RD |
2924 | |
2925 | SWIGINTERNINLINE PyObject * | |
2926 | SWIG_From_unsigned_SS_int (unsigned int value) | |
2927 | { | |
2928 | return SWIG_From_unsigned_SS_long (value); | |
2929 | } | |
2930 | ||
d14a1e28 RD |
2931 | |
2932 | #include <wx/slider.h> | |
2933 | ||
d14a1e28 | 2934 | |
b2dc1044 | 2935 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
33b885b9 | 2936 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 2937 | |
15afbcd0 RD |
2938 | #if !wxUSE_TOGGLEBTN |
2939 | // implement dummy items for platforms that don't have this class | |
d14a1e28 RD |
2940 | |
2941 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
2942 | ||
2943 | class wxToggleButton : public wxControl | |
2944 | { | |
2945 | public: | |
2946 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
2947 | const wxPoint&, const wxSize&, long, | |
2948 | const wxValidator&, const wxString&) | |
39f61e25 | 2949 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
2950 | |
2951 | wxToggleButton() | |
39f61e25 | 2952 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
2953 | }; |
2954 | #endif | |
2955 | ||
51b83b37 | 2956 | static const wxString wxPyNotebookNameStr(wxNotebookNameStr); |
994141e6 | 2957 | |
7e08d4ef | 2958 | SWIGINTERNINLINE int |
0085ce49 | 2959 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
7e08d4ef | 2960 | { |
7e08d4ef | 2961 | unsigned long v; |
0085ce49 RD |
2962 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); |
2963 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
2964 | return res; | |
7e08d4ef | 2965 | } |
7e08d4ef | 2966 | |
b2dc1044 | 2967 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
0085ce49 | 2968 | SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
d14a1e28 RD |
2969 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); |
2970 | if (udata) { | |
2971 | Py_INCREF(udata->m_obj); | |
2972 | return udata->m_obj; | |
2973 | } else { | |
2974 | Py_INCREF(Py_None); | |
2975 | return Py_None; | |
2976 | } | |
2977 | } | |
0085ce49 | 2978 | SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ |
d14a1e28 RD |
2979 | self->SetClientData(new wxPyUserData(clientData)); |
2980 | } | |
0085ce49 | 2981 | 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 |
2982 | wxPyUserData* udata = NULL; |
2983 | if (clientData && clientData != Py_None) | |
2984 | udata = new wxPyUserData(clientData); | |
2985 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
2986 | shortHelp, longHelp, udata); | |
2987 | } | |
0085ce49 | 2988 | 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 |
2989 | wxPyUserData* udata = NULL; |
2990 | if (clientData && clientData != Py_None) | |
2991 | udata = new wxPyUserData(clientData); | |
2992 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
2993 | shortHelp, longHelp, udata); | |
2994 | } | |
0085ce49 | 2995 | SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ |
d14a1e28 RD |
2996 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); |
2997 | if (udata) { | |
2998 | Py_INCREF(udata->m_obj); | |
2999 | return udata->m_obj; | |
3000 | } else { | |
3001 | Py_INCREF(Py_None); | |
3002 | return Py_None; | |
3003 | } | |
3004 | } | |
0085ce49 | 3005 | SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ |
d14a1e28 RD |
3006 | self->SetToolClientData(id, new wxPyUserData(clientData)); |
3007 | } | |
3008 | ||
3009 | #include <wx/listctrl.h> | |
3010 | ||
7557b9b5 | 3011 | static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr); |
0085ce49 | 3012 | SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
d14a1e28 RD |
3013 | // Python aware sorting function for wxPyListCtrl |
3014 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
3015 | int retval = 0; | |
3016 | PyObject* func = (PyObject*)funcPtr; | |
5a446332 | 3017 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
3018 | |
3019 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
3020 | PyObject* result = PyEval_CallObject(func, args); | |
3021 | Py_DECREF(args); | |
3022 | if (result) { | |
3023 | retval = PyInt_AsLong(result); | |
3024 | Py_DECREF(result); | |
3025 | } | |
3026 | ||
4f89f6a3 | 3027 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3028 | return retval; |
3029 | } | |
3030 | ||
3031 | // C++ Version of a Python aware class | |
3032 | class wxPyListCtrl : public wxListCtrl { | |
32fe5131 | 3033 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl) |
d14a1e28 RD |
3034 | public: |
3035 | wxPyListCtrl() : wxListCtrl() {} | |
3036 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
3037 | const wxPoint& pos, | |
3038 | const wxSize& size, | |
3039 | long style, | |
3040 | const wxValidator& validator, | |
3041 | const wxString& name) : | |
3042 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
3043 | ||
3044 | bool Create(wxWindow* parent, wxWindowID id, | |
3045 | const wxPoint& pos, | |
3046 | const wxSize& size, | |
3047 | long style, | |
3048 | const wxValidator& validator, | |
3049 | const wxString& name) { | |
3050 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
3051 | } | |
3052 | ||
3053 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
d14a1e28 RD |
3054 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); |
3055 | ||
84f85550 RD |
3056 | // use the virtual version to avoid a confusing assert in the base class |
3057 | DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage); | |
7e08d4ef | 3058 | DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage); |
84f85550 | 3059 | |
d14a1e28 RD |
3060 | PYPRIVATE; |
3061 | }; | |
3062 | ||
3063 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
3064 | ||
3065 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
d14a1e28 | 3066 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); |
84f85550 | 3067 | IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage); |
7e08d4ef RD |
3068 | IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage); |
3069 | ||
d14a1e28 | 3070 | |
0085ce49 | 3071 | SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ |
d14a1e28 RD |
3072 | wxListItem item; |
3073 | item.SetMask( wxLIST_MASK_STATE | | |
3074 | wxLIST_MASK_TEXT | | |
3075 | wxLIST_MASK_IMAGE | | |
3076 | wxLIST_MASK_DATA | | |
3077 | wxLIST_SET_ITEM | | |
3078 | wxLIST_MASK_WIDTH | | |
3079 | wxLIST_MASK_FORMAT | |
3080 | ); | |
3081 | if (self->GetColumn(col, item)) | |
3082 | return new wxListItem(item); | |
3083 | else | |
3084 | return NULL; | |
3085 | } | |
0085ce49 | 3086 | SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){ |
d14a1e28 RD |
3087 | wxListItem* info = new wxListItem; |
3088 | info->m_itemId = itemId; | |
3089 | info->m_col = col; | |
3090 | info->m_mask = 0xFFFF; | |
3091 | self->GetItem(*info); | |
3092 | return info; | |
3093 | } | |
0085ce49 | 3094 | SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ |
d14a1e28 RD |
3095 | wxPoint pos; |
3096 | self->GetItemPosition(item, pos); | |
3097 | return pos; | |
3098 | } | |
0085ce49 | 3099 | SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){ |
d14a1e28 RD |
3100 | wxRect rect; |
3101 | self->GetItemRect(item, rect, code); | |
3102 | return rect; | |
3103 | } | |
0085ce49 | 3104 | SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
d14a1e28 | 3105 | if (!PyCallable_Check(func)) |
ae8162c8 | 3106 | return false; |
d14a1e28 RD |
3107 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
3108 | } | |
0085ce49 | 3109 | SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ |
d14a1e28 RD |
3110 | |
3111 | ||
3112 | ||
3113 | return (wxWindow*)self->m_mainWin; | |
3114 | ||
3115 | } | |
3116 | ||
3117 | #include <wx/treectrl.h> | |
3118 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 3119 | |
33b885b9 | 3120 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
0085ce49 RD |
3121 | SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; } |
3122 | SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; } | |
3123 | SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
b02396e8 RD |
3124 | |
3125 | static wxTreeItemId wxNullTreeItemId; | |
3126 | ||
d14a1e28 RD |
3127 | // C++ version of Python aware wxTreeCtrl |
3128 | class wxPyTreeCtrl : public wxTreeCtrl { | |
32fe5131 | 3129 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl) |
d14a1e28 RD |
3130 | public: |
3131 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
3132 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
3133 | const wxPoint& pos, | |
3134 | const wxSize& size, | |
3135 | long style, | |
3136 | const wxValidator& validator, | |
3137 | const wxString& name) : | |
3138 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
3139 | ||
3140 | bool Create(wxWindow *parent, wxWindowID id, | |
3141 | const wxPoint& pos, | |
3142 | const wxSize& size, | |
3143 | long style, | |
3144 | const wxValidator& validator, | |
3145 | const wxString& name) { | |
3146 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
3147 | } | |
3148 | ||
3149 | ||
3150 | int OnCompareItems(const wxTreeItemId& item1, | |
3151 | const wxTreeItemId& item2) { | |
3152 | int rval = 0; | |
3153 | bool found; | |
5a446332 | 3154 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 3155 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
ae8162c8 RD |
3156 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false); |
3157 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false); | |
d14a1e28 RD |
3158 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
3159 | Py_DECREF(o1); | |
3160 | Py_DECREF(o2); | |
3161 | } | |
4f89f6a3 | 3162 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3163 | if (! found) |
3164 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
3165 | return rval; | |
3166 | } | |
3167 | PYPRIVATE; | |
3168 | }; | |
3169 | ||
3170 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
3171 | ||
3172 | ||
0085ce49 | 3173 | SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d14a1e28 RD |
3174 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3175 | if (data == NULL) { | |
3176 | data = new wxPyTreeItemData(); | |
3177 | data->SetId(item); // set the id | |
3178 | self->SetItemData(item, data); | |
3179 | } | |
3180 | return data; | |
3181 | } | |
0085ce49 | 3182 | SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d14a1e28 RD |
3183 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3184 | if (data == NULL) { | |
3185 | data = new wxPyTreeItemData(); | |
3186 | data->SetId(item); // set the id | |
3187 | self->SetItemData(item, data); | |
3188 | } | |
3189 | return data->GetData(); | |
3190 | } | |
0085ce49 | 3191 | SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ |
d14a1e28 RD |
3192 | data->SetId(item); // set the id |
3193 | self->SetItemData(item, data); | |
3194 | } | |
0085ce49 | 3195 | SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ |
d14a1e28 RD |
3196 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
3197 | if (data == NULL) { | |
3198 | data = new wxPyTreeItemData(obj); | |
3199 | data->SetId(item); // set the id | |
3200 | self->SetItemData(item, data); | |
3201 | } else | |
3202 | data->SetData(obj); | |
3203 | } | |
0085ce49 | 3204 | SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ |
5a446332 | 3205 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
3206 | PyObject* rval = PyList_New(0); |
3207 | wxArrayTreeItemIds array; | |
3208 | size_t num, x; | |
3209 | num = self->GetSelections(array); | |
3210 | for (x=0; x < num; x++) { | |
3211 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
ae8162c8 | 3212 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true); |
d14a1e28 | 3213 | PyList_Append(rval, item); |
1a10c483 | 3214 | Py_DECREF(item); |
d14a1e28 | 3215 | } |
4f89f6a3 | 3216 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3217 | return rval; |
3218 | } | |
0085ce49 | 3219 | SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
58203fa6 RD |
3220 | void* cookie = 0; |
3221 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
5a446332 | 3222 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 3223 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 3224 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 3225 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 3226 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3227 | return tup; |
3228 | } | |
0085ce49 | 3229 | SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
58203fa6 | 3230 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); |
5a446332 | 3231 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 3232 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 3233 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 3234 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 3235 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3236 | return tup; |
3237 | } | |
0085ce49 | 3238 | SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){ |
d14a1e28 RD |
3239 | wxRect rect; |
3240 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
5a446332 | 3241 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 3242 | wxRect* r = new wxRect(rect); |
ae8162c8 | 3243 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true); |
4f89f6a3 | 3244 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3245 | return val; |
3246 | } | |
3247 | else | |
3248 | RETURN_NONE(); | |
3249 | } | |
b2dc1044 | 3250 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
c32bde28 | 3251 | |
32fe5131 | 3252 | SWIGINTERNINLINE PyObject* |
0085ce49 | 3253 | SWIG_From_bool (bool value) |
c32bde28 | 3254 | { |
0085ce49 | 3255 | return PyBool_FromLong(value ? 1 : 0); |
c32bde28 RD |
3256 | } |
3257 | ||
d14a1e28 RD |
3258 | // C++ version of Python aware wxControl |
3259 | class wxPyControl : public wxControl | |
3260 | { | |
3261 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
3262 | public: | |
3263 | wxPyControl() : wxControl() {} | |
3264 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
3265 | const wxPoint& pos = wxDefaultPosition, | |
3266 | const wxSize& size = wxDefaultSize, | |
3267 | long style = 0, | |
3268 | const wxValidator& validator=wxDefaultValidator, | |
3269 | const wxString& name = wxPyControlNameStr) | |
3270 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
3271 | ||
3272 | ||
976dbff5 RD |
3273 | bool DoEraseBackground(wxDC* dc) { |
3274 | #ifdef __WXMSW__ | |
3275 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3276 | #else | |
3277 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3278 | dc->Clear(); | |
3279 | return true; | |
3280 | #endif | |
3281 | } | |
3282 | ||
d14a1e28 RD |
3283 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); |
3284 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3285 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3286 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3287 | ||
3288 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3289 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3290 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3291 | ||
3292 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3293 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3294 | ||
3295 | DEC_PYCALLBACK__(InitDialog); | |
3296 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3297 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3298 | DEC_PYCALLBACK_BOOL_(Validate); | |
3299 | ||
3300 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3301 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3302 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3303 | ||
3304 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3305 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3306 | ||
db3e571a | 3307 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
db3e571a | 3308 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 3309 | |
51b83b37 RD |
3310 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3311 | ||
8d38bd1d RD |
3312 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3313 | ||
d14a1e28 RD |
3314 | PYPRIVATE; |
3315 | }; | |
3316 | ||
3317 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
3318 | ||
3319 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
3320 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
3321 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
3322 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
3323 | ||
3324 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
3325 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
3326 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
3327 | ||
3328 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
3329 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
3330 | ||
3331 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
3332 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
3333 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
3334 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
3335 | ||
3336 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
3337 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
3338 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
3339 | ||
3340 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
3341 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
3342 | ||
db3e571a | 3343 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
db3e571a | 3344 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d14a1e28 | 3345 | |
51b83b37 | 3346 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground); |
8d38bd1d RD |
3347 | |
3348 | IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle); | |
3349 | ||
d14a1e28 RD |
3350 | |
3351 | ||
0085ce49 | 3352 | SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } |
e811c8ce RD |
3353 | |
3354 | #include <wx/generic/dragimgg.h> | |
3355 | ||
53aa7709 | 3356 | static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr); |
0085ce49 | 3357 | SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){ |
53aa7709 RD |
3358 | wxDateTime rv; |
3359 | self->GetRange(&rv, NULL); | |
3360 | return rv; | |
3361 | } | |
0085ce49 | 3362 | SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){ |
53aa7709 RD |
3363 | wxDateTime rv; |
3364 | self->GetRange(NULL, &rv); | |
3365 | return rv; | |
3366 | } | |
704eda0c | 3367 | static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr); |
b850e7f3 RD |
3368 | static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr); |
3369 | static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr); | |
3370 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
3371 | static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr); | |
3372 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
3373 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
3374 | static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr); | |
d14a1e28 RD |
3375 | #ifdef __cplusplus |
3376 | extern "C" { | |
3377 | #endif | |
0085ce49 RD |
3378 | SWIGINTERN int ButtonNameStr_set(PyObject *) { |
3379 | SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only."); | |
3380 | return 1; | |
b2dc1044 RD |
3381 | } |
3382 | ||
3383 | ||
0085ce49 RD |
3384 | SWIGINTERN PyObject *ButtonNameStr_get(void) { |
3385 | PyObject *pyobj = 0; | |
3386 | ||
3387 | { | |
b2dc1044 | 3388 | #if wxUSE_UNICODE |
0085ce49 | 3389 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); |
b2dc1044 | 3390 | #else |
0085ce49 | 3391 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); |
b2dc1044 | 3392 | #endif |
0085ce49 RD |
3393 | } |
3394 | return pyobj; | |
3395 | } | |
3396 | ||
3397 | ||
3398 | SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3399 | PyObject *resultobj = 0; | |
3400 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3401 | int arg2 = (int) -1 ; | |
3402 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3403 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3404 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3405 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3406 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3407 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3408 | long arg6 = (long) 0 ; | |
3409 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3410 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3411 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
3412 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3413 | wxButton *result = 0 ; | |
3414 | void *argp1 = 0 ; | |
3415 | int res1 = 0 ; | |
3416 | int val2 ; | |
3417 | int ecode2 = 0 ; | |
3418 | bool temp3 = false ; | |
3419 | wxPoint temp4 ; | |
3420 | wxSize temp5 ; | |
3421 | long val6 ; | |
3422 | int ecode6 = 0 ; | |
3423 | void *argp7 = 0 ; | |
3424 | int res7 = 0 ; | |
3425 | bool temp8 = false ; | |
3426 | PyObject * obj0 = 0 ; | |
3427 | PyObject * obj1 = 0 ; | |
3428 | PyObject * obj2 = 0 ; | |
3429 | PyObject * obj3 = 0 ; | |
3430 | PyObject * obj4 = 0 ; | |
3431 | PyObject * obj5 = 0 ; | |
3432 | PyObject * obj6 = 0 ; | |
3433 | PyObject * obj7 = 0 ; | |
3434 | char * kwnames[] = { | |
3435 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3436 | }; | |
3437 | ||
3438 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
3439 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3440 | if (!SWIG_IsOK(res1)) { | |
3441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3442 | } | |
3443 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3444 | if (obj1) { | |
3445 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3446 | if (!SWIG_IsOK(ecode2)) { | |
3447 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'"); | |
3448 | } | |
3449 | arg2 = static_cast< int >(val2); | |
3450 | } | |
3451 | if (obj2) { | |
d14a1e28 | 3452 | { |
0085ce49 RD |
3453 | arg3 = wxString_in_helper(obj2); |
3454 | if (arg3 == NULL) SWIG_fail; | |
3455 | temp3 = true; | |
d14a1e28 | 3456 | } |
0085ce49 RD |
3457 | } |
3458 | if (obj3) { | |
d14a1e28 | 3459 | { |
0085ce49 RD |
3460 | arg4 = &temp4; |
3461 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 3462 | } |
0085ce49 RD |
3463 | } |
3464 | if (obj4) { | |
d14a1e28 | 3465 | { |
0085ce49 RD |
3466 | arg5 = &temp5; |
3467 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 3468 | } |
0085ce49 RD |
3469 | } |
3470 | if (obj5) { | |
3471 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3472 | if (!SWIG_IsOK(ecode6)) { | |
3473 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'"); | |
3474 | } | |
3475 | arg6 = static_cast< long >(val6); | |
3476 | } | |
3477 | if (obj6) { | |
3478 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
3479 | if (!SWIG_IsOK(res7)) { | |
3480 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 3481 | } |
0085ce49 RD |
3482 | if (!argp7) { |
3483 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 3484 | } |
0085ce49 RD |
3485 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
3486 | } | |
3487 | if (obj7) { | |
d14a1e28 | 3488 | { |
0085ce49 RD |
3489 | arg8 = wxString_in_helper(obj7); |
3490 | if (arg8 == NULL) SWIG_fail; | |
3491 | temp8 = true; | |
d14a1e28 | 3492 | } |
0085ce49 RD |
3493 | } |
3494 | { | |
3495 | if (!wxPyCheckForApp()) SWIG_fail; | |
3496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3497 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3498 | wxPyEndAllowThreads(__tstate); | |
3499 | if (PyErr_Occurred()) SWIG_fail; | |
3500 | } | |
3501 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 ); | |
3502 | { | |
3503 | if (temp3) | |
3504 | delete arg3; | |
3505 | } | |
3506 | { | |
3507 | if (temp8) | |
3508 | delete arg8; | |
3509 | } | |
3510 | return resultobj; | |
3511 | fail: | |
3512 | { | |
3513 | if (temp3) | |
3514 | delete arg3; | |
3515 | } | |
3516 | { | |
3517 | if (temp8) | |
3518 | delete arg8; | |
3519 | } | |
3520 | return NULL; | |
d14a1e28 RD |
3521 | } |
3522 | ||
3523 | ||
0085ce49 RD |
3524 | SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3525 | PyObject *resultobj = 0; | |
3526 | wxButton *result = 0 ; | |
3527 | ||
3528 | if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail; | |
3529 | { | |
3530 | if (!wxPyCheckForApp()) SWIG_fail; | |
3531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3532 | result = (wxButton *)new wxButton(); | |
3533 | wxPyEndAllowThreads(__tstate); | |
3534 | if (PyErr_Occurred()) SWIG_fail; | |
3535 | } | |
3536 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 ); | |
3537 | return resultobj; | |
3538 | fail: | |
3539 | return NULL; | |
3540 | } | |
3541 | ||
3542 | ||
3543 | SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3544 | PyObject *resultobj = 0; | |
3545 | wxButton *arg1 = (wxButton *) 0 ; | |
3546 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3547 | int arg3 = (int) -1 ; | |
3548 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3549 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3550 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3551 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3552 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3553 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3554 | long arg7 = (long) 0 ; | |
3555 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3556 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3557 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
3558 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3559 | bool result; | |
3560 | void *argp1 = 0 ; | |
3561 | int res1 = 0 ; | |
3562 | void *argp2 = 0 ; | |
3563 | int res2 = 0 ; | |
3564 | int val3 ; | |
3565 | int ecode3 = 0 ; | |
3566 | bool temp4 = false ; | |
3567 | wxPoint temp5 ; | |
3568 | wxSize temp6 ; | |
3569 | long val7 ; | |
3570 | int ecode7 = 0 ; | |
3571 | void *argp8 = 0 ; | |
3572 | int res8 = 0 ; | |
3573 | bool temp9 = false ; | |
3574 | PyObject * obj0 = 0 ; | |
3575 | PyObject * obj1 = 0 ; | |
3576 | PyObject * obj2 = 0 ; | |
3577 | PyObject * obj3 = 0 ; | |
3578 | PyObject * obj4 = 0 ; | |
3579 | PyObject * obj5 = 0 ; | |
3580 | PyObject * obj6 = 0 ; | |
3581 | PyObject * obj7 = 0 ; | |
3582 | PyObject * obj8 = 0 ; | |
3583 | char * kwnames[] = { | |
3584 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3585 | }; | |
3586 | ||
3587 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
3588 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 ); | |
3589 | if (!SWIG_IsOK(res1)) { | |
3590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'"); | |
3591 | } | |
3592 | arg1 = reinterpret_cast< wxButton * >(argp1); | |
3593 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3594 | if (!SWIG_IsOK(res2)) { | |
3595 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3596 | } | |
3597 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3598 | if (obj2) { | |
3599 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3600 | if (!SWIG_IsOK(ecode3)) { | |
3601 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'"); | |
3602 | } | |
3603 | arg3 = static_cast< int >(val3); | |
3604 | } | |
3605 | if (obj3) { | |
d14a1e28 | 3606 | { |
0085ce49 RD |
3607 | arg4 = wxString_in_helper(obj3); |
3608 | if (arg4 == NULL) SWIG_fail; | |
3609 | temp4 = true; | |
d14a1e28 | 3610 | } |
0085ce49 RD |
3611 | } |
3612 | if (obj4) { | |
4f89f6a3 | 3613 | { |
0085ce49 RD |
3614 | arg5 = &temp5; |
3615 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 3616 | } |
0085ce49 RD |
3617 | } |
3618 | if (obj5) { | |
d14a1e28 | 3619 | { |
0085ce49 RD |
3620 | arg6 = &temp6; |
3621 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 3622 | } |
0085ce49 RD |
3623 | } |
3624 | if (obj6) { | |
3625 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
3626 | if (!SWIG_IsOK(ecode7)) { | |
3627 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'"); | |
3628 | } | |
3629 | arg7 = static_cast< long >(val7); | |
3630 | } | |
3631 | if (obj7) { | |
3632 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
3633 | if (!SWIG_IsOK(res8)) { | |
3634 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 3635 | } |
0085ce49 RD |
3636 | if (!argp8) { |
3637 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 3638 | } |
0085ce49 RD |
3639 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
3640 | } | |
3641 | if (obj8) { | |
d14a1e28 | 3642 | { |
0085ce49 RD |
3643 | arg9 = wxString_in_helper(obj8); |
3644 | if (arg9 == NULL) SWIG_fail; | |
3645 | temp9 = true; | |
d14a1e28 | 3646 | } |
0085ce49 RD |
3647 | } |
3648 | { | |
3649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3650 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3651 | wxPyEndAllowThreads(__tstate); | |
3652 | if (PyErr_Occurred()) SWIG_fail; | |
3653 | } | |
3654 | { | |
3655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3656 | } | |
3657 | { | |
3658 | if (temp4) | |
3659 | delete arg4; | |
3660 | } | |
3661 | { | |
3662 | if (temp9) | |
3663 | delete arg9; | |
3664 | } | |
3665 | return resultobj; | |
3666 | fail: | |
3667 | { | |
3668 | if (temp4) | |
3669 | delete arg4; | |
3670 | } | |
3671 | { | |
3672 | if (temp9) | |
3673 | delete arg9; | |
3674 | } | |
3675 | return NULL; | |
d14a1e28 RD |
3676 | } |
3677 | ||
3678 | ||
0085ce49 RD |
3679 | SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3680 | PyObject *resultobj = 0; | |
3681 | wxButton *arg1 = (wxButton *) 0 ; | |
3682 | void *argp1 = 0 ; | |
3683 | int res1 = 0 ; | |
3684 | PyObject *swig_obj[1] ; | |
3685 | ||
3686 | if (!args) SWIG_fail; | |
3687 | swig_obj[0] = args; | |
3688 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 ); | |
3689 | if (!SWIG_IsOK(res1)) { | |
3690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'"); | |
3691 | } | |
3692 | arg1 = reinterpret_cast< wxButton * >(argp1); | |
3693 | { | |
3694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3695 | (arg1)->SetDefault(); | |
3696 | wxPyEndAllowThreads(__tstate); | |
3697 | if (PyErr_Occurred()) SWIG_fail; | |
3698 | } | |
3699 | resultobj = SWIG_Py_Void(); | |
3700 | return resultobj; | |
3701 | fail: | |
3702 | return NULL; | |
d14a1e28 RD |
3703 | } |
3704 | ||
3705 | ||
0085ce49 RD |
3706 | SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3707 | PyObject *resultobj = 0; | |
3708 | wxSize result; | |
3709 | ||
3710 | if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail; | |
3711 | { | |
3712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3713 | result = wxButton::GetDefaultSize(); | |
3714 | wxPyEndAllowThreads(__tstate); | |
3715 | if (PyErr_Occurred()) SWIG_fail; | |
3716 | } | |
3717 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
3718 | return resultobj; | |
3719 | fail: | |
3720 | return NULL; | |
3721 | } | |
3722 | ||
3723 | ||
3724 | SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3725 | PyObject *resultobj = 0; | |
3726 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
3727 | SwigValueWrapper<wxVisualAttributes > result; | |
3728 | int val1 ; | |
3729 | int ecode1 = 0 ; | |
3730 | PyObject * obj0 = 0 ; | |
3731 | char * kwnames[] = { | |
3732 | (char *) "variant", NULL | |
3733 | }; | |
3734 | ||
3735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
3736 | if (obj0) { | |
3737 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
3738 | if (!SWIG_IsOK(ecode1)) { | |
3739 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
3740 | } | |
3741 | arg1 = static_cast< wxWindowVariant >(val1); | |
3742 | } | |
3743 | { | |
3744 | if (!wxPyCheckForApp()) SWIG_fail; | |
3745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3746 | result = wxButton::GetClassDefaultAttributes(arg1); | |
3747 | wxPyEndAllowThreads(__tstate); | |
3748 | if (PyErr_Occurred()) SWIG_fail; | |
3749 | } | |
3750 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
3751 | return resultobj; | |
3752 | fail: | |
3753 | return NULL; | |
3754 | } | |
3755 | ||
3756 | ||
3757 | SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3758 | PyObject *obj; | |
3759 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3760 | SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj)); | |
3761 | return SWIG_Py_Void(); | |
3762 | } | |
3763 | ||
3764 | SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3765 | return SWIG_Python_InitShadowInstance(args); | |
3766 | } | |
3767 | ||
3768 | SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3769 | PyObject *resultobj = 0; | |
3770 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3771 | int arg2 = (int) -1 ; | |
3772 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
3773 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
3774 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3775 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3776 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3777 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3778 | long arg6 = (long) wxBU_AUTODRAW ; | |
3779 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3780 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3781 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
3782 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3783 | wxBitmapButton *result = 0 ; | |
3784 | void *argp1 = 0 ; | |
3785 | int res1 = 0 ; | |
3786 | int val2 ; | |
3787 | int ecode2 = 0 ; | |
3788 | void *argp3 = 0 ; | |
3789 | int res3 = 0 ; | |
3790 | wxPoint temp4 ; | |
3791 | wxSize temp5 ; | |
3792 | long val6 ; | |
3793 | int ecode6 = 0 ; | |
3794 | void *argp7 = 0 ; | |
3795 | int res7 = 0 ; | |
3796 | bool temp8 = false ; | |
3797 | PyObject * obj0 = 0 ; | |
3798 | PyObject * obj1 = 0 ; | |
3799 | PyObject * obj2 = 0 ; | |
3800 | PyObject * obj3 = 0 ; | |
3801 | PyObject * obj4 = 0 ; | |
3802 | PyObject * obj5 = 0 ; | |
3803 | PyObject * obj6 = 0 ; | |
3804 | PyObject * obj7 = 0 ; | |
3805 | char * kwnames[] = { | |
3806 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3807 | }; | |
3808 | ||
3809 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
3810 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3811 | if (!SWIG_IsOK(res1)) { | |
3812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3813 | } | |
3814 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3815 | if (obj1) { | |
3816 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3817 | if (!SWIG_IsOK(ecode2)) { | |
3818 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'"); | |
3819 | } | |
3820 | arg2 = static_cast< int >(val2); | |
3821 | } | |
3822 | if (obj2) { | |
3823 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
3824 | if (!SWIG_IsOK(res3)) { | |
3825 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
3826 | } | |
3827 | if (!argp3) { | |
3828 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
3829 | } | |
3830 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
3831 | } | |
3832 | if (obj3) { | |
d14a1e28 | 3833 | { |
0085ce49 RD |
3834 | arg4 = &temp4; |
3835 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 3836 | } |
0085ce49 RD |
3837 | } |
3838 | if (obj4) { | |
d14a1e28 | 3839 | { |
0085ce49 RD |
3840 | arg5 = &temp5; |
3841 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 3842 | } |
0085ce49 RD |
3843 | } |
3844 | if (obj5) { | |
3845 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3846 | if (!SWIG_IsOK(ecode6)) { | |
3847 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'"); | |
3848 | } | |
3849 | arg6 = static_cast< long >(val6); | |
3850 | } | |
3851 | if (obj6) { | |
3852 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
3853 | if (!SWIG_IsOK(res7)) { | |
3854 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
22bfe96c | 3855 | } |
0085ce49 RD |
3856 | if (!argp7) { |
3857 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
22bfe96c | 3858 | } |
0085ce49 RD |
3859 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
3860 | } | |
3861 | if (obj7) { | |
22bfe96c | 3862 | { |
0085ce49 RD |
3863 | arg8 = wxString_in_helper(obj7); |
3864 | if (arg8 == NULL) SWIG_fail; | |
3865 | temp8 = true; | |
22bfe96c | 3866 | } |
0085ce49 RD |
3867 | } |
3868 | { | |
3869 | if (!wxPyCheckForApp()) SWIG_fail; | |
3870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3871 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3872 | wxPyEndAllowThreads(__tstate); | |
3873 | if (PyErr_Occurred()) SWIG_fail; | |
3874 | } | |
3875 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 ); | |
3876 | { | |
3877 | if (temp8) | |
3878 | delete arg8; | |
3879 | } | |
3880 | return resultobj; | |
3881 | fail: | |
3882 | { | |
3883 | if (temp8) | |
3884 | delete arg8; | |
3885 | } | |
3886 | return NULL; | |
22bfe96c RD |
3887 | } |
3888 | ||
3889 | ||
0085ce49 RD |
3890 | SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3891 | PyObject *resultobj = 0; | |
3892 | wxBitmapButton *result = 0 ; | |
3893 | ||
3894 | if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail; | |
3895 | { | |
3896 | if (!wxPyCheckForApp()) SWIG_fail; | |
3897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3898 | result = (wxBitmapButton *)new wxBitmapButton(); | |
3899 | wxPyEndAllowThreads(__tstate); | |
3900 | if (PyErr_Occurred()) SWIG_fail; | |
3901 | } | |
3902 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 ); | |
3903 | return resultobj; | |
3904 | fail: | |
3905 | return NULL; | |
3906 | } | |
3907 | ||
3908 | ||
3909 | SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3910 | PyObject *resultobj = 0; | |
3911 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3912 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3913 | int arg3 = (int) -1 ; | |
3914 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
3915 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
3916 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3917 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3918 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3919 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3920 | long arg7 = (long) wxBU_AUTODRAW ; | |
3921 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3922 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3923 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
3924 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3925 | bool result; | |
3926 | void *argp1 = 0 ; | |
3927 | int res1 = 0 ; | |
3928 | void *argp2 = 0 ; | |
3929 | int res2 = 0 ; | |
3930 | int val3 ; | |
3931 | int ecode3 = 0 ; | |
3932 | void *argp4 = 0 ; | |
3933 | int res4 = 0 ; | |
3934 | wxPoint temp5 ; | |
3935 | wxSize temp6 ; | |
3936 | long val7 ; | |
3937 | int ecode7 = 0 ; | |
3938 | void *argp8 = 0 ; | |
3939 | int res8 = 0 ; | |
3940 | bool temp9 = false ; | |
3941 | PyObject * obj0 = 0 ; | |
3942 | PyObject * obj1 = 0 ; | |
3943 | PyObject * obj2 = 0 ; | |
3944 | PyObject * obj3 = 0 ; | |
3945 | PyObject * obj4 = 0 ; | |
3946 | PyObject * obj5 = 0 ; | |
3947 | PyObject * obj6 = 0 ; | |
3948 | PyObject * obj7 = 0 ; | |
3949 | PyObject * obj8 = 0 ; | |
3950 | char * kwnames[] = { | |
3951 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3952 | }; | |
3953 | ||
3954 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
3955 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
3956 | if (!SWIG_IsOK(res1)) { | |
3957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
3958 | } | |
3959 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
3960 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3961 | if (!SWIG_IsOK(res2)) { | |
3962 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3963 | } | |
3964 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3965 | if (obj2) { | |
3966 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3967 | if (!SWIG_IsOK(ecode3)) { | |
3968 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
3969 | } | |
3970 | arg3 = static_cast< int >(val3); | |
3971 | } | |
3972 | if (obj3) { | |
3973 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
3974 | if (!SWIG_IsOK(res4)) { | |
3975 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d14a1e28 | 3976 | } |
0085ce49 RD |
3977 | if (!argp4) { |
3978 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
d14a1e28 | 3979 | } |
0085ce49 RD |
3980 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
3981 | } | |
3982 | if (obj4) { | |
d14a1e28 | 3983 | { |
0085ce49 RD |
3984 | arg5 = &temp5; |
3985 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 3986 | } |
0085ce49 RD |
3987 | } |
3988 | if (obj5) { | |
d14a1e28 | 3989 | { |
0085ce49 RD |
3990 | arg6 = &temp6; |
3991 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3992 | } | |
3993 | } | |
3994 | if (obj6) { | |
3995 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
3996 | if (!SWIG_IsOK(ecode7)) { | |
3997 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
3998 | } | |
3999 | arg7 = static_cast< long >(val7); | |
4000 | } | |
4001 | if (obj7) { | |
4002 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
4003 | if (!SWIG_IsOK(res8)) { | |
4004 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
4005 | } | |
4006 | if (!argp8) { | |
4007 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 4008 | } |
0085ce49 RD |
4009 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
4010 | } | |
4011 | if (obj8) { | |
d14a1e28 | 4012 | { |
0085ce49 RD |
4013 | arg9 = wxString_in_helper(obj8); |
4014 | if (arg9 == NULL) SWIG_fail; | |
4015 | temp9 = true; | |
d14a1e28 | 4016 | } |
0085ce49 RD |
4017 | } |
4018 | { | |
4019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4020 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4021 | wxPyEndAllowThreads(__tstate); | |
4022 | if (PyErr_Occurred()) SWIG_fail; | |
4023 | } | |
4024 | { | |
4025 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4026 | } | |
4027 | { | |
4028 | if (temp9) | |
4029 | delete arg9; | |
4030 | } | |
4031 | return resultobj; | |
4032 | fail: | |
4033 | { | |
4034 | if (temp9) | |
4035 | delete arg9; | |
4036 | } | |
4037 | return NULL; | |
d14a1e28 RD |
4038 | } |
4039 | ||
4040 | ||
0085ce49 RD |
4041 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4042 | PyObject *resultobj = 0; | |
4043 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4044 | wxBitmap result; | |
4045 | void *argp1 = 0 ; | |
4046 | int res1 = 0 ; | |
4047 | PyObject *swig_obj[1] ; | |
4048 | ||
4049 | if (!args) SWIG_fail; | |
4050 | swig_obj[0] = args; | |
4051 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4052 | if (!SWIG_IsOK(res1)) { | |
4053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4054 | } | |
4055 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4056 | { | |
4057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4058 | result = (arg1)->GetBitmapLabel(); | |
4059 | wxPyEndAllowThreads(__tstate); | |
4060 | if (PyErr_Occurred()) SWIG_fail; | |
4061 | } | |
4062 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4063 | return resultobj; | |
4064 | fail: | |
4065 | return NULL; | |
d14a1e28 RD |
4066 | } |
4067 | ||
4068 | ||
0085ce49 RD |
4069 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4070 | PyObject *resultobj = 0; | |
4071 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4072 | wxBitmap result; | |
4073 | void *argp1 = 0 ; | |
4074 | int res1 = 0 ; | |
4075 | PyObject *swig_obj[1] ; | |
4076 | ||
4077 | if (!args) SWIG_fail; | |
4078 | swig_obj[0] = args; | |
4079 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4080 | if (!SWIG_IsOK(res1)) { | |
4081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4082 | } | |
4083 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4084 | { | |
4085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4086 | result = (arg1)->GetBitmapDisabled(); | |
4087 | wxPyEndAllowThreads(__tstate); | |
4088 | if (PyErr_Occurred()) SWIG_fail; | |
4089 | } | |
4090 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4091 | return resultobj; | |
4092 | fail: | |
4093 | return NULL; | |
d14a1e28 RD |
4094 | } |
4095 | ||
4096 | ||
0085ce49 RD |
4097 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4098 | PyObject *resultobj = 0; | |
4099 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4100 | wxBitmap result; | |
4101 | void *argp1 = 0 ; | |
4102 | int res1 = 0 ; | |
4103 | PyObject *swig_obj[1] ; | |
4104 | ||
4105 | if (!args) SWIG_fail; | |
4106 | swig_obj[0] = args; | |
4107 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4108 | if (!SWIG_IsOK(res1)) { | |
4109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4110 | } | |
4111 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4112 | { | |
4113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4114 | result = (arg1)->GetBitmapFocus(); | |
4115 | wxPyEndAllowThreads(__tstate); | |
4116 | if (PyErr_Occurred()) SWIG_fail; | |
4117 | } | |
4118 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4119 | return resultobj; | |
4120 | fail: | |
4121 | return NULL; | |
d14a1e28 RD |
4122 | } |
4123 | ||
4124 | ||
0085ce49 RD |
4125 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4126 | PyObject *resultobj = 0; | |
4127 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4128 | wxBitmap result; | |
4129 | void *argp1 = 0 ; | |
4130 | int res1 = 0 ; | |
4131 | PyObject *swig_obj[1] ; | |
4132 | ||
4133 | if (!args) SWIG_fail; | |
4134 | swig_obj[0] = args; | |
4135 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4136 | if (!SWIG_IsOK(res1)) { | |
4137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4138 | } | |
4139 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4140 | { | |
4141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4142 | result = (arg1)->GetBitmapSelected(); | |
4143 | wxPyEndAllowThreads(__tstate); | |
4144 | if (PyErr_Occurred()) SWIG_fail; | |
4145 | } | |
4146 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4147 | return resultobj; | |
4148 | fail: | |
4149 | return NULL; | |
d14a1e28 RD |
4150 | } |
4151 | ||
4152 | ||
0085ce49 RD |
4153 | SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4154 | PyObject *resultobj = 0; | |
4155 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4156 | wxBitmap result; | |
4157 | void *argp1 = 0 ; | |
4158 | int res1 = 0 ; | |
4159 | PyObject *swig_obj[1] ; | |
4160 | ||
4161 | if (!args) SWIG_fail; | |
4162 | swig_obj[0] = args; | |
4163 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4164 | if (!SWIG_IsOK(res1)) { | |
4165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4166 | } | |
4167 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4168 | { | |
4169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4170 | result = (arg1)->GetBitmapHover(); | |
4171 | wxPyEndAllowThreads(__tstate); | |
4172 | if (PyErr_Occurred()) SWIG_fail; | |
4173 | } | |
4174 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4175 | return resultobj; | |
4176 | fail: | |
4177 | return NULL; | |
4178 | } | |
4179 | ||
4180 | ||
4181 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4182 | PyObject *resultobj = 0; | |
4183 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4184 | wxBitmap *arg2 = 0 ; | |
4185 | void *argp1 = 0 ; | |
4186 | int res1 = 0 ; | |
4187 | void *argp2 = 0 ; | |
4188 | int res2 = 0 ; | |
4189 | PyObject * obj0 = 0 ; | |
4190 | PyObject * obj1 = 0 ; | |
4191 | char * kwnames[] = { | |
4192 | (char *) "self",(char *) "bitmap", NULL | |
4193 | }; | |
4194 | ||
4195 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
4196 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4197 | if (!SWIG_IsOK(res1)) { | |
4198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4199 | } | |
4200 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4201 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4202 | if (!SWIG_IsOK(res2)) { | |
4203 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4204 | } | |
4205 | if (!argp2) { | |
4206 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4207 | } | |
4208 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4209 | { | |
4210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4211 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
4212 | wxPyEndAllowThreads(__tstate); | |
4213 | if (PyErr_Occurred()) SWIG_fail; | |
4214 | } | |
4215 | resultobj = SWIG_Py_Void(); | |
4216 | return resultobj; | |
4217 | fail: | |
4218 | return NULL; | |
4219 | } | |
4220 | ||
4221 | ||
4222 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4223 | PyObject *resultobj = 0; | |
4224 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4225 | wxBitmap *arg2 = 0 ; | |
4226 | void *argp1 = 0 ; | |
4227 | int res1 = 0 ; | |
4228 | void *argp2 = 0 ; | |
4229 | int res2 = 0 ; | |
4230 | PyObject * obj0 = 0 ; | |
4231 | PyObject * obj1 = 0 ; | |
4232 | char * kwnames[] = { | |
4233 | (char *) "self",(char *) "bitmap", NULL | |
4234 | }; | |
4235 | ||
4236 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail; | |
4237 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4238 | if (!SWIG_IsOK(res1)) { | |
4239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4240 | } | |
4241 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4242 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4243 | if (!SWIG_IsOK(res2)) { | |
4244 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4245 | } | |
4246 | if (!argp2) { | |
4247 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4248 | } | |
4249 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4250 | { | |
4251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4252 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
4253 | wxPyEndAllowThreads(__tstate); | |
4254 | if (PyErr_Occurred()) SWIG_fail; | |
4255 | } | |
4256 | resultobj = SWIG_Py_Void(); | |
4257 | return resultobj; | |
4258 | fail: | |
4259 | return NULL; | |
4260 | } | |
4261 | ||
4262 | ||
4263 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4264 | PyObject *resultobj = 0; | |
4265 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4266 | wxBitmap *arg2 = 0 ; | |
4267 | void *argp1 = 0 ; | |
4268 | int res1 = 0 ; | |
4269 | void *argp2 = 0 ; | |
4270 | int res2 = 0 ; | |
4271 | PyObject * obj0 = 0 ; | |
4272 | PyObject * obj1 = 0 ; | |
4273 | char * kwnames[] = { | |
4274 | (char *) "self",(char *) "bitmap", NULL | |
4275 | }; | |
4276 | ||
4277 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
4278 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4279 | if (!SWIG_IsOK(res1)) { | |
4280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4281 | } | |
4282 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4283 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4284 | if (!SWIG_IsOK(res2)) { | |
4285 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4286 | } | |
4287 | if (!argp2) { | |
4288 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4289 | } | |
4290 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4291 | { | |
4292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4293 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
4294 | wxPyEndAllowThreads(__tstate); | |
4295 | if (PyErr_Occurred()) SWIG_fail; | |
4296 | } | |
4297 | resultobj = SWIG_Py_Void(); | |
4298 | return resultobj; | |
4299 | fail: | |
4300 | return NULL; | |
4301 | } | |
4302 | ||
4303 | ||
4304 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4305 | PyObject *resultobj = 0; | |
4306 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4307 | wxBitmap *arg2 = 0 ; | |
4308 | void *argp1 = 0 ; | |
4309 | int res1 = 0 ; | |
4310 | void *argp2 = 0 ; | |
4311 | int res2 = 0 ; | |
4312 | PyObject * obj0 = 0 ; | |
4313 | PyObject * obj1 = 0 ; | |
4314 | char * kwnames[] = { | |
4315 | (char *) "self",(char *) "bitmap", NULL | |
4316 | }; | |
4317 | ||
4318 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
4319 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4320 | if (!SWIG_IsOK(res1)) { | |
4321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4322 | } | |
4323 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4324 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4325 | if (!SWIG_IsOK(res2)) { | |
4326 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4327 | } | |
4328 | if (!argp2) { | |
4329 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4330 | } | |
4331 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4332 | { | |
4333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4334 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
4335 | wxPyEndAllowThreads(__tstate); | |
4336 | if (PyErr_Occurred()) SWIG_fail; | |
4337 | } | |
4338 | resultobj = SWIG_Py_Void(); | |
4339 | return resultobj; | |
4340 | fail: | |
4341 | return NULL; | |
4342 | } | |
4343 | ||
4344 | ||
4345 | SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4346 | PyObject *resultobj = 0; | |
4347 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4348 | wxBitmap *arg2 = 0 ; | |
4349 | void *argp1 = 0 ; | |
4350 | int res1 = 0 ; | |
4351 | void *argp2 = 0 ; | |
4352 | int res2 = 0 ; | |
4353 | PyObject * obj0 = 0 ; | |
4354 | PyObject * obj1 = 0 ; | |
4355 | char * kwnames[] = { | |
4356 | (char *) "self",(char *) "hover", NULL | |
4357 | }; | |
4358 | ||
4359 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail; | |
4360 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4361 | if (!SWIG_IsOK(res1)) { | |
4362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4363 | } | |
4364 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4365 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4366 | if (!SWIG_IsOK(res2)) { | |
4367 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4368 | } | |
4369 | if (!argp2) { | |
4370 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
4371 | } | |
4372 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4373 | { | |
4374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4375 | (arg1)->SetBitmapHover((wxBitmap const &)*arg2); | |
4376 | wxPyEndAllowThreads(__tstate); | |
4377 | if (PyErr_Occurred()) SWIG_fail; | |
4378 | } | |
4379 | resultobj = SWIG_Py_Void(); | |
4380 | return resultobj; | |
4381 | fail: | |
4382 | return NULL; | |
4383 | } | |
4384 | ||
4385 | ||
4386 | SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4387 | PyObject *resultobj = 0; | |
4388 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4389 | int arg2 ; | |
4390 | int arg3 ; | |
4391 | void *argp1 = 0 ; | |
4392 | int res1 = 0 ; | |
4393 | int val2 ; | |
4394 | int ecode2 = 0 ; | |
4395 | int val3 ; | |
4396 | int ecode3 = 0 ; | |
4397 | PyObject * obj0 = 0 ; | |
4398 | PyObject * obj1 = 0 ; | |
4399 | PyObject * obj2 = 0 ; | |
4400 | char * kwnames[] = { | |
4401 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4402 | }; | |
4403 | ||
4404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4406 | if (!SWIG_IsOK(res1)) { | |
4407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'"); | |
4408 | } | |
4409 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4410 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4411 | if (!SWIG_IsOK(ecode2)) { | |
4412 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'"); | |
4413 | } | |
4414 | arg2 = static_cast< int >(val2); | |
4415 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4416 | if (!SWIG_IsOK(ecode3)) { | |
4417 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'"); | |
4418 | } | |
4419 | arg3 = static_cast< int >(val3); | |
4420 | { | |
4421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4422 | (arg1)->SetMargins(arg2,arg3); | |
4423 | wxPyEndAllowThreads(__tstate); | |
4424 | if (PyErr_Occurred()) SWIG_fail; | |
4425 | } | |
4426 | resultobj = SWIG_Py_Void(); | |
4427 | return resultobj; | |
4428 | fail: | |
4429 | return NULL; | |
d14a1e28 RD |
4430 | } |
4431 | ||
4432 | ||
0085ce49 RD |
4433 | SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4434 | PyObject *resultobj = 0; | |
4435 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4436 | int result; | |
4437 | void *argp1 = 0 ; | |
4438 | int res1 = 0 ; | |
4439 | PyObject *swig_obj[1] ; | |
4440 | ||
4441 | if (!args) SWIG_fail; | |
4442 | swig_obj[0] = args; | |
4443 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4444 | if (!SWIG_IsOK(res1)) { | |
4445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'"); | |
4446 | } | |
4447 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4448 | { | |
4449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4450 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
4451 | wxPyEndAllowThreads(__tstate); | |
4452 | if (PyErr_Occurred()) SWIG_fail; | |
4453 | } | |
4454 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4455 | return resultobj; | |
4456 | fail: | |
4457 | return NULL; | |
d14a1e28 RD |
4458 | } |
4459 | ||
4460 | ||
0085ce49 RD |
4461 | SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4462 | PyObject *resultobj = 0; | |
4463 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
4464 | int result; | |
4465 | void *argp1 = 0 ; | |
4466 | int res1 = 0 ; | |
4467 | PyObject *swig_obj[1] ; | |
4468 | ||
4469 | if (!args) SWIG_fail; | |
4470 | swig_obj[0] = args; | |
4471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 ); | |
4472 | if (!SWIG_IsOK(res1)) { | |
4473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'"); | |
4474 | } | |
4475 | arg1 = reinterpret_cast< wxBitmapButton * >(argp1); | |
4476 | { | |
4477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4478 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
4479 | wxPyEndAllowThreads(__tstate); | |
4480 | if (PyErr_Occurred()) SWIG_fail; | |
4481 | } | |
4482 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4483 | return resultobj; | |
4484 | fail: | |
4485 | return NULL; | |
b1fcee84 RD |
4486 | } |
4487 | ||
4488 | ||
0085ce49 RD |
4489 | SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4490 | PyObject *obj; | |
4491 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4492 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj)); | |
4493 | return SWIG_Py_Void(); | |
d14a1e28 RD |
4494 | } |
4495 | ||
0085ce49 RD |
4496 | SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4497 | return SWIG_Python_InitShadowInstance(args); | |
4498 | } | |
d14a1e28 | 4499 | |
0085ce49 RD |
4500 | SWIGINTERN int CheckBoxNameStr_set(PyObject *) { |
4501 | SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only."); | |
4502 | return 1; | |
d14a1e28 RD |
4503 | } |
4504 | ||
4505 | ||
0085ce49 RD |
4506 | SWIGINTERN PyObject *CheckBoxNameStr_get(void) { |
4507 | PyObject *pyobj = 0; | |
4508 | ||
4509 | { | |
4510 | #if wxUSE_UNICODE | |
4511 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
4512 | #else | |
4513 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
4514 | #endif | |
4515 | } | |
4516 | return pyobj; | |
4517 | } | |
4518 | ||
4519 | ||
4520 | SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4521 | PyObject *resultobj = 0; | |
4522 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4523 | int arg2 = (int) -1 ; | |
4524 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4525 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4526 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4527 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4528 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4529 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4530 | long arg6 = (long) 0 ; | |
4531 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
4532 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
4533 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
4534 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4535 | wxCheckBox *result = 0 ; | |
4536 | void *argp1 = 0 ; | |
4537 | int res1 = 0 ; | |
4538 | int val2 ; | |
4539 | int ecode2 = 0 ; | |
4540 | bool temp3 = false ; | |
4541 | wxPoint temp4 ; | |
4542 | wxSize temp5 ; | |
4543 | long val6 ; | |
4544 | int ecode6 = 0 ; | |
4545 | void *argp7 = 0 ; | |
4546 | int res7 = 0 ; | |
4547 | bool temp8 = false ; | |
4548 | PyObject * obj0 = 0 ; | |
4549 | PyObject * obj1 = 0 ; | |
4550 | PyObject * obj2 = 0 ; | |
4551 | PyObject * obj3 = 0 ; | |
4552 | PyObject * obj4 = 0 ; | |
4553 | PyObject * obj5 = 0 ; | |
4554 | PyObject * obj6 = 0 ; | |
4555 | PyObject * obj7 = 0 ; | |
4556 | char * kwnames[] = { | |
4557 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4558 | }; | |
4559 | ||
4560 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
4561 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4562 | if (!SWIG_IsOK(res1)) { | |
4563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
4564 | } | |
4565 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
4566 | if (obj1) { | |
4567 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4568 | if (!SWIG_IsOK(ecode2)) { | |
4569 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'"); | |
4570 | } | |
4571 | arg2 = static_cast< int >(val2); | |
4572 | } | |
4573 | if (obj2) { | |
d14a1e28 | 4574 | { |
0085ce49 RD |
4575 | arg3 = wxString_in_helper(obj2); |
4576 | if (arg3 == NULL) SWIG_fail; | |
4577 | temp3 = true; | |
d14a1e28 | 4578 | } |
0085ce49 RD |
4579 | } |
4580 | if (obj3) { | |
4581 | { | |
4582 | arg4 = &temp4; | |
4583 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 4584 | } |
0085ce49 RD |
4585 | } |
4586 | if (obj4) { | |
d14a1e28 | 4587 | { |
0085ce49 RD |
4588 | arg5 = &temp5; |
4589 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 4590 | } |
0085ce49 RD |
4591 | } |
4592 | if (obj5) { | |
4593 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
4594 | if (!SWIG_IsOK(ecode6)) { | |
4595 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'"); | |
4596 | } | |
4597 | arg6 = static_cast< long >(val6); | |
4598 | } | |
4599 | if (obj6) { | |
4600 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
4601 | if (!SWIG_IsOK(res7)) { | |
4602 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
b1fcee84 | 4603 | } |
0085ce49 RD |
4604 | if (!argp7) { |
4605 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
4606 | } | |
4607 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
4608 | } | |
4609 | if (obj7) { | |
b1fcee84 | 4610 | { |
0085ce49 RD |
4611 | arg8 = wxString_in_helper(obj7); |
4612 | if (arg8 == NULL) SWIG_fail; | |
4613 | temp8 = true; | |
b1fcee84 | 4614 | } |
0085ce49 RD |
4615 | } |
4616 | { | |
4617 | if (!wxPyCheckForApp()) SWIG_fail; | |
4618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4619 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
4620 | wxPyEndAllowThreads(__tstate); | |
4621 | if (PyErr_Occurred()) SWIG_fail; | |
4622 | } | |
4623 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 ); | |
4624 | { | |
4625 | if (temp3) | |
4626 | delete arg3; | |
4627 | } | |
4628 | { | |
4629 | if (temp8) | |
4630 | delete arg8; | |
4631 | } | |
4632 | return resultobj; | |
4633 | fail: | |
4634 | { | |
4635 | if (temp3) | |
4636 | delete arg3; | |
4637 | } | |
4638 | { | |
4639 | if (temp8) | |
4640 | delete arg8; | |
4641 | } | |
4642 | return NULL; | |
b1fcee84 RD |
4643 | } |
4644 | ||
4645 | ||
0085ce49 RD |
4646 | SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4647 | PyObject *resultobj = 0; | |
4648 | wxCheckBox *result = 0 ; | |
4649 | ||
4650 | if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail; | |
4651 | { | |
4652 | if (!wxPyCheckForApp()) SWIG_fail; | |
4653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4654 | result = (wxCheckBox *)new wxCheckBox(); | |
4655 | wxPyEndAllowThreads(__tstate); | |
4656 | if (PyErr_Occurred()) SWIG_fail; | |
4657 | } | |
4658 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 ); | |
4659 | return resultobj; | |
4660 | fail: | |
4661 | return NULL; | |
4662 | } | |
4663 | ||
4664 | ||
4665 | SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4666 | PyObject *resultobj = 0; | |
4667 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4668 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4669 | int arg3 = (int) -1 ; | |
4670 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4671 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4672 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4673 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4674 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4675 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4676 | long arg7 = (long) 0 ; | |
4677 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4678 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4679 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
4680 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4681 | bool result; | |
4682 | void *argp1 = 0 ; | |
4683 | int res1 = 0 ; | |
4684 | void *argp2 = 0 ; | |
4685 | int res2 = 0 ; | |
4686 | int val3 ; | |
4687 | int ecode3 = 0 ; | |
4688 | bool temp4 = false ; | |
4689 | wxPoint temp5 ; | |
4690 | wxSize temp6 ; | |
4691 | long val7 ; | |
4692 | int ecode7 = 0 ; | |
4693 | void *argp8 = 0 ; | |
4694 | int res8 = 0 ; | |
4695 | bool temp9 = false ; | |
4696 | PyObject * obj0 = 0 ; | |
4697 | PyObject * obj1 = 0 ; | |
4698 | PyObject * obj2 = 0 ; | |
4699 | PyObject * obj3 = 0 ; | |
4700 | PyObject * obj4 = 0 ; | |
4701 | PyObject * obj5 = 0 ; | |
4702 | PyObject * obj6 = 0 ; | |
4703 | PyObject * obj7 = 0 ; | |
4704 | PyObject * obj8 = 0 ; | |
4705 | char * kwnames[] = { | |
4706 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4707 | }; | |
4708 | ||
4709 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
4710 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4711 | if (!SWIG_IsOK(res1)) { | |
4712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4713 | } | |
4714 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4715 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4716 | if (!SWIG_IsOK(res2)) { | |
4717 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4718 | } | |
4719 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4720 | if (obj2) { | |
4721 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4722 | if (!SWIG_IsOK(ecode3)) { | |
4723 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
4724 | } | |
4725 | arg3 = static_cast< int >(val3); | |
4726 | } | |
4727 | if (obj3) { | |
093d3ff1 | 4728 | { |
0085ce49 RD |
4729 | arg4 = wxString_in_helper(obj3); |
4730 | if (arg4 == NULL) SWIG_fail; | |
4731 | temp4 = true; | |
093d3ff1 | 4732 | } |
0085ce49 RD |
4733 | } |
4734 | if (obj4) { | |
093d3ff1 | 4735 | { |
0085ce49 RD |
4736 | arg5 = &temp5; |
4737 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 4738 | } |
0085ce49 RD |
4739 | } |
4740 | if (obj5) { | |
d14a1e28 | 4741 | { |
0085ce49 RD |
4742 | arg6 = &temp6; |
4743 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 4744 | } |
0085ce49 RD |
4745 | } |
4746 | if (obj6) { | |
4747 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
4748 | if (!SWIG_IsOK(ecode7)) { | |
4749 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
4750 | } | |
4751 | arg7 = static_cast< long >(val7); | |
4752 | } | |
4753 | if (obj7) { | |
4754 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
4755 | if (!SWIG_IsOK(res8)) { | |
4756 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 4757 | } |
0085ce49 RD |
4758 | if (!argp8) { |
4759 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
4760 | } | |
4761 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
4762 | } | |
4763 | if (obj8) { | |
093d3ff1 | 4764 | { |
0085ce49 RD |
4765 | arg9 = wxString_in_helper(obj8); |
4766 | if (arg9 == NULL) SWIG_fail; | |
4767 | temp9 = true; | |
093d3ff1 | 4768 | } |
0085ce49 RD |
4769 | } |
4770 | { | |
4771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4772 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4773 | wxPyEndAllowThreads(__tstate); | |
4774 | if (PyErr_Occurred()) SWIG_fail; | |
4775 | } | |
4776 | { | |
4777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4778 | } | |
4779 | { | |
4780 | if (temp4) | |
4781 | delete arg4; | |
4782 | } | |
4783 | { | |
4784 | if (temp9) | |
4785 | delete arg9; | |
4786 | } | |
4787 | return resultobj; | |
4788 | fail: | |
4789 | { | |
4790 | if (temp4) | |
4791 | delete arg4; | |
4792 | } | |
4793 | { | |
4794 | if (temp9) | |
4795 | delete arg9; | |
4796 | } | |
4797 | return NULL; | |
d14a1e28 RD |
4798 | } |
4799 | ||
4800 | ||
0085ce49 RD |
4801 | SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4802 | PyObject *resultobj = 0; | |
4803 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4804 | bool result; | |
4805 | void *argp1 = 0 ; | |
4806 | int res1 = 0 ; | |
4807 | PyObject *swig_obj[1] ; | |
4808 | ||
4809 | if (!args) SWIG_fail; | |
4810 | swig_obj[0] = args; | |
4811 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4812 | if (!SWIG_IsOK(res1)) { | |
4813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4814 | } | |
4815 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4816 | { | |
4817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4818 | result = (bool)(arg1)->GetValue(); | |
4819 | wxPyEndAllowThreads(__tstate); | |
4820 | if (PyErr_Occurred()) SWIG_fail; | |
4821 | } | |
4822 | { | |
4823 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4824 | } | |
4825 | return resultobj; | |
4826 | fail: | |
4827 | return NULL; | |
d14a1e28 RD |
4828 | } |
4829 | ||
4830 | ||
0085ce49 RD |
4831 | SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4832 | PyObject *resultobj = 0; | |
4833 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4834 | bool result; | |
4835 | void *argp1 = 0 ; | |
4836 | int res1 = 0 ; | |
4837 | PyObject *swig_obj[1] ; | |
4838 | ||
4839 | if (!args) SWIG_fail; | |
4840 | swig_obj[0] = args; | |
4841 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4842 | if (!SWIG_IsOK(res1)) { | |
4843 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4844 | } | |
4845 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4846 | { | |
4847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4848 | result = (bool)(arg1)->IsChecked(); | |
4849 | wxPyEndAllowThreads(__tstate); | |
4850 | if (PyErr_Occurred()) SWIG_fail; | |
4851 | } | |
4852 | { | |
4853 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4854 | } | |
4855 | return resultobj; | |
4856 | fail: | |
4857 | return NULL; | |
4858 | } | |
4859 | ||
4860 | ||
4861 | SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4862 | PyObject *resultobj = 0; | |
4863 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4864 | bool arg2 ; | |
4865 | void *argp1 = 0 ; | |
4866 | int res1 = 0 ; | |
4867 | bool val2 ; | |
4868 | int ecode2 = 0 ; | |
4869 | PyObject * obj0 = 0 ; | |
4870 | PyObject * obj1 = 0 ; | |
4871 | char * kwnames[] = { | |
4872 | (char *) "self",(char *) "state", NULL | |
4873 | }; | |
4874 | ||
4875 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
4876 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4877 | if (!SWIG_IsOK(res1)) { | |
4878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4879 | } | |
4880 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4881 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4882 | if (!SWIG_IsOK(ecode2)) { | |
4883 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
4884 | } | |
4885 | arg2 = static_cast< bool >(val2); | |
4886 | { | |
4887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4888 | (arg1)->SetValue(arg2); | |
4889 | wxPyEndAllowThreads(__tstate); | |
4890 | if (PyErr_Occurred()) SWIG_fail; | |
4891 | } | |
4892 | resultobj = SWIG_Py_Void(); | |
4893 | return resultobj; | |
4894 | fail: | |
4895 | return NULL; | |
d14a1e28 | 4896 | } |
0085ce49 RD |
4897 | |
4898 | ||
4899 | SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4900 | PyObject *resultobj = 0; | |
4901 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4902 | wxCheckBoxState result; | |
4903 | void *argp1 = 0 ; | |
4904 | int res1 = 0 ; | |
4905 | PyObject *swig_obj[1] ; | |
4906 | ||
4907 | if (!args) SWIG_fail; | |
4908 | swig_obj[0] = args; | |
4909 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4910 | if (!SWIG_IsOK(res1)) { | |
4911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
4912 | } | |
4913 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4914 | { | |
4915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4916 | result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue(); | |
4917 | wxPyEndAllowThreads(__tstate); | |
4918 | if (PyErr_Occurred()) SWIG_fail; | |
4919 | } | |
4920 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4921 | return resultobj; | |
4922 | fail: | |
4923 | return NULL; | |
4924 | } | |
4925 | ||
4926 | ||
4927 | SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4928 | PyObject *resultobj = 0; | |
4929 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4930 | wxCheckBoxState arg2 ; | |
4931 | void *argp1 = 0 ; | |
4932 | int res1 = 0 ; | |
4933 | int val2 ; | |
4934 | int ecode2 = 0 ; | |
4935 | PyObject * obj0 = 0 ; | |
4936 | PyObject * obj1 = 0 ; | |
4937 | char * kwnames[] = { | |
4938 | (char *) "self",(char *) "state", NULL | |
4939 | }; | |
4940 | ||
4941 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
4942 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4943 | if (!SWIG_IsOK(res1)) { | |
4944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'"); | |
4945 | } | |
4946 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4947 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4948 | if (!SWIG_IsOK(ecode2)) { | |
4949 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'"); | |
4950 | } | |
4951 | arg2 = static_cast< wxCheckBoxState >(val2); | |
4952 | { | |
4953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4954 | (arg1)->Set3StateValue(arg2); | |
4955 | wxPyEndAllowThreads(__tstate); | |
4956 | if (PyErr_Occurred()) SWIG_fail; | |
4957 | } | |
4958 | resultobj = SWIG_Py_Void(); | |
4959 | return resultobj; | |
4960 | fail: | |
4961 | return NULL; | |
b2dc1044 RD |
4962 | } |
4963 | ||
4964 | ||
0085ce49 RD |
4965 | SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4966 | PyObject *resultobj = 0; | |
4967 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4968 | bool result; | |
4969 | void *argp1 = 0 ; | |
4970 | int res1 = 0 ; | |
4971 | PyObject *swig_obj[1] ; | |
4972 | ||
4973 | if (!args) SWIG_fail; | |
4974 | swig_obj[0] = args; | |
4975 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
4976 | if (!SWIG_IsOK(res1)) { | |
4977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
4978 | } | |
4979 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
4980 | { | |
4981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4982 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
4983 | wxPyEndAllowThreads(__tstate); | |
4984 | if (PyErr_Occurred()) SWIG_fail; | |
4985 | } | |
4986 | { | |
4987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4988 | } | |
4989 | return resultobj; | |
4990 | fail: | |
4991 | return NULL; | |
d14a1e28 RD |
4992 | } |
4993 | ||
4994 | ||
0085ce49 RD |
4995 | SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4996 | PyObject *resultobj = 0; | |
4997 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
4998 | bool result; | |
4999 | void *argp1 = 0 ; | |
5000 | int res1 = 0 ; | |
5001 | PyObject *swig_obj[1] ; | |
5002 | ||
5003 | if (!args) SWIG_fail; | |
5004 | swig_obj[0] = args; | |
5005 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 ); | |
5006 | if (!SWIG_IsOK(res1)) { | |
5007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'"); | |
5008 | } | |
5009 | arg1 = reinterpret_cast< wxCheckBox * >(argp1); | |
5010 | { | |
5011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5012 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
5013 | wxPyEndAllowThreads(__tstate); | |
5014 | if (PyErr_Occurred()) SWIG_fail; | |
5015 | } | |
5016 | { | |
5017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5018 | } | |
5019 | return resultobj; | |
5020 | fail: | |
5021 | return NULL; | |
d14a1e28 RD |
5022 | } |
5023 | ||
5024 | ||
0085ce49 RD |
5025 | SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5026 | PyObject *resultobj = 0; | |
5027 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5028 | SwigValueWrapper<wxVisualAttributes > result; | |
5029 | int val1 ; | |
5030 | int ecode1 = 0 ; | |
5031 | PyObject * obj0 = 0 ; | |
5032 | char * kwnames[] = { | |
5033 | (char *) "variant", NULL | |
5034 | }; | |
5035 | ||
5036 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5037 | if (obj0) { | |
5038 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5039 | if (!SWIG_IsOK(ecode1)) { | |
5040 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5041 | } | |
5042 | arg1 = static_cast< wxWindowVariant >(val1); | |
5043 | } | |
5044 | { | |
5045 | if (!wxPyCheckForApp()) SWIG_fail; | |
5046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5047 | result = wxCheckBox::GetClassDefaultAttributes(arg1); | |
5048 | wxPyEndAllowThreads(__tstate); | |
5049 | if (PyErr_Occurred()) SWIG_fail; | |
5050 | } | |
5051 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5052 | return resultobj; | |
5053 | fail: | |
5054 | return NULL; | |
d14a1e28 RD |
5055 | } |
5056 | ||
5057 | ||
0085ce49 RD |
5058 | SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5059 | PyObject *obj; | |
5060 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5061 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj)); | |
5062 | return SWIG_Py_Void(); | |
d14a1e28 RD |
5063 | } |
5064 | ||
0085ce49 RD |
5065 | SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5066 | return SWIG_Python_InitShadowInstance(args); | |
5067 | } | |
d14a1e28 | 5068 | |
0085ce49 RD |
5069 | SWIGINTERN int ChoiceNameStr_set(PyObject *) { |
5070 | SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only."); | |
5071 | return 1; | |
d14a1e28 RD |
5072 | } |
5073 | ||
5074 | ||
0085ce49 RD |
5075 | SWIGINTERN PyObject *ChoiceNameStr_get(void) { |
5076 | PyObject *pyobj = 0; | |
5077 | ||
5078 | { | |
5079 | #if wxUSE_UNICODE | |
5080 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
5081 | #else | |
5082 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
5083 | #endif | |
5084 | } | |
5085 | return pyobj; | |
5086 | } | |
5087 | ||
5088 | ||
5089 | SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5090 | PyObject *resultobj = 0; | |
5091 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5092 | int arg2 = (int) -1 ; | |
5093 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5094 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5095 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5096 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5097 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
5098 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5099 | long arg6 = (long) 0 ; | |
5100 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5101 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5102 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
5103 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5104 | wxChoice *result = 0 ; | |
5105 | void *argp1 = 0 ; | |
5106 | int res1 = 0 ; | |
5107 | int val2 ; | |
5108 | int ecode2 = 0 ; | |
5109 | wxPoint temp3 ; | |
5110 | wxSize temp4 ; | |
5111 | bool temp5 = false ; | |
5112 | long val6 ; | |
5113 | int ecode6 = 0 ; | |
5114 | void *argp7 = 0 ; | |
5115 | int res7 = 0 ; | |
5116 | bool temp8 = false ; | |
5117 | PyObject * obj0 = 0 ; | |
5118 | PyObject * obj1 = 0 ; | |
5119 | PyObject * obj2 = 0 ; | |
5120 | PyObject * obj3 = 0 ; | |
5121 | PyObject * obj4 = 0 ; | |
5122 | PyObject * obj5 = 0 ; | |
5123 | PyObject * obj6 = 0 ; | |
5124 | PyObject * obj7 = 0 ; | |
5125 | char * kwnames[] = { | |
5126 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5127 | }; | |
5128 | ||
5129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
5130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5131 | if (!SWIG_IsOK(res1)) { | |
5132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5133 | } | |
5134 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5135 | if (obj1) { | |
5136 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5137 | if (!SWIG_IsOK(ecode2)) { | |
5138 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'"); | |
5139 | } | |
5140 | arg2 = static_cast< int >(val2); | |
5141 | } | |
5142 | if (obj2) { | |
093d3ff1 | 5143 | { |
0085ce49 RD |
5144 | arg3 = &temp3; |
5145 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 5146 | } |
0085ce49 RD |
5147 | } |
5148 | if (obj3) { | |
d14a1e28 | 5149 | { |
0085ce49 RD |
5150 | arg4 = &temp4; |
5151 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 5152 | } |
0085ce49 RD |
5153 | } |
5154 | if (obj4) { | |
d14a1e28 | 5155 | { |
0085ce49 RD |
5156 | if (! PySequence_Check(obj4)) { |
5157 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5158 | SWIG_fail; | |
5159 | } | |
5160 | arg5 = new wxArrayString; | |
5161 | temp5 = true; | |
5162 | int i, len=PySequence_Length(obj4); | |
5163 | for (i=0; i<len; i++) { | |
5164 | PyObject* item = PySequence_GetItem(obj4, i); | |
5165 | wxString* s = wxString_in_helper(item); | |
5166 | if (PyErr_Occurred()) SWIG_fail; | |
5167 | arg5->Add(*s); | |
5168 | delete s; | |
5169 | Py_DECREF(item); | |
5170 | } | |
d14a1e28 | 5171 | } |
0085ce49 RD |
5172 | } |
5173 | if (obj5) { | |
5174 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
5175 | if (!SWIG_IsOK(ecode6)) { | |
5176 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'"); | |
5177 | } | |
5178 | arg6 = static_cast< long >(val6); | |
5179 | } | |
5180 | if (obj6) { | |
5181 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
5182 | if (!SWIG_IsOK(res7)) { | |
5183 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
093d3ff1 | 5184 | } |
0085ce49 RD |
5185 | if (!argp7) { |
5186 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
5187 | } | |
5188 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
5189 | } | |
5190 | if (obj7) { | |
d14a1e28 | 5191 | { |
0085ce49 RD |
5192 | arg8 = wxString_in_helper(obj7); |
5193 | if (arg8 == NULL) SWIG_fail; | |
5194 | temp8 = true; | |
d14a1e28 | 5195 | } |
0085ce49 RD |
5196 | } |
5197 | { | |
5198 | if (!wxPyCheckForApp()) SWIG_fail; | |
5199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5200 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5201 | wxPyEndAllowThreads(__tstate); | |
5202 | if (PyErr_Occurred()) SWIG_fail; | |
5203 | } | |
5204 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 ); | |
5205 | { | |
5206 | if (temp5) delete arg5; | |
5207 | } | |
5208 | { | |
5209 | if (temp8) | |
5210 | delete arg8; | |
5211 | } | |
5212 | return resultobj; | |
5213 | fail: | |
5214 | { | |
5215 | if (temp5) delete arg5; | |
5216 | } | |
5217 | { | |
5218 | if (temp8) | |
5219 | delete arg8; | |
5220 | } | |
5221 | return NULL; | |
d14a1e28 RD |
5222 | } |
5223 | ||
5224 | ||
0085ce49 RD |
5225 | SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5226 | PyObject *resultobj = 0; | |
5227 | wxChoice *result = 0 ; | |
5228 | ||
5229 | if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail; | |
5230 | { | |
5231 | if (!wxPyCheckForApp()) SWIG_fail; | |
5232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5233 | result = (wxChoice *)new wxChoice(); | |
5234 | wxPyEndAllowThreads(__tstate); | |
5235 | if (PyErr_Occurred()) SWIG_fail; | |
5236 | } | |
5237 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 ); | |
5238 | return resultobj; | |
5239 | fail: | |
5240 | return NULL; | |
5241 | } | |
5242 | ||
5243 | ||
5244 | SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5245 | PyObject *resultobj = 0; | |
5246 | wxChoice *arg1 = (wxChoice *) 0 ; | |
5247 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5248 | int arg3 = (int) -1 ; | |
5249 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5250 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5251 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5252 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5253 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5254 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5255 | long arg7 = (long) 0 ; | |
5256 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5257 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5258 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
5259 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5260 | bool result; | |
5261 | void *argp1 = 0 ; | |
5262 | int res1 = 0 ; | |
5263 | void *argp2 = 0 ; | |
5264 | int res2 = 0 ; | |
5265 | int val3 ; | |
5266 | int ecode3 = 0 ; | |
5267 | wxPoint temp4 ; | |
5268 | wxSize temp5 ; | |
5269 | bool temp6 = false ; | |
5270 | long val7 ; | |
5271 | int ecode7 = 0 ; | |
5272 | void *argp8 = 0 ; | |
5273 | int res8 = 0 ; | |
5274 | bool temp9 = false ; | |
5275 | PyObject * obj0 = 0 ; | |
5276 | PyObject * obj1 = 0 ; | |
5277 | PyObject * obj2 = 0 ; | |
5278 | PyObject * obj3 = 0 ; | |
5279 | PyObject * obj4 = 0 ; | |
5280 | PyObject * obj5 = 0 ; | |
5281 | PyObject * obj6 = 0 ; | |
5282 | PyObject * obj7 = 0 ; | |
5283 | PyObject * obj8 = 0 ; | |
5284 | char * kwnames[] = { | |
5285 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5286 | }; | |
5287 | ||
5288 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
5289 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 ); | |
5290 | if (!SWIG_IsOK(res1)) { | |
5291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'"); | |
5292 | } | |
5293 | arg1 = reinterpret_cast< wxChoice * >(argp1); | |
5294 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5295 | if (!SWIG_IsOK(res2)) { | |
5296 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5297 | } | |
5298 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5299 | if (obj2) { | |
5300 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5301 | if (!SWIG_IsOK(ecode3)) { | |
5302 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'"); | |
5303 | } | |
5304 | arg3 = static_cast< int >(val3); | |
5305 | } | |
5306 | if (obj3) { | |
d14a1e28 | 5307 | { |
0085ce49 RD |
5308 | arg4 = &temp4; |
5309 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 5310 | } |
0085ce49 RD |
5311 | } |
5312 | if (obj4) { | |
4f89f6a3 | 5313 | { |
0085ce49 RD |
5314 | arg5 = &temp5; |
5315 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 5316 | } |
0085ce49 RD |
5317 | } |
5318 | if (obj5) { | |
d14a1e28 | 5319 | { |
0085ce49 RD |
5320 | if (! PySequence_Check(obj5)) { |
5321 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5322 | SWIG_fail; | |
5323 | } | |
5324 | arg6 = new wxArrayString; | |
5325 | temp6 = true; | |
5326 | int i, len=PySequence_Length(obj5); | |
5327 | for (i=0; i<len; i++) { | |
5328 | PyObject* item = PySequence_GetItem(obj5, i); | |
5329 | wxString* s = wxString_in_helper(item); | |
5330 | if (PyErr_Occurred()) SWIG_fail; | |
5331 | arg6->Add(*s); | |
5332 | delete s; | |
5333 | Py_DECREF(item); | |
5334 | } | |
5335 | } | |
5336 | } | |
5337 | if (obj6) { | |
5338 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
5339 | if (!SWIG_IsOK(ecode7)) { | |
5340 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'"); | |
5341 | } | |
5342 | arg7 = static_cast< long >(val7); | |
5343 | } | |
5344 | if (obj7) { | |
5345 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
5346 | if (!SWIG_IsOK(res8)) { | |
5347 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 5348 | } |
0085ce49 RD |
5349 | if (!argp8) { |
5350 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5351 | } | |
5352 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
5353 | } | |
5354 | if (obj8) { | |
4f89f6a3 | 5355 | { |
0085ce49 RD |
5356 | arg9 = wxString_in_helper(obj8); |
5357 | if (arg9 == NULL) SWIG_fail; | |
5358 | temp9 = true; | |
4f89f6a3 | 5359 | } |
0085ce49 RD |
5360 | } |
5361 | { | |
5362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5363 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5364 | wxPyEndAllowThreads(__tstate); | |
5365 | if (PyErr_Occurred()) SWIG_fail; | |
5366 | } | |
5367 | { | |
5368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5369 | } | |
5370 | { | |
5371 | if (temp6) delete arg6; | |
5372 | } | |
5373 | { | |
5374 | if (temp9) | |
5375 | delete arg9; | |
5376 | } | |
5377 | return resultobj; | |
5378 | fail: | |
5379 | { | |
5380 | if (temp6) delete arg6; | |
5381 | } | |
5382 | { | |
5383 | if (temp9) | |
5384 | delete arg9; | |
5385 | } | |
5386 | return NULL; | |
d14a1e28 RD |
5387 | } |
5388 | ||
5389 | ||
0085ce49 RD |
5390 | SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5391 | PyObject *resultobj = 0; | |
5392 | wxChoice *arg1 = (wxChoice *) 0 ; | |
5393 | int result; | |
5394 | void *argp1 = 0 ; | |
5395 | int res1 = 0 ; | |
5396 | PyObject *swig_obj[1] ; | |
5397 | ||
5398 | if (!args) SWIG_fail; | |
5399 | swig_obj[0] = args; | |
5400 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 ); | |
5401 | if (!SWIG_IsOK(res1)) { | |
5402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'"); | |
5403 | } | |
5404 | arg1 = reinterpret_cast< wxChoice * >(argp1); | |
5405 | { | |
5406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5407 | result = (int)((wxChoice const *)arg1)->GetCurrentSelection(); | |
5408 | wxPyEndAllowThreads(__tstate); | |
5409 | if (PyErr_Occurred()) SWIG_fail; | |
5410 | } | |
5411 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5412 | return resultobj; | |
5413 | fail: | |
5414 | return NULL; | |
5415 | } | |
5416 | ||
5417 | ||
5418 | SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5419 | PyObject *resultobj = 0; | |
5420 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5421 | SwigValueWrapper<wxVisualAttributes > result; | |
5422 | int val1 ; | |
5423 | int ecode1 = 0 ; | |
5424 | PyObject * obj0 = 0 ; | |
5425 | char * kwnames[] = { | |
5426 | (char *) "variant", NULL | |
5427 | }; | |
5428 | ||
5429 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5430 | if (obj0) { | |
5431 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5432 | if (!SWIG_IsOK(ecode1)) { | |
5433 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5434 | } | |
5435 | arg1 = static_cast< wxWindowVariant >(val1); | |
5436 | } | |
5437 | { | |
5438 | if (!wxPyCheckForApp()) SWIG_fail; | |
5439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5440 | result = wxChoice::GetClassDefaultAttributes(arg1); | |
5441 | wxPyEndAllowThreads(__tstate); | |
5442 | if (PyErr_Occurred()) SWIG_fail; | |
5443 | } | |
5444 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5445 | return resultobj; | |
5446 | fail: | |
5447 | return NULL; | |
22bfe96c RD |
5448 | } |
5449 | ||
5450 | ||
0085ce49 RD |
5451 | SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5452 | PyObject *obj; | |
5453 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5454 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj)); | |
5455 | return SWIG_Py_Void(); | |
d14a1e28 | 5456 | } |
0085ce49 RD |
5457 | |
5458 | SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5459 | return SWIG_Python_InitShadowInstance(args); | |
5460 | } | |
5461 | ||
5462 | SWIGINTERN int ComboBoxNameStr_set(PyObject *) { | |
5463 | SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only."); | |
5464 | return 1; | |
b2dc1044 RD |
5465 | } |
5466 | ||
5467 | ||
0085ce49 RD |
5468 | SWIGINTERN PyObject *ComboBoxNameStr_get(void) { |
5469 | PyObject *pyobj = 0; | |
5470 | ||
5471 | { | |
b2dc1044 | 5472 | #if wxUSE_UNICODE |
0085ce49 | 5473 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); |
b2dc1044 | 5474 | #else |
0085ce49 | 5475 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); |
b2dc1044 | 5476 | #endif |
0085ce49 RD |
5477 | } |
5478 | return pyobj; | |
5479 | } | |
5480 | ||
5481 | ||
5482 | SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5483 | PyObject *resultobj = 0; | |
5484 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5485 | int arg2 = (int) -1 ; | |
5486 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5487 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5488 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5489 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5490 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5491 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5492 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5493 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5494 | long arg7 = (long) 0 ; | |
5495 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5496 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5497 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
5498 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5499 | wxComboBox *result = 0 ; | |
5500 | void *argp1 = 0 ; | |
5501 | int res1 = 0 ; | |
5502 | int val2 ; | |
5503 | int ecode2 = 0 ; | |
5504 | bool temp3 = false ; | |
5505 | wxPoint temp4 ; | |
5506 | wxSize temp5 ; | |
5507 | bool temp6 = false ; | |
5508 | long val7 ; | |
5509 | int ecode7 = 0 ; | |
5510 | void *argp8 = 0 ; | |
5511 | int res8 = 0 ; | |
5512 | bool temp9 = false ; | |
5513 | PyObject * obj0 = 0 ; | |
5514 | PyObject * obj1 = 0 ; | |
5515 | PyObject * obj2 = 0 ; | |
5516 | PyObject * obj3 = 0 ; | |
5517 | PyObject * obj4 = 0 ; | |
5518 | PyObject * obj5 = 0 ; | |
5519 | PyObject * obj6 = 0 ; | |
5520 | PyObject * obj7 = 0 ; | |
5521 | PyObject * obj8 = 0 ; | |
5522 | char * kwnames[] = { | |
5523 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5524 | }; | |
5525 | ||
5526 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
5527 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5528 | if (!SWIG_IsOK(res1)) { | |
5529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5530 | } | |
5531 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5532 | if (obj1) { | |
5533 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5534 | if (!SWIG_IsOK(ecode2)) { | |
5535 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'"); | |
5536 | } | |
5537 | arg2 = static_cast< int >(val2); | |
5538 | } | |
5539 | if (obj2) { | |
d14a1e28 | 5540 | { |
0085ce49 RD |
5541 | arg3 = wxString_in_helper(obj2); |
5542 | if (arg3 == NULL) SWIG_fail; | |
5543 | temp3 = true; | |
d14a1e28 | 5544 | } |
0085ce49 RD |
5545 | } |
5546 | if (obj3) { | |
d14a1e28 | 5547 | { |
0085ce49 RD |
5548 | arg4 = &temp4; |
5549 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 5550 | } |
0085ce49 RD |
5551 | } |
5552 | if (obj4) { | |
d14a1e28 | 5553 | { |
0085ce49 RD |
5554 | arg5 = &temp5; |
5555 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 5556 | } |
0085ce49 RD |
5557 | } |
5558 | if (obj5) { | |
d14a1e28 | 5559 | { |
0085ce49 RD |
5560 | if (! PySequence_Check(obj5)) { |
5561 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5562 | SWIG_fail; | |
5563 | } | |
5564 | arg6 = new wxArrayString; | |
5565 | temp6 = true; | |
5566 | int i, len=PySequence_Length(obj5); | |
5567 | for (i=0; i<len; i++) { | |
5568 | PyObject* item = PySequence_GetItem(obj5, i); | |
5569 | wxString* s = wxString_in_helper(item); | |
5570 | if (PyErr_Occurred()) SWIG_fail; | |
5571 | arg6->Add(*s); | |
5572 | delete s; | |
5573 | Py_DECREF(item); | |
5574 | } | |
d14a1e28 | 5575 | } |
0085ce49 RD |
5576 | } |
5577 | if (obj6) { | |
5578 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
5579 | if (!SWIG_IsOK(ecode7)) { | |
5580 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'"); | |
5581 | } | |
5582 | arg7 = static_cast< long >(val7); | |
5583 | } | |
5584 | if (obj7) { | |
5585 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
5586 | if (!SWIG_IsOK(res8)) { | |
5587 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5588 | } | |
5589 | if (!argp8) { | |
5590 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
5591 | } | |
5592 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
5593 | } | |
5594 | if (obj8) { | |
d14a1e28 | 5595 | { |
0085ce49 RD |
5596 | arg9 = wxString_in_helper(obj8); |
5597 | if (arg9 == NULL) SWIG_fail; | |
5598 | temp9 = true; | |
d14a1e28 | 5599 | } |
0085ce49 RD |
5600 | } |
5601 | { | |
5602 | if (!wxPyCheckForApp()) SWIG_fail; | |
5603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5604 | 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); | |
5605 | wxPyEndAllowThreads(__tstate); | |
5606 | if (PyErr_Occurred()) SWIG_fail; | |
5607 | } | |
5608 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 ); | |
5609 | { | |
5610 | if (temp3) | |
5611 | delete arg3; | |
5612 | } | |
5613 | { | |
5614 | if (temp6) delete arg6; | |
5615 | } | |
5616 | { | |
5617 | if (temp9) | |
5618 | delete arg9; | |
5619 | } | |
5620 | return resultobj; | |
5621 | fail: | |
5622 | { | |
5623 | if (temp3) | |
5624 | delete arg3; | |
5625 | } | |
5626 | { | |
5627 | if (temp6) delete arg6; | |
5628 | } | |
5629 | { | |
5630 | if (temp9) | |
5631 | delete arg9; | |
5632 | } | |
5633 | return NULL; | |
d14a1e28 RD |
5634 | } |
5635 | ||
5636 | ||
0085ce49 RD |
5637 | SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5638 | PyObject *resultobj = 0; | |
5639 | wxComboBox *result = 0 ; | |
5640 | ||
5641 | if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail; | |
5642 | { | |
5643 | if (!wxPyCheckForApp()) SWIG_fail; | |
5644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5645 | result = (wxComboBox *)new wxComboBox(); | |
5646 | wxPyEndAllowThreads(__tstate); | |
5647 | if (PyErr_Occurred()) SWIG_fail; | |
5648 | } | |
5649 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 ); | |
5650 | return resultobj; | |
5651 | fail: | |
5652 | return NULL; | |
5653 | } | |
5654 | ||
5655 | ||
5656 | SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5657 | PyObject *resultobj = 0; | |
5658 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5659 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5660 | int arg3 = (int) -1 ; | |
5661 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5662 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
5663 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
5664 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5665 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5666 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5667 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
5668 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
5669 | long arg8 = (long) 0 ; | |
5670 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
5671 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
5672 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
5673 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
5674 | bool result; | |
5675 | void *argp1 = 0 ; | |
5676 | int res1 = 0 ; | |
5677 | void *argp2 = 0 ; | |
5678 | int res2 = 0 ; | |
5679 | int val3 ; | |
5680 | int ecode3 = 0 ; | |
5681 | bool temp4 = false ; | |
5682 | wxPoint temp5 ; | |
5683 | wxSize temp6 ; | |
5684 | bool temp7 = false ; | |
5685 | long val8 ; | |
5686 | int ecode8 = 0 ; | |
5687 | void *argp9 = 0 ; | |
5688 | int res9 = 0 ; | |
5689 | bool temp10 = false ; | |
5690 | PyObject * obj0 = 0 ; | |
5691 | PyObject * obj1 = 0 ; | |
5692 | PyObject * obj2 = 0 ; | |
5693 | PyObject * obj3 = 0 ; | |
5694 | PyObject * obj4 = 0 ; | |
5695 | PyObject * obj5 = 0 ; | |
5696 | PyObject * obj6 = 0 ; | |
5697 | PyObject * obj7 = 0 ; | |
5698 | PyObject * obj8 = 0 ; | |
5699 | PyObject * obj9 = 0 ; | |
5700 | char * kwnames[] = { | |
5701 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5702 | }; | |
5703 | ||
5704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
5705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5706 | if (!SWIG_IsOK(res1)) { | |
5707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5708 | } | |
5709 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5710 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5711 | if (!SWIG_IsOK(res2)) { | |
5712 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5713 | } | |
5714 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5715 | if (obj2) { | |
5716 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5717 | if (!SWIG_IsOK(ecode3)) { | |
5718 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
5719 | } | |
5720 | arg3 = static_cast< int >(val3); | |
5721 | } | |
5722 | if (obj3) { | |
4f89f6a3 | 5723 | { |
0085ce49 RD |
5724 | arg4 = wxString_in_helper(obj3); |
5725 | if (arg4 == NULL) SWIG_fail; | |
5726 | temp4 = true; | |
4f89f6a3 | 5727 | } |
0085ce49 RD |
5728 | } |
5729 | if (obj4) { | |
d14a1e28 | 5730 | { |
0085ce49 RD |
5731 | arg5 = &temp5; |
5732 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 5733 | } |
0085ce49 RD |
5734 | } |
5735 | if (obj5) { | |
d14a1e28 | 5736 | { |
0085ce49 RD |
5737 | arg6 = &temp6; |
5738 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 5739 | } |
0085ce49 RD |
5740 | } |
5741 | if (obj6) { | |
d14a1e28 | 5742 | { |
0085ce49 RD |
5743 | if (! PySequence_Check(obj6)) { |
5744 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5745 | SWIG_fail; | |
5746 | } | |
5747 | arg7 = new wxArrayString; | |
5748 | temp7 = true; | |
5749 | int i, len=PySequence_Length(obj6); | |
5750 | for (i=0; i<len; i++) { | |
5751 | PyObject* item = PySequence_GetItem(obj6, i); | |
5752 | wxString* s = wxString_in_helper(item); | |
5753 | if (PyErr_Occurred()) SWIG_fail; | |
5754 | arg7->Add(*s); | |
5755 | delete s; | |
5756 | Py_DECREF(item); | |
5757 | } | |
d14a1e28 | 5758 | } |
0085ce49 RD |
5759 | } |
5760 | if (obj7) { | |
5761 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
5762 | if (!SWIG_IsOK(ecode8)) { | |
5763 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'"); | |
5764 | } | |
5765 | arg8 = static_cast< long >(val8); | |
5766 | } | |
5767 | if (obj8) { | |
5768 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
5769 | if (!SWIG_IsOK(res9)) { | |
5770 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 5771 | } |
0085ce49 RD |
5772 | if (!argp9) { |
5773 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 5774 | } |
0085ce49 RD |
5775 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
5776 | } | |
5777 | if (obj9) { | |
d14a1e28 | 5778 | { |
0085ce49 RD |
5779 | arg10 = wxString_in_helper(obj9); |
5780 | if (arg10 == NULL) SWIG_fail; | |
5781 | temp10 = true; | |
d14a1e28 | 5782 | } |
0085ce49 RD |
5783 | } |
5784 | { | |
5785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5786 | 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); | |
5787 | wxPyEndAllowThreads(__tstate); | |
5788 | if (PyErr_Occurred()) SWIG_fail; | |
5789 | } | |
5790 | { | |
5791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5792 | } | |
5793 | { | |
5794 | if (temp4) | |
5795 | delete arg4; | |
5796 | } | |
5797 | { | |
5798 | if (temp7) delete arg7; | |
5799 | } | |
5800 | { | |
5801 | if (temp10) | |
5802 | delete arg10; | |
5803 | } | |
5804 | return resultobj; | |
5805 | fail: | |
5806 | { | |
5807 | if (temp4) | |
5808 | delete arg4; | |
5809 | } | |
5810 | { | |
5811 | if (temp7) delete arg7; | |
5812 | } | |
5813 | { | |
5814 | if (temp10) | |
5815 | delete arg10; | |
5816 | } | |
5817 | return NULL; | |
d14a1e28 RD |
5818 | } |
5819 | ||
5820 | ||
0085ce49 RD |
5821 | SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5822 | PyObject *resultobj = 0; | |
5823 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5824 | wxString result; | |
5825 | void *argp1 = 0 ; | |
5826 | int res1 = 0 ; | |
5827 | PyObject *swig_obj[1] ; | |
5828 | ||
5829 | if (!args) SWIG_fail; | |
5830 | swig_obj[0] = args; | |
5831 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5832 | if (!SWIG_IsOK(res1)) { | |
5833 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
5834 | } | |
5835 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5836 | { | |
5837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5838 | result = ((wxComboBox const *)arg1)->GetValue(); | |
5839 | wxPyEndAllowThreads(__tstate); | |
5840 | if (PyErr_Occurred()) SWIG_fail; | |
5841 | } | |
5842 | { | |
d14a1e28 | 5843 | #if wxUSE_UNICODE |
0085ce49 | 5844 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 5845 | #else |
0085ce49 | 5846 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 5847 | #endif |
0085ce49 RD |
5848 | } |
5849 | return resultobj; | |
5850 | fail: | |
5851 | return NULL; | |
5852 | } | |
5853 | ||
5854 | ||
5855 | SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5856 | PyObject *resultobj = 0; | |
5857 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5858 | wxString *arg2 = 0 ; | |
5859 | void *argp1 = 0 ; | |
5860 | int res1 = 0 ; | |
5861 | bool temp2 = false ; | |
5862 | PyObject * obj0 = 0 ; | |
5863 | PyObject * obj1 = 0 ; | |
5864 | char * kwnames[] = { | |
5865 | (char *) "self",(char *) "value", NULL | |
5866 | }; | |
5867 | ||
5868 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
5869 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5870 | if (!SWIG_IsOK(res1)) { | |
5871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5872 | } | |
5873 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5874 | { | |
5875 | arg2 = wxString_in_helper(obj1); | |
5876 | if (arg2 == NULL) SWIG_fail; | |
5877 | temp2 = true; | |
5878 | } | |
5879 | { | |
5880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5881 | (arg1)->SetValue((wxString const &)*arg2); | |
5882 | wxPyEndAllowThreads(__tstate); | |
5883 | if (PyErr_Occurred()) SWIG_fail; | |
5884 | } | |
5885 | resultobj = SWIG_Py_Void(); | |
5886 | { | |
5887 | if (temp2) | |
5888 | delete arg2; | |
5889 | } | |
5890 | return resultobj; | |
5891 | fail: | |
5892 | { | |
5893 | if (temp2) | |
5894 | delete arg2; | |
5895 | } | |
5896 | return NULL; | |
d14a1e28 RD |
5897 | } |
5898 | ||
5899 | ||
0085ce49 RD |
5900 | SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5901 | PyObject *resultobj = 0; | |
5902 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5903 | void *argp1 = 0 ; | |
5904 | int res1 = 0 ; | |
5905 | PyObject *swig_obj[1] ; | |
5906 | ||
5907 | if (!args) SWIG_fail; | |
5908 | swig_obj[0] = args; | |
5909 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5910 | if (!SWIG_IsOK(res1)) { | |
5911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5912 | } | |
5913 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5914 | { | |
5915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5916 | (arg1)->Copy(); | |
5917 | wxPyEndAllowThreads(__tstate); | |
5918 | if (PyErr_Occurred()) SWIG_fail; | |
5919 | } | |
5920 | resultobj = SWIG_Py_Void(); | |
5921 | return resultobj; | |
5922 | fail: | |
5923 | return NULL; | |
d14a1e28 RD |
5924 | } |
5925 | ||
5926 | ||
0085ce49 RD |
5927 | SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5928 | PyObject *resultobj = 0; | |
5929 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5930 | void *argp1 = 0 ; | |
5931 | int res1 = 0 ; | |
5932 | PyObject *swig_obj[1] ; | |
5933 | ||
5934 | if (!args) SWIG_fail; | |
5935 | swig_obj[0] = args; | |
5936 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5937 | if (!SWIG_IsOK(res1)) { | |
5938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5939 | } | |
5940 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5941 | { | |
5942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5943 | (arg1)->Cut(); | |
5944 | wxPyEndAllowThreads(__tstate); | |
5945 | if (PyErr_Occurred()) SWIG_fail; | |
5946 | } | |
5947 | resultobj = SWIG_Py_Void(); | |
5948 | return resultobj; | |
5949 | fail: | |
5950 | return NULL; | |
d14a1e28 RD |
5951 | } |
5952 | ||
5953 | ||
0085ce49 RD |
5954 | SWIGINTERN PyObject *_wrap_ComboBox_Paste(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_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5966 | } | |
5967 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
5968 | { | |
5969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5970 | (arg1)->Paste(); | |
5971 | wxPyEndAllowThreads(__tstate); | |
5972 | if (PyErr_Occurred()) SWIG_fail; | |
5973 | } | |
5974 | resultobj = SWIG_Py_Void(); | |
5975 | return resultobj; | |
5976 | fail: | |
5977 | return NULL; | |
5978 | } | |
5979 | ||
5980 | ||
5981 | SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5982 | PyObject *resultobj = 0; | |
5983 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5984 | long arg2 ; | |
5985 | void *argp1 = 0 ; | |
5986 | int res1 = 0 ; | |
5987 | long val2 ; | |
5988 | int ecode2 = 0 ; | |
5989 | PyObject * obj0 = 0 ; | |
5990 | PyObject * obj1 = 0 ; | |
5991 | char * kwnames[] = { | |
5992 | (char *) "self",(char *) "pos", NULL | |
5993 | }; | |
5994 | ||
5995 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
5996 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
5997 | if (!SWIG_IsOK(res1)) { | |
5998 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
5999 | } | |
6000 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6001 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6002 | if (!SWIG_IsOK(ecode2)) { | |
6003 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'"); | |
6004 | } | |
6005 | arg2 = static_cast< long >(val2); | |
6006 | { | |
6007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6008 | (arg1)->SetInsertionPoint(arg2); | |
6009 | wxPyEndAllowThreads(__tstate); | |
6010 | if (PyErr_Occurred()) SWIG_fail; | |
6011 | } | |
6012 | resultobj = SWIG_Py_Void(); | |
6013 | return resultobj; | |
6014 | fail: | |
6015 | return NULL; | |
d14a1e28 RD |
6016 | } |
6017 | ||
6018 | ||
0085ce49 RD |
6019 | SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6020 | PyObject *resultobj = 0; | |
6021 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6022 | long result; | |
6023 | void *argp1 = 0 ; | |
6024 | int res1 = 0 ; | |
6025 | PyObject *swig_obj[1] ; | |
6026 | ||
6027 | if (!args) SWIG_fail; | |
6028 | swig_obj[0] = args; | |
6029 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6030 | if (!SWIG_IsOK(res1)) { | |
6031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6032 | } | |
6033 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6034 | { | |
6035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6036 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
6037 | wxPyEndAllowThreads(__tstate); | |
6038 | if (PyErr_Occurred()) SWIG_fail; | |
6039 | } | |
6040 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6041 | return resultobj; | |
6042 | fail: | |
6043 | return NULL; | |
d14a1e28 RD |
6044 | } |
6045 | ||
6046 | ||
0085ce49 RD |
6047 | SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6048 | PyObject *resultobj = 0; | |
6049 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6050 | long result; | |
6051 | void *argp1 = 0 ; | |
6052 | int res1 = 0 ; | |
6053 | PyObject *swig_obj[1] ; | |
6054 | ||
6055 | if (!args) SWIG_fail; | |
6056 | swig_obj[0] = args; | |
6057 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6058 | if (!SWIG_IsOK(res1)) { | |
6059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6060 | } | |
6061 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6062 | { | |
6063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6064 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
6065 | wxPyEndAllowThreads(__tstate); | |
6066 | if (PyErr_Occurred()) SWIG_fail; | |
6067 | } | |
6068 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6069 | return resultobj; | |
6070 | fail: | |
6071 | return NULL; | |
6072 | } | |
6073 | ||
6074 | ||
6075 | SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6076 | PyObject *resultobj = 0; | |
6077 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6078 | long arg2 ; | |
6079 | long arg3 ; | |
6080 | wxString *arg4 = 0 ; | |
6081 | void *argp1 = 0 ; | |
6082 | int res1 = 0 ; | |
6083 | long val2 ; | |
6084 | int ecode2 = 0 ; | |
6085 | long val3 ; | |
6086 | int ecode3 = 0 ; | |
6087 | bool temp4 = false ; | |
6088 | PyObject * obj0 = 0 ; | |
6089 | PyObject * obj1 = 0 ; | |
6090 | PyObject * obj2 = 0 ; | |
6091 | PyObject * obj3 = 0 ; | |
6092 | char * kwnames[] = { | |
2131d850 | 6093 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL |
0085ce49 RD |
6094 | }; |
6095 | ||
6096 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6097 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6098 | if (!SWIG_IsOK(res1)) { | |
6099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6100 | } | |
6101 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6102 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6103 | if (!SWIG_IsOK(ecode2)) { | |
6104 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'"); | |
6105 | } | |
6106 | arg2 = static_cast< long >(val2); | |
6107 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6108 | if (!SWIG_IsOK(ecode3)) { | |
6109 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'"); | |
6110 | } | |
6111 | arg3 = static_cast< long >(val3); | |
6112 | { | |
6113 | arg4 = wxString_in_helper(obj3); | |
6114 | if (arg4 == NULL) SWIG_fail; | |
6115 | temp4 = true; | |
6116 | } | |
6117 | { | |
6118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6119 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
6120 | wxPyEndAllowThreads(__tstate); | |
6121 | if (PyErr_Occurred()) SWIG_fail; | |
6122 | } | |
6123 | resultobj = SWIG_Py_Void(); | |
6124 | { | |
6125 | if (temp4) | |
6126 | delete arg4; | |
6127 | } | |
6128 | return resultobj; | |
6129 | fail: | |
6130 | { | |
6131 | if (temp4) | |
6132 | delete arg4; | |
6133 | } | |
6134 | return NULL; | |
6135 | } | |
6136 | ||
6137 | ||
6138 | SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6139 | PyObject *resultobj = 0; | |
6140 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6141 | long arg2 ; | |
6142 | long arg3 ; | |
6143 | void *argp1 = 0 ; | |
6144 | int res1 = 0 ; | |
6145 | long val2 ; | |
6146 | int ecode2 = 0 ; | |
6147 | long val3 ; | |
6148 | int ecode3 = 0 ; | |
6149 | PyObject * obj0 = 0 ; | |
6150 | PyObject * obj1 = 0 ; | |
6151 | PyObject * obj2 = 0 ; | |
6152 | char * kwnames[] = { | |
2131d850 | 6153 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
6154 | }; |
6155 | ||
6156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6157 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6158 | if (!SWIG_IsOK(res1)) { | |
6159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6160 | } | |
6161 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6162 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6163 | if (!SWIG_IsOK(ecode2)) { | |
6164 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'"); | |
6165 | } | |
6166 | arg2 = static_cast< long >(val2); | |
6167 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6168 | if (!SWIG_IsOK(ecode3)) { | |
6169 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'"); | |
6170 | } | |
6171 | arg3 = static_cast< long >(val3); | |
6172 | { | |
6173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6174 | (arg1)->SetSelection(arg2,arg3); | |
6175 | wxPyEndAllowThreads(__tstate); | |
6176 | if (PyErr_Occurred()) SWIG_fail; | |
6177 | } | |
6178 | resultobj = SWIG_Py_Void(); | |
6179 | return resultobj; | |
6180 | fail: | |
6181 | return NULL; | |
6182 | } | |
6183 | ||
6184 | ||
6185 | SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6186 | PyObject *resultobj = 0; | |
6187 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6188 | long *arg2 = (long *) 0 ; | |
6189 | long *arg3 = (long *) 0 ; | |
6190 | void *argp1 = 0 ; | |
6191 | int res1 = 0 ; | |
6192 | long temp2 ; | |
6193 | int res2 = SWIG_TMPOBJ ; | |
6194 | long temp3 ; | |
6195 | int res3 = SWIG_TMPOBJ ; | |
6196 | PyObject *swig_obj[1] ; | |
6197 | ||
6198 | arg2 = &temp2; | |
6199 | arg3 = &temp3; | |
6200 | if (!args) SWIG_fail; | |
6201 | swig_obj[0] = args; | |
6202 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6203 | if (!SWIG_IsOK(res1)) { | |
6204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6205 | } | |
6206 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6207 | { | |
6208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6209 | (arg1)->GetSelection(arg2,arg3); | |
6210 | wxPyEndAllowThreads(__tstate); | |
6211 | if (PyErr_Occurred()) SWIG_fail; | |
6212 | } | |
6213 | resultobj = SWIG_Py_Void(); | |
6214 | if (SWIG_IsTmpObj(res2)) { | |
6215 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2))); | |
6216 | } else { | |
6217 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
6218 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags)); | |
6219 | } | |
6220 | if (SWIG_IsTmpObj(res3)) { | |
6221 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
6222 | } else { | |
6223 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
6224 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
6225 | } | |
6226 | return resultobj; | |
6227 | fail: | |
6228 | return NULL; | |
d14a1e28 RD |
6229 | } |
6230 | ||
6231 | ||
0085ce49 RD |
6232 | SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6233 | PyObject *resultobj = 0; | |
6234 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6235 | int result; | |
6236 | void *argp1 = 0 ; | |
6237 | int res1 = 0 ; | |
6238 | PyObject *swig_obj[1] ; | |
6239 | ||
6240 | if (!args) SWIG_fail; | |
6241 | swig_obj[0] = args; | |
6242 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6243 | if (!SWIG_IsOK(res1)) { | |
6244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'"); | |
6245 | } | |
6246 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6247 | { | |
6248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6249 | result = (int)((wxComboBox const *)arg1)->GetCurrentSelection(); | |
6250 | wxPyEndAllowThreads(__tstate); | |
6251 | if (PyErr_Occurred()) SWIG_fail; | |
6252 | } | |
6253 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6254 | return resultobj; | |
6255 | fail: | |
6256 | return NULL; | |
6257 | } | |
6258 | ||
6259 | ||
6260 | SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6261 | PyObject *resultobj = 0; | |
6262 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6263 | wxString *arg2 = 0 ; | |
6264 | bool result; | |
6265 | void *argp1 = 0 ; | |
6266 | int res1 = 0 ; | |
6267 | bool temp2 = false ; | |
6268 | PyObject * obj0 = 0 ; | |
6269 | PyObject * obj1 = 0 ; | |
6270 | char * kwnames[] = { | |
6271 | (char *) "self",(char *) "string", NULL | |
6272 | }; | |
6273 | ||
6274 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
6275 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6276 | if (!SWIG_IsOK(res1)) { | |
6277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6278 | } | |
6279 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6280 | { | |
6281 | arg2 = wxString_in_helper(obj1); | |
6282 | if (arg2 == NULL) SWIG_fail; | |
6283 | temp2 = true; | |
6284 | } | |
6285 | { | |
6286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6287 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
6288 | wxPyEndAllowThreads(__tstate); | |
6289 | if (PyErr_Occurred()) SWIG_fail; | |
6290 | } | |
6291 | { | |
6292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6293 | } | |
6294 | { | |
6295 | if (temp2) | |
6296 | delete arg2; | |
6297 | } | |
6298 | return resultobj; | |
6299 | fail: | |
6300 | { | |
6301 | if (temp2) | |
6302 | delete arg2; | |
6303 | } | |
6304 | return NULL; | |
6305 | } | |
6306 | ||
6307 | ||
50f151d7 RD |
6308 | SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6309 | PyObject *resultobj = 0; | |
6310 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
6311 | int arg2 ; | |
6312 | wxString *arg3 = 0 ; | |
6313 | void *argp1 = 0 ; | |
6314 | int res1 = 0 ; | |
6315 | int val2 ; | |
6316 | int ecode2 = 0 ; | |
6317 | bool temp3 = false ; | |
6318 | PyObject * obj0 = 0 ; | |
6319 | PyObject * obj1 = 0 ; | |
6320 | PyObject * obj2 = 0 ; | |
6321 | char * kwnames[] = { | |
6322 | (char *) "self",(char *) "n",(char *) "string", NULL | |
6323 | }; | |
6324 | ||
6325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6326 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 ); | |
6327 | if (!SWIG_IsOK(res1)) { | |
6328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'"); | |
6329 | } | |
6330 | arg1 = reinterpret_cast< wxComboBox * >(argp1); | |
6331 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6332 | if (!SWIG_IsOK(ecode2)) { | |
6333 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'"); | |
6334 | } | |
6335 | arg2 = static_cast< int >(val2); | |
6336 | { | |
6337 | arg3 = wxString_in_helper(obj2); | |
6338 | if (arg3 == NULL) SWIG_fail; | |
6339 | temp3 = true; | |
6340 | } | |
6341 | { | |
6342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6343 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
6344 | wxPyEndAllowThreads(__tstate); | |
6345 | if (PyErr_Occurred()) SWIG_fail; | |
6346 | } | |
6347 | resultobj = SWIG_Py_Void(); | |
6348 | { | |
6349 | if (temp3) | |
6350 | delete arg3; | |
6351 | } | |
6352 | return resultobj; | |
6353 | fail: | |
6354 | { | |
6355 | if (temp3) | |
6356 | delete arg3; | |
6357 | } | |
6358 | return NULL; | |
6359 | } | |
6360 | ||
6361 | ||
0085ce49 RD |
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 | ||
7489 | SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7490 | PyObject *resultobj = 0; | |
7491 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7492 | int arg2 = (int) -1 ; | |
7493 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7494 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7495 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7496 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7497 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7498 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7499 | long arg6 = (long) 0 ; | |
7500 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
7501 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7502 | wxStaticBox *result = 0 ; | |
7503 | void *argp1 = 0 ; | |
7504 | int res1 = 0 ; | |
7505 | int val2 ; | |
7506 | int ecode2 = 0 ; | |
7507 | bool temp3 = false ; | |
7508 | wxPoint temp4 ; | |
7509 | wxSize temp5 ; | |
7510 | long val6 ; | |
7511 | int ecode6 = 0 ; | |
7512 | bool temp7 = false ; | |
7513 | PyObject * obj0 = 0 ; | |
7514 | PyObject * obj1 = 0 ; | |
7515 | PyObject * obj2 = 0 ; | |
7516 | PyObject * obj3 = 0 ; | |
7517 | PyObject * obj4 = 0 ; | |
7518 | PyObject * obj5 = 0 ; | |
7519 | PyObject * obj6 = 0 ; | |
7520 | char * kwnames[] = { | |
7521 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7522 | }; | |
7523 | ||
7524 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7525 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7526 | if (!SWIG_IsOK(res1)) { | |
7527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7528 | } | |
7529 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7530 | if (obj1) { | |
7531 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7532 | if (!SWIG_IsOK(ecode2)) { | |
7533 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'"); | |
7534 | } | |
7535 | arg2 = static_cast< int >(val2); | |
7536 | } | |
7537 | if (obj2) { | |
d14a1e28 | 7538 | { |
0085ce49 RD |
7539 | arg3 = wxString_in_helper(obj2); |
7540 | if (arg3 == NULL) SWIG_fail; | |
7541 | temp3 = true; | |
d14a1e28 | 7542 | } |
0085ce49 RD |
7543 | } |
7544 | if (obj3) { | |
4f89f6a3 | 7545 | { |
0085ce49 RD |
7546 | arg4 = &temp4; |
7547 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 7548 | } |
0085ce49 RD |
7549 | } |
7550 | if (obj4) { | |
d14a1e28 | 7551 | { |
0085ce49 RD |
7552 | arg5 = &temp5; |
7553 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 7554 | } |
0085ce49 RD |
7555 | } |
7556 | if (obj5) { | |
7557 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7558 | if (!SWIG_IsOK(ecode6)) { | |
7559 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'"); | |
7560 | } | |
7561 | arg6 = static_cast< long >(val6); | |
7562 | } | |
7563 | if (obj6) { | |
d14a1e28 | 7564 | { |
0085ce49 RD |
7565 | arg7 = wxString_in_helper(obj6); |
7566 | if (arg7 == NULL) SWIG_fail; | |
7567 | temp7 = true; | |
d14a1e28 | 7568 | } |
0085ce49 RD |
7569 | } |
7570 | { | |
7571 | if (!wxPyCheckForApp()) SWIG_fail; | |
7572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7573 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7574 | wxPyEndAllowThreads(__tstate); | |
7575 | if (PyErr_Occurred()) SWIG_fail; | |
7576 | } | |
7577 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 ); | |
7578 | { | |
7579 | if (temp3) | |
7580 | delete arg3; | |
7581 | } | |
7582 | { | |
7583 | if (temp7) | |
7584 | delete arg7; | |
7585 | } | |
7586 | return resultobj; | |
7587 | fail: | |
7588 | { | |
7589 | if (temp3) | |
7590 | delete arg3; | |
7591 | } | |
7592 | { | |
7593 | if (temp7) | |
7594 | delete arg7; | |
7595 | } | |
7596 | return NULL; | |
d14a1e28 RD |
7597 | } |
7598 | ||
7599 | ||
0085ce49 RD |
7600 | SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7601 | PyObject *resultobj = 0; | |
7602 | wxStaticBox *result = 0 ; | |
7603 | ||
7604 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail; | |
7605 | { | |
7606 | if (!wxPyCheckForApp()) SWIG_fail; | |
7607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7608 | result = (wxStaticBox *)new wxStaticBox(); | |
7609 | wxPyEndAllowThreads(__tstate); | |
7610 | if (PyErr_Occurred()) SWIG_fail; | |
7611 | } | |
7612 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 ); | |
7613 | return resultobj; | |
7614 | fail: | |
7615 | return NULL; | |
7616 | } | |
7617 | ||
7618 | ||
7619 | SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7620 | PyObject *resultobj = 0; | |
7621 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
7622 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7623 | int arg3 = (int) -1 ; | |
7624 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7625 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7626 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7627 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7628 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7629 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7630 | long arg7 = (long) 0 ; | |
7631 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
7632 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7633 | bool result; | |
7634 | void *argp1 = 0 ; | |
7635 | int res1 = 0 ; | |
7636 | void *argp2 = 0 ; | |
7637 | int res2 = 0 ; | |
7638 | int val3 ; | |
7639 | int ecode3 = 0 ; | |
7640 | bool temp4 = false ; | |
7641 | wxPoint temp5 ; | |
7642 | wxSize temp6 ; | |
7643 | long val7 ; | |
7644 | int ecode7 = 0 ; | |
7645 | bool temp8 = false ; | |
7646 | PyObject * obj0 = 0 ; | |
7647 | PyObject * obj1 = 0 ; | |
7648 | PyObject * obj2 = 0 ; | |
7649 | PyObject * obj3 = 0 ; | |
7650 | PyObject * obj4 = 0 ; | |
7651 | PyObject * obj5 = 0 ; | |
7652 | PyObject * obj6 = 0 ; | |
7653 | PyObject * obj7 = 0 ; | |
7654 | char * kwnames[] = { | |
7655 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7656 | }; | |
7657 | ||
7658 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
7659 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 ); | |
7660 | if (!SWIG_IsOK(res1)) { | |
7661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'"); | |
7662 | } | |
7663 | arg1 = reinterpret_cast< wxStaticBox * >(argp1); | |
7664 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7665 | if (!SWIG_IsOK(res2)) { | |
7666 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7667 | } | |
7668 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7669 | if (obj2) { | |
7670 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7671 | if (!SWIG_IsOK(ecode3)) { | |
7672 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
7673 | } | |
7674 | arg3 = static_cast< int >(val3); | |
7675 | } | |
7676 | if (obj3) { | |
093d3ff1 | 7677 | { |
0085ce49 RD |
7678 | arg4 = wxString_in_helper(obj3); |
7679 | if (arg4 == NULL) SWIG_fail; | |
7680 | temp4 = true; | |
093d3ff1 | 7681 | } |
0085ce49 RD |
7682 | } |
7683 | if (obj4) { | |
d14a1e28 | 7684 | { |
0085ce49 RD |
7685 | arg5 = &temp5; |
7686 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 7687 | } |
0085ce49 RD |
7688 | } |
7689 | if (obj5) { | |
d14a1e28 | 7690 | { |
0085ce49 RD |
7691 | arg6 = &temp6; |
7692 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 7693 | } |
0085ce49 RD |
7694 | } |
7695 | if (obj6) { | |
7696 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
7697 | if (!SWIG_IsOK(ecode7)) { | |
7698 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
7699 | } | |
7700 | arg7 = static_cast< long >(val7); | |
7701 | } | |
7702 | if (obj7) { | |
093d3ff1 | 7703 | { |
0085ce49 RD |
7704 | arg8 = wxString_in_helper(obj7); |
7705 | if (arg8 == NULL) SWIG_fail; | |
7706 | temp8 = true; | |
093d3ff1 | 7707 | } |
0085ce49 RD |
7708 | } |
7709 | { | |
7710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7711 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7712 | wxPyEndAllowThreads(__tstate); | |
7713 | if (PyErr_Occurred()) SWIG_fail; | |
7714 | } | |
7715 | { | |
7716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7717 | } | |
7718 | { | |
7719 | if (temp4) | |
7720 | delete arg4; | |
7721 | } | |
7722 | { | |
7723 | if (temp8) | |
7724 | delete arg8; | |
7725 | } | |
7726 | return resultobj; | |
7727 | fail: | |
7728 | { | |
7729 | if (temp4) | |
7730 | delete arg4; | |
7731 | } | |
7732 | { | |
7733 | if (temp8) | |
7734 | delete arg8; | |
7735 | } | |
7736 | return NULL; | |
7737 | } | |
d14a1e28 | 7738 | |
0085ce49 RD |
7739 | |
7740 | SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7741 | PyObject *resultobj = 0; | |
7742 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7743 | SwigValueWrapper<wxVisualAttributes > result; | |
7744 | int val1 ; | |
7745 | int ecode1 = 0 ; | |
7746 | PyObject * obj0 = 0 ; | |
7747 | char * kwnames[] = { | |
7748 | (char *) "variant", NULL | |
7749 | }; | |
7750 | ||
7751 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7752 | if (obj0) { | |
7753 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7754 | if (!SWIG_IsOK(ecode1)) { | |
7755 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7756 | } | |
7757 | arg1 = static_cast< wxWindowVariant >(val1); | |
7758 | } | |
7759 | { | |
7760 | if (!wxPyCheckForApp()) SWIG_fail; | |
7761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7762 | result = wxStaticBox::GetClassDefaultAttributes(arg1); | |
7763 | wxPyEndAllowThreads(__tstate); | |
7764 | if (PyErr_Occurred()) SWIG_fail; | |
7765 | } | |
7766 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7767 | return resultobj; | |
7768 | fail: | |
7769 | return NULL; | |
7770 | } | |
7771 | ||
7772 | ||
7773 | SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7774 | PyObject *obj; | |
7775 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7776 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj)); | |
7777 | return SWIG_Py_Void(); | |
7778 | } | |
7779 | ||
7780 | SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7781 | return SWIG_Python_InitShadowInstance(args); | |
7782 | } | |
7783 | ||
7784 | SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7785 | PyObject *resultobj = 0; | |
7786 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7787 | int arg2 = (int) -1 ; | |
7788 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
7789 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7790 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7791 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
7792 | long arg5 = (long) wxLI_HORIZONTAL ; | |
7793 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
7794 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7795 | wxStaticLine *result = 0 ; | |
7796 | void *argp1 = 0 ; | |
7797 | int res1 = 0 ; | |
7798 | int val2 ; | |
7799 | int ecode2 = 0 ; | |
7800 | wxPoint temp3 ; | |
7801 | wxSize temp4 ; | |
7802 | long val5 ; | |
7803 | int ecode5 = 0 ; | |
7804 | bool temp6 = false ; | |
7805 | PyObject * obj0 = 0 ; | |
7806 | PyObject * obj1 = 0 ; | |
7807 | PyObject * obj2 = 0 ; | |
7808 | PyObject * obj3 = 0 ; | |
7809 | PyObject * obj4 = 0 ; | |
7810 | PyObject * obj5 = 0 ; | |
7811 | char * kwnames[] = { | |
7812 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7813 | }; | |
7814 | ||
7815 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
7816 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7817 | if (!SWIG_IsOK(res1)) { | |
7818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7819 | } | |
7820 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7821 | if (obj1) { | |
7822 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7823 | if (!SWIG_IsOK(ecode2)) { | |
7824 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'"); | |
7825 | } | |
7826 | arg2 = static_cast< int >(val2); | |
7827 | } | |
7828 | if (obj2) { | |
093d3ff1 | 7829 | { |
0085ce49 RD |
7830 | arg3 = &temp3; |
7831 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 7832 | } |
0085ce49 RD |
7833 | } |
7834 | if (obj3) { | |
d14a1e28 | 7835 | { |
0085ce49 RD |
7836 | arg4 = &temp4; |
7837 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 7838 | } |
0085ce49 RD |
7839 | } |
7840 | if (obj4) { | |
7841 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
7842 | if (!SWIG_IsOK(ecode5)) { | |
7843 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'"); | |
7844 | } | |
7845 | arg5 = static_cast< long >(val5); | |
7846 | } | |
7847 | if (obj5) { | |
7848 | { | |
7849 | arg6 = wxString_in_helper(obj5); | |
7850 | if (arg6 == NULL) SWIG_fail; | |
7851 | temp6 = true; | |
7852 | } | |
7853 | } | |
7854 | { | |
7855 | if (!wxPyCheckForApp()) SWIG_fail; | |
7856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7857 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
7858 | wxPyEndAllowThreads(__tstate); | |
7859 | if (PyErr_Occurred()) SWIG_fail; | |
7860 | } | |
7861 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 ); | |
7862 | { | |
7863 | if (temp6) | |
7864 | delete arg6; | |
7865 | } | |
7866 | return resultobj; | |
7867 | fail: | |
7868 | { | |
7869 | if (temp6) | |
7870 | delete arg6; | |
7871 | } | |
7872 | return NULL; | |
d14a1e28 RD |
7873 | } |
7874 | ||
7875 | ||
0085ce49 RD |
7876 | SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7877 | PyObject *resultobj = 0; | |
7878 | wxStaticLine *result = 0 ; | |
7879 | ||
7880 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail; | |
7881 | { | |
7882 | if (!wxPyCheckForApp()) SWIG_fail; | |
7883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7884 | result = (wxStaticLine *)new wxStaticLine(); | |
7885 | wxPyEndAllowThreads(__tstate); | |
7886 | if (PyErr_Occurred()) SWIG_fail; | |
7887 | } | |
7888 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 ); | |
7889 | return resultobj; | |
7890 | fail: | |
7891 | return NULL; | |
7892 | } | |
7893 | ||
7894 | ||
7895 | SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7896 | PyObject *resultobj = 0; | |
7897 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
7898 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7899 | int arg3 = (int) -1 ; | |
7900 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7901 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7902 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7903 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7904 | long arg6 = (long) wxLI_HORIZONTAL ; | |
7905 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
7906 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7907 | bool result; | |
7908 | void *argp1 = 0 ; | |
7909 | int res1 = 0 ; | |
7910 | void *argp2 = 0 ; | |
7911 | int res2 = 0 ; | |
7912 | int val3 ; | |
7913 | int ecode3 = 0 ; | |
7914 | wxPoint temp4 ; | |
7915 | wxSize temp5 ; | |
7916 | long val6 ; | |
7917 | int ecode6 = 0 ; | |
7918 | bool temp7 = false ; | |
7919 | PyObject * obj0 = 0 ; | |
7920 | PyObject * obj1 = 0 ; | |
7921 | PyObject * obj2 = 0 ; | |
7922 | PyObject * obj3 = 0 ; | |
7923 | PyObject * obj4 = 0 ; | |
7924 | PyObject * obj5 = 0 ; | |
7925 | PyObject * obj6 = 0 ; | |
7926 | char * kwnames[] = { | |
7927 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7928 | }; | |
7929 | ||
7930 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7931 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 ); | |
7932 | if (!SWIG_IsOK(res1)) { | |
7933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'"); | |
7934 | } | |
7935 | arg1 = reinterpret_cast< wxStaticLine * >(argp1); | |
7936 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7937 | if (!SWIG_IsOK(res2)) { | |
7938 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7939 | } | |
7940 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7941 | if (obj2) { | |
7942 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7943 | if (!SWIG_IsOK(ecode3)) { | |
7944 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'"); | |
7945 | } | |
7946 | arg3 = static_cast< int >(val3); | |
7947 | } | |
7948 | if (obj3) { | |
d14a1e28 | 7949 | { |
0085ce49 RD |
7950 | arg4 = &temp4; |
7951 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 7952 | } |
0085ce49 RD |
7953 | } |
7954 | if (obj4) { | |
093d3ff1 | 7955 | { |
0085ce49 RD |
7956 | arg5 = &temp5; |
7957 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 7958 | } |
0085ce49 RD |
7959 | } |
7960 | if (obj5) { | |
7961 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7962 | if (!SWIG_IsOK(ecode6)) { | |
7963 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'"); | |
7964 | } | |
7965 | arg6 = static_cast< long >(val6); | |
7966 | } | |
7967 | if (obj6) { | |
7968 | { | |
7969 | arg7 = wxString_in_helper(obj6); | |
7970 | if (arg7 == NULL) SWIG_fail; | |
7971 | temp7 = true; | |
7972 | } | |
7973 | } | |
7974 | { | |
7975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7976 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7977 | wxPyEndAllowThreads(__tstate); | |
7978 | if (PyErr_Occurred()) SWIG_fail; | |
7979 | } | |
7980 | { | |
7981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7982 | } | |
7983 | { | |
7984 | if (temp7) | |
7985 | delete arg7; | |
7986 | } | |
7987 | return resultobj; | |
7988 | fail: | |
7989 | { | |
7990 | if (temp7) | |
7991 | delete arg7; | |
7992 | } | |
7993 | return NULL; | |
d14a1e28 RD |
7994 | } |
7995 | ||
7996 | ||
0085ce49 RD |
7997 | SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7998 | PyObject *resultobj = 0; | |
7999 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
8000 | bool result; | |
8001 | void *argp1 = 0 ; | |
8002 | int res1 = 0 ; | |
8003 | PyObject *swig_obj[1] ; | |
8004 | ||
8005 | if (!args) SWIG_fail; | |
8006 | swig_obj[0] = args; | |
8007 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 ); | |
8008 | if (!SWIG_IsOK(res1)) { | |
8009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'"); | |
8010 | } | |
8011 | arg1 = reinterpret_cast< wxStaticLine * >(argp1); | |
8012 | { | |
8013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8014 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
8015 | wxPyEndAllowThreads(__tstate); | |
8016 | if (PyErr_Occurred()) SWIG_fail; | |
8017 | } | |
8018 | { | |
8019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8020 | } | |
8021 | return resultobj; | |
8022 | fail: | |
8023 | return NULL; | |
8024 | } | |
8025 | ||
8026 | ||
8027 | SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8028 | PyObject *resultobj = 0; | |
8029 | int result; | |
8030 | ||
8031 | if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail; | |
8032 | { | |
8033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8034 | result = (int)wxStaticLine::GetDefaultSize(); | |
8035 | wxPyEndAllowThreads(__tstate); | |
8036 | if (PyErr_Occurred()) SWIG_fail; | |
8037 | } | |
8038 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8039 | return resultobj; | |
8040 | fail: | |
8041 | return NULL; | |
8042 | } | |
8043 | ||
8044 | ||
8045 | SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8046 | PyObject *resultobj = 0; | |
8047 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8048 | SwigValueWrapper<wxVisualAttributes > result; | |
8049 | int val1 ; | |
8050 | int ecode1 = 0 ; | |
8051 | PyObject * obj0 = 0 ; | |
8052 | char * kwnames[] = { | |
8053 | (char *) "variant", NULL | |
8054 | }; | |
8055 | ||
8056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8057 | if (obj0) { | |
8058 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8059 | if (!SWIG_IsOK(ecode1)) { | |
8060 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8061 | } | |
8062 | arg1 = static_cast< wxWindowVariant >(val1); | |
8063 | } | |
8064 | { | |
8065 | if (!wxPyCheckForApp()) SWIG_fail; | |
8066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8067 | result = wxStaticLine::GetClassDefaultAttributes(arg1); | |
8068 | wxPyEndAllowThreads(__tstate); | |
8069 | if (PyErr_Occurred()) SWIG_fail; | |
8070 | } | |
8071 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8072 | return resultobj; | |
8073 | fail: | |
8074 | return NULL; | |
8075 | } | |
8076 | ||
8077 | ||
8078 | SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8079 | PyObject *obj; | |
8080 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8081 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj)); | |
8082 | return SWIG_Py_Void(); | |
8083 | } | |
8084 | ||
8085 | SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8086 | return SWIG_Python_InitShadowInstance(args); | |
8087 | } | |
8088 | ||
8089 | SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8090 | PyObject *resultobj = 0; | |
8091 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8092 | int arg2 = (int) -1 ; | |
8093 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8094 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8095 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8096 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8097 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8098 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8099 | long arg6 = (long) 0 ; | |
8100 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
8101 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8102 | wxStaticText *result = 0 ; | |
8103 | void *argp1 = 0 ; | |
8104 | int res1 = 0 ; | |
8105 | int val2 ; | |
8106 | int ecode2 = 0 ; | |
8107 | bool temp3 = false ; | |
8108 | wxPoint temp4 ; | |
8109 | wxSize temp5 ; | |
8110 | long val6 ; | |
8111 | int ecode6 = 0 ; | |
8112 | bool temp7 = false ; | |
8113 | PyObject * obj0 = 0 ; | |
8114 | PyObject * obj1 = 0 ; | |
8115 | PyObject * obj2 = 0 ; | |
8116 | PyObject * obj3 = 0 ; | |
8117 | PyObject * obj4 = 0 ; | |
8118 | PyObject * obj5 = 0 ; | |
8119 | PyObject * obj6 = 0 ; | |
8120 | char * kwnames[] = { | |
8121 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8122 | }; | |
8123 | ||
8124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
8125 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8126 | if (!SWIG_IsOK(res1)) { | |
8127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8128 | } | |
8129 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8130 | if (obj1) { | |
8131 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8132 | if (!SWIG_IsOK(ecode2)) { | |
8133 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'"); | |
8134 | } | |
8135 | arg2 = static_cast< int >(val2); | |
8136 | } | |
8137 | if (obj2) { | |
d14a1e28 | 8138 | { |
0085ce49 RD |
8139 | arg3 = wxString_in_helper(obj2); |
8140 | if (arg3 == NULL) SWIG_fail; | |
8141 | temp3 = true; | |
d14a1e28 | 8142 | } |
0085ce49 RD |
8143 | } |
8144 | if (obj3) { | |
4f89f6a3 | 8145 | { |
0085ce49 RD |
8146 | arg4 = &temp4; |
8147 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 8148 | } |
0085ce49 RD |
8149 | } |
8150 | if (obj4) { | |
093d3ff1 | 8151 | { |
0085ce49 RD |
8152 | arg5 = &temp5; |
8153 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 8154 | } |
0085ce49 RD |
8155 | } |
8156 | if (obj5) { | |
8157 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8158 | if (!SWIG_IsOK(ecode6)) { | |
8159 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'"); | |
8160 | } | |
8161 | arg6 = static_cast< long >(val6); | |
8162 | } | |
8163 | if (obj6) { | |
d14a1e28 | 8164 | { |
0085ce49 RD |
8165 | arg7 = wxString_in_helper(obj6); |
8166 | if (arg7 == NULL) SWIG_fail; | |
8167 | temp7 = true; | |
d14a1e28 | 8168 | } |
0085ce49 RD |
8169 | } |
8170 | { | |
8171 | if (!wxPyCheckForApp()) SWIG_fail; | |
8172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8173 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8174 | wxPyEndAllowThreads(__tstate); | |
8175 | if (PyErr_Occurred()) SWIG_fail; | |
8176 | } | |
8177 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 ); | |
8178 | { | |
8179 | if (temp3) | |
8180 | delete arg3; | |
8181 | } | |
8182 | { | |
8183 | if (temp7) | |
8184 | delete arg7; | |
8185 | } | |
8186 | return resultobj; | |
8187 | fail: | |
8188 | { | |
8189 | if (temp3) | |
8190 | delete arg3; | |
8191 | } | |
8192 | { | |
8193 | if (temp7) | |
8194 | delete arg7; | |
8195 | } | |
8196 | return NULL; | |
d14a1e28 RD |
8197 | } |
8198 | ||
8199 | ||
0085ce49 RD |
8200 | SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8201 | PyObject *resultobj = 0; | |
8202 | wxStaticText *result = 0 ; | |
8203 | ||
8204 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail; | |
8205 | { | |
8206 | if (!wxPyCheckForApp()) SWIG_fail; | |
8207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8208 | result = (wxStaticText *)new wxStaticText(); | |
8209 | wxPyEndAllowThreads(__tstate); | |
8210 | if (PyErr_Occurred()) SWIG_fail; | |
8211 | } | |
8212 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 ); | |
8213 | return resultobj; | |
8214 | fail: | |
8215 | return NULL; | |
8216 | } | |
8217 | ||
8218 | ||
8219 | SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8220 | PyObject *resultobj = 0; | |
8221 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
8222 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8223 | int arg3 = (int) -1 ; | |
8224 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8225 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8226 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8227 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8228 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8229 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8230 | long arg7 = (long) 0 ; | |
8231 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
8232 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8233 | bool result; | |
8234 | void *argp1 = 0 ; | |
8235 | int res1 = 0 ; | |
8236 | void *argp2 = 0 ; | |
8237 | int res2 = 0 ; | |
8238 | int val3 ; | |
8239 | int ecode3 = 0 ; | |
8240 | bool temp4 = false ; | |
8241 | wxPoint temp5 ; | |
8242 | wxSize temp6 ; | |
8243 | long val7 ; | |
8244 | int ecode7 = 0 ; | |
8245 | bool temp8 = false ; | |
8246 | PyObject * obj0 = 0 ; | |
8247 | PyObject * obj1 = 0 ; | |
8248 | PyObject * obj2 = 0 ; | |
8249 | PyObject * obj3 = 0 ; | |
8250 | PyObject * obj4 = 0 ; | |
8251 | PyObject * obj5 = 0 ; | |
8252 | PyObject * obj6 = 0 ; | |
8253 | PyObject * obj7 = 0 ; | |
8254 | char * kwnames[] = { | |
8255 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8256 | }; | |
8257 | ||
8258 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8259 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 ); | |
8260 | if (!SWIG_IsOK(res1)) { | |
8261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'"); | |
8262 | } | |
8263 | arg1 = reinterpret_cast< wxStaticText * >(argp1); | |
8264 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8265 | if (!SWIG_IsOK(res2)) { | |
8266 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8267 | } | |
8268 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8269 | if (obj2) { | |
8270 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8271 | if (!SWIG_IsOK(ecode3)) { | |
8272 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'"); | |
8273 | } | |
8274 | arg3 = static_cast< int >(val3); | |
8275 | } | |
8276 | if (obj3) { | |
d14a1e28 | 8277 | { |
0085ce49 RD |
8278 | arg4 = wxString_in_helper(obj3); |
8279 | if (arg4 == NULL) SWIG_fail; | |
8280 | temp4 = true; | |
8281 | } | |
8282 | } | |
8283 | if (obj4) { | |
8284 | { | |
8285 | arg5 = &temp5; | |
8286 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 8287 | } |
0085ce49 RD |
8288 | } |
8289 | if (obj5) { | |
093d3ff1 | 8290 | { |
0085ce49 RD |
8291 | arg6 = &temp6; |
8292 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
093d3ff1 | 8293 | } |
0085ce49 RD |
8294 | } |
8295 | if (obj6) { | |
8296 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8297 | if (!SWIG_IsOK(ecode7)) { | |
8298 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'"); | |
8299 | } | |
8300 | arg7 = static_cast< long >(val7); | |
8301 | } | |
8302 | if (obj7) { | |
093d3ff1 | 8303 | { |
0085ce49 RD |
8304 | arg8 = wxString_in_helper(obj7); |
8305 | if (arg8 == NULL) SWIG_fail; | |
8306 | temp8 = true; | |
8307 | } | |
8308 | } | |
8309 | { | |
8310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8311 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8312 | wxPyEndAllowThreads(__tstate); | |
8313 | if (PyErr_Occurred()) SWIG_fail; | |
8314 | } | |
8315 | { | |
8316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8317 | } | |
8318 | { | |
8319 | if (temp4) | |
8320 | delete arg4; | |
8321 | } | |
8322 | { | |
8323 | if (temp8) | |
8324 | delete arg8; | |
8325 | } | |
8326 | return resultobj; | |
8327 | fail: | |
8328 | { | |
8329 | if (temp4) | |
8330 | delete arg4; | |
8331 | } | |
8332 | { | |
8333 | if (temp8) | |
8334 | delete arg8; | |
8335 | } | |
8336 | return NULL; | |
8337 | } | |
8338 | ||
8339 | ||
8340 | SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8341 | PyObject *resultobj = 0; | |
8342 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
8343 | int arg2 ; | |
8344 | void *argp1 = 0 ; | |
8345 | int res1 = 0 ; | |
8346 | int val2 ; | |
8347 | int ecode2 = 0 ; | |
8348 | PyObject * obj0 = 0 ; | |
8349 | PyObject * obj1 = 0 ; | |
8350 | char * kwnames[] = { | |
8351 | (char *) "self",(char *) "width", NULL | |
8352 | }; | |
8353 | ||
8354 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8355 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 ); | |
8356 | if (!SWIG_IsOK(res1)) { | |
8357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'"); | |
8358 | } | |
8359 | arg1 = reinterpret_cast< wxStaticText * >(argp1); | |
8360 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8361 | if (!SWIG_IsOK(ecode2)) { | |
8362 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'"); | |
8363 | } | |
8364 | arg2 = static_cast< int >(val2); | |
8365 | { | |
8366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8367 | (arg1)->Wrap(arg2); | |
8368 | wxPyEndAllowThreads(__tstate); | |
8369 | if (PyErr_Occurred()) SWIG_fail; | |
8370 | } | |
8371 | resultobj = SWIG_Py_Void(); | |
8372 | return resultobj; | |
8373 | fail: | |
8374 | return NULL; | |
8375 | } | |
8376 | ||
8377 | ||
8378 | SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8379 | PyObject *resultobj = 0; | |
8380 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8381 | SwigValueWrapper<wxVisualAttributes > result; | |
8382 | int val1 ; | |
8383 | int ecode1 = 0 ; | |
8384 | PyObject * obj0 = 0 ; | |
8385 | char * kwnames[] = { | |
8386 | (char *) "variant", NULL | |
8387 | }; | |
8388 | ||
8389 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8390 | if (obj0) { | |
8391 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8392 | if (!SWIG_IsOK(ecode1)) { | |
8393 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8394 | } | |
8395 | arg1 = static_cast< wxWindowVariant >(val1); | |
8396 | } | |
8397 | { | |
8398 | if (!wxPyCheckForApp()) SWIG_fail; | |
8399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8400 | result = wxStaticText::GetClassDefaultAttributes(arg1); | |
8401 | wxPyEndAllowThreads(__tstate); | |
8402 | if (PyErr_Occurred()) SWIG_fail; | |
8403 | } | |
8404 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8405 | return resultobj; | |
8406 | fail: | |
8407 | return NULL; | |
8408 | } | |
8409 | ||
8410 | ||
8411 | SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8412 | PyObject *obj; | |
8413 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8414 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj)); | |
8415 | return SWIG_Py_Void(); | |
8416 | } | |
8417 | ||
8418 | SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8419 | return SWIG_Python_InitShadowInstance(args); | |
8420 | } | |
8421 | ||
8422 | SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8423 | PyObject *resultobj = 0; | |
8424 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8425 | int arg2 = (int) -1 ; | |
8426 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
8427 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
8428 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8429 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8430 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8431 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8432 | long arg6 = (long) 0 ; | |
8433 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
8434 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8435 | wxStaticBitmap *result = 0 ; | |
8436 | void *argp1 = 0 ; | |
8437 | int res1 = 0 ; | |
8438 | int val2 ; | |
8439 | int ecode2 = 0 ; | |
8440 | void *argp3 = 0 ; | |
8441 | int res3 = 0 ; | |
8442 | wxPoint temp4 ; | |
8443 | wxSize temp5 ; | |
8444 | long val6 ; | |
8445 | int ecode6 = 0 ; | |
8446 | bool temp7 = false ; | |
8447 | PyObject * obj0 = 0 ; | |
8448 | PyObject * obj1 = 0 ; | |
8449 | PyObject * obj2 = 0 ; | |
8450 | PyObject * obj3 = 0 ; | |
8451 | PyObject * obj4 = 0 ; | |
8452 | PyObject * obj5 = 0 ; | |
8453 | PyObject * obj6 = 0 ; | |
8454 | char * kwnames[] = { | |
8455 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8456 | }; | |
8457 | ||
8458 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
8459 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8460 | if (!SWIG_IsOK(res1)) { | |
8461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8462 | } | |
8463 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8464 | if (obj1) { | |
8465 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8466 | if (!SWIG_IsOK(ecode2)) { | |
8467 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'"); | |
8468 | } | |
8469 | arg2 = static_cast< int >(val2); | |
8470 | } | |
8471 | if (obj2) { | |
8472 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8473 | if (!SWIG_IsOK(res3)) { | |
8474 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
8475 | } | |
8476 | if (!argp3) { | |
8477 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 8478 | } |
0085ce49 RD |
8479 | arg3 = reinterpret_cast< wxBitmap * >(argp3); |
8480 | } | |
8481 | if (obj3) { | |
d14a1e28 | 8482 | { |
0085ce49 RD |
8483 | arg4 = &temp4; |
8484 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 8485 | } |
0085ce49 RD |
8486 | } |
8487 | if (obj4) { | |
d14a1e28 | 8488 | { |
0085ce49 RD |
8489 | arg5 = &temp5; |
8490 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 8491 | } |
0085ce49 RD |
8492 | } |
8493 | if (obj5) { | |
8494 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8495 | if (!SWIG_IsOK(ecode6)) { | |
8496 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'"); | |
8497 | } | |
8498 | arg6 = static_cast< long >(val6); | |
8499 | } | |
8500 | if (obj6) { | |
093d3ff1 | 8501 | { |
0085ce49 RD |
8502 | arg7 = wxString_in_helper(obj6); |
8503 | if (arg7 == NULL) SWIG_fail; | |
8504 | temp7 = true; | |
093d3ff1 | 8505 | } |
0085ce49 RD |
8506 | } |
8507 | { | |
8508 | if (!wxPyCheckForApp()) SWIG_fail; | |
8509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8510 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8511 | wxPyEndAllowThreads(__tstate); | |
8512 | if (PyErr_Occurred()) SWIG_fail; | |
8513 | } | |
8514 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 ); | |
8515 | { | |
8516 | if (temp7) | |
8517 | delete arg7; | |
8518 | } | |
8519 | return resultobj; | |
8520 | fail: | |
8521 | { | |
8522 | if (temp7) | |
8523 | delete arg7; | |
8524 | } | |
8525 | return NULL; | |
d14a1e28 RD |
8526 | } |
8527 | ||
8528 | ||
0085ce49 RD |
8529 | SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8530 | PyObject *resultobj = 0; | |
8531 | wxStaticBitmap *result = 0 ; | |
8532 | ||
8533 | if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail; | |
8534 | { | |
8535 | if (!wxPyCheckForApp()) SWIG_fail; | |
8536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8537 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
8538 | wxPyEndAllowThreads(__tstate); | |
8539 | if (PyErr_Occurred()) SWIG_fail; | |
8540 | } | |
8541 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 ); | |
8542 | return resultobj; | |
8543 | fail: | |
8544 | return NULL; | |
8545 | } | |
8546 | ||
8547 | ||
8548 | SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8549 | PyObject *resultobj = 0; | |
8550 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8551 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8552 | int arg3 = (int) -1 ; | |
8553 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
8554 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
8555 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8556 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8557 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8558 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8559 | long arg7 = (long) 0 ; | |
8560 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
8561 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8562 | bool result; | |
8563 | void *argp1 = 0 ; | |
8564 | int res1 = 0 ; | |
8565 | void *argp2 = 0 ; | |
8566 | int res2 = 0 ; | |
8567 | int val3 ; | |
8568 | int ecode3 = 0 ; | |
8569 | void *argp4 = 0 ; | |
8570 | int res4 = 0 ; | |
8571 | wxPoint temp5 ; | |
8572 | wxSize temp6 ; | |
8573 | long val7 ; | |
8574 | int ecode7 = 0 ; | |
8575 | bool temp8 = false ; | |
8576 | PyObject * obj0 = 0 ; | |
8577 | PyObject * obj1 = 0 ; | |
8578 | PyObject * obj2 = 0 ; | |
8579 | PyObject * obj3 = 0 ; | |
8580 | PyObject * obj4 = 0 ; | |
8581 | PyObject * obj5 = 0 ; | |
8582 | PyObject * obj6 = 0 ; | |
8583 | PyObject * obj7 = 0 ; | |
8584 | char * kwnames[] = { | |
8585 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8586 | }; | |
8587 | ||
8588 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8589 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8590 | if (!SWIG_IsOK(res1)) { | |
8591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8592 | } | |
8593 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8594 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8595 | if (!SWIG_IsOK(res2)) { | |
8596 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8597 | } | |
8598 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8599 | if (obj2) { | |
8600 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8601 | if (!SWIG_IsOK(ecode3)) { | |
8602 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'"); | |
8603 | } | |
8604 | arg3 = static_cast< int >(val3); | |
8605 | } | |
8606 | if (obj3) { | |
8607 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8608 | if (!SWIG_IsOK(res4)) { | |
8609 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
8610 | } | |
8611 | if (!argp4) { | |
8612 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
22bfe96c | 8613 | } |
0085ce49 RD |
8614 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
8615 | } | |
8616 | if (obj4) { | |
22bfe96c | 8617 | { |
0085ce49 RD |
8618 | arg5 = &temp5; |
8619 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
22bfe96c | 8620 | } |
0085ce49 RD |
8621 | } |
8622 | if (obj5) { | |
22bfe96c | 8623 | { |
0085ce49 RD |
8624 | arg6 = &temp6; |
8625 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
22bfe96c | 8626 | } |
0085ce49 RD |
8627 | } |
8628 | if (obj6) { | |
8629 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8630 | if (!SWIG_IsOK(ecode7)) { | |
8631 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'"); | |
8632 | } | |
8633 | arg7 = static_cast< long >(val7); | |
8634 | } | |
8635 | if (obj7) { | |
b2dc1044 | 8636 | { |
0085ce49 RD |
8637 | arg8 = wxString_in_helper(obj7); |
8638 | if (arg8 == NULL) SWIG_fail; | |
8639 | temp8 = true; | |
b2dc1044 | 8640 | } |
0085ce49 RD |
8641 | } |
8642 | { | |
8643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8644 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8645 | wxPyEndAllowThreads(__tstate); | |
8646 | if (PyErr_Occurred()) SWIG_fail; | |
8647 | } | |
8648 | { | |
8649 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8650 | } | |
8651 | { | |
8652 | if (temp8) | |
8653 | delete arg8; | |
8654 | } | |
8655 | return resultobj; | |
8656 | fail: | |
8657 | { | |
8658 | if (temp8) | |
8659 | delete arg8; | |
8660 | } | |
8661 | return NULL; | |
b2dc1044 RD |
8662 | } |
8663 | ||
8664 | ||
0085ce49 RD |
8665 | SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8666 | PyObject *resultobj = 0; | |
8667 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8668 | wxBitmap result; | |
8669 | void *argp1 = 0 ; | |
8670 | int res1 = 0 ; | |
8671 | PyObject *swig_obj[1] ; | |
8672 | ||
8673 | if (!args) SWIG_fail; | |
8674 | swig_obj[0] = args; | |
8675 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8676 | if (!SWIG_IsOK(res1)) { | |
8677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8678 | } | |
8679 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8680 | { | |
8681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8682 | result = (arg1)->GetBitmap(); | |
8683 | wxPyEndAllowThreads(__tstate); | |
8684 | if (PyErr_Occurred()) SWIG_fail; | |
8685 | } | |
8686 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
8687 | return resultobj; | |
8688 | fail: | |
8689 | return NULL; | |
8690 | } | |
8691 | ||
8692 | ||
8693 | SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8694 | PyObject *resultobj = 0; | |
8695 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8696 | wxBitmap *arg2 = 0 ; | |
8697 | void *argp1 = 0 ; | |
8698 | int res1 = 0 ; | |
8699 | void *argp2 = 0 ; | |
8700 | int res2 = 0 ; | |
8701 | PyObject * obj0 = 0 ; | |
8702 | PyObject * obj1 = 0 ; | |
8703 | char * kwnames[] = { | |
8704 | (char *) "self",(char *) "bitmap", NULL | |
8705 | }; | |
8706 | ||
8707 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8708 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8709 | if (!SWIG_IsOK(res1)) { | |
8710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8711 | } | |
8712 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8713 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8714 | if (!SWIG_IsOK(res2)) { | |
8715 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8716 | } | |
8717 | if (!argp2) { | |
8718 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8719 | } | |
8720 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8721 | { | |
8722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8723 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
8724 | wxPyEndAllowThreads(__tstate); | |
8725 | if (PyErr_Occurred()) SWIG_fail; | |
8726 | } | |
8727 | resultobj = SWIG_Py_Void(); | |
8728 | return resultobj; | |
8729 | fail: | |
8730 | return NULL; | |
8731 | } | |
8732 | ||
8733 | ||
8734 | SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8735 | PyObject *resultobj = 0; | |
8736 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
8737 | wxIcon *arg2 = 0 ; | |
8738 | void *argp1 = 0 ; | |
8739 | int res1 = 0 ; | |
8740 | void *argp2 = 0 ; | |
8741 | int res2 = 0 ; | |
8742 | PyObject * obj0 = 0 ; | |
8743 | PyObject * obj1 = 0 ; | |
8744 | char * kwnames[] = { | |
8745 | (char *) "self",(char *) "icon", NULL | |
8746 | }; | |
8747 | ||
8748 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
8749 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 ); | |
8750 | if (!SWIG_IsOK(res1)) { | |
8751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'"); | |
8752 | } | |
8753 | arg1 = reinterpret_cast< wxStaticBitmap * >(argp1); | |
8754 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
8755 | if (!SWIG_IsOK(res2)) { | |
8756 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
8757 | } | |
8758 | if (!argp2) { | |
8759 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
8760 | } | |
8761 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
8762 | { | |
8763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8764 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
8765 | wxPyEndAllowThreads(__tstate); | |
8766 | if (PyErr_Occurred()) SWIG_fail; | |
8767 | } | |
8768 | resultobj = SWIG_Py_Void(); | |
8769 | return resultobj; | |
8770 | fail: | |
8771 | return NULL; | |
8772 | } | |
8773 | ||
8774 | ||
8775 | SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8776 | PyObject *resultobj = 0; | |
8777 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8778 | SwigValueWrapper<wxVisualAttributes > result; | |
8779 | int val1 ; | |
8780 | int ecode1 = 0 ; | |
8781 | PyObject * obj0 = 0 ; | |
8782 | char * kwnames[] = { | |
8783 | (char *) "variant", NULL | |
8784 | }; | |
8785 | ||
8786 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8787 | if (obj0) { | |
8788 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8789 | if (!SWIG_IsOK(ecode1)) { | |
8790 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8791 | } | |
8792 | arg1 = static_cast< wxWindowVariant >(val1); | |
8793 | } | |
8794 | { | |
8795 | if (!wxPyCheckForApp()) SWIG_fail; | |
8796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8797 | result = wxStaticBitmap::GetClassDefaultAttributes(arg1); | |
8798 | wxPyEndAllowThreads(__tstate); | |
8799 | if (PyErr_Occurred()) SWIG_fail; | |
8800 | } | |
8801 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8802 | return resultobj; | |
8803 | fail: | |
8804 | return NULL; | |
b2dc1044 RD |
8805 | } |
8806 | ||
8807 | ||
0085ce49 RD |
8808 | SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8809 | PyObject *obj; | |
8810 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8811 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj)); | |
8812 | return SWIG_Py_Void(); | |
b2dc1044 RD |
8813 | } |
8814 | ||
0085ce49 RD |
8815 | SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8816 | return SWIG_Python_InitShadowInstance(args); | |
8817 | } | |
b2dc1044 | 8818 | |
0085ce49 RD |
8819 | SWIGINTERN int ListBoxNameStr_set(PyObject *) { |
8820 | SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only."); | |
8821 | return 1; | |
b2dc1044 RD |
8822 | } |
8823 | ||
8824 | ||
0085ce49 RD |
8825 | SWIGINTERN PyObject *ListBoxNameStr_get(void) { |
8826 | PyObject *pyobj = 0; | |
8827 | ||
8828 | { | |
b2dc1044 | 8829 | #if wxUSE_UNICODE |
0085ce49 | 8830 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); |
b2dc1044 | 8831 | #else |
0085ce49 | 8832 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); |
b2dc1044 | 8833 | #endif |
0085ce49 RD |
8834 | } |
8835 | return pyobj; | |
8836 | } | |
8837 | ||
8838 | ||
8839 | SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8840 | PyObject *resultobj = 0; | |
8841 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8842 | int arg2 = (int) -1 ; | |
8843 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8844 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8845 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8846 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8847 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
8848 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
8849 | long arg6 = (long) 0 ; | |
8850 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8851 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8852 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
8853 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8854 | wxListBox *result = 0 ; | |
8855 | void *argp1 = 0 ; | |
8856 | int res1 = 0 ; | |
8857 | int val2 ; | |
8858 | int ecode2 = 0 ; | |
8859 | wxPoint temp3 ; | |
8860 | wxSize temp4 ; | |
8861 | bool temp5 = false ; | |
8862 | long val6 ; | |
8863 | int ecode6 = 0 ; | |
8864 | void *argp7 = 0 ; | |
8865 | int res7 = 0 ; | |
8866 | bool temp8 = false ; | |
8867 | PyObject * obj0 = 0 ; | |
8868 | PyObject * obj1 = 0 ; | |
8869 | PyObject * obj2 = 0 ; | |
8870 | PyObject * obj3 = 0 ; | |
8871 | PyObject * obj4 = 0 ; | |
8872 | PyObject * obj5 = 0 ; | |
8873 | PyObject * obj6 = 0 ; | |
8874 | PyObject * obj7 = 0 ; | |
8875 | char * kwnames[] = { | |
8876 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8877 | }; | |
8878 | ||
8879 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8880 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8881 | if (!SWIG_IsOK(res1)) { | |
8882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8883 | } | |
8884 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8885 | if (obj1) { | |
8886 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8887 | if (!SWIG_IsOK(ecode2)) { | |
8888 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'"); | |
8889 | } | |
8890 | arg2 = static_cast< int >(val2); | |
8891 | } | |
8892 | if (obj2) { | |
d14a1e28 | 8893 | { |
0085ce49 RD |
8894 | arg3 = &temp3; |
8895 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 8896 | } |
0085ce49 RD |
8897 | } |
8898 | if (obj3) { | |
d14a1e28 | 8899 | { |
0085ce49 RD |
8900 | arg4 = &temp4; |
8901 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 8902 | } |
0085ce49 RD |
8903 | } |
8904 | if (obj4) { | |
d14a1e28 | 8905 | { |
0085ce49 RD |
8906 | if (! PySequence_Check(obj4)) { |
8907 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8908 | SWIG_fail; | |
8909 | } | |
8910 | arg5 = new wxArrayString; | |
8911 | temp5 = true; | |
8912 | int i, len=PySequence_Length(obj4); | |
8913 | for (i=0; i<len; i++) { | |
8914 | PyObject* item = PySequence_GetItem(obj4, i); | |
8915 | wxString* s = wxString_in_helper(item); | |
8916 | if (PyErr_Occurred()) SWIG_fail; | |
8917 | arg5->Add(*s); | |
8918 | delete s; | |
8919 | Py_DECREF(item); | |
8920 | } | |
d14a1e28 | 8921 | } |
0085ce49 RD |
8922 | } |
8923 | if (obj5) { | |
8924 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8925 | if (!SWIG_IsOK(ecode6)) { | |
8926 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'"); | |
8927 | } | |
8928 | arg6 = static_cast< long >(val6); | |
8929 | } | |
8930 | if (obj6) { | |
8931 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
8932 | if (!SWIG_IsOK(res7)) { | |
8933 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 8934 | } |
0085ce49 RD |
8935 | if (!argp7) { |
8936 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 8937 | } |
0085ce49 RD |
8938 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
8939 | } | |
8940 | if (obj7) { | |
d14a1e28 | 8941 | { |
0085ce49 RD |
8942 | arg8 = wxString_in_helper(obj7); |
8943 | if (arg8 == NULL) SWIG_fail; | |
8944 | temp8 = true; | |
d14a1e28 | 8945 | } |
0085ce49 RD |
8946 | } |
8947 | { | |
8948 | if (!wxPyCheckForApp()) SWIG_fail; | |
8949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8950 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8951 | wxPyEndAllowThreads(__tstate); | |
8952 | if (PyErr_Occurred()) SWIG_fail; | |
8953 | } | |
8954 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 ); | |
8955 | { | |
8956 | if (temp5) delete arg5; | |
8957 | } | |
8958 | { | |
8959 | if (temp8) | |
8960 | delete arg8; | |
8961 | } | |
8962 | return resultobj; | |
8963 | fail: | |
8964 | { | |
8965 | if (temp5) delete arg5; | |
8966 | } | |
8967 | { | |
8968 | if (temp8) | |
8969 | delete arg8; | |
8970 | } | |
8971 | return NULL; | |
d14a1e28 RD |
8972 | } |
8973 | ||
8974 | ||
0085ce49 RD |
8975 | SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8976 | PyObject *resultobj = 0; | |
8977 | wxListBox *result = 0 ; | |
8978 | ||
8979 | if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail; | |
8980 | { | |
8981 | if (!wxPyCheckForApp()) SWIG_fail; | |
8982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8983 | result = (wxListBox *)new wxListBox(); | |
8984 | wxPyEndAllowThreads(__tstate); | |
8985 | if (PyErr_Occurred()) SWIG_fail; | |
8986 | } | |
8987 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 ); | |
8988 | return resultobj; | |
8989 | fail: | |
8990 | return NULL; | |
8991 | } | |
8992 | ||
8993 | ||
8994 | SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8995 | PyObject *resultobj = 0; | |
8996 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8997 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8998 | int arg3 = (int) -1 ; | |
8999 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9000 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9001 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9002 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9003 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
9004 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
9005 | long arg7 = (long) 0 ; | |
9006 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
9007 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
9008 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
9009 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
9010 | bool result; | |
9011 | void *argp1 = 0 ; | |
9012 | int res1 = 0 ; | |
9013 | void *argp2 = 0 ; | |
9014 | int res2 = 0 ; | |
9015 | int val3 ; | |
9016 | int ecode3 = 0 ; | |
9017 | wxPoint temp4 ; | |
9018 | wxSize temp5 ; | |
9019 | bool temp6 = false ; | |
9020 | long val7 ; | |
9021 | int ecode7 = 0 ; | |
9022 | void *argp8 = 0 ; | |
9023 | int res8 = 0 ; | |
9024 | bool temp9 = false ; | |
9025 | PyObject * obj0 = 0 ; | |
9026 | PyObject * obj1 = 0 ; | |
9027 | PyObject * obj2 = 0 ; | |
9028 | PyObject * obj3 = 0 ; | |
9029 | PyObject * obj4 = 0 ; | |
9030 | PyObject * obj5 = 0 ; | |
9031 | PyObject * obj6 = 0 ; | |
9032 | PyObject * obj7 = 0 ; | |
9033 | PyObject * obj8 = 0 ; | |
9034 | char * kwnames[] = { | |
9035 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9036 | }; | |
9037 | ||
9038 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
9039 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9040 | if (!SWIG_IsOK(res1)) { | |
9041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9042 | } | |
9043 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9044 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9045 | if (!SWIG_IsOK(res2)) { | |
9046 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9047 | } | |
9048 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9049 | if (obj2) { | |
9050 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9051 | if (!SWIG_IsOK(ecode3)) { | |
9052 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
9053 | } | |
9054 | arg3 = static_cast< int >(val3); | |
9055 | } | |
9056 | if (obj3) { | |
d14a1e28 | 9057 | { |
0085ce49 RD |
9058 | arg4 = &temp4; |
9059 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 9060 | } |
0085ce49 RD |
9061 | } |
9062 | if (obj4) { | |
d14a1e28 | 9063 | { |
0085ce49 RD |
9064 | arg5 = &temp5; |
9065 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 9066 | } |
0085ce49 RD |
9067 | } |
9068 | if (obj5) { | |
d14a1e28 | 9069 | { |
0085ce49 RD |
9070 | if (! PySequence_Check(obj5)) { |
9071 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9072 | SWIG_fail; | |
9073 | } | |
9074 | arg6 = new wxArrayString; | |
9075 | temp6 = true; | |
9076 | int i, len=PySequence_Length(obj5); | |
9077 | for (i=0; i<len; i++) { | |
9078 | PyObject* item = PySequence_GetItem(obj5, i); | |
9079 | wxString* s = wxString_in_helper(item); | |
9080 | if (PyErr_Occurred()) SWIG_fail; | |
9081 | arg6->Add(*s); | |
9082 | delete s; | |
9083 | Py_DECREF(item); | |
9084 | } | |
d14a1e28 | 9085 | } |
0085ce49 RD |
9086 | } |
9087 | if (obj6) { | |
9088 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
9089 | if (!SWIG_IsOK(ecode7)) { | |
9090 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
9091 | } | |
9092 | arg7 = static_cast< long >(val7); | |
9093 | } | |
9094 | if (obj7) { | |
9095 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
9096 | if (!SWIG_IsOK(res8)) { | |
9097 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 9098 | } |
0085ce49 RD |
9099 | if (!argp8) { |
9100 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
22bfe96c | 9101 | } |
0085ce49 RD |
9102 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
9103 | } | |
9104 | if (obj8) { | |
22bfe96c | 9105 | { |
0085ce49 RD |
9106 | arg9 = wxString_in_helper(obj8); |
9107 | if (arg9 == NULL) SWIG_fail; | |
9108 | temp9 = true; | |
22bfe96c | 9109 | } |
0085ce49 RD |
9110 | } |
9111 | { | |
9112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9113 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
9114 | wxPyEndAllowThreads(__tstate); | |
9115 | if (PyErr_Occurred()) SWIG_fail; | |
9116 | } | |
9117 | { | |
9118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9119 | } | |
9120 | { | |
9121 | if (temp6) delete arg6; | |
9122 | } | |
9123 | { | |
9124 | if (temp9) | |
9125 | delete arg9; | |
9126 | } | |
9127 | return resultobj; | |
9128 | fail: | |
9129 | { | |
9130 | if (temp6) delete arg6; | |
9131 | } | |
9132 | { | |
9133 | if (temp9) | |
9134 | delete arg9; | |
9135 | } | |
9136 | return NULL; | |
9137 | } | |
9138 | ||
9139 | ||
9140 | SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9141 | PyObject *resultobj = 0; | |
9142 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9143 | wxString *arg2 = 0 ; | |
9144 | int arg3 ; | |
9145 | PyObject *arg4 = (PyObject *) NULL ; | |
9146 | void *argp1 = 0 ; | |
9147 | int res1 = 0 ; | |
9148 | bool temp2 = false ; | |
9149 | int val3 ; | |
9150 | int ecode3 = 0 ; | |
9151 | PyObject * obj0 = 0 ; | |
9152 | PyObject * obj1 = 0 ; | |
9153 | PyObject * obj2 = 0 ; | |
9154 | PyObject * obj3 = 0 ; | |
9155 | char * kwnames[] = { | |
9156 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
9157 | }; | |
9158 | ||
9159 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9160 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9161 | if (!SWIG_IsOK(res1)) { | |
9162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9163 | } | |
9164 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9165 | { | |
9166 | arg2 = wxString_in_helper(obj1); | |
9167 | if (arg2 == NULL) SWIG_fail; | |
9168 | temp2 = true; | |
9169 | } | |
9170 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9171 | if (!SWIG_IsOK(ecode3)) { | |
9172 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'"); | |
9173 | } | |
9174 | arg3 = static_cast< int >(val3); | |
9175 | if (obj3) { | |
9176 | arg4 = obj3; | |
9177 | } | |
9178 | { | |
9179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9180 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
9181 | wxPyEndAllowThreads(__tstate); | |
9182 | if (PyErr_Occurred()) SWIG_fail; | |
9183 | } | |
9184 | resultobj = SWIG_Py_Void(); | |
9185 | { | |
9186 | if (temp2) | |
9187 | delete arg2; | |
9188 | } | |
9189 | return resultobj; | |
9190 | fail: | |
9191 | { | |
9192 | if (temp2) | |
9193 | delete arg2; | |
9194 | } | |
9195 | return NULL; | |
9196 | } | |
9197 | ||
9198 | ||
9199 | SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9200 | PyObject *resultobj = 0; | |
9201 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9202 | wxArrayString *arg2 = 0 ; | |
50f151d7 | 9203 | unsigned int arg3 ; |
0085ce49 RD |
9204 | void *argp1 = 0 ; |
9205 | int res1 = 0 ; | |
9206 | bool temp2 = false ; | |
50f151d7 | 9207 | unsigned int val3 ; |
0085ce49 RD |
9208 | int ecode3 = 0 ; |
9209 | PyObject * obj0 = 0 ; | |
9210 | PyObject * obj1 = 0 ; | |
9211 | PyObject * obj2 = 0 ; | |
9212 | char * kwnames[] = { | |
9213 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
9214 | }; | |
9215 | ||
9216 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9217 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9218 | if (!SWIG_IsOK(res1)) { | |
9219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9220 | } | |
9221 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9222 | { | |
9223 | if (! PySequence_Check(obj1)) { | |
9224 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9225 | SWIG_fail; | |
9226 | } | |
9227 | arg2 = new wxArrayString; | |
9228 | temp2 = true; | |
9229 | int i, len=PySequence_Length(obj1); | |
9230 | for (i=0; i<len; i++) { | |
9231 | PyObject* item = PySequence_GetItem(obj1, i); | |
9232 | wxString* s = wxString_in_helper(item); | |
9233 | if (PyErr_Occurred()) SWIG_fail; | |
9234 | arg2->Add(*s); | |
9235 | delete s; | |
9236 | Py_DECREF(item); | |
22bfe96c | 9237 | } |
0085ce49 | 9238 | } |
50f151d7 | 9239 | ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); |
0085ce49 | 9240 | if (!SWIG_IsOK(ecode3)) { |
50f151d7 | 9241 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'"); |
0085ce49 | 9242 | } |
50f151d7 | 9243 | arg3 = static_cast< unsigned int >(val3); |
0085ce49 RD |
9244 | { |
9245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9246 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
9247 | wxPyEndAllowThreads(__tstate); | |
9248 | if (PyErr_Occurred()) SWIG_fail; | |
9249 | } | |
9250 | resultobj = SWIG_Py_Void(); | |
9251 | { | |
9252 | if (temp2) delete arg2; | |
9253 | } | |
9254 | return resultobj; | |
9255 | fail: | |
9256 | { | |
9257 | if (temp2) delete arg2; | |
9258 | } | |
9259 | return NULL; | |
22bfe96c RD |
9260 | } |
9261 | ||
9262 | ||
0085ce49 RD |
9263 | SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9264 | PyObject *resultobj = 0; | |
9265 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9266 | wxArrayString *arg2 = 0 ; | |
9267 | void *argp1 = 0 ; | |
9268 | int res1 = 0 ; | |
9269 | bool temp2 = false ; | |
9270 | PyObject * obj0 = 0 ; | |
9271 | PyObject * obj1 = 0 ; | |
9272 | char * kwnames[] = { | |
9273 | (char *) "self",(char *) "items", NULL | |
9274 | }; | |
9275 | ||
9276 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail; | |
9277 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9278 | if (!SWIG_IsOK(res1)) { | |
9279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9280 | } | |
9281 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9282 | { | |
9283 | if (! PySequence_Check(obj1)) { | |
9284 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9285 | SWIG_fail; | |
9286 | } | |
9287 | arg2 = new wxArrayString; | |
9288 | temp2 = true; | |
9289 | int i, len=PySequence_Length(obj1); | |
9290 | for (i=0; i<len; i++) { | |
9291 | PyObject* item = PySequence_GetItem(obj1, i); | |
9292 | wxString* s = wxString_in_helper(item); | |
9293 | if (PyErr_Occurred()) SWIG_fail; | |
9294 | arg2->Add(*s); | |
9295 | delete s; | |
9296 | Py_DECREF(item); | |
d14a1e28 | 9297 | } |
0085ce49 RD |
9298 | } |
9299 | { | |
9300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9301 | (arg1)->Set((wxArrayString const &)*arg2); | |
9302 | wxPyEndAllowThreads(__tstate); | |
9303 | if (PyErr_Occurred()) SWIG_fail; | |
9304 | } | |
9305 | resultobj = SWIG_Py_Void(); | |
9306 | { | |
9307 | if (temp2) delete arg2; | |
9308 | } | |
9309 | return resultobj; | |
9310 | fail: | |
9311 | { | |
9312 | if (temp2) delete arg2; | |
9313 | } | |
9314 | return NULL; | |
9315 | } | |
9316 | ||
9317 | ||
9318 | SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9319 | PyObject *resultobj = 0; | |
9320 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9321 | int arg2 ; | |
9322 | bool result; | |
9323 | void *argp1 = 0 ; | |
9324 | int res1 = 0 ; | |
9325 | int val2 ; | |
9326 | int ecode2 = 0 ; | |
9327 | PyObject * obj0 = 0 ; | |
9328 | PyObject * obj1 = 0 ; | |
9329 | char * kwnames[] = { | |
9330 | (char *) "self",(char *) "n", NULL | |
9331 | }; | |
9332 | ||
9333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
9334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9335 | if (!SWIG_IsOK(res1)) { | |
9336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9337 | } | |
9338 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9339 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9340 | if (!SWIG_IsOK(ecode2)) { | |
9341 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'"); | |
9342 | } | |
9343 | arg2 = static_cast< int >(val2); | |
9344 | { | |
9345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9346 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
9347 | wxPyEndAllowThreads(__tstate); | |
9348 | if (PyErr_Occurred()) SWIG_fail; | |
9349 | } | |
9350 | { | |
9351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9352 | } | |
9353 | return resultobj; | |
9354 | fail: | |
9355 | return NULL; | |
9356 | } | |
9357 | ||
9358 | ||
9359 | SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9360 | PyObject *resultobj = 0; | |
9361 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9362 | int arg2 ; | |
9363 | bool arg3 = (bool) true ; | |
9364 | void *argp1 = 0 ; | |
9365 | int res1 = 0 ; | |
9366 | int val2 ; | |
9367 | int ecode2 = 0 ; | |
9368 | bool val3 ; | |
9369 | int ecode3 = 0 ; | |
9370 | PyObject * obj0 = 0 ; | |
9371 | PyObject * obj1 = 0 ; | |
9372 | PyObject * obj2 = 0 ; | |
9373 | char * kwnames[] = { | |
9374 | (char *) "self",(char *) "n",(char *) "select", NULL | |
9375 | }; | |
9376 | ||
9377 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9378 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9379 | if (!SWIG_IsOK(res1)) { | |
9380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9381 | } | |
9382 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9383 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9384 | if (!SWIG_IsOK(ecode2)) { | |
9385 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
9386 | } | |
9387 | arg2 = static_cast< int >(val2); | |
9388 | if (obj2) { | |
9389 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
9390 | if (!SWIG_IsOK(ecode3)) { | |
9391 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'"); | |
9392 | } | |
9393 | arg3 = static_cast< bool >(val3); | |
9394 | } | |
9395 | { | |
9396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9397 | (arg1)->SetSelection(arg2,arg3); | |
9398 | wxPyEndAllowThreads(__tstate); | |
9399 | if (PyErr_Occurred()) SWIG_fail; | |
9400 | } | |
9401 | resultobj = SWIG_Py_Void(); | |
9402 | return resultobj; | |
9403 | fail: | |
9404 | return NULL; | |
9405 | } | |
9406 | ||
9407 | ||
9408 | SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9409 | PyObject *resultobj = 0; | |
9410 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9411 | int arg2 ; | |
9412 | void *argp1 = 0 ; | |
9413 | int res1 = 0 ; | |
9414 | int val2 ; | |
9415 | int ecode2 = 0 ; | |
9416 | PyObject * obj0 = 0 ; | |
9417 | PyObject * obj1 = 0 ; | |
9418 | char * kwnames[] = { | |
9419 | (char *) "self",(char *) "n", NULL | |
9420 | }; | |
9421 | ||
9422 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail; | |
9423 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9424 | if (!SWIG_IsOK(res1)) { | |
9425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9426 | } | |
9427 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9428 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9429 | if (!SWIG_IsOK(ecode2)) { | |
9430 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'"); | |
9431 | } | |
9432 | arg2 = static_cast< int >(val2); | |
9433 | { | |
9434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9435 | (arg1)->Select(arg2); | |
9436 | wxPyEndAllowThreads(__tstate); | |
9437 | if (PyErr_Occurred()) SWIG_fail; | |
9438 | } | |
9439 | resultobj = SWIG_Py_Void(); | |
9440 | return resultobj; | |
9441 | fail: | |
9442 | return NULL; | |
9443 | } | |
9444 | ||
9445 | ||
9446 | SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9447 | PyObject *resultobj = 0; | |
9448 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9449 | int arg2 ; | |
9450 | void *argp1 = 0 ; | |
9451 | int res1 = 0 ; | |
9452 | int val2 ; | |
9453 | int ecode2 = 0 ; | |
9454 | PyObject * obj0 = 0 ; | |
9455 | PyObject * obj1 = 0 ; | |
9456 | char * kwnames[] = { | |
9457 | (char *) "self",(char *) "n", NULL | |
9458 | }; | |
9459 | ||
9460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9462 | if (!SWIG_IsOK(res1)) { | |
9463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9464 | } | |
9465 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9466 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9467 | if (!SWIG_IsOK(ecode2)) { | |
9468 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'"); | |
9469 | } | |
9470 | arg2 = static_cast< int >(val2); | |
9471 | { | |
9472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9473 | (arg1)->Deselect(arg2); | |
9474 | wxPyEndAllowThreads(__tstate); | |
9475 | if (PyErr_Occurred()) SWIG_fail; | |
9476 | } | |
9477 | resultobj = SWIG_Py_Void(); | |
9478 | return resultobj; | |
9479 | fail: | |
9480 | return NULL; | |
9481 | } | |
9482 | ||
9483 | ||
9484 | SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9485 | PyObject *resultobj = 0; | |
9486 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9487 | int arg2 = (int) -1 ; | |
9488 | void *argp1 = 0 ; | |
9489 | int res1 = 0 ; | |
9490 | int val2 ; | |
9491 | int ecode2 = 0 ; | |
9492 | PyObject * obj0 = 0 ; | |
9493 | PyObject * obj1 = 0 ; | |
9494 | char * kwnames[] = { | |
9495 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
9496 | }; | |
9497 | ||
9498 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail; | |
9499 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9500 | if (!SWIG_IsOK(res1)) { | |
9501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9502 | } | |
9503 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9504 | if (obj1) { | |
9505 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9506 | if (!SWIG_IsOK(ecode2)) { | |
9507 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'"); | |
9508 | } | |
9509 | arg2 = static_cast< int >(val2); | |
9510 | } | |
9511 | { | |
9512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9513 | (arg1)->DeselectAll(arg2); | |
9514 | wxPyEndAllowThreads(__tstate); | |
9515 | if (PyErr_Occurred()) SWIG_fail; | |
9516 | } | |
9517 | resultobj = SWIG_Py_Void(); | |
9518 | return resultobj; | |
9519 | fail: | |
9520 | return NULL; | |
9521 | } | |
9522 | ||
9523 | ||
9524 | SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9525 | PyObject *resultobj = 0; | |
9526 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9527 | wxString *arg2 = 0 ; | |
9528 | bool arg3 = (bool) true ; | |
9529 | bool result; | |
9530 | void *argp1 = 0 ; | |
9531 | int res1 = 0 ; | |
9532 | bool temp2 = false ; | |
9533 | bool val3 ; | |
9534 | int ecode3 = 0 ; | |
9535 | PyObject * obj0 = 0 ; | |
9536 | PyObject * obj1 = 0 ; | |
9537 | PyObject * obj2 = 0 ; | |
9538 | char * kwnames[] = { | |
9539 | (char *) "self",(char *) "s",(char *) "select", NULL | |
9540 | }; | |
9541 | ||
9542 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9543 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9544 | if (!SWIG_IsOK(res1)) { | |
9545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9546 | } | |
9547 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9548 | { | |
9549 | arg2 = wxString_in_helper(obj1); | |
9550 | if (arg2 == NULL) SWIG_fail; | |
9551 | temp2 = true; | |
9552 | } | |
9553 | if (obj2) { | |
9554 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
9555 | if (!SWIG_IsOK(ecode3)) { | |
9556 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'"); | |
9557 | } | |
9558 | arg3 = static_cast< bool >(val3); | |
9559 | } | |
9560 | { | |
9561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9562 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
9563 | wxPyEndAllowThreads(__tstate); | |
9564 | if (PyErr_Occurred()) SWIG_fail; | |
9565 | } | |
9566 | { | |
9567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9568 | } | |
9569 | { | |
9570 | if (temp2) | |
9571 | delete arg2; | |
9572 | } | |
9573 | return resultobj; | |
9574 | fail: | |
9575 | { | |
9576 | if (temp2) | |
9577 | delete arg2; | |
9578 | } | |
9579 | return NULL; | |
d14a1e28 RD |
9580 | } |
9581 | ||
9582 | ||
0085ce49 RD |
9583 | SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9584 | PyObject *resultobj = 0; | |
9585 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9586 | PyObject *result = 0 ; | |
9587 | void *argp1 = 0 ; | |
9588 | int res1 = 0 ; | |
9589 | PyObject *swig_obj[1] ; | |
9590 | ||
9591 | if (!args) SWIG_fail; | |
9592 | swig_obj[0] = args; | |
9593 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9594 | if (!SWIG_IsOK(res1)) { | |
9595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9596 | } | |
9597 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9598 | { | |
9599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9600 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
9601 | wxPyEndAllowThreads(__tstate); | |
9602 | if (PyErr_Occurred()) SWIG_fail; | |
9603 | } | |
9604 | resultobj = result; | |
9605 | return resultobj; | |
9606 | fail: | |
9607 | return NULL; | |
9608 | } | |
9609 | ||
9610 | ||
9611 | SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9612 | PyObject *resultobj = 0; | |
9613 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9614 | int arg2 ; | |
9615 | void *argp1 = 0 ; | |
9616 | int res1 = 0 ; | |
9617 | int val2 ; | |
9618 | int ecode2 = 0 ; | |
9619 | PyObject * obj0 = 0 ; | |
9620 | PyObject * obj1 = 0 ; | |
9621 | char * kwnames[] = { | |
9622 | (char *) "self",(char *) "n", NULL | |
9623 | }; | |
9624 | ||
9625 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
9626 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9627 | if (!SWIG_IsOK(res1)) { | |
9628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9629 | } | |
9630 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9631 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9632 | if (!SWIG_IsOK(ecode2)) { | |
9633 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'"); | |
9634 | } | |
9635 | arg2 = static_cast< int >(val2); | |
9636 | { | |
9637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9638 | (arg1)->SetFirstItem(arg2); | |
9639 | wxPyEndAllowThreads(__tstate); | |
9640 | if (PyErr_Occurred()) SWIG_fail; | |
9641 | } | |
9642 | resultobj = SWIG_Py_Void(); | |
9643 | return resultobj; | |
9644 | fail: | |
9645 | return NULL; | |
9646 | } | |
9647 | ||
9648 | ||
9649 | SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9650 | PyObject *resultobj = 0; | |
9651 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9652 | wxString *arg2 = 0 ; | |
9653 | void *argp1 = 0 ; | |
9654 | int res1 = 0 ; | |
9655 | bool temp2 = false ; | |
9656 | PyObject * obj0 = 0 ; | |
9657 | PyObject * obj1 = 0 ; | |
9658 | char * kwnames[] = { | |
9659 | (char *) "self",(char *) "s", NULL | |
9660 | }; | |
9661 | ||
9662 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail; | |
9663 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9664 | if (!SWIG_IsOK(res1)) { | |
9665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9666 | } | |
9667 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9668 | { | |
9669 | arg2 = wxString_in_helper(obj1); | |
9670 | if (arg2 == NULL) SWIG_fail; | |
9671 | temp2 = true; | |
9672 | } | |
9673 | { | |
9674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9675 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
9676 | wxPyEndAllowThreads(__tstate); | |
9677 | if (PyErr_Occurred()) SWIG_fail; | |
9678 | } | |
9679 | resultobj = SWIG_Py_Void(); | |
9680 | { | |
9681 | if (temp2) | |
9682 | delete arg2; | |
9683 | } | |
9684 | return resultobj; | |
9685 | fail: | |
9686 | { | |
9687 | if (temp2) | |
9688 | delete arg2; | |
9689 | } | |
9690 | return NULL; | |
9691 | } | |
9692 | ||
9693 | ||
9694 | SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9695 | PyObject *resultobj = 0; | |
9696 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9697 | int arg2 ; | |
9698 | void *argp1 = 0 ; | |
9699 | int res1 = 0 ; | |
9700 | int val2 ; | |
9701 | int ecode2 = 0 ; | |
9702 | PyObject * obj0 = 0 ; | |
9703 | PyObject * obj1 = 0 ; | |
9704 | char * kwnames[] = { | |
9705 | (char *) "self",(char *) "n", NULL | |
9706 | }; | |
9707 | ||
9708 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
9709 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9710 | if (!SWIG_IsOK(res1)) { | |
9711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9712 | } | |
9713 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9714 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9715 | if (!SWIG_IsOK(ecode2)) { | |
9716 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'"); | |
9717 | } | |
9718 | arg2 = static_cast< int >(val2); | |
9719 | { | |
9720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9721 | (arg1)->EnsureVisible(arg2); | |
9722 | wxPyEndAllowThreads(__tstate); | |
9723 | if (PyErr_Occurred()) SWIG_fail; | |
9724 | } | |
9725 | resultobj = SWIG_Py_Void(); | |
9726 | return resultobj; | |
9727 | fail: | |
9728 | return NULL; | |
9729 | } | |
9730 | ||
9731 | ||
9732 | SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9733 | PyObject *resultobj = 0; | |
9734 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9735 | wxString *arg2 = 0 ; | |
9736 | void *argp1 = 0 ; | |
9737 | int res1 = 0 ; | |
9738 | bool temp2 = false ; | |
9739 | PyObject * obj0 = 0 ; | |
9740 | PyObject * obj1 = 0 ; | |
9741 | char * kwnames[] = { | |
9742 | (char *) "self",(char *) "s", NULL | |
9743 | }; | |
9744 | ||
9745 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
9746 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9747 | if (!SWIG_IsOK(res1)) { | |
9748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9749 | } | |
9750 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9751 | { | |
9752 | arg2 = wxString_in_helper(obj1); | |
9753 | if (arg2 == NULL) SWIG_fail; | |
9754 | temp2 = true; | |
9755 | } | |
9756 | { | |
9757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9758 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
9759 | wxPyEndAllowThreads(__tstate); | |
9760 | if (PyErr_Occurred()) SWIG_fail; | |
9761 | } | |
9762 | resultobj = SWIG_Py_Void(); | |
9763 | { | |
9764 | if (temp2) | |
9765 | delete arg2; | |
9766 | } | |
9767 | return resultobj; | |
9768 | fail: | |
9769 | { | |
9770 | if (temp2) | |
9771 | delete arg2; | |
9772 | } | |
9773 | return NULL; | |
d14a1e28 RD |
9774 | } |
9775 | ||
9776 | ||
0085ce49 RD |
9777 | SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9778 | PyObject *resultobj = 0; | |
9779 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9780 | bool result; | |
9781 | void *argp1 = 0 ; | |
9782 | int res1 = 0 ; | |
9783 | PyObject *swig_obj[1] ; | |
9784 | ||
9785 | if (!args) SWIG_fail; | |
9786 | swig_obj[0] = args; | |
9787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9788 | if (!SWIG_IsOK(res1)) { | |
9789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9790 | } | |
9791 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9792 | { | |
9793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9794 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
9795 | wxPyEndAllowThreads(__tstate); | |
9796 | if (PyErr_Occurred()) SWIG_fail; | |
9797 | } | |
9798 | { | |
9799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9800 | } | |
9801 | return resultobj; | |
9802 | fail: | |
9803 | return NULL; | |
9804 | } | |
9805 | ||
9806 | ||
9807 | SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9808 | PyObject *resultobj = 0; | |
9809 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9810 | wxPoint *arg2 = 0 ; | |
9811 | int result; | |
9812 | void *argp1 = 0 ; | |
9813 | int res1 = 0 ; | |
9814 | wxPoint temp2 ; | |
9815 | PyObject * obj0 = 0 ; | |
9816 | PyObject * obj1 = 0 ; | |
9817 | char * kwnames[] = { | |
9818 | (char *) "self",(char *) "pt", NULL | |
9819 | }; | |
9820 | ||
9821 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
9822 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9823 | if (!SWIG_IsOK(res1)) { | |
9824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'"); | |
9825 | } | |
9826 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9827 | { | |
9828 | arg2 = &temp2; | |
9829 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9830 | } | |
9831 | { | |
9832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9833 | result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
9834 | wxPyEndAllowThreads(__tstate); | |
9835 | if (PyErr_Occurred()) SWIG_fail; | |
9836 | } | |
9837 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9838 | return resultobj; | |
9839 | fail: | |
9840 | return NULL; | |
9841 | } | |
9842 | ||
9843 | ||
9844 | SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9845 | PyObject *resultobj = 0; | |
9846 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9847 | int arg2 ; | |
9848 | wxColour *arg3 = 0 ; | |
9849 | void *argp1 = 0 ; | |
9850 | int res1 = 0 ; | |
9851 | int val2 ; | |
9852 | int ecode2 = 0 ; | |
9853 | wxColour temp3 ; | |
9854 | PyObject * obj0 = 0 ; | |
9855 | PyObject * obj1 = 0 ; | |
9856 | PyObject * obj2 = 0 ; | |
9857 | char * kwnames[] = { | |
9858 | (char *) "self",(char *) "item",(char *) "c", NULL | |
9859 | }; | |
9860 | ||
9861 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9862 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9863 | if (!SWIG_IsOK(res1)) { | |
9864 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9865 | } | |
9866 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9867 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9868 | if (!SWIG_IsOK(ecode2)) { | |
9869 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'"); | |
9870 | } | |
9871 | arg2 = static_cast< int >(val2); | |
9872 | { | |
9873 | arg3 = &temp3; | |
9874 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9875 | } | |
9876 | { | |
9877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9878 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
9879 | wxPyEndAllowThreads(__tstate); | |
9880 | if (PyErr_Occurred()) SWIG_fail; | |
9881 | } | |
9882 | resultobj = SWIG_Py_Void(); | |
9883 | return resultobj; | |
9884 | fail: | |
9885 | return NULL; | |
9886 | } | |
9887 | ||
9888 | ||
9889 | SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9890 | PyObject *resultobj = 0; | |
9891 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9892 | int arg2 ; | |
9893 | wxColour *arg3 = 0 ; | |
9894 | void *argp1 = 0 ; | |
9895 | int res1 = 0 ; | |
9896 | int val2 ; | |
9897 | int ecode2 = 0 ; | |
9898 | wxColour temp3 ; | |
9899 | PyObject * obj0 = 0 ; | |
9900 | PyObject * obj1 = 0 ; | |
9901 | PyObject * obj2 = 0 ; | |
9902 | char * kwnames[] = { | |
9903 | (char *) "self",(char *) "item",(char *) "c", NULL | |
9904 | }; | |
9905 | ||
9906 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9907 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9908 | if (!SWIG_IsOK(res1)) { | |
9909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9910 | } | |
9911 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9912 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9913 | if (!SWIG_IsOK(ecode2)) { | |
9914 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'"); | |
9915 | } | |
9916 | arg2 = static_cast< int >(val2); | |
9917 | { | |
9918 | arg3 = &temp3; | |
9919 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9920 | } | |
9921 | { | |
9922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9923 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
9924 | wxPyEndAllowThreads(__tstate); | |
9925 | if (PyErr_Occurred()) SWIG_fail; | |
9926 | } | |
9927 | resultobj = SWIG_Py_Void(); | |
9928 | return resultobj; | |
9929 | fail: | |
9930 | return NULL; | |
9931 | } | |
9932 | ||
9933 | ||
9934 | SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9935 | PyObject *resultobj = 0; | |
9936 | wxListBox *arg1 = (wxListBox *) 0 ; | |
9937 | int arg2 ; | |
9938 | wxFont *arg3 = 0 ; | |
9939 | void *argp1 = 0 ; | |
9940 | int res1 = 0 ; | |
9941 | int val2 ; | |
9942 | int ecode2 = 0 ; | |
9943 | void *argp3 = 0 ; | |
9944 | int res3 = 0 ; | |
9945 | PyObject * obj0 = 0 ; | |
9946 | PyObject * obj1 = 0 ; | |
9947 | PyObject * obj2 = 0 ; | |
9948 | char * kwnames[] = { | |
9949 | (char *) "self",(char *) "item",(char *) "f", NULL | |
9950 | }; | |
9951 | ||
9952 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9953 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 ); | |
9954 | if (!SWIG_IsOK(res1)) { | |
9955 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'"); | |
9956 | } | |
9957 | arg1 = reinterpret_cast< wxListBox * >(argp1); | |
9958 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9959 | if (!SWIG_IsOK(ecode2)) { | |
9960 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'"); | |
9961 | } | |
9962 | arg2 = static_cast< int >(val2); | |
9963 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
9964 | if (!SWIG_IsOK(res3)) { | |
9965 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
9966 | } | |
9967 | if (!argp3) { | |
9968 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
9969 | } | |
9970 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
9971 | { | |
9972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9973 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
9974 | wxPyEndAllowThreads(__tstate); | |
9975 | if (PyErr_Occurred()) SWIG_fail; | |
9976 | } | |
9977 | resultobj = SWIG_Py_Void(); | |
9978 | return resultobj; | |
9979 | fail: | |
9980 | return NULL; | |
9981 | } | |
9982 | ||
9983 | ||
9984 | SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9985 | PyObject *resultobj = 0; | |
9986 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
9987 | SwigValueWrapper<wxVisualAttributes > result; | |
9988 | int val1 ; | |
9989 | int ecode1 = 0 ; | |
9990 | PyObject * obj0 = 0 ; | |
9991 | char * kwnames[] = { | |
9992 | (char *) "variant", NULL | |
9993 | }; | |
9994 | ||
9995 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
9996 | if (obj0) { | |
9997 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
9998 | if (!SWIG_IsOK(ecode1)) { | |
9999 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
10000 | } | |
10001 | arg1 = static_cast< wxWindowVariant >(val1); | |
10002 | } | |
10003 | { | |
10004 | if (!wxPyCheckForApp()) SWIG_fail; | |
10005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10006 | result = wxListBox::GetClassDefaultAttributes(arg1); | |
10007 | wxPyEndAllowThreads(__tstate); | |
10008 | if (PyErr_Occurred()) SWIG_fail; | |
10009 | } | |
10010 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
10011 | return resultobj; | |
10012 | fail: | |
10013 | return NULL; | |
10014 | } | |
10015 | ||
10016 | ||
10017 | SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10018 | PyObject *obj; | |
10019 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10020 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj)); | |
10021 | return SWIG_Py_Void(); | |
10022 | } | |
10023 | ||
10024 | SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10025 | return SWIG_Python_InitShadowInstance(args); | |
10026 | } | |
10027 | ||
10028 | SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10029 | PyObject *resultobj = 0; | |
10030 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10031 | int arg2 = (int) -1 ; | |
10032 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10033 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10034 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10035 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10036 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
10037 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
10038 | long arg6 = (long) 0 ; | |
10039 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10040 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10041 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
10042 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10043 | wxCheckListBox *result = 0 ; | |
10044 | void *argp1 = 0 ; | |
10045 | int res1 = 0 ; | |
10046 | int val2 ; | |
10047 | int ecode2 = 0 ; | |
10048 | wxPoint temp3 ; | |
10049 | wxSize temp4 ; | |
10050 | bool temp5 = false ; | |
10051 | long val6 ; | |
10052 | int ecode6 = 0 ; | |
10053 | void *argp7 = 0 ; | |
10054 | int res7 = 0 ; | |
10055 | bool temp8 = false ; | |
10056 | PyObject * obj0 = 0 ; | |
10057 | PyObject * obj1 = 0 ; | |
10058 | PyObject * obj2 = 0 ; | |
10059 | PyObject * obj3 = 0 ; | |
10060 | PyObject * obj4 = 0 ; | |
10061 | PyObject * obj5 = 0 ; | |
10062 | PyObject * obj6 = 0 ; | |
10063 | PyObject * obj7 = 0 ; | |
10064 | char * kwnames[] = { | |
10065 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10066 | }; | |
10067 | ||
10068 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
10069 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10070 | if (!SWIG_IsOK(res1)) { | |
10071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
10072 | } | |
10073 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
10074 | if (obj1) { | |
10075 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10076 | if (!SWIG_IsOK(ecode2)) { | |
10077 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'"); | |
10078 | } | |
10079 | arg2 = static_cast< int >(val2); | |
10080 | } | |
10081 | if (obj2) { | |
d14a1e28 | 10082 | { |
0085ce49 RD |
10083 | arg3 = &temp3; |
10084 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 10085 | } |
0085ce49 RD |
10086 | } |
10087 | if (obj3) { | |
d14a1e28 | 10088 | { |
0085ce49 RD |
10089 | arg4 = &temp4; |
10090 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 10091 | } |
0085ce49 RD |
10092 | } |
10093 | if (obj4) { | |
d14a1e28 | 10094 | { |
0085ce49 RD |
10095 | if (! PySequence_Check(obj4)) { |
10096 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10097 | SWIG_fail; | |
10098 | } | |
10099 | arg5 = new wxArrayString; | |
10100 | temp5 = true; | |
10101 | int i, len=PySequence_Length(obj4); | |
10102 | for (i=0; i<len; i++) { | |
10103 | PyObject* item = PySequence_GetItem(obj4, i); | |
10104 | wxString* s = wxString_in_helper(item); | |
10105 | if (PyErr_Occurred()) SWIG_fail; | |
10106 | arg5->Add(*s); | |
10107 | delete s; | |
10108 | Py_DECREF(item); | |
10109 | } | |
d14a1e28 | 10110 | } |
0085ce49 RD |
10111 | } |
10112 | if (obj5) { | |
10113 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
10114 | if (!SWIG_IsOK(ecode6)) { | |
10115 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'"); | |
10116 | } | |
10117 | arg6 = static_cast< long >(val6); | |
10118 | } | |
10119 | if (obj6) { | |
10120 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
10121 | if (!SWIG_IsOK(res7)) { | |
10122 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
4f89f6a3 | 10123 | } |
0085ce49 RD |
10124 | if (!argp7) { |
10125 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 10126 | } |
0085ce49 RD |
10127 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
10128 | } | |
10129 | if (obj7) { | |
093d3ff1 | 10130 | { |
0085ce49 RD |
10131 | arg8 = wxString_in_helper(obj7); |
10132 | if (arg8 == NULL) SWIG_fail; | |
10133 | temp8 = true; | |
093d3ff1 | 10134 | } |
0085ce49 RD |
10135 | } |
10136 | { | |
10137 | if (!wxPyCheckForApp()) SWIG_fail; | |
10138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10139 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10140 | wxPyEndAllowThreads(__tstate); | |
10141 | if (PyErr_Occurred()) SWIG_fail; | |
10142 | } | |
10143 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 ); | |
10144 | { | |
10145 | if (temp5) delete arg5; | |
10146 | } | |
10147 | { | |
10148 | if (temp8) | |
10149 | delete arg8; | |
10150 | } | |
10151 | return resultobj; | |
10152 | fail: | |
10153 | { | |
10154 | if (temp5) delete arg5; | |
10155 | } | |
10156 | { | |
10157 | if (temp8) | |
10158 | delete arg8; | |
10159 | } | |
10160 | return NULL; | |
d14a1e28 RD |
10161 | } |
10162 | ||
10163 | ||
0085ce49 RD |
10164 | SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10165 | PyObject *resultobj = 0; | |
10166 | wxCheckListBox *result = 0 ; | |
10167 | ||
10168 | if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail; | |
10169 | { | |
10170 | if (!wxPyCheckForApp()) SWIG_fail; | |
10171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10172 | result = (wxCheckListBox *)new wxCheckListBox(); | |
10173 | wxPyEndAllowThreads(__tstate); | |
10174 | if (PyErr_Occurred()) SWIG_fail; | |
10175 | } | |
10176 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 ); | |
10177 | return resultobj; | |
10178 | fail: | |
10179 | return NULL; | |
10180 | } | |
10181 | ||
10182 | ||
10183 | SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10184 | PyObject *resultobj = 0; | |
10185 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
10186 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10187 | int arg3 = (int) -1 ; | |
10188 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10189 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10190 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10191 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10192 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
10193 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
10194 | long arg7 = (long) 0 ; | |
10195 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
10196 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
10197 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
10198 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
10199 | bool result; | |
10200 | void *argp1 = 0 ; | |
10201 | int res1 = 0 ; | |
10202 | void *argp2 = 0 ; | |
10203 | int res2 = 0 ; | |
10204 | int val3 ; | |
10205 | int ecode3 = 0 ; | |
10206 | wxPoint temp4 ; | |
10207 | wxSize temp5 ; | |
10208 | bool temp6 = false ; | |
10209 | long val7 ; | |
10210 | int ecode7 = 0 ; | |
10211 | void *argp8 = 0 ; | |
10212 | int res8 = 0 ; | |
10213 | bool temp9 = false ; | |
10214 | PyObject * obj0 = 0 ; | |
10215 | PyObject * obj1 = 0 ; | |
10216 | PyObject * obj2 = 0 ; | |
10217 | PyObject * obj3 = 0 ; | |
10218 | PyObject * obj4 = 0 ; | |
10219 | PyObject * obj5 = 0 ; | |
10220 | PyObject * obj6 = 0 ; | |
10221 | PyObject * obj7 = 0 ; | |
10222 | PyObject * obj8 = 0 ; | |
10223 | char * kwnames[] = { | |
10224 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10225 | }; | |
10226 | ||
10227 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
10228 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10229 | if (!SWIG_IsOK(res1)) { | |
10230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10231 | } | |
10232 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
10233 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10234 | if (!SWIG_IsOK(res2)) { | |
10235 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
10236 | } | |
10237 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
10238 | if (obj2) { | |
10239 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10240 | if (!SWIG_IsOK(ecode3)) { | |
10241 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
10242 | } | |
10243 | arg3 = static_cast< int >(val3); | |
10244 | } | |
10245 | if (obj3) { | |
22bfe96c | 10246 | { |
0085ce49 RD |
10247 | arg4 = &temp4; |
10248 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 10249 | } |
0085ce49 RD |
10250 | } |
10251 | if (obj4) { | |
d14a1e28 | 10252 | { |
0085ce49 RD |
10253 | arg5 = &temp5; |
10254 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 10255 | } |
0085ce49 RD |
10256 | } |
10257 | if (obj5) { | |
d14a1e28 | 10258 | { |
0085ce49 RD |
10259 | if (! PySequence_Check(obj5)) { |
10260 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10261 | SWIG_fail; | |
10262 | } | |
10263 | arg6 = new wxArrayString; | |
10264 | temp6 = true; | |
10265 | int i, len=PySequence_Length(obj5); | |
10266 | for (i=0; i<len; i++) { | |
10267 | PyObject* item = PySequence_GetItem(obj5, i); | |
10268 | wxString* s = wxString_in_helper(item); | |
10269 | if (PyErr_Occurred()) SWIG_fail; | |
10270 | arg6->Add(*s); | |
10271 | delete s; | |
10272 | Py_DECREF(item); | |
10273 | } | |
d14a1e28 | 10274 | } |
0085ce49 RD |
10275 | } |
10276 | if (obj6) { | |
10277 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
10278 | if (!SWIG_IsOK(ecode7)) { | |
10279 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
10280 | } | |
10281 | arg7 = static_cast< long >(val7); | |
10282 | } | |
10283 | if (obj7) { | |
10284 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
10285 | if (!SWIG_IsOK(res8)) { | |
10286 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 10287 | } |
0085ce49 RD |
10288 | if (!argp8) { |
10289 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 10290 | } |
0085ce49 RD |
10291 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
10292 | } | |
10293 | if (obj8) { | |
d14a1e28 | 10294 | { |
0085ce49 RD |
10295 | arg9 = wxString_in_helper(obj8); |
10296 | if (arg9 == NULL) SWIG_fail; | |
10297 | temp9 = true; | |
d14a1e28 | 10298 | } |
0085ce49 RD |
10299 | } |
10300 | { | |
10301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10302 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
10303 | wxPyEndAllowThreads(__tstate); | |
10304 | if (PyErr_Occurred()) SWIG_fail; | |
10305 | } | |
10306 | { | |
10307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10308 | } | |
10309 | { | |
10310 | if (temp6) delete arg6; | |
10311 | } | |
10312 | { | |
10313 | if (temp9) | |
10314 | delete arg9; | |
10315 | } | |
10316 | return resultobj; | |
10317 | fail: | |
10318 | { | |
10319 | if (temp6) delete arg6; | |
10320 | } | |
10321 | { | |
10322 | if (temp9) | |
10323 | delete arg9; | |
10324 | } | |
10325 | return NULL; | |
10326 | } | |
10327 | ||
10328 | ||
10329 | SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10330 | PyObject *resultobj = 0; | |
10331 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
50f151d7 | 10332 | unsigned int arg2 ; |
0085ce49 RD |
10333 | bool result; |
10334 | void *argp1 = 0 ; | |
10335 | int res1 = 0 ; | |
50f151d7 | 10336 | unsigned int val2 ; |
0085ce49 RD |
10337 | int ecode2 = 0 ; |
10338 | PyObject * obj0 = 0 ; | |
10339 | PyObject * obj1 = 0 ; | |
10340 | char * kwnames[] = { | |
10341 | (char *) "self",(char *) "index", NULL | |
10342 | }; | |
10343 | ||
10344 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail; | |
10345 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10346 | if (!SWIG_IsOK(res1)) { | |
10347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10348 | } | |
10349 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
50f151d7 | 10350 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
0085ce49 | 10351 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 10352 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'"); |
0085ce49 | 10353 | } |
50f151d7 | 10354 | arg2 = static_cast< unsigned int >(val2); |
0085ce49 RD |
10355 | { |
10356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10357 | result = (bool)(arg1)->IsChecked(arg2); | |
10358 | wxPyEndAllowThreads(__tstate); | |
10359 | if (PyErr_Occurred()) SWIG_fail; | |
10360 | } | |
10361 | { | |
10362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10363 | } | |
10364 | return resultobj; | |
10365 | fail: | |
10366 | return NULL; | |
10367 | } | |
10368 | ||
10369 | ||
10370 | SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10371 | PyObject *resultobj = 0; | |
10372 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
50f151d7 | 10373 | unsigned int arg2 ; |
0085ce49 RD |
10374 | int arg3 = (int) true ; |
10375 | void *argp1 = 0 ; | |
10376 | int res1 = 0 ; | |
50f151d7 | 10377 | unsigned int val2 ; |
0085ce49 RD |
10378 | int ecode2 = 0 ; |
10379 | int val3 ; | |
10380 | int ecode3 = 0 ; | |
10381 | PyObject * obj0 = 0 ; | |
10382 | PyObject * obj1 = 0 ; | |
10383 | PyObject * obj2 = 0 ; | |
10384 | char * kwnames[] = { | |
10385 | (char *) "self",(char *) "index",(char *) "check", NULL | |
10386 | }; | |
10387 | ||
10388 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10389 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10390 | if (!SWIG_IsOK(res1)) { | |
10391 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10392 | } | |
10393 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
50f151d7 | 10394 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
0085ce49 | 10395 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 10396 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'"); |
0085ce49 | 10397 | } |
50f151d7 | 10398 | arg2 = static_cast< unsigned int >(val2); |
0085ce49 RD |
10399 | if (obj2) { |
10400 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10401 | if (!SWIG_IsOK(ecode3)) { | |
10402 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'"); | |
10403 | } | |
10404 | arg3 = static_cast< int >(val3); | |
10405 | } | |
10406 | { | |
10407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10408 | (arg1)->Check(arg2,arg3); | |
10409 | wxPyEndAllowThreads(__tstate); | |
10410 | if (PyErr_Occurred()) SWIG_fail; | |
10411 | } | |
10412 | resultobj = SWIG_Py_Void(); | |
10413 | return resultobj; | |
10414 | fail: | |
10415 | return NULL; | |
d14a1e28 RD |
10416 | } |
10417 | ||
10418 | ||
0085ce49 RD |
10419 | SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10420 | PyObject *resultobj = 0; | |
10421 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
10422 | int result; | |
10423 | void *argp1 = 0 ; | |
10424 | int res1 = 0 ; | |
10425 | PyObject *swig_obj[1] ; | |
10426 | ||
10427 | if (!args) SWIG_fail; | |
10428 | swig_obj[0] = args; | |
10429 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 ); | |
10430 | if (!SWIG_IsOK(res1)) { | |
10431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'"); | |
10432 | } | |
10433 | arg1 = reinterpret_cast< wxCheckListBox * >(argp1); | |
10434 | { | |
10435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10436 | result = (int)(arg1)->GetItemHeight(); | |
10437 | wxPyEndAllowThreads(__tstate); | |
10438 | if (PyErr_Occurred()) SWIG_fail; | |
10439 | } | |
10440 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10441 | return resultobj; | |
10442 | fail: | |
10443 | return NULL; | |
d14a1e28 RD |
10444 | } |
10445 | ||
10446 | ||
0085ce49 RD |
10447 | SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10448 | PyObject *obj; | |
10449 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10450 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj)); | |
10451 | return SWIG_Py_Void(); | |
d14a1e28 RD |
10452 | } |
10453 | ||
0085ce49 RD |
10454 | SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10455 | return SWIG_Python_InitShadowInstance(args); | |
943e8dfd RD |
10456 | } |
10457 | ||
0085ce49 RD |
10458 | SWIGINTERN int TextCtrlNameStr_set(PyObject *) { |
10459 | SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only."); | |
10460 | return 1; | |
22bfe96c RD |
10461 | } |
10462 | ||
10463 | ||
0085ce49 RD |
10464 | SWIGINTERN PyObject *TextCtrlNameStr_get(void) { |
10465 | PyObject *pyobj = 0; | |
10466 | ||
10467 | { | |
10468 | #if wxUSE_UNICODE | |
10469 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
10470 | #else | |
10471 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
10472 | #endif | |
10473 | } | |
10474 | return pyobj; | |
10475 | } | |
10476 | ||
10477 | ||
10478 | SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10479 | PyObject *resultobj = 0; | |
10480 | wxColour const &arg1_defvalue = wxNullColour ; | |
10481 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
10482 | wxColour const &arg2_defvalue = wxNullColour ; | |
10483 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
10484 | wxFont const &arg3_defvalue = wxNullFont ; | |
10485 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
10486 | wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; | |
10487 | wxTextAttr *result = 0 ; | |
10488 | wxColour temp1 ; | |
10489 | wxColour temp2 ; | |
10490 | void *argp3 = 0 ; | |
10491 | int res3 = 0 ; | |
10492 | int val4 ; | |
10493 | int ecode4 = 0 ; | |
10494 | PyObject * obj0 = 0 ; | |
10495 | PyObject * obj1 = 0 ; | |
10496 | PyObject * obj2 = 0 ; | |
10497 | PyObject * obj3 = 0 ; | |
10498 | char * kwnames[] = { | |
10499 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
10500 | }; | |
10501 | ||
10502 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10503 | if (obj0) { | |
d14a1e28 | 10504 | { |
0085ce49 RD |
10505 | arg1 = &temp1; |
10506 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
d14a1e28 | 10507 | } |
0085ce49 RD |
10508 | } |
10509 | if (obj1) { | |
d14a1e28 | 10510 | { |
0085ce49 RD |
10511 | arg2 = &temp2; |
10512 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 10513 | } |
0085ce49 RD |
10514 | } |
10515 | if (obj2) { | |
10516 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
10517 | if (!SWIG_IsOK(res3)) { | |
10518 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d14a1e28 | 10519 | } |
0085ce49 RD |
10520 | if (!argp3) { |
10521 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
10522 | } | |
10523 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
10524 | } | |
10525 | if (obj3) { | |
10526 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10527 | if (!SWIG_IsOK(ecode4)) { | |
10528 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'"); | |
10529 | } | |
10530 | arg4 = static_cast< wxTextAttrAlignment >(val4); | |
10531 | } | |
10532 | { | |
10533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10534 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4); | |
10535 | wxPyEndAllowThreads(__tstate); | |
10536 | if (PyErr_Occurred()) SWIG_fail; | |
10537 | } | |
10538 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 ); | |
10539 | return resultobj; | |
10540 | fail: | |
10541 | return NULL; | |
d14a1e28 RD |
10542 | } |
10543 | ||
10544 | ||
0085ce49 RD |
10545 | SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10546 | PyObject *resultobj = 0; | |
10547 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10548 | void *argp1 = 0 ; | |
10549 | int res1 = 0 ; | |
10550 | PyObject *swig_obj[1] ; | |
10551 | ||
10552 | if (!args) SWIG_fail; | |
10553 | swig_obj[0] = args; | |
10554 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 ); | |
10555 | if (!SWIG_IsOK(res1)) { | |
10556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10557 | } | |
10558 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10559 | { | |
10560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10561 | delete arg1; | |
d14a1e28 | 10562 | |
0085ce49 RD |
10563 | wxPyEndAllowThreads(__tstate); |
10564 | if (PyErr_Occurred()) SWIG_fail; | |
10565 | } | |
10566 | resultobj = SWIG_Py_Void(); | |
10567 | return resultobj; | |
10568 | fail: | |
10569 | return NULL; | |
d14a1e28 RD |
10570 | } |
10571 | ||
10572 | ||
0085ce49 RD |
10573 | SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10574 | PyObject *resultobj = 0; | |
10575 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10576 | void *argp1 = 0 ; | |
10577 | int res1 = 0 ; | |
10578 | PyObject *swig_obj[1] ; | |
10579 | ||
10580 | if (!args) SWIG_fail; | |
10581 | swig_obj[0] = args; | |
10582 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10583 | if (!SWIG_IsOK(res1)) { | |
10584 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10585 | } | |
10586 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10587 | { | |
10588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10589 | (arg1)->Init(); | |
10590 | wxPyEndAllowThreads(__tstate); | |
10591 | if (PyErr_Occurred()) SWIG_fail; | |
10592 | } | |
10593 | resultobj = SWIG_Py_Void(); | |
10594 | return resultobj; | |
10595 | fail: | |
10596 | return NULL; | |
10597 | } | |
10598 | ||
10599 | ||
01f6b6d3 RD |
10600 | SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10601 | PyObject *resultobj = 0; | |
10602 | wxTextAttr *arg1 = 0 ; | |
10603 | wxTextAttr *arg2 = 0 ; | |
10604 | wxTextAttr result; | |
10605 | void *argp1 = 0 ; | |
10606 | int res1 = 0 ; | |
10607 | void *argp2 = 0 ; | |
10608 | int res2 = 0 ; | |
10609 | PyObject * obj0 = 0 ; | |
10610 | PyObject * obj1 = 0 ; | |
10611 | char * kwnames[] = { | |
10612 | (char *) "base",(char *) "overlay", NULL | |
10613 | }; | |
10614 | ||
10615 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail; | |
10616 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
10617 | if (!SWIG_IsOK(res1)) { | |
10618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
10619 | } | |
10620 | if (!argp1) { | |
10621 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
10622 | } | |
10623 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10624 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
10625 | if (!SWIG_IsOK(res2)) { | |
10626 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
10627 | } | |
10628 | if (!argp2) { | |
10629 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
10630 | } | |
10631 | arg2 = reinterpret_cast< wxTextAttr * >(argp2); | |
10632 | { | |
10633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10634 | result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2); | |
10635 | wxPyEndAllowThreads(__tstate); | |
10636 | if (PyErr_Occurred()) SWIG_fail; | |
10637 | } | |
10638 | resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 ); | |
10639 | return resultobj; | |
10640 | fail: | |
10641 | return NULL; | |
10642 | } | |
10643 | ||
10644 | ||
0085ce49 RD |
10645 | SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10646 | PyObject *resultobj = 0; | |
10647 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10648 | wxColour *arg2 = 0 ; | |
10649 | void *argp1 = 0 ; | |
10650 | int res1 = 0 ; | |
10651 | wxColour temp2 ; | |
10652 | PyObject * obj0 = 0 ; | |
10653 | PyObject * obj1 = 0 ; | |
10654 | char * kwnames[] = { | |
10655 | (char *) "self",(char *) "colText", NULL | |
10656 | }; | |
10657 | ||
10658 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
10659 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10660 | if (!SWIG_IsOK(res1)) { | |
10661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10662 | } | |
10663 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10664 | { | |
10665 | arg2 = &temp2; | |
10666 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10667 | } | |
10668 | { | |
10669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10670 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
10671 | wxPyEndAllowThreads(__tstate); | |
10672 | if (PyErr_Occurred()) SWIG_fail; | |
10673 | } | |
10674 | resultobj = SWIG_Py_Void(); | |
10675 | return resultobj; | |
10676 | fail: | |
10677 | return NULL; | |
10678 | } | |
10679 | ||
10680 | ||
10681 | SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10682 | PyObject *resultobj = 0; | |
10683 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10684 | wxColour *arg2 = 0 ; | |
10685 | void *argp1 = 0 ; | |
10686 | int res1 = 0 ; | |
10687 | wxColour temp2 ; | |
10688 | PyObject * obj0 = 0 ; | |
10689 | PyObject * obj1 = 0 ; | |
10690 | char * kwnames[] = { | |
10691 | (char *) "self",(char *) "colBack", NULL | |
10692 | }; | |
10693 | ||
10694 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
10695 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10696 | if (!SWIG_IsOK(res1)) { | |
10697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10698 | } | |
10699 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10700 | { | |
10701 | arg2 = &temp2; | |
10702 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10703 | } | |
10704 | { | |
10705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10706 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
10707 | wxPyEndAllowThreads(__tstate); | |
10708 | if (PyErr_Occurred()) SWIG_fail; | |
10709 | } | |
10710 | resultobj = SWIG_Py_Void(); | |
10711 | return resultobj; | |
10712 | fail: | |
10713 | return NULL; | |
10714 | } | |
10715 | ||
10716 | ||
10717 | SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10718 | PyObject *resultobj = 0; | |
10719 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10720 | wxFont *arg2 = 0 ; | |
10721 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
10722 | void *argp1 = 0 ; | |
10723 | int res1 = 0 ; | |
10724 | void *argp2 = 0 ; | |
10725 | int res2 = 0 ; | |
10726 | long val3 ; | |
10727 | int ecode3 = 0 ; | |
10728 | PyObject * obj0 = 0 ; | |
10729 | PyObject * obj1 = 0 ; | |
10730 | PyObject * obj2 = 0 ; | |
10731 | char * kwnames[] = { | |
10732 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
10733 | }; | |
10734 | ||
10735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10737 | if (!SWIG_IsOK(res1)) { | |
10738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10739 | } | |
10740 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10741 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
10742 | if (!SWIG_IsOK(res2)) { | |
10743 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
10744 | } | |
10745 | if (!argp2) { | |
10746 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
10747 | } | |
10748 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
10749 | if (obj2) { | |
10750 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
10751 | if (!SWIG_IsOK(ecode3)) { | |
10752 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'"); | |
10753 | } | |
10754 | arg3 = static_cast< long >(val3); | |
10755 | } | |
10756 | { | |
10757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10758 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
10759 | wxPyEndAllowThreads(__tstate); | |
10760 | if (PyErr_Occurred()) SWIG_fail; | |
10761 | } | |
10762 | resultobj = SWIG_Py_Void(); | |
10763 | return resultobj; | |
10764 | fail: | |
10765 | return NULL; | |
10766 | } | |
10767 | ||
10768 | ||
10769 | SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10770 | PyObject *resultobj = 0; | |
10771 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10772 | wxTextAttrAlignment arg2 ; | |
10773 | void *argp1 = 0 ; | |
10774 | int res1 = 0 ; | |
10775 | int val2 ; | |
10776 | int ecode2 = 0 ; | |
10777 | PyObject * obj0 = 0 ; | |
10778 | PyObject * obj1 = 0 ; | |
10779 | char * kwnames[] = { | |
10780 | (char *) "self",(char *) "alignment", NULL | |
10781 | }; | |
10782 | ||
10783 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
10784 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10785 | if (!SWIG_IsOK(res1)) { | |
10786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10787 | } | |
10788 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10789 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10790 | if (!SWIG_IsOK(ecode2)) { | |
10791 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
10792 | } | |
10793 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
10794 | { | |
10795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10796 | (arg1)->SetAlignment(arg2); | |
10797 | wxPyEndAllowThreads(__tstate); | |
10798 | if (PyErr_Occurred()) SWIG_fail; | |
10799 | } | |
10800 | resultobj = SWIG_Py_Void(); | |
10801 | return resultobj; | |
10802 | fail: | |
10803 | return NULL; | |
10804 | } | |
10805 | ||
10806 | ||
10807 | SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10808 | PyObject *resultobj = 0; | |
10809 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10810 | wxArrayInt *arg2 = 0 ; | |
10811 | void *argp1 = 0 ; | |
10812 | int res1 = 0 ; | |
10813 | bool temp2 = false ; | |
10814 | PyObject * obj0 = 0 ; | |
10815 | PyObject * obj1 = 0 ; | |
10816 | char * kwnames[] = { | |
10817 | (char *) "self",(char *) "tabs", NULL | |
10818 | }; | |
10819 | ||
10820 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail; | |
10821 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10822 | if (!SWIG_IsOK(res1)) { | |
10823 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10824 | } | |
10825 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10826 | { | |
10827 | if (! PySequence_Check(obj1)) { | |
10828 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
10829 | SWIG_fail; | |
10830 | } | |
10831 | arg2 = new wxArrayInt; | |
10832 | temp2 = true; | |
10833 | int i, len=PySequence_Length(obj1); | |
10834 | for (i=0; i<len; i++) { | |
10835 | PyObject* item = PySequence_GetItem(obj1, i); | |
10836 | PyObject* number = PyNumber_Int(item); | |
10837 | arg2->Add(PyInt_AS_LONG(number)); | |
10838 | Py_DECREF(item); | |
10839 | Py_DECREF(number); | |
d14a1e28 | 10840 | } |
0085ce49 RD |
10841 | } |
10842 | { | |
10843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10844 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
10845 | wxPyEndAllowThreads(__tstate); | |
10846 | if (PyErr_Occurred()) SWIG_fail; | |
10847 | } | |
10848 | resultobj = SWIG_Py_Void(); | |
10849 | { | |
10850 | if (temp2) delete arg2; | |
10851 | } | |
10852 | return resultobj; | |
10853 | fail: | |
10854 | { | |
10855 | if (temp2) delete arg2; | |
10856 | } | |
10857 | return NULL; | |
10858 | } | |
10859 | ||
10860 | ||
10861 | SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10862 | PyObject *resultobj = 0; | |
10863 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10864 | int arg2 ; | |
10865 | int arg3 = (int) 0 ; | |
10866 | void *argp1 = 0 ; | |
10867 | int res1 = 0 ; | |
10868 | int val2 ; | |
10869 | int ecode2 = 0 ; | |
10870 | int val3 ; | |
10871 | int ecode3 = 0 ; | |
10872 | PyObject * obj0 = 0 ; | |
10873 | PyObject * obj1 = 0 ; | |
10874 | PyObject * obj2 = 0 ; | |
10875 | char * kwnames[] = { | |
10876 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL | |
10877 | }; | |
10878 | ||
10879 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10880 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10881 | if (!SWIG_IsOK(res1)) { | |
10882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10883 | } | |
10884 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10885 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10886 | if (!SWIG_IsOK(ecode2)) { | |
10887 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'"); | |
10888 | } | |
10889 | arg2 = static_cast< int >(val2); | |
10890 | if (obj2) { | |
10891 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10892 | if (!SWIG_IsOK(ecode3)) { | |
10893 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'"); | |
10894 | } | |
10895 | arg3 = static_cast< int >(val3); | |
10896 | } | |
10897 | { | |
10898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10899 | (arg1)->SetLeftIndent(arg2,arg3); | |
10900 | wxPyEndAllowThreads(__tstate); | |
10901 | if (PyErr_Occurred()) SWIG_fail; | |
10902 | } | |
10903 | resultobj = SWIG_Py_Void(); | |
10904 | return resultobj; | |
10905 | fail: | |
10906 | return NULL; | |
10907 | } | |
10908 | ||
10909 | ||
10910 | SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10911 | PyObject *resultobj = 0; | |
10912 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10913 | int arg2 ; | |
10914 | void *argp1 = 0 ; | |
10915 | int res1 = 0 ; | |
10916 | int val2 ; | |
10917 | int ecode2 = 0 ; | |
10918 | PyObject * obj0 = 0 ; | |
10919 | PyObject * obj1 = 0 ; | |
10920 | char * kwnames[] = { | |
10921 | (char *) "self",(char *) "indent", NULL | |
10922 | }; | |
10923 | ||
10924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10925 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10926 | if (!SWIG_IsOK(res1)) { | |
10927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10928 | } | |
10929 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10930 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10931 | if (!SWIG_IsOK(ecode2)) { | |
10932 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'"); | |
10933 | } | |
10934 | arg2 = static_cast< int >(val2); | |
10935 | { | |
10936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10937 | (arg1)->SetRightIndent(arg2); | |
10938 | wxPyEndAllowThreads(__tstate); | |
10939 | if (PyErr_Occurred()) SWIG_fail; | |
10940 | } | |
10941 | resultobj = SWIG_Py_Void(); | |
10942 | return resultobj; | |
10943 | fail: | |
10944 | return NULL; | |
10945 | } | |
10946 | ||
10947 | ||
10948 | SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10949 | PyObject *resultobj = 0; | |
10950 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10951 | long arg2 ; | |
10952 | void *argp1 = 0 ; | |
10953 | int res1 = 0 ; | |
10954 | long val2 ; | |
10955 | int ecode2 = 0 ; | |
10956 | PyObject * obj0 = 0 ; | |
10957 | PyObject * obj1 = 0 ; | |
10958 | char * kwnames[] = { | |
10959 | (char *) "self",(char *) "flags", NULL | |
10960 | }; | |
10961 | ||
10962 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
10963 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10964 | if (!SWIG_IsOK(res1)) { | |
10965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'"); | |
10966 | } | |
10967 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
10968 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10969 | if (!SWIG_IsOK(ecode2)) { | |
10970 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'"); | |
10971 | } | |
10972 | arg2 = static_cast< long >(val2); | |
10973 | { | |
10974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10975 | (arg1)->SetFlags(arg2); | |
10976 | wxPyEndAllowThreads(__tstate); | |
10977 | if (PyErr_Occurred()) SWIG_fail; | |
10978 | } | |
10979 | resultobj = SWIG_Py_Void(); | |
10980 | return resultobj; | |
10981 | fail: | |
10982 | return NULL; | |
d14a1e28 RD |
10983 | } |
10984 | ||
10985 | ||
0085ce49 RD |
10986 | SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10987 | PyObject *resultobj = 0; | |
10988 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
10989 | bool result; | |
10990 | void *argp1 = 0 ; | |
10991 | int res1 = 0 ; | |
10992 | PyObject *swig_obj[1] ; | |
10993 | ||
10994 | if (!args) SWIG_fail; | |
10995 | swig_obj[0] = args; | |
10996 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
10997 | if (!SWIG_IsOK(res1)) { | |
10998 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
10999 | } | |
11000 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11001 | { | |
11002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11003 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
11004 | wxPyEndAllowThreads(__tstate); | |
11005 | if (PyErr_Occurred()) SWIG_fail; | |
11006 | } | |
11007 | { | |
11008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11009 | } | |
11010 | return resultobj; | |
11011 | fail: | |
11012 | return NULL; | |
d14a1e28 RD |
11013 | } |
11014 | ||
11015 | ||
0085ce49 RD |
11016 | SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11017 | PyObject *resultobj = 0; | |
11018 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11019 | bool result; | |
11020 | void *argp1 = 0 ; | |
11021 | int res1 = 0 ; | |
11022 | PyObject *swig_obj[1] ; | |
11023 | ||
11024 | if (!args) SWIG_fail; | |
11025 | swig_obj[0] = args; | |
11026 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11027 | if (!SWIG_IsOK(res1)) { | |
11028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11029 | } | |
11030 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11031 | { | |
11032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11033 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
11034 | wxPyEndAllowThreads(__tstate); | |
11035 | if (PyErr_Occurred()) SWIG_fail; | |
11036 | } | |
11037 | { | |
11038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11039 | } | |
11040 | return resultobj; | |
11041 | fail: | |
11042 | return NULL; | |
d14a1e28 RD |
11043 | } |
11044 | ||
11045 | ||
0085ce49 RD |
11046 | SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11047 | PyObject *resultobj = 0; | |
11048 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11049 | bool result; | |
11050 | void *argp1 = 0 ; | |
11051 | int res1 = 0 ; | |
11052 | PyObject *swig_obj[1] ; | |
11053 | ||
11054 | if (!args) SWIG_fail; | |
11055 | swig_obj[0] = args; | |
11056 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11057 | if (!SWIG_IsOK(res1)) { | |
11058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11059 | } | |
11060 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11061 | { | |
11062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11063 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
11064 | wxPyEndAllowThreads(__tstate); | |
11065 | if (PyErr_Occurred()) SWIG_fail; | |
11066 | } | |
11067 | { | |
11068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11069 | } | |
11070 | return resultobj; | |
11071 | fail: | |
11072 | return NULL; | |
d14a1e28 RD |
11073 | } |
11074 | ||
11075 | ||
0085ce49 RD |
11076 | SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11077 | PyObject *resultobj = 0; | |
11078 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11079 | bool result; | |
11080 | void *argp1 = 0 ; | |
11081 | int res1 = 0 ; | |
11082 | PyObject *swig_obj[1] ; | |
11083 | ||
11084 | if (!args) SWIG_fail; | |
11085 | swig_obj[0] = args; | |
11086 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11087 | if (!SWIG_IsOK(res1)) { | |
11088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11089 | } | |
11090 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11091 | { | |
11092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11093 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
11094 | wxPyEndAllowThreads(__tstate); | |
11095 | if (PyErr_Occurred()) SWIG_fail; | |
11096 | } | |
11097 | { | |
11098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11099 | } | |
11100 | return resultobj; | |
11101 | fail: | |
11102 | return NULL; | |
22bfe96c RD |
11103 | } |
11104 | ||
11105 | ||
0085ce49 RD |
11106 | SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11107 | PyObject *resultobj = 0; | |
11108 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11109 | bool result; | |
11110 | void *argp1 = 0 ; | |
11111 | int res1 = 0 ; | |
11112 | PyObject *swig_obj[1] ; | |
11113 | ||
11114 | if (!args) SWIG_fail; | |
11115 | swig_obj[0] = args; | |
11116 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11117 | if (!SWIG_IsOK(res1)) { | |
11118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11119 | } | |
11120 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11121 | { | |
11122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11123 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
11124 | wxPyEndAllowThreads(__tstate); | |
11125 | if (PyErr_Occurred()) SWIG_fail; | |
11126 | } | |
11127 | { | |
11128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11129 | } | |
11130 | return resultobj; | |
11131 | fail: | |
11132 | return NULL; | |
b2dc1044 RD |
11133 | } |
11134 | ||
11135 | ||
0085ce49 RD |
11136 | SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11137 | PyObject *resultobj = 0; | |
11138 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11139 | bool result; | |
11140 | void *argp1 = 0 ; | |
11141 | int res1 = 0 ; | |
11142 | PyObject *swig_obj[1] ; | |
11143 | ||
11144 | if (!args) SWIG_fail; | |
11145 | swig_obj[0] = args; | |
11146 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11147 | if (!SWIG_IsOK(res1)) { | |
11148 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11149 | } | |
11150 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11151 | { | |
11152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11153 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
11154 | wxPyEndAllowThreads(__tstate); | |
11155 | if (PyErr_Occurred()) SWIG_fail; | |
11156 | } | |
11157 | { | |
11158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11159 | } | |
11160 | return resultobj; | |
11161 | fail: | |
11162 | return NULL; | |
d14a1e28 RD |
11163 | } |
11164 | ||
11165 | ||
0085ce49 RD |
11166 | SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11167 | PyObject *resultobj = 0; | |
11168 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11169 | bool result; | |
11170 | void *argp1 = 0 ; | |
11171 | int res1 = 0 ; | |
11172 | PyObject *swig_obj[1] ; | |
11173 | ||
11174 | if (!args) SWIG_fail; | |
11175 | swig_obj[0] = args; | |
11176 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11177 | if (!SWIG_IsOK(res1)) { | |
11178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11179 | } | |
11180 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11181 | { | |
11182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11183 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
11184 | wxPyEndAllowThreads(__tstate); | |
11185 | if (PyErr_Occurred()) SWIG_fail; | |
11186 | } | |
11187 | { | |
11188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11189 | } | |
11190 | return resultobj; | |
11191 | fail: | |
11192 | return NULL; | |
11193 | } | |
11194 | ||
11195 | ||
11196 | SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11197 | PyObject *resultobj = 0; | |
11198 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11199 | long arg2 ; | |
11200 | bool result; | |
11201 | void *argp1 = 0 ; | |
11202 | int res1 = 0 ; | |
11203 | long val2 ; | |
11204 | int ecode2 = 0 ; | |
11205 | PyObject * obj0 = 0 ; | |
11206 | PyObject * obj1 = 0 ; | |
11207 | char * kwnames[] = { | |
11208 | (char *) "self",(char *) "flag", NULL | |
11209 | }; | |
11210 | ||
11211 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail; | |
11212 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11213 | if (!SWIG_IsOK(res1)) { | |
11214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11215 | } | |
11216 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11217 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
11218 | if (!SWIG_IsOK(ecode2)) { | |
11219 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'"); | |
11220 | } | |
11221 | arg2 = static_cast< long >(val2); | |
11222 | { | |
11223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11224 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
11225 | wxPyEndAllowThreads(__tstate); | |
11226 | if (PyErr_Occurred()) SWIG_fail; | |
11227 | } | |
11228 | { | |
11229 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11230 | } | |
11231 | return resultobj; | |
11232 | fail: | |
11233 | return NULL; | |
d14a1e28 RD |
11234 | } |
11235 | ||
11236 | ||
0085ce49 RD |
11237 | SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11238 | PyObject *resultobj = 0; | |
11239 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11240 | wxColour *result = 0 ; | |
11241 | void *argp1 = 0 ; | |
11242 | int res1 = 0 ; | |
11243 | PyObject *swig_obj[1] ; | |
11244 | ||
11245 | if (!args) SWIG_fail; | |
11246 | swig_obj[0] = args; | |
11247 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11248 | if (!SWIG_IsOK(res1)) { | |
11249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11250 | } | |
11251 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11252 | { | |
11253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 11254 | { |
0085ce49 RD |
11255 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); |
11256 | result = (wxColour *) &_result_ref; | |
d14a1e28 | 11257 | } |
0085ce49 RD |
11258 | wxPyEndAllowThreads(__tstate); |
11259 | if (PyErr_Occurred()) SWIG_fail; | |
11260 | } | |
11261 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
11262 | return resultobj; | |
11263 | fail: | |
11264 | return NULL; | |
d14a1e28 RD |
11265 | } |
11266 | ||
11267 | ||
0085ce49 RD |
11268 | SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11269 | PyObject *resultobj = 0; | |
11270 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11271 | wxColour *result = 0 ; | |
11272 | void *argp1 = 0 ; | |
11273 | int res1 = 0 ; | |
11274 | PyObject *swig_obj[1] ; | |
11275 | ||
11276 | if (!args) SWIG_fail; | |
11277 | swig_obj[0] = args; | |
11278 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11279 | if (!SWIG_IsOK(res1)) { | |
11280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11281 | } | |
11282 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11283 | { | |
11284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 11285 | { |
0085ce49 RD |
11286 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); |
11287 | result = (wxColour *) &_result_ref; | |
d14a1e28 | 11288 | } |
0085ce49 RD |
11289 | wxPyEndAllowThreads(__tstate); |
11290 | if (PyErr_Occurred()) SWIG_fail; | |
11291 | } | |
11292 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
11293 | return resultobj; | |
11294 | fail: | |
11295 | return NULL; | |
d14a1e28 RD |
11296 | } |
11297 | ||
11298 | ||
0085ce49 RD |
11299 | SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11300 | PyObject *resultobj = 0; | |
11301 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11302 | wxFont *result = 0 ; | |
11303 | void *argp1 = 0 ; | |
11304 | int res1 = 0 ; | |
11305 | PyObject *swig_obj[1] ; | |
11306 | ||
11307 | if (!args) SWIG_fail; | |
11308 | swig_obj[0] = args; | |
11309 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11310 | if (!SWIG_IsOK(res1)) { | |
11311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11312 | } | |
11313 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11314 | { | |
11315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 11316 | { |
0085ce49 RD |
11317 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); |
11318 | result = (wxFont *) &_result_ref; | |
d14a1e28 | 11319 | } |
0085ce49 RD |
11320 | wxPyEndAllowThreads(__tstate); |
11321 | if (PyErr_Occurred()) SWIG_fail; | |
11322 | } | |
11323 | { | |
11324 | wxFont* resultptr = new wxFont(*result); | |
11325 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
11326 | } | |
11327 | return resultobj; | |
11328 | fail: | |
11329 | return NULL; | |
d14a1e28 RD |
11330 | } |
11331 | ||
11332 | ||
0085ce49 RD |
11333 | SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11334 | PyObject *resultobj = 0; | |
11335 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11336 | wxTextAttrAlignment result; | |
11337 | void *argp1 = 0 ; | |
11338 | int res1 = 0 ; | |
11339 | PyObject *swig_obj[1] ; | |
11340 | ||
11341 | if (!args) SWIG_fail; | |
11342 | swig_obj[0] = args; | |
11343 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11344 | if (!SWIG_IsOK(res1)) { | |
11345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11346 | } | |
11347 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11348 | { | |
11349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11350 | result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment(); | |
11351 | wxPyEndAllowThreads(__tstate); | |
11352 | if (PyErr_Occurred()) SWIG_fail; | |
11353 | } | |
11354 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11355 | return resultobj; | |
11356 | fail: | |
11357 | return NULL; | |
d14a1e28 RD |
11358 | } |
11359 | ||
11360 | ||
0085ce49 RD |
11361 | SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11362 | PyObject *resultobj = 0; | |
11363 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11364 | wxArrayInt *result = 0 ; | |
11365 | void *argp1 = 0 ; | |
11366 | int res1 = 0 ; | |
11367 | PyObject *swig_obj[1] ; | |
11368 | ||
11369 | if (!args) SWIG_fail; | |
11370 | swig_obj[0] = args; | |
11371 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11372 | if (!SWIG_IsOK(res1)) { | |
11373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11374 | } | |
11375 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11376 | { | |
11377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 11378 | { |
0085ce49 RD |
11379 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); |
11380 | result = (wxArrayInt *) &_result_ref; | |
d14a1e28 | 11381 | } |
0085ce49 RD |
11382 | wxPyEndAllowThreads(__tstate); |
11383 | if (PyErr_Occurred()) SWIG_fail; | |
11384 | } | |
11385 | { | |
b39fe951 | 11386 | resultobj = wxArrayInt2PyList_helper(*result); |
0085ce49 RD |
11387 | } |
11388 | return resultobj; | |
11389 | fail: | |
11390 | return NULL; | |
d14a1e28 RD |
11391 | } |
11392 | ||
11393 | ||
0085ce49 RD |
11394 | SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11395 | PyObject *resultobj = 0; | |
11396 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11397 | long result; | |
11398 | void *argp1 = 0 ; | |
11399 | int res1 = 0 ; | |
11400 | PyObject *swig_obj[1] ; | |
11401 | ||
11402 | if (!args) SWIG_fail; | |
11403 | swig_obj[0] = args; | |
11404 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11405 | if (!SWIG_IsOK(res1)) { | |
11406 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11407 | } | |
11408 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11409 | { | |
11410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11411 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
11412 | wxPyEndAllowThreads(__tstate); | |
11413 | if (PyErr_Occurred()) SWIG_fail; | |
11414 | } | |
11415 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11416 | return resultobj; | |
11417 | fail: | |
11418 | return NULL; | |
d14a1e28 RD |
11419 | } |
11420 | ||
11421 | ||
0085ce49 RD |
11422 | SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11423 | PyObject *resultobj = 0; | |
11424 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11425 | long result; | |
11426 | void *argp1 = 0 ; | |
11427 | int res1 = 0 ; | |
11428 | PyObject *swig_obj[1] ; | |
11429 | ||
11430 | if (!args) SWIG_fail; | |
11431 | swig_obj[0] = args; | |
11432 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11433 | if (!SWIG_IsOK(res1)) { | |
11434 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11435 | } | |
11436 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11437 | { | |
11438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11439 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
11440 | wxPyEndAllowThreads(__tstate); | |
11441 | if (PyErr_Occurred()) SWIG_fail; | |
11442 | } | |
11443 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11444 | return resultobj; | |
11445 | fail: | |
11446 | return NULL; | |
d14a1e28 RD |
11447 | } |
11448 | ||
11449 | ||
0085ce49 RD |
11450 | SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11451 | PyObject *resultobj = 0; | |
11452 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11453 | long result; | |
11454 | void *argp1 = 0 ; | |
11455 | int res1 = 0 ; | |
11456 | PyObject *swig_obj[1] ; | |
11457 | ||
11458 | if (!args) SWIG_fail; | |
11459 | swig_obj[0] = args; | |
11460 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11461 | if (!SWIG_IsOK(res1)) { | |
11462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11463 | } | |
11464 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11465 | { | |
11466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11467 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
11468 | wxPyEndAllowThreads(__tstate); | |
11469 | if (PyErr_Occurred()) SWIG_fail; | |
11470 | } | |
11471 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11472 | return resultobj; | |
11473 | fail: | |
11474 | return NULL; | |
d14a1e28 RD |
11475 | } |
11476 | ||
11477 | ||
0085ce49 RD |
11478 | SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11479 | PyObject *resultobj = 0; | |
11480 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11481 | long result; | |
11482 | void *argp1 = 0 ; | |
11483 | int res1 = 0 ; | |
11484 | PyObject *swig_obj[1] ; | |
11485 | ||
11486 | if (!args) SWIG_fail; | |
11487 | swig_obj[0] = args; | |
11488 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11489 | if (!SWIG_IsOK(res1)) { | |
11490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11491 | } | |
11492 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11493 | { | |
11494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11495 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
11496 | wxPyEndAllowThreads(__tstate); | |
11497 | if (PyErr_Occurred()) SWIG_fail; | |
11498 | } | |
11499 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
11500 | return resultobj; | |
11501 | fail: | |
11502 | return NULL; | |
d14a1e28 RD |
11503 | } |
11504 | ||
11505 | ||
0085ce49 RD |
11506 | SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11507 | PyObject *resultobj = 0; | |
11508 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
11509 | bool result; | |
11510 | void *argp1 = 0 ; | |
11511 | int res1 = 0 ; | |
11512 | PyObject *swig_obj[1] ; | |
11513 | ||
11514 | if (!args) SWIG_fail; | |
11515 | swig_obj[0] = args; | |
11516 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
11517 | if (!SWIG_IsOK(res1)) { | |
11518 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'"); | |
11519 | } | |
11520 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11521 | { | |
11522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11523 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
11524 | wxPyEndAllowThreads(__tstate); | |
11525 | if (PyErr_Occurred()) SWIG_fail; | |
11526 | } | |
11527 | { | |
11528 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11529 | } | |
11530 | return resultobj; | |
11531 | fail: | |
11532 | return NULL; | |
11533 | } | |
11534 | ||
11535 | ||
11536 | SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11537 | PyObject *resultobj = 0; | |
11538 | wxTextAttr *arg1 = 0 ; | |
11539 | wxTextAttr *arg2 = 0 ; | |
11540 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
11541 | wxTextAttr result; | |
11542 | void *argp1 = 0 ; | |
11543 | int res1 = 0 ; | |
11544 | void *argp2 = 0 ; | |
11545 | int res2 = 0 ; | |
11546 | void *argp3 = 0 ; | |
11547 | int res3 = 0 ; | |
11548 | PyObject * obj0 = 0 ; | |
11549 | PyObject * obj1 = 0 ; | |
11550 | PyObject * obj2 = 0 ; | |
11551 | char * kwnames[] = { | |
11552 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
11553 | }; | |
11554 | ||
11555 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11556 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
11557 | if (!SWIG_IsOK(res1)) { | |
11558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
11559 | } | |
11560 | if (!argp1) { | |
11561 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'"); | |
11562 | } | |
11563 | arg1 = reinterpret_cast< wxTextAttr * >(argp1); | |
11564 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
11565 | if (!SWIG_IsOK(res2)) { | |
11566 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
11567 | } | |
11568 | if (!argp2) { | |
11569 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
11570 | } | |
11571 | arg2 = reinterpret_cast< wxTextAttr * >(argp2); | |
11572 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11573 | if (!SWIG_IsOK(res3)) { | |
11574 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'"); | |
11575 | } | |
11576 | arg3 = reinterpret_cast< wxTextCtrl * >(argp3); | |
11577 | { | |
11578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11579 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
11580 | wxPyEndAllowThreads(__tstate); | |
11581 | if (PyErr_Occurred()) SWIG_fail; | |
11582 | } | |
11583 | resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 ); | |
11584 | return resultobj; | |
11585 | fail: | |
11586 | return NULL; | |
11587 | } | |
11588 | ||
11589 | ||
11590 | SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11591 | PyObject *obj; | |
11592 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11593 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj)); | |
11594 | return SWIG_Py_Void(); | |
11595 | } | |
11596 | ||
11597 | SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11598 | return SWIG_Python_InitShadowInstance(args); | |
11599 | } | |
11600 | ||
11601 | SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11602 | PyObject *resultobj = 0; | |
11603 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11604 | int arg2 = (int) -1 ; | |
11605 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11606 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11607 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11608 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11609 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11610 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11611 | long arg6 = (long) 0 ; | |
11612 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11613 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11614 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
11615 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11616 | wxTextCtrl *result = 0 ; | |
11617 | void *argp1 = 0 ; | |
11618 | int res1 = 0 ; | |
11619 | int val2 ; | |
11620 | int ecode2 = 0 ; | |
11621 | bool temp3 = false ; | |
11622 | wxPoint temp4 ; | |
11623 | wxSize temp5 ; | |
11624 | long val6 ; | |
11625 | int ecode6 = 0 ; | |
11626 | void *argp7 = 0 ; | |
11627 | int res7 = 0 ; | |
11628 | bool temp8 = false ; | |
11629 | PyObject * obj0 = 0 ; | |
11630 | PyObject * obj1 = 0 ; | |
11631 | PyObject * obj2 = 0 ; | |
11632 | PyObject * obj3 = 0 ; | |
11633 | PyObject * obj4 = 0 ; | |
11634 | PyObject * obj5 = 0 ; | |
11635 | PyObject * obj6 = 0 ; | |
11636 | PyObject * obj7 = 0 ; | |
11637 | char * kwnames[] = { | |
11638 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11639 | }; | |
11640 | ||
11641 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
11642 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
11643 | if (!SWIG_IsOK(res1)) { | |
11644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
11645 | } | |
11646 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
11647 | if (obj1) { | |
11648 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11649 | if (!SWIG_IsOK(ecode2)) { | |
11650 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'"); | |
11651 | } | |
11652 | arg2 = static_cast< int >(val2); | |
11653 | } | |
11654 | if (obj2) { | |
4f89f6a3 | 11655 | { |
0085ce49 RD |
11656 | arg3 = wxString_in_helper(obj2); |
11657 | if (arg3 == NULL) SWIG_fail; | |
11658 | temp3 = true; | |
4f89f6a3 | 11659 | } |
0085ce49 RD |
11660 | } |
11661 | if (obj3) { | |
d14a1e28 | 11662 | { |
0085ce49 RD |
11663 | arg4 = &temp4; |
11664 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 11665 | } |
0085ce49 RD |
11666 | } |
11667 | if (obj4) { | |
d14a1e28 | 11668 | { |
0085ce49 RD |
11669 | arg5 = &temp5; |
11670 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 11671 | } |
0085ce49 RD |
11672 | } |
11673 | if (obj5) { | |
11674 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
11675 | if (!SWIG_IsOK(ecode6)) { | |
11676 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'"); | |
11677 | } | |
11678 | arg6 = static_cast< long >(val6); | |
11679 | } | |
11680 | if (obj6) { | |
11681 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
11682 | if (!SWIG_IsOK(res7)) { | |
11683 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 11684 | } |
0085ce49 RD |
11685 | if (!argp7) { |
11686 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
093d3ff1 | 11687 | } |
0085ce49 RD |
11688 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
11689 | } | |
11690 | if (obj7) { | |
d14a1e28 | 11691 | { |
0085ce49 RD |
11692 | arg8 = wxString_in_helper(obj7); |
11693 | if (arg8 == NULL) SWIG_fail; | |
11694 | temp8 = true; | |
d14a1e28 | 11695 | } |
0085ce49 RD |
11696 | } |
11697 | { | |
11698 | if (!wxPyCheckForApp()) SWIG_fail; | |
11699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11700 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11701 | wxPyEndAllowThreads(__tstate); | |
11702 | if (PyErr_Occurred()) SWIG_fail; | |
11703 | } | |
11704 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 ); | |
11705 | { | |
11706 | if (temp3) | |
11707 | delete arg3; | |
11708 | } | |
11709 | { | |
11710 | if (temp8) | |
11711 | delete arg8; | |
11712 | } | |
11713 | return resultobj; | |
11714 | fail: | |
11715 | { | |
11716 | if (temp3) | |
11717 | delete arg3; | |
11718 | } | |
11719 | { | |
11720 | if (temp8) | |
11721 | delete arg8; | |
11722 | } | |
11723 | return NULL; | |
d14a1e28 RD |
11724 | } |
11725 | ||
11726 | ||
0085ce49 RD |
11727 | SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11728 | PyObject *resultobj = 0; | |
11729 | wxTextCtrl *result = 0 ; | |
11730 | ||
11731 | if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail; | |
11732 | { | |
11733 | if (!wxPyCheckForApp()) SWIG_fail; | |
11734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11735 | result = (wxTextCtrl *)new wxTextCtrl(); | |
11736 | wxPyEndAllowThreads(__tstate); | |
11737 | if (PyErr_Occurred()) SWIG_fail; | |
11738 | } | |
11739 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 ); | |
11740 | return resultobj; | |
11741 | fail: | |
11742 | return NULL; | |
11743 | } | |
11744 | ||
11745 | ||
11746 | SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11747 | PyObject *resultobj = 0; | |
11748 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11749 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11750 | int arg3 = (int) -1 ; | |
11751 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11752 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11753 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11754 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11755 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11756 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11757 | long arg7 = (long) 0 ; | |
11758 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11759 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11760 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
11761 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11762 | bool result; | |
11763 | void *argp1 = 0 ; | |
11764 | int res1 = 0 ; | |
11765 | void *argp2 = 0 ; | |
11766 | int res2 = 0 ; | |
11767 | int val3 ; | |
11768 | int ecode3 = 0 ; | |
11769 | bool temp4 = false ; | |
11770 | wxPoint temp5 ; | |
11771 | wxSize temp6 ; | |
11772 | long val7 ; | |
11773 | int ecode7 = 0 ; | |
11774 | void *argp8 = 0 ; | |
11775 | int res8 = 0 ; | |
11776 | bool temp9 = false ; | |
11777 | PyObject * obj0 = 0 ; | |
11778 | PyObject * obj1 = 0 ; | |
11779 | PyObject * obj2 = 0 ; | |
11780 | PyObject * obj3 = 0 ; | |
11781 | PyObject * obj4 = 0 ; | |
11782 | PyObject * obj5 = 0 ; | |
11783 | PyObject * obj6 = 0 ; | |
11784 | PyObject * obj7 = 0 ; | |
11785 | PyObject * obj8 = 0 ; | |
11786 | char * kwnames[] = { | |
11787 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11788 | }; | |
11789 | ||
11790 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
11791 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11792 | if (!SWIG_IsOK(res1)) { | |
11793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
11794 | } | |
11795 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11796 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
11797 | if (!SWIG_IsOK(res2)) { | |
11798 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
11799 | } | |
11800 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
11801 | if (obj2) { | |
11802 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11803 | if (!SWIG_IsOK(ecode3)) { | |
11804 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
11805 | } | |
11806 | arg3 = static_cast< int >(val3); | |
11807 | } | |
11808 | if (obj3) { | |
d14a1e28 | 11809 | { |
0085ce49 RD |
11810 | arg4 = wxString_in_helper(obj3); |
11811 | if (arg4 == NULL) SWIG_fail; | |
11812 | temp4 = true; | |
d14a1e28 | 11813 | } |
0085ce49 RD |
11814 | } |
11815 | if (obj4) { | |
d14a1e28 | 11816 | { |
0085ce49 RD |
11817 | arg5 = &temp5; |
11818 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 11819 | } |
0085ce49 RD |
11820 | } |
11821 | if (obj5) { | |
d14a1e28 | 11822 | { |
0085ce49 RD |
11823 | arg6 = &temp6; |
11824 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 11825 | } |
0085ce49 RD |
11826 | } |
11827 | if (obj6) { | |
11828 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
11829 | if (!SWIG_IsOK(ecode7)) { | |
11830 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
11831 | } | |
11832 | arg7 = static_cast< long >(val7); | |
11833 | } | |
11834 | if (obj7) { | |
11835 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
11836 | if (!SWIG_IsOK(res8)) { | |
11837 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 11838 | } |
0085ce49 RD |
11839 | if (!argp8) { |
11840 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
093d3ff1 | 11841 | } |
0085ce49 RD |
11842 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
11843 | } | |
11844 | if (obj8) { | |
d14a1e28 | 11845 | { |
0085ce49 RD |
11846 | arg9 = wxString_in_helper(obj8); |
11847 | if (arg9 == NULL) SWIG_fail; | |
11848 | temp9 = true; | |
d14a1e28 | 11849 | } |
0085ce49 RD |
11850 | } |
11851 | { | |
11852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11853 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11854 | wxPyEndAllowThreads(__tstate); | |
11855 | if (PyErr_Occurred()) SWIG_fail; | |
11856 | } | |
11857 | { | |
11858 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11859 | } | |
11860 | { | |
11861 | if (temp4) | |
11862 | delete arg4; | |
11863 | } | |
11864 | { | |
11865 | if (temp9) | |
11866 | delete arg9; | |
11867 | } | |
11868 | return resultobj; | |
11869 | fail: | |
11870 | { | |
11871 | if (temp4) | |
11872 | delete arg4; | |
11873 | } | |
11874 | { | |
11875 | if (temp9) | |
11876 | delete arg9; | |
11877 | } | |
11878 | return NULL; | |
d14a1e28 RD |
11879 | } |
11880 | ||
11881 | ||
0085ce49 RD |
11882 | SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11883 | PyObject *resultobj = 0; | |
11884 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11885 | wxString result; | |
11886 | void *argp1 = 0 ; | |
11887 | int res1 = 0 ; | |
11888 | PyObject *swig_obj[1] ; | |
11889 | ||
11890 | if (!args) SWIG_fail; | |
11891 | swig_obj[0] = args; | |
11892 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11893 | if (!SWIG_IsOK(res1)) { | |
11894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11895 | } | |
11896 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11897 | { | |
11898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11899 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
11900 | wxPyEndAllowThreads(__tstate); | |
11901 | if (PyErr_Occurred()) SWIG_fail; | |
11902 | } | |
11903 | { | |
11904 | #if wxUSE_UNICODE | |
11905 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11906 | #else | |
11907 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11908 | #endif | |
11909 | } | |
11910 | return resultobj; | |
11911 | fail: | |
11912 | return NULL; | |
11913 | } | |
11914 | ||
11915 | ||
11916 | SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11917 | PyObject *resultobj = 0; | |
11918 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11919 | wxString *arg2 = 0 ; | |
11920 | void *argp1 = 0 ; | |
11921 | int res1 = 0 ; | |
11922 | bool temp2 = false ; | |
11923 | PyObject * obj0 = 0 ; | |
11924 | PyObject * obj1 = 0 ; | |
11925 | char * kwnames[] = { | |
11926 | (char *) "self",(char *) "value", NULL | |
11927 | }; | |
11928 | ||
11929 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
11930 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11931 | if (!SWIG_IsOK(res1)) { | |
11932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
11933 | } | |
11934 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11935 | { | |
11936 | arg2 = wxString_in_helper(obj1); | |
11937 | if (arg2 == NULL) SWIG_fail; | |
11938 | temp2 = true; | |
11939 | } | |
11940 | { | |
11941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11942 | (arg1)->SetValue((wxString const &)*arg2); | |
11943 | wxPyEndAllowThreads(__tstate); | |
11944 | if (PyErr_Occurred()) SWIG_fail; | |
11945 | } | |
11946 | resultobj = SWIG_Py_Void(); | |
11947 | { | |
11948 | if (temp2) | |
11949 | delete arg2; | |
11950 | } | |
11951 | return resultobj; | |
11952 | fail: | |
11953 | { | |
11954 | if (temp2) | |
11955 | delete arg2; | |
11956 | } | |
11957 | return NULL; | |
11958 | } | |
11959 | ||
11960 | ||
b39fe951 RD |
11961 | SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11962 | PyObject *resultobj = 0; | |
11963 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11964 | bool result; | |
11965 | void *argp1 = 0 ; | |
11966 | int res1 = 0 ; | |
11967 | PyObject *swig_obj[1] ; | |
11968 | ||
11969 | if (!args) SWIG_fail; | |
11970 | swig_obj[0] = args; | |
11971 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
11972 | if (!SWIG_IsOK(res1)) { | |
11973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
11974 | } | |
11975 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
11976 | { | |
11977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11978 | result = (bool)((wxTextCtrl const *)arg1)->IsEmpty(); | |
11979 | wxPyEndAllowThreads(__tstate); | |
11980 | if (PyErr_Occurred()) SWIG_fail; | |
11981 | } | |
11982 | { | |
11983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11984 | } | |
11985 | return resultobj; | |
11986 | fail: | |
11987 | return NULL; | |
11988 | } | |
11989 | ||
11990 | ||
11991 | SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11992 | PyObject *resultobj = 0; | |
11993 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11994 | wxString *arg2 = 0 ; | |
11995 | void *argp1 = 0 ; | |
11996 | int res1 = 0 ; | |
11997 | bool temp2 = false ; | |
11998 | PyObject * obj0 = 0 ; | |
11999 | PyObject * obj1 = 0 ; | |
12000 | char * kwnames[] = { | |
12001 | (char *) "self",(char *) "value", NULL | |
12002 | }; | |
12003 | ||
12004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
12005 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12006 | if (!SWIG_IsOK(res1)) { | |
12007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12008 | } | |
12009 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12010 | { | |
12011 | arg2 = wxString_in_helper(obj1); | |
12012 | if (arg2 == NULL) SWIG_fail; | |
12013 | temp2 = true; | |
12014 | } | |
12015 | { | |
12016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12017 | (arg1)->ChangeValue((wxString const &)*arg2); | |
12018 | wxPyEndAllowThreads(__tstate); | |
12019 | if (PyErr_Occurred()) SWIG_fail; | |
12020 | } | |
12021 | resultobj = SWIG_Py_Void(); | |
12022 | { | |
12023 | if (temp2) | |
12024 | delete arg2; | |
12025 | } | |
12026 | return resultobj; | |
12027 | fail: | |
12028 | { | |
12029 | if (temp2) | |
12030 | delete arg2; | |
12031 | } | |
12032 | return NULL; | |
12033 | } | |
12034 | ||
12035 | ||
0085ce49 RD |
12036 | SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12037 | PyObject *resultobj = 0; | |
12038 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12039 | long arg2 ; | |
12040 | long arg3 ; | |
12041 | wxString result; | |
12042 | void *argp1 = 0 ; | |
12043 | int res1 = 0 ; | |
12044 | long val2 ; | |
12045 | int ecode2 = 0 ; | |
12046 | long val3 ; | |
12047 | int ecode3 = 0 ; | |
12048 | PyObject * obj0 = 0 ; | |
12049 | PyObject * obj1 = 0 ; | |
12050 | PyObject * obj2 = 0 ; | |
12051 | char * kwnames[] = { | |
2131d850 | 12052 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
12053 | }; |
12054 | ||
12055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12057 | if (!SWIG_IsOK(res1)) { | |
12058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12059 | } | |
12060 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12061 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12062 | if (!SWIG_IsOK(ecode2)) { | |
12063 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'"); | |
12064 | } | |
12065 | arg2 = static_cast< long >(val2); | |
12066 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12067 | if (!SWIG_IsOK(ecode3)) { | |
12068 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'"); | |
12069 | } | |
12070 | arg3 = static_cast< long >(val3); | |
12071 | { | |
12072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12073 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
12074 | wxPyEndAllowThreads(__tstate); | |
12075 | if (PyErr_Occurred()) SWIG_fail; | |
12076 | } | |
12077 | { | |
12078 | #if wxUSE_UNICODE | |
12079 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12080 | #else | |
12081 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12082 | #endif | |
12083 | } | |
12084 | return resultobj; | |
12085 | fail: | |
12086 | return NULL; | |
12087 | } | |
12088 | ||
12089 | ||
12090 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12091 | PyObject *resultobj = 0; | |
12092 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12093 | long arg2 ; | |
12094 | int result; | |
12095 | void *argp1 = 0 ; | |
12096 | int res1 = 0 ; | |
12097 | long val2 ; | |
12098 | int ecode2 = 0 ; | |
12099 | PyObject * obj0 = 0 ; | |
12100 | PyObject * obj1 = 0 ; | |
12101 | char * kwnames[] = { | |
12102 | (char *) "self",(char *) "lineNo", NULL | |
12103 | }; | |
12104 | ||
12105 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
12106 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12107 | if (!SWIG_IsOK(res1)) { | |
12108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12109 | } | |
12110 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12111 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12112 | if (!SWIG_IsOK(ecode2)) { | |
12113 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'"); | |
12114 | } | |
12115 | arg2 = static_cast< long >(val2); | |
12116 | { | |
12117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12118 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
12119 | wxPyEndAllowThreads(__tstate); | |
12120 | if (PyErr_Occurred()) SWIG_fail; | |
12121 | } | |
12122 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12123 | return resultobj; | |
12124 | fail: | |
12125 | return NULL; | |
12126 | } | |
12127 | ||
12128 | ||
12129 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12130 | PyObject *resultobj = 0; | |
12131 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12132 | long arg2 ; | |
12133 | wxString result; | |
12134 | void *argp1 = 0 ; | |
12135 | int res1 = 0 ; | |
12136 | long val2 ; | |
12137 | int ecode2 = 0 ; | |
12138 | PyObject * obj0 = 0 ; | |
12139 | PyObject * obj1 = 0 ; | |
12140 | char * kwnames[] = { | |
12141 | (char *) "self",(char *) "lineNo", NULL | |
12142 | }; | |
12143 | ||
12144 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail; | |
12145 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12146 | if (!SWIG_IsOK(res1)) { | |
12147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12148 | } | |
12149 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12150 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12151 | if (!SWIG_IsOK(ecode2)) { | |
12152 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'"); | |
12153 | } | |
12154 | arg2 = static_cast< long >(val2); | |
12155 | { | |
12156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12157 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
12158 | wxPyEndAllowThreads(__tstate); | |
12159 | if (PyErr_Occurred()) SWIG_fail; | |
12160 | } | |
12161 | { | |
12162 | #if wxUSE_UNICODE | |
12163 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12164 | #else | |
12165 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12166 | #endif | |
12167 | } | |
12168 | return resultobj; | |
12169 | fail: | |
12170 | return NULL; | |
d14a1e28 RD |
12171 | } |
12172 | ||
12173 | ||
0085ce49 RD |
12174 | SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12175 | PyObject *resultobj = 0; | |
12176 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12177 | int result; | |
12178 | void *argp1 = 0 ; | |
12179 | int res1 = 0 ; | |
12180 | PyObject *swig_obj[1] ; | |
12181 | ||
12182 | if (!args) SWIG_fail; | |
12183 | swig_obj[0] = args; | |
12184 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12185 | if (!SWIG_IsOK(res1)) { | |
12186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12187 | } | |
12188 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12189 | { | |
12190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12191 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
12192 | wxPyEndAllowThreads(__tstate); | |
12193 | if (PyErr_Occurred()) SWIG_fail; | |
12194 | } | |
12195 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12196 | return resultobj; | |
12197 | fail: | |
12198 | return NULL; | |
d14a1e28 RD |
12199 | } |
12200 | ||
12201 | ||
0085ce49 RD |
12202 | SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12203 | PyObject *resultobj = 0; | |
12204 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12205 | bool result; | |
12206 | void *argp1 = 0 ; | |
12207 | int res1 = 0 ; | |
12208 | PyObject *swig_obj[1] ; | |
12209 | ||
12210 | if (!args) SWIG_fail; | |
12211 | swig_obj[0] = args; | |
12212 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12213 | if (!SWIG_IsOK(res1)) { | |
12214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12215 | } | |
12216 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12217 | { | |
12218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12219 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
12220 | wxPyEndAllowThreads(__tstate); | |
12221 | if (PyErr_Occurred()) SWIG_fail; | |
12222 | } | |
12223 | { | |
12224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12225 | } | |
12226 | return resultobj; | |
12227 | fail: | |
12228 | return NULL; | |
c3eb6258 RD |
12229 | } |
12230 | ||
12231 | ||
0085ce49 RD |
12232 | SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12233 | PyObject *resultobj = 0; | |
12234 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12235 | bool result; | |
12236 | void *argp1 = 0 ; | |
12237 | int res1 = 0 ; | |
12238 | PyObject *swig_obj[1] ; | |
12239 | ||
12240 | if (!args) SWIG_fail; | |
12241 | swig_obj[0] = args; | |
12242 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12243 | if (!SWIG_IsOK(res1)) { | |
12244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12245 | } | |
12246 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12247 | { | |
12248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12249 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
12250 | wxPyEndAllowThreads(__tstate); | |
12251 | if (PyErr_Occurred()) SWIG_fail; | |
12252 | } | |
12253 | { | |
12254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12255 | } | |
12256 | return resultobj; | |
12257 | fail: | |
12258 | return NULL; | |
74a57fcd RD |
12259 | } |
12260 | ||
12261 | ||
0085ce49 RD |
12262 | SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12263 | PyObject *resultobj = 0; | |
12264 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12265 | bool result; | |
12266 | void *argp1 = 0 ; | |
12267 | int res1 = 0 ; | |
12268 | PyObject *swig_obj[1] ; | |
12269 | ||
12270 | if (!args) SWIG_fail; | |
12271 | swig_obj[0] = args; | |
12272 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12273 | if (!SWIG_IsOK(res1)) { | |
12274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12275 | } | |
12276 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12277 | { | |
12278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12279 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
12280 | wxPyEndAllowThreads(__tstate); | |
12281 | if (PyErr_Occurred()) SWIG_fail; | |
12282 | } | |
12283 | { | |
12284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12285 | } | |
12286 | return resultobj; | |
12287 | fail: | |
12288 | return NULL; | |
d14a1e28 RD |
12289 | } |
12290 | ||
12291 | ||
0085ce49 RD |
12292 | SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12293 | PyObject *resultobj = 0; | |
12294 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12295 | bool result; | |
12296 | void *argp1 = 0 ; | |
12297 | int res1 = 0 ; | |
12298 | PyObject *swig_obj[1] ; | |
12299 | ||
12300 | if (!args) SWIG_fail; | |
12301 | swig_obj[0] = args; | |
12302 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12303 | if (!SWIG_IsOK(res1)) { | |
12304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12305 | } | |
12306 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12307 | { | |
12308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12309 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
12310 | wxPyEndAllowThreads(__tstate); | |
12311 | if (PyErr_Occurred()) SWIG_fail; | |
12312 | } | |
12313 | { | |
12314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12315 | } | |
12316 | return resultobj; | |
12317 | fail: | |
12318 | return NULL; | |
12319 | } | |
12320 | ||
12321 | ||
12322 | SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12323 | PyObject *resultobj = 0; | |
12324 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12325 | long *arg2 = (long *) 0 ; | |
12326 | long *arg3 = (long *) 0 ; | |
12327 | void *argp1 = 0 ; | |
12328 | int res1 = 0 ; | |
12329 | long temp2 ; | |
12330 | int res2 = SWIG_TMPOBJ ; | |
12331 | long temp3 ; | |
12332 | int res3 = SWIG_TMPOBJ ; | |
12333 | PyObject *swig_obj[1] ; | |
12334 | ||
12335 | arg2 = &temp2; | |
12336 | arg3 = &temp3; | |
12337 | if (!args) SWIG_fail; | |
12338 | swig_obj[0] = args; | |
12339 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12340 | if (!SWIG_IsOK(res1)) { | |
12341 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12342 | } | |
12343 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12344 | { | |
12345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12346 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
12347 | wxPyEndAllowThreads(__tstate); | |
12348 | if (PyErr_Occurred()) SWIG_fail; | |
12349 | } | |
12350 | resultobj = SWIG_Py_Void(); | |
12351 | if (SWIG_IsTmpObj(res2)) { | |
12352 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2))); | |
12353 | } else { | |
12354 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12355 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags)); | |
12356 | } | |
12357 | if (SWIG_IsTmpObj(res3)) { | |
12358 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
12359 | } else { | |
12360 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
12361 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
12362 | } | |
12363 | return resultobj; | |
12364 | fail: | |
12365 | return NULL; | |
d14a1e28 RD |
12366 | } |
12367 | ||
12368 | ||
0085ce49 RD |
12369 | SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12370 | PyObject *resultobj = 0; | |
12371 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12372 | wxString result; | |
12373 | void *argp1 = 0 ; | |
12374 | int res1 = 0 ; | |
12375 | PyObject *swig_obj[1] ; | |
12376 | ||
12377 | if (!args) SWIG_fail; | |
12378 | swig_obj[0] = args; | |
12379 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12380 | if (!SWIG_IsOK(res1)) { | |
12381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
12382 | } | |
12383 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12384 | { | |
12385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12386 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
12387 | wxPyEndAllowThreads(__tstate); | |
12388 | if (PyErr_Occurred()) SWIG_fail; | |
12389 | } | |
12390 | { | |
12391 | #if wxUSE_UNICODE | |
12392 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12393 | #else | |
12394 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12395 | #endif | |
12396 | } | |
12397 | return resultobj; | |
12398 | fail: | |
12399 | return NULL; | |
d14a1e28 RD |
12400 | } |
12401 | ||
12402 | ||
0085ce49 RD |
12403 | SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12404 | PyObject *resultobj = 0; | |
12405 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12406 | void *argp1 = 0 ; | |
12407 | int res1 = 0 ; | |
12408 | PyObject *swig_obj[1] ; | |
12409 | ||
12410 | if (!args) SWIG_fail; | |
12411 | swig_obj[0] = args; | |
12412 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12413 | if (!SWIG_IsOK(res1)) { | |
12414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12415 | } | |
12416 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12417 | { | |
12418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12419 | (arg1)->Clear(); | |
12420 | wxPyEndAllowThreads(__tstate); | |
12421 | if (PyErr_Occurred()) SWIG_fail; | |
12422 | } | |
12423 | resultobj = SWIG_Py_Void(); | |
12424 | return resultobj; | |
12425 | fail: | |
12426 | return NULL; | |
12427 | } | |
12428 | ||
12429 | ||
12430 | SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12431 | PyObject *resultobj = 0; | |
12432 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12433 | long arg2 ; | |
12434 | long arg3 ; | |
12435 | wxString *arg4 = 0 ; | |
12436 | void *argp1 = 0 ; | |
12437 | int res1 = 0 ; | |
12438 | long val2 ; | |
12439 | int ecode2 = 0 ; | |
12440 | long val3 ; | |
12441 | int ecode3 = 0 ; | |
12442 | bool temp4 = false ; | |
12443 | PyObject * obj0 = 0 ; | |
12444 | PyObject * obj1 = 0 ; | |
12445 | PyObject * obj2 = 0 ; | |
12446 | PyObject * obj3 = 0 ; | |
12447 | char * kwnames[] = { | |
2131d850 | 12448 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL |
0085ce49 RD |
12449 | }; |
12450 | ||
12451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
12452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12453 | if (!SWIG_IsOK(res1)) { | |
12454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12455 | } | |
12456 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12457 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12458 | if (!SWIG_IsOK(ecode2)) { | |
12459 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'"); | |
12460 | } | |
12461 | arg2 = static_cast< long >(val2); | |
12462 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12463 | if (!SWIG_IsOK(ecode3)) { | |
12464 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'"); | |
12465 | } | |
12466 | arg3 = static_cast< long >(val3); | |
12467 | { | |
12468 | arg4 = wxString_in_helper(obj3); | |
12469 | if (arg4 == NULL) SWIG_fail; | |
12470 | temp4 = true; | |
12471 | } | |
12472 | { | |
12473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12474 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
12475 | wxPyEndAllowThreads(__tstate); | |
12476 | if (PyErr_Occurred()) SWIG_fail; | |
12477 | } | |
12478 | resultobj = SWIG_Py_Void(); | |
12479 | { | |
12480 | if (temp4) | |
12481 | delete arg4; | |
12482 | } | |
12483 | return resultobj; | |
12484 | fail: | |
12485 | { | |
12486 | if (temp4) | |
12487 | delete arg4; | |
12488 | } | |
12489 | return NULL; | |
12490 | } | |
12491 | ||
12492 | ||
12493 | SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12494 | PyObject *resultobj = 0; | |
12495 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12496 | long arg2 ; | |
12497 | long arg3 ; | |
12498 | void *argp1 = 0 ; | |
12499 | int res1 = 0 ; | |
12500 | long val2 ; | |
12501 | int ecode2 = 0 ; | |
12502 | long val3 ; | |
12503 | int ecode3 = 0 ; | |
12504 | PyObject * obj0 = 0 ; | |
12505 | PyObject * obj1 = 0 ; | |
12506 | PyObject * obj2 = 0 ; | |
12507 | char * kwnames[] = { | |
2131d850 | 12508 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
12509 | }; |
12510 | ||
12511 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12512 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12513 | if (!SWIG_IsOK(res1)) { | |
12514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12515 | } | |
12516 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12517 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12518 | if (!SWIG_IsOK(ecode2)) { | |
12519 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'"); | |
12520 | } | |
12521 | arg2 = static_cast< long >(val2); | |
12522 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12523 | if (!SWIG_IsOK(ecode3)) { | |
12524 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'"); | |
12525 | } | |
12526 | arg3 = static_cast< long >(val3); | |
12527 | { | |
12528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12529 | (arg1)->Remove(arg2,arg3); | |
12530 | wxPyEndAllowThreads(__tstate); | |
12531 | if (PyErr_Occurred()) SWIG_fail; | |
12532 | } | |
12533 | resultobj = SWIG_Py_Void(); | |
12534 | return resultobj; | |
12535 | fail: | |
12536 | return NULL; | |
12537 | } | |
12538 | ||
12539 | ||
12540 | SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12541 | PyObject *resultobj = 0; | |
12542 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12543 | wxString *arg2 = 0 ; | |
f5263701 | 12544 | int arg3 = (int) wxTEXT_TYPE_ANY ; |
0085ce49 RD |
12545 | bool result; |
12546 | void *argp1 = 0 ; | |
12547 | int res1 = 0 ; | |
12548 | bool temp2 = false ; | |
f5263701 RD |
12549 | int val3 ; |
12550 | int ecode3 = 0 ; | |
0085ce49 RD |
12551 | PyObject * obj0 = 0 ; |
12552 | PyObject * obj1 = 0 ; | |
f5263701 | 12553 | PyObject * obj2 = 0 ; |
0085ce49 | 12554 | char * kwnames[] = { |
f5263701 | 12555 | (char *) "self",(char *) "file",(char *) "fileType", NULL |
0085ce49 RD |
12556 | }; |
12557 | ||
f5263701 | 12558 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
0085ce49 RD |
12559 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); |
12560 | if (!SWIG_IsOK(res1)) { | |
12561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12562 | } | |
12563 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12564 | { | |
12565 | arg2 = wxString_in_helper(obj1); | |
12566 | if (arg2 == NULL) SWIG_fail; | |
12567 | temp2 = true; | |
12568 | } | |
f5263701 RD |
12569 | if (obj2) { |
12570 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12571 | if (!SWIG_IsOK(ecode3)) { | |
12572 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'"); | |
12573 | } | |
12574 | arg3 = static_cast< int >(val3); | |
12575 | } | |
0085ce49 RD |
12576 | { |
12577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f5263701 | 12578 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
0085ce49 RD |
12579 | wxPyEndAllowThreads(__tstate); |
12580 | if (PyErr_Occurred()) SWIG_fail; | |
12581 | } | |
12582 | { | |
12583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12584 | } | |
12585 | { | |
12586 | if (temp2) | |
12587 | delete arg2; | |
12588 | } | |
12589 | return resultobj; | |
12590 | fail: | |
12591 | { | |
12592 | if (temp2) | |
12593 | delete arg2; | |
12594 | } | |
12595 | return NULL; | |
12596 | } | |
12597 | ||
12598 | ||
12599 | SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12600 | PyObject *resultobj = 0; | |
12601 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12602 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12603 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
f5263701 | 12604 | int arg3 = (int) wxTEXT_TYPE_ANY ; |
0085ce49 RD |
12605 | bool result; |
12606 | void *argp1 = 0 ; | |
12607 | int res1 = 0 ; | |
12608 | bool temp2 = false ; | |
f5263701 RD |
12609 | int val3 ; |
12610 | int ecode3 = 0 ; | |
0085ce49 RD |
12611 | PyObject * obj0 = 0 ; |
12612 | PyObject * obj1 = 0 ; | |
f5263701 | 12613 | PyObject * obj2 = 0 ; |
0085ce49 | 12614 | char * kwnames[] = { |
f5263701 | 12615 | (char *) "self",(char *) "file",(char *) "fileType", NULL |
0085ce49 RD |
12616 | }; |
12617 | ||
f5263701 | 12618 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
0085ce49 RD |
12619 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); |
12620 | if (!SWIG_IsOK(res1)) { | |
12621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12622 | } | |
12623 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12624 | if (obj1) { | |
4f89f6a3 | 12625 | { |
0085ce49 RD |
12626 | arg2 = wxString_in_helper(obj1); |
12627 | if (arg2 == NULL) SWIG_fail; | |
12628 | temp2 = true; | |
4f89f6a3 | 12629 | } |
0085ce49 | 12630 | } |
f5263701 RD |
12631 | if (obj2) { |
12632 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12633 | if (!SWIG_IsOK(ecode3)) { | |
12634 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'"); | |
12635 | } | |
12636 | arg3 = static_cast< int >(val3); | |
12637 | } | |
0085ce49 RD |
12638 | { |
12639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f5263701 | 12640 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); |
0085ce49 RD |
12641 | wxPyEndAllowThreads(__tstate); |
12642 | if (PyErr_Occurred()) SWIG_fail; | |
12643 | } | |
12644 | { | |
12645 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12646 | } | |
12647 | { | |
12648 | if (temp2) | |
12649 | delete arg2; | |
12650 | } | |
12651 | return resultobj; | |
12652 | fail: | |
12653 | { | |
12654 | if (temp2) | |
12655 | delete arg2; | |
12656 | } | |
12657 | return NULL; | |
d14a1e28 RD |
12658 | } |
12659 | ||
12660 | ||
0085ce49 RD |
12661 | SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12662 | PyObject *resultobj = 0; | |
12663 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12664 | void *argp1 = 0 ; | |
12665 | int res1 = 0 ; | |
12666 | PyObject *swig_obj[1] ; | |
12667 | ||
12668 | if (!args) SWIG_fail; | |
12669 | swig_obj[0] = args; | |
12670 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12671 | if (!SWIG_IsOK(res1)) { | |
12672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12673 | } | |
12674 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12675 | { | |
12676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12677 | (arg1)->MarkDirty(); | |
12678 | wxPyEndAllowThreads(__tstate); | |
12679 | if (PyErr_Occurred()) SWIG_fail; | |
12680 | } | |
12681 | resultobj = SWIG_Py_Void(); | |
12682 | return resultobj; | |
12683 | fail: | |
12684 | return NULL; | |
d14a1e28 RD |
12685 | } |
12686 | ||
12687 | ||
0085ce49 RD |
12688 | SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12689 | PyObject *resultobj = 0; | |
12690 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12691 | void *argp1 = 0 ; | |
12692 | int res1 = 0 ; | |
12693 | PyObject *swig_obj[1] ; | |
12694 | ||
12695 | if (!args) SWIG_fail; | |
12696 | swig_obj[0] = args; | |
12697 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12698 | if (!SWIG_IsOK(res1)) { | |
12699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12700 | } | |
12701 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12702 | { | |
12703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12704 | (arg1)->DiscardEdits(); | |
12705 | wxPyEndAllowThreads(__tstate); | |
12706 | if (PyErr_Occurred()) SWIG_fail; | |
12707 | } | |
12708 | resultobj = SWIG_Py_Void(); | |
12709 | return resultobj; | |
12710 | fail: | |
12711 | return NULL; | |
12712 | } | |
12713 | ||
12714 | ||
b02396e8 RD |
12715 | SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12716 | PyObject *resultobj = 0; | |
12717 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12718 | bool arg2 ; | |
12719 | void *argp1 = 0 ; | |
12720 | int res1 = 0 ; | |
12721 | bool val2 ; | |
12722 | int ecode2 = 0 ; | |
12723 | PyObject * obj0 = 0 ; | |
12724 | PyObject * obj1 = 0 ; | |
12725 | char * kwnames[] = { | |
12726 | (char *) "self",(char *) "modified", NULL | |
12727 | }; | |
12728 | ||
12729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail; | |
12730 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12731 | if (!SWIG_IsOK(res1)) { | |
12732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12733 | } | |
12734 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12735 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
12736 | if (!SWIG_IsOK(ecode2)) { | |
12737 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'"); | |
12738 | } | |
12739 | arg2 = static_cast< bool >(val2); | |
12740 | { | |
12741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12742 | (arg1)->SetModified(arg2); | |
12743 | wxPyEndAllowThreads(__tstate); | |
12744 | if (PyErr_Occurred()) SWIG_fail; | |
12745 | } | |
12746 | resultobj = SWIG_Py_Void(); | |
12747 | return resultobj; | |
12748 | fail: | |
12749 | return NULL; | |
12750 | } | |
12751 | ||
12752 | ||
0085ce49 RD |
12753 | SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12754 | PyObject *resultobj = 0; | |
12755 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12756 | unsigned long arg2 ; | |
12757 | void *argp1 = 0 ; | |
12758 | int res1 = 0 ; | |
12759 | unsigned long val2 ; | |
12760 | int ecode2 = 0 ; | |
12761 | PyObject * obj0 = 0 ; | |
12762 | PyObject * obj1 = 0 ; | |
12763 | char * kwnames[] = { | |
12764 | (char *) "self",(char *) "len", NULL | |
12765 | }; | |
12766 | ||
12767 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
12768 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12769 | if (!SWIG_IsOK(res1)) { | |
12770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12771 | } | |
12772 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12773 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
12774 | if (!SWIG_IsOK(ecode2)) { | |
12775 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'"); | |
12776 | } | |
12777 | arg2 = static_cast< unsigned long >(val2); | |
12778 | { | |
12779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12780 | (arg1)->SetMaxLength(arg2); | |
12781 | wxPyEndAllowThreads(__tstate); | |
12782 | if (PyErr_Occurred()) SWIG_fail; | |
12783 | } | |
12784 | resultobj = SWIG_Py_Void(); | |
12785 | return resultobj; | |
12786 | fail: | |
12787 | return NULL; | |
12788 | } | |
12789 | ||
12790 | ||
12791 | SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12792 | PyObject *resultobj = 0; | |
12793 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12794 | wxString *arg2 = 0 ; | |
12795 | void *argp1 = 0 ; | |
12796 | int res1 = 0 ; | |
12797 | bool temp2 = false ; | |
12798 | PyObject * obj0 = 0 ; | |
12799 | PyObject * obj1 = 0 ; | |
12800 | char * kwnames[] = { | |
12801 | (char *) "self",(char *) "text", NULL | |
12802 | }; | |
12803 | ||
12804 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail; | |
12805 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12806 | if (!SWIG_IsOK(res1)) { | |
12807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12808 | } | |
12809 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12810 | { | |
12811 | arg2 = wxString_in_helper(obj1); | |
12812 | if (arg2 == NULL) SWIG_fail; | |
12813 | temp2 = true; | |
12814 | } | |
12815 | { | |
12816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12817 | (arg1)->WriteText((wxString const &)*arg2); | |
12818 | wxPyEndAllowThreads(__tstate); | |
12819 | if (PyErr_Occurred()) SWIG_fail; | |
12820 | } | |
12821 | resultobj = SWIG_Py_Void(); | |
12822 | { | |
12823 | if (temp2) | |
12824 | delete arg2; | |
12825 | } | |
12826 | return resultobj; | |
12827 | fail: | |
12828 | { | |
12829 | if (temp2) | |
12830 | delete arg2; | |
12831 | } | |
12832 | return NULL; | |
d14a1e28 RD |
12833 | } |
12834 | ||
12835 | ||
0085ce49 RD |
12836 | SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12837 | PyObject *resultobj = 0; | |
12838 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12839 | wxString *arg2 = 0 ; | |
12840 | void *argp1 = 0 ; | |
12841 | int res1 = 0 ; | |
12842 | bool temp2 = false ; | |
12843 | PyObject * obj0 = 0 ; | |
12844 | PyObject * obj1 = 0 ; | |
12845 | char * kwnames[] = { | |
12846 | (char *) "self",(char *) "text", NULL | |
12847 | }; | |
12848 | ||
12849 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail; | |
12850 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12851 | if (!SWIG_IsOK(res1)) { | |
12852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12853 | } | |
12854 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12855 | { | |
12856 | arg2 = wxString_in_helper(obj1); | |
12857 | if (arg2 == NULL) SWIG_fail; | |
12858 | temp2 = true; | |
12859 | } | |
12860 | { | |
12861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12862 | (arg1)->AppendText((wxString const &)*arg2); | |
12863 | wxPyEndAllowThreads(__tstate); | |
12864 | if (PyErr_Occurred()) SWIG_fail; | |
12865 | } | |
12866 | resultobj = SWIG_Py_Void(); | |
12867 | { | |
12868 | if (temp2) | |
12869 | delete arg2; | |
12870 | } | |
12871 | return resultobj; | |
12872 | fail: | |
12873 | { | |
12874 | if (temp2) | |
12875 | delete arg2; | |
12876 | } | |
12877 | return NULL; | |
12878 | } | |
12879 | ||
12880 | ||
12881 | SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12882 | PyObject *resultobj = 0; | |
12883 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12884 | wxKeyEvent *arg2 = 0 ; | |
12885 | bool result; | |
12886 | void *argp1 = 0 ; | |
12887 | int res1 = 0 ; | |
12888 | void *argp2 = 0 ; | |
12889 | int res2 = 0 ; | |
12890 | PyObject * obj0 = 0 ; | |
12891 | PyObject * obj1 = 0 ; | |
12892 | char * kwnames[] = { | |
12893 | (char *) "self",(char *) "event", NULL | |
12894 | }; | |
12895 | ||
12896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail; | |
12897 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12898 | if (!SWIG_IsOK(res1)) { | |
12899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12900 | } | |
12901 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12902 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0); | |
12903 | if (!SWIG_IsOK(res2)) { | |
12904 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
12905 | } | |
12906 | if (!argp2) { | |
12907 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
12908 | } | |
12909 | arg2 = reinterpret_cast< wxKeyEvent * >(argp2); | |
12910 | { | |
12911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12912 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
12913 | wxPyEndAllowThreads(__tstate); | |
12914 | if (PyErr_Occurred()) SWIG_fail; | |
12915 | } | |
12916 | { | |
12917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12918 | } | |
12919 | return resultobj; | |
12920 | fail: | |
12921 | return NULL; | |
12922 | } | |
12923 | ||
12924 | ||
12925 | SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12926 | PyObject *resultobj = 0; | |
12927 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12928 | long arg2 ; | |
12929 | long arg3 ; | |
12930 | wxTextAttr *arg4 = 0 ; | |
12931 | bool result; | |
12932 | void *argp1 = 0 ; | |
12933 | int res1 = 0 ; | |
12934 | long val2 ; | |
12935 | int ecode2 = 0 ; | |
12936 | long val3 ; | |
12937 | int ecode3 = 0 ; | |
12938 | void *argp4 = 0 ; | |
12939 | int res4 = 0 ; | |
12940 | PyObject * obj0 = 0 ; | |
12941 | PyObject * obj1 = 0 ; | |
12942 | PyObject * obj2 = 0 ; | |
12943 | PyObject * obj3 = 0 ; | |
12944 | char * kwnames[] = { | |
12945 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
12946 | }; | |
12947 | ||
12948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
12949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
12950 | if (!SWIG_IsOK(res1)) { | |
12951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
12952 | } | |
12953 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
12954 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
12955 | if (!SWIG_IsOK(ecode2)) { | |
12956 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'"); | |
12957 | } | |
12958 | arg2 = static_cast< long >(val2); | |
12959 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
12960 | if (!SWIG_IsOK(ecode3)) { | |
12961 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'"); | |
12962 | } | |
12963 | arg3 = static_cast< long >(val3); | |
12964 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
12965 | if (!SWIG_IsOK(res4)) { | |
12966 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'"); | |
12967 | } | |
12968 | if (!argp4) { | |
12969 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'"); | |
12970 | } | |
12971 | arg4 = reinterpret_cast< wxTextAttr * >(argp4); | |
12972 | { | |
12973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12974 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
12975 | wxPyEndAllowThreads(__tstate); | |
12976 | if (PyErr_Occurred()) SWIG_fail; | |
12977 | } | |
12978 | { | |
12979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12980 | } | |
12981 | return resultobj; | |
12982 | fail: | |
12983 | return NULL; | |
12984 | } | |
12985 | ||
12986 | ||
12987 | SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12988 | PyObject *resultobj = 0; | |
12989 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
12990 | long arg2 ; | |
12991 | wxTextAttr *arg3 = 0 ; | |
12992 | bool result; | |
12993 | void *argp1 = 0 ; | |
12994 | int res1 = 0 ; | |
12995 | long val2 ; | |
12996 | int ecode2 = 0 ; | |
12997 | void *argp3 = 0 ; | |
12998 | int res3 = 0 ; | |
12999 | PyObject * obj0 = 0 ; | |
13000 | PyObject * obj1 = 0 ; | |
13001 | PyObject * obj2 = 0 ; | |
13002 | char * kwnames[] = { | |
13003 | (char *) "self",(char *) "position",(char *) "style", NULL | |
13004 | }; | |
13005 | ||
13006 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13007 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13008 | if (!SWIG_IsOK(res1)) { | |
13009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13010 | } | |
13011 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13012 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13013 | if (!SWIG_IsOK(ecode2)) { | |
13014 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'"); | |
13015 | } | |
13016 | arg2 = static_cast< long >(val2); | |
13017 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 ); | |
13018 | if (!SWIG_IsOK(res3)) { | |
13019 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'"); | |
13020 | } | |
13021 | if (!argp3) { | |
13022 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'"); | |
13023 | } | |
13024 | arg3 = reinterpret_cast< wxTextAttr * >(argp3); | |
13025 | { | |
13026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13027 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
13028 | wxPyEndAllowThreads(__tstate); | |
13029 | if (PyErr_Occurred()) SWIG_fail; | |
13030 | } | |
13031 | { | |
13032 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13033 | } | |
13034 | return resultobj; | |
13035 | fail: | |
13036 | return NULL; | |
13037 | } | |
13038 | ||
13039 | ||
13040 | SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13041 | PyObject *resultobj = 0; | |
13042 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13043 | wxTextAttr *arg2 = 0 ; | |
13044 | bool result; | |
13045 | void *argp1 = 0 ; | |
13046 | int res1 = 0 ; | |
13047 | void *argp2 = 0 ; | |
13048 | int res2 = 0 ; | |
13049 | PyObject * obj0 = 0 ; | |
13050 | PyObject * obj1 = 0 ; | |
13051 | char * kwnames[] = { | |
13052 | (char *) "self",(char *) "style", NULL | |
13053 | }; | |
13054 | ||
13055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
13056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13057 | if (!SWIG_IsOK(res1)) { | |
13058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13059 | } | |
13060 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13061 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0); | |
13062 | if (!SWIG_IsOK(res2)) { | |
13063 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
13064 | } | |
13065 | if (!argp2) { | |
13066 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'"); | |
13067 | } | |
13068 | arg2 = reinterpret_cast< wxTextAttr * >(argp2); | |
13069 | { | |
13070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13071 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
13072 | wxPyEndAllowThreads(__tstate); | |
13073 | if (PyErr_Occurred()) SWIG_fail; | |
13074 | } | |
13075 | { | |
13076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13077 | } | |
13078 | return resultobj; | |
13079 | fail: | |
13080 | return NULL; | |
d14a1e28 RD |
13081 | } |
13082 | ||
13083 | ||
0085ce49 RD |
13084 | SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13085 | PyObject *resultobj = 0; | |
13086 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13087 | wxTextAttr *result = 0 ; | |
13088 | void *argp1 = 0 ; | |
13089 | int res1 = 0 ; | |
13090 | PyObject *swig_obj[1] ; | |
13091 | ||
13092 | if (!args) SWIG_fail; | |
13093 | swig_obj[0] = args; | |
13094 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13095 | if (!SWIG_IsOK(res1)) { | |
13096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13097 | } | |
13098 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13099 | { | |
13100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13101 | { |
0085ce49 RD |
13102 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); |
13103 | result = (wxTextAttr *) &_result_ref; | |
093d3ff1 | 13104 | } |
0085ce49 RD |
13105 | wxPyEndAllowThreads(__tstate); |
13106 | if (PyErr_Occurred()) SWIG_fail; | |
13107 | } | |
13108 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 ); | |
13109 | return resultobj; | |
13110 | fail: | |
13111 | return NULL; | |
13112 | } | |
13113 | ||
13114 | ||
13115 | SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13116 | PyObject *resultobj = 0; | |
13117 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13118 | long arg2 ; | |
13119 | long arg3 ; | |
13120 | long result; | |
13121 | void *argp1 = 0 ; | |
13122 | int res1 = 0 ; | |
13123 | long val2 ; | |
13124 | int ecode2 = 0 ; | |
13125 | long val3 ; | |
13126 | int ecode3 = 0 ; | |
13127 | PyObject * obj0 = 0 ; | |
13128 | PyObject * obj1 = 0 ; | |
13129 | PyObject * obj2 = 0 ; | |
13130 | char * kwnames[] = { | |
13131 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13132 | }; | |
13133 | ||
13134 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13135 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13136 | if (!SWIG_IsOK(res1)) { | |
13137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13138 | } | |
13139 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13140 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13141 | if (!SWIG_IsOK(ecode2)) { | |
13142 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'"); | |
13143 | } | |
13144 | arg2 = static_cast< long >(val2); | |
13145 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13146 | if (!SWIG_IsOK(ecode3)) { | |
13147 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'"); | |
13148 | } | |
13149 | arg3 = static_cast< long >(val3); | |
13150 | { | |
13151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13152 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
13153 | wxPyEndAllowThreads(__tstate); | |
13154 | if (PyErr_Occurred()) SWIG_fail; | |
13155 | } | |
13156 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13157 | return resultobj; | |
13158 | fail: | |
13159 | return NULL; | |
13160 | } | |
13161 | ||
13162 | ||
13163 | SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13164 | PyObject *resultobj = 0; | |
13165 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13166 | long arg2 ; | |
13167 | long *arg3 = (long *) 0 ; | |
13168 | long *arg4 = (long *) 0 ; | |
13169 | void *argp1 = 0 ; | |
13170 | int res1 = 0 ; | |
13171 | long val2 ; | |
13172 | int ecode2 = 0 ; | |
13173 | long temp3 ; | |
13174 | int res3 = SWIG_TMPOBJ ; | |
13175 | long temp4 ; | |
13176 | int res4 = SWIG_TMPOBJ ; | |
13177 | PyObject * obj0 = 0 ; | |
13178 | PyObject * obj1 = 0 ; | |
13179 | char * kwnames[] = { | |
13180 | (char *) "self",(char *) "pos", NULL | |
13181 | }; | |
13182 | ||
13183 | arg3 = &temp3; | |
13184 | arg4 = &temp4; | |
13185 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail; | |
13186 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13187 | if (!SWIG_IsOK(res1)) { | |
13188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13189 | } | |
13190 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13191 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13192 | if (!SWIG_IsOK(ecode2)) { | |
13193 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'"); | |
13194 | } | |
13195 | arg2 = static_cast< long >(val2); | |
13196 | { | |
13197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13198 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
13199 | wxPyEndAllowThreads(__tstate); | |
13200 | if (PyErr_Occurred()) SWIG_fail; | |
13201 | } | |
13202 | resultobj = SWIG_Py_Void(); | |
13203 | if (SWIG_IsTmpObj(res3)) { | |
13204 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
13205 | } else { | |
13206 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13207 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
13208 | } | |
13209 | if (SWIG_IsTmpObj(res4)) { | |
13210 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
13211 | } else { | |
13212 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13213 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
13214 | } | |
13215 | return resultobj; | |
13216 | fail: | |
13217 | return NULL; | |
13218 | } | |
13219 | ||
13220 | ||
13221 | SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13222 | PyObject *resultobj = 0; | |
13223 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13224 | long arg2 ; | |
13225 | void *argp1 = 0 ; | |
13226 | int res1 = 0 ; | |
13227 | long val2 ; | |
13228 | int ecode2 = 0 ; | |
13229 | PyObject * obj0 = 0 ; | |
13230 | PyObject * obj1 = 0 ; | |
13231 | char * kwnames[] = { | |
13232 | (char *) "self",(char *) "pos", NULL | |
13233 | }; | |
13234 | ||
13235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
13236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13237 | if (!SWIG_IsOK(res1)) { | |
13238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13239 | } | |
13240 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13241 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13242 | if (!SWIG_IsOK(ecode2)) { | |
13243 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'"); | |
13244 | } | |
13245 | arg2 = static_cast< long >(val2); | |
13246 | { | |
13247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13248 | (arg1)->ShowPosition(arg2); | |
13249 | wxPyEndAllowThreads(__tstate); | |
13250 | if (PyErr_Occurred()) SWIG_fail; | |
13251 | } | |
13252 | resultobj = SWIG_Py_Void(); | |
13253 | return resultobj; | |
13254 | fail: | |
13255 | return NULL; | |
13256 | } | |
13257 | ||
13258 | ||
13259 | SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13260 | PyObject *resultobj = 0; | |
13261 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13262 | wxPoint *arg2 = 0 ; | |
13263 | long *arg3 = (long *) 0 ; | |
13264 | long *arg4 = (long *) 0 ; | |
13265 | wxTextCtrlHitTestResult result; | |
13266 | void *argp1 = 0 ; | |
13267 | int res1 = 0 ; | |
13268 | wxPoint temp2 ; | |
13269 | long temp3 ; | |
13270 | int res3 = SWIG_TMPOBJ ; | |
13271 | long temp4 ; | |
13272 | int res4 = SWIG_TMPOBJ ; | |
13273 | PyObject * obj0 = 0 ; | |
13274 | PyObject * obj1 = 0 ; | |
13275 | char * kwnames[] = { | |
13276 | (char *) "self",(char *) "pt", NULL | |
13277 | }; | |
13278 | ||
13279 | arg3 = &temp3; | |
13280 | arg4 = &temp4; | |
13281 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
13282 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13283 | if (!SWIG_IsOK(res1)) { | |
13284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13285 | } | |
13286 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13287 | { | |
13288 | arg2 = &temp2; | |
13289 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13290 | } | |
13291 | { | |
13292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13293 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
13294 | wxPyEndAllowThreads(__tstate); | |
13295 | if (PyErr_Occurred()) SWIG_fail; | |
13296 | } | |
13297 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13298 | if (SWIG_IsTmpObj(res3)) { | |
13299 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
13300 | } else { | |
13301 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13302 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
13303 | } | |
13304 | if (SWIG_IsTmpObj(res4)) { | |
13305 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
13306 | } else { | |
13307 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13308 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
13309 | } | |
13310 | return resultobj; | |
13311 | fail: | |
13312 | return NULL; | |
13313 | } | |
13314 | ||
13315 | ||
13316 | SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13317 | PyObject *resultobj = 0; | |
13318 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13319 | wxPoint *arg2 = 0 ; | |
13320 | long *arg3 = (long *) 0 ; | |
13321 | wxTextCtrlHitTestResult result; | |
13322 | void *argp1 = 0 ; | |
13323 | int res1 = 0 ; | |
13324 | wxPoint temp2 ; | |
13325 | long temp3 ; | |
13326 | int res3 = SWIG_TMPOBJ ; | |
13327 | PyObject * obj0 = 0 ; | |
13328 | PyObject * obj1 = 0 ; | |
13329 | char * kwnames[] = { | |
13330 | (char *) "self",(char *) "pt", NULL | |
13331 | }; | |
13332 | ||
13333 | arg3 = &temp3; | |
13334 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
13335 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13336 | if (!SWIG_IsOK(res1)) { | |
13337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13338 | } | |
13339 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13340 | { | |
13341 | arg2 = &temp2; | |
13342 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13343 | } | |
13344 | { | |
13345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13346 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
13347 | wxPyEndAllowThreads(__tstate); | |
13348 | if (PyErr_Occurred()) SWIG_fail; | |
13349 | } | |
13350 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13351 | if (SWIG_IsTmpObj(res3)) { | |
13352 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
13353 | } else { | |
13354 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
13355 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
13356 | } | |
13357 | return resultobj; | |
13358 | fail: | |
13359 | return NULL; | |
d14a1e28 RD |
13360 | } |
13361 | ||
13362 | ||
0085ce49 RD |
13363 | SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13364 | PyObject *resultobj = 0; | |
13365 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13366 | void *argp1 = 0 ; | |
13367 | int res1 = 0 ; | |
13368 | PyObject *swig_obj[1] ; | |
13369 | ||
13370 | if (!args) SWIG_fail; | |
13371 | swig_obj[0] = args; | |
13372 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13373 | if (!SWIG_IsOK(res1)) { | |
13374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13375 | } | |
13376 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13377 | { | |
13378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13379 | (arg1)->Copy(); | |
13380 | wxPyEndAllowThreads(__tstate); | |
13381 | if (PyErr_Occurred()) SWIG_fail; | |
13382 | } | |
13383 | resultobj = SWIG_Py_Void(); | |
13384 | return resultobj; | |
13385 | fail: | |
13386 | return NULL; | |
d14a1e28 | 13387 | } |
0085ce49 RD |
13388 | |
13389 | ||
13390 | SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13391 | PyObject *resultobj = 0; | |
13392 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13393 | void *argp1 = 0 ; | |
13394 | int res1 = 0 ; | |
13395 | PyObject *swig_obj[1] ; | |
13396 | ||
13397 | if (!args) SWIG_fail; | |
13398 | swig_obj[0] = args; | |
13399 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13400 | if (!SWIG_IsOK(res1)) { | |
13401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13402 | } | |
13403 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13404 | { | |
13405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13406 | (arg1)->Cut(); | |
13407 | wxPyEndAllowThreads(__tstate); | |
13408 | if (PyErr_Occurred()) SWIG_fail; | |
13409 | } | |
13410 | resultobj = SWIG_Py_Void(); | |
13411 | return resultobj; | |
13412 | fail: | |
13413 | return NULL; | |
b2dc1044 RD |
13414 | } |
13415 | ||
13416 | ||
0085ce49 RD |
13417 | SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13418 | PyObject *resultobj = 0; | |
13419 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13420 | void *argp1 = 0 ; | |
13421 | int res1 = 0 ; | |
13422 | PyObject *swig_obj[1] ; | |
13423 | ||
13424 | if (!args) SWIG_fail; | |
13425 | swig_obj[0] = args; | |
13426 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13427 | if (!SWIG_IsOK(res1)) { | |
13428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13429 | } | |
13430 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13431 | { | |
13432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13433 | (arg1)->Paste(); | |
13434 | wxPyEndAllowThreads(__tstate); | |
13435 | if (PyErr_Occurred()) SWIG_fail; | |
13436 | } | |
13437 | resultobj = SWIG_Py_Void(); | |
13438 | return resultobj; | |
13439 | fail: | |
13440 | return NULL; | |
d14a1e28 RD |
13441 | } |
13442 | ||
13443 | ||
0085ce49 RD |
13444 | SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13445 | PyObject *resultobj = 0; | |
13446 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13447 | bool result; | |
13448 | void *argp1 = 0 ; | |
13449 | int res1 = 0 ; | |
13450 | PyObject *swig_obj[1] ; | |
13451 | ||
13452 | if (!args) SWIG_fail; | |
13453 | swig_obj[0] = args; | |
13454 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13455 | if (!SWIG_IsOK(res1)) { | |
13456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13457 | } | |
13458 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13459 | { | |
13460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13461 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
13462 | wxPyEndAllowThreads(__tstate); | |
13463 | if (PyErr_Occurred()) SWIG_fail; | |
13464 | } | |
13465 | { | |
13466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13467 | } | |
13468 | return resultobj; | |
13469 | fail: | |
13470 | return NULL; | |
d14a1e28 RD |
13471 | } |
13472 | ||
13473 | ||
0085ce49 RD |
13474 | SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13475 | PyObject *resultobj = 0; | |
13476 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13477 | bool result; | |
13478 | void *argp1 = 0 ; | |
13479 | int res1 = 0 ; | |
13480 | PyObject *swig_obj[1] ; | |
13481 | ||
13482 | if (!args) SWIG_fail; | |
13483 | swig_obj[0] = args; | |
13484 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13485 | if (!SWIG_IsOK(res1)) { | |
13486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13487 | } | |
13488 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13489 | { | |
13490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13491 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
13492 | wxPyEndAllowThreads(__tstate); | |
13493 | if (PyErr_Occurred()) SWIG_fail; | |
13494 | } | |
13495 | { | |
13496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13497 | } | |
13498 | return resultobj; | |
13499 | fail: | |
13500 | return NULL; | |
994141e6 RD |
13501 | } |
13502 | ||
13503 | ||
0085ce49 RD |
13504 | SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13505 | PyObject *resultobj = 0; | |
13506 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13507 | bool result; | |
13508 | void *argp1 = 0 ; | |
13509 | int res1 = 0 ; | |
13510 | PyObject *swig_obj[1] ; | |
13511 | ||
13512 | if (!args) SWIG_fail; | |
13513 | swig_obj[0] = args; | |
13514 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13515 | if (!SWIG_IsOK(res1)) { | |
13516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13517 | } | |
13518 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13519 | { | |
13520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13521 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
13522 | wxPyEndAllowThreads(__tstate); | |
13523 | if (PyErr_Occurred()) SWIG_fail; | |
13524 | } | |
13525 | { | |
13526 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13527 | } | |
13528 | return resultobj; | |
13529 | fail: | |
13530 | return NULL; | |
d14a1e28 RD |
13531 | } |
13532 | ||
13533 | ||
0085ce49 RD |
13534 | SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13535 | PyObject *resultobj = 0; | |
13536 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13537 | void *argp1 = 0 ; | |
13538 | int res1 = 0 ; | |
13539 | PyObject *swig_obj[1] ; | |
13540 | ||
13541 | if (!args) SWIG_fail; | |
13542 | swig_obj[0] = args; | |
13543 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13544 | if (!SWIG_IsOK(res1)) { | |
13545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13546 | } | |
13547 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13548 | { | |
13549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13550 | (arg1)->Undo(); | |
13551 | wxPyEndAllowThreads(__tstate); | |
13552 | if (PyErr_Occurred()) SWIG_fail; | |
13553 | } | |
13554 | resultobj = SWIG_Py_Void(); | |
13555 | return resultobj; | |
13556 | fail: | |
13557 | return NULL; | |
d14a1e28 RD |
13558 | } |
13559 | ||
13560 | ||
0085ce49 RD |
13561 | SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13562 | PyObject *resultobj = 0; | |
13563 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13564 | void *argp1 = 0 ; | |
13565 | int res1 = 0 ; | |
13566 | PyObject *swig_obj[1] ; | |
13567 | ||
13568 | if (!args) SWIG_fail; | |
13569 | swig_obj[0] = args; | |
13570 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13571 | if (!SWIG_IsOK(res1)) { | |
13572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13573 | } | |
13574 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13575 | { | |
13576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13577 | (arg1)->Redo(); | |
13578 | wxPyEndAllowThreads(__tstate); | |
13579 | if (PyErr_Occurred()) SWIG_fail; | |
13580 | } | |
13581 | resultobj = SWIG_Py_Void(); | |
13582 | return resultobj; | |
13583 | fail: | |
13584 | return NULL; | |
d14a1e28 RD |
13585 | } |
13586 | ||
13587 | ||
0085ce49 RD |
13588 | SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13589 | PyObject *resultobj = 0; | |
13590 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13591 | bool result; | |
13592 | void *argp1 = 0 ; | |
13593 | int res1 = 0 ; | |
13594 | PyObject *swig_obj[1] ; | |
13595 | ||
13596 | if (!args) SWIG_fail; | |
13597 | swig_obj[0] = args; | |
13598 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13599 | if (!SWIG_IsOK(res1)) { | |
13600 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13601 | } | |
13602 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13603 | { | |
13604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13605 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
13606 | wxPyEndAllowThreads(__tstate); | |
13607 | if (PyErr_Occurred()) SWIG_fail; | |
13608 | } | |
13609 | { | |
13610 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13611 | } | |
13612 | return resultobj; | |
13613 | fail: | |
13614 | return NULL; | |
d14a1e28 RD |
13615 | } |
13616 | ||
13617 | ||
0085ce49 RD |
13618 | SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13619 | PyObject *resultobj = 0; | |
13620 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13621 | bool result; | |
13622 | void *argp1 = 0 ; | |
13623 | int res1 = 0 ; | |
13624 | PyObject *swig_obj[1] ; | |
13625 | ||
13626 | if (!args) SWIG_fail; | |
13627 | swig_obj[0] = args; | |
13628 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13629 | if (!SWIG_IsOK(res1)) { | |
13630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13631 | } | |
13632 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13633 | { | |
13634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13635 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
13636 | wxPyEndAllowThreads(__tstate); | |
13637 | if (PyErr_Occurred()) SWIG_fail; | |
13638 | } | |
13639 | { | |
13640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13641 | } | |
13642 | return resultobj; | |
13643 | fail: | |
13644 | return NULL; | |
13645 | } | |
13646 | ||
13647 | ||
13648 | SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13649 | PyObject *resultobj = 0; | |
13650 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13651 | long arg2 ; | |
13652 | void *argp1 = 0 ; | |
13653 | int res1 = 0 ; | |
13654 | long val2 ; | |
13655 | int ecode2 = 0 ; | |
13656 | PyObject * obj0 = 0 ; | |
13657 | PyObject * obj1 = 0 ; | |
13658 | char * kwnames[] = { | |
13659 | (char *) "self",(char *) "pos", NULL | |
13660 | }; | |
13661 | ||
13662 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
13663 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13664 | if (!SWIG_IsOK(res1)) { | |
13665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13666 | } | |
13667 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13668 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13669 | if (!SWIG_IsOK(ecode2)) { | |
13670 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'"); | |
13671 | } | |
13672 | arg2 = static_cast< long >(val2); | |
13673 | { | |
13674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13675 | (arg1)->SetInsertionPoint(arg2); | |
13676 | wxPyEndAllowThreads(__tstate); | |
13677 | if (PyErr_Occurred()) SWIG_fail; | |
13678 | } | |
13679 | resultobj = SWIG_Py_Void(); | |
13680 | return resultobj; | |
13681 | fail: | |
13682 | return NULL; | |
d14a1e28 RD |
13683 | } |
13684 | ||
13685 | ||
0085ce49 RD |
13686 | SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13687 | PyObject *resultobj = 0; | |
13688 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13689 | void *argp1 = 0 ; | |
13690 | int res1 = 0 ; | |
13691 | PyObject *swig_obj[1] ; | |
13692 | ||
13693 | if (!args) SWIG_fail; | |
13694 | swig_obj[0] = args; | |
13695 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13696 | if (!SWIG_IsOK(res1)) { | |
13697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13698 | } | |
13699 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13700 | { | |
13701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13702 | (arg1)->SetInsertionPointEnd(); | |
13703 | wxPyEndAllowThreads(__tstate); | |
13704 | if (PyErr_Occurred()) SWIG_fail; | |
13705 | } | |
13706 | resultobj = SWIG_Py_Void(); | |
13707 | return resultobj; | |
13708 | fail: | |
13709 | return NULL; | |
d14a1e28 RD |
13710 | } |
13711 | ||
13712 | ||
0085ce49 RD |
13713 | SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13714 | PyObject *resultobj = 0; | |
13715 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13716 | long result; | |
13717 | void *argp1 = 0 ; | |
13718 | int res1 = 0 ; | |
13719 | PyObject *swig_obj[1] ; | |
13720 | ||
13721 | if (!args) SWIG_fail; | |
13722 | swig_obj[0] = args; | |
13723 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13724 | if (!SWIG_IsOK(res1)) { | |
13725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13726 | } | |
13727 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13728 | { | |
13729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13730 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
13731 | wxPyEndAllowThreads(__tstate); | |
13732 | if (PyErr_Occurred()) SWIG_fail; | |
13733 | } | |
13734 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13735 | return resultobj; | |
13736 | fail: | |
13737 | return NULL; | |
d14a1e28 RD |
13738 | } |
13739 | ||
13740 | ||
0085ce49 RD |
13741 | SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13742 | PyObject *resultobj = 0; | |
13743 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13744 | long result; | |
13745 | void *argp1 = 0 ; | |
13746 | int res1 = 0 ; | |
13747 | PyObject *swig_obj[1] ; | |
13748 | ||
13749 | if (!args) SWIG_fail; | |
13750 | swig_obj[0] = args; | |
13751 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13752 | if (!SWIG_IsOK(res1)) { | |
13753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'"); | |
13754 | } | |
13755 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13756 | { | |
13757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13758 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
13759 | wxPyEndAllowThreads(__tstate); | |
13760 | if (PyErr_Occurred()) SWIG_fail; | |
13761 | } | |
13762 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
13763 | return resultobj; | |
13764 | fail: | |
13765 | return NULL; | |
13766 | } | |
13767 | ||
13768 | ||
13769 | SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13770 | PyObject *resultobj = 0; | |
13771 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13772 | long arg2 ; | |
13773 | long arg3 ; | |
13774 | void *argp1 = 0 ; | |
13775 | int res1 = 0 ; | |
13776 | long val2 ; | |
13777 | int ecode2 = 0 ; | |
13778 | long val3 ; | |
13779 | int ecode3 = 0 ; | |
13780 | PyObject * obj0 = 0 ; | |
13781 | PyObject * obj1 = 0 ; | |
13782 | PyObject * obj2 = 0 ; | |
13783 | char * kwnames[] = { | |
2131d850 | 13784 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
13785 | }; |
13786 | ||
13787 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13788 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13789 | if (!SWIG_IsOK(res1)) { | |
13790 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13791 | } | |
13792 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13793 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13794 | if (!SWIG_IsOK(ecode2)) { | |
13795 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'"); | |
13796 | } | |
13797 | arg2 = static_cast< long >(val2); | |
13798 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13799 | if (!SWIG_IsOK(ecode3)) { | |
13800 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'"); | |
13801 | } | |
13802 | arg3 = static_cast< long >(val3); | |
13803 | { | |
13804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13805 | (arg1)->SetSelection(arg2,arg3); | |
13806 | wxPyEndAllowThreads(__tstate); | |
13807 | if (PyErr_Occurred()) SWIG_fail; | |
13808 | } | |
13809 | resultobj = SWIG_Py_Void(); | |
13810 | return resultobj; | |
13811 | fail: | |
13812 | return NULL; | |
d14a1e28 RD |
13813 | } |
13814 | ||
13815 | ||
0085ce49 RD |
13816 | SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13817 | PyObject *resultobj = 0; | |
13818 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13819 | void *argp1 = 0 ; | |
13820 | int res1 = 0 ; | |
13821 | PyObject *swig_obj[1] ; | |
13822 | ||
13823 | if (!args) SWIG_fail; | |
13824 | swig_obj[0] = args; | |
13825 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13826 | if (!SWIG_IsOK(res1)) { | |
13827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13828 | } | |
13829 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13830 | { | |
13831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13832 | (arg1)->SelectAll(); | |
13833 | wxPyEndAllowThreads(__tstate); | |
13834 | if (PyErr_Occurred()) SWIG_fail; | |
13835 | } | |
13836 | resultobj = SWIG_Py_Void(); | |
13837 | return resultobj; | |
13838 | fail: | |
13839 | return NULL; | |
13840 | } | |
13841 | ||
13842 | ||
13843 | SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13844 | PyObject *resultobj = 0; | |
13845 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13846 | bool arg2 ; | |
13847 | void *argp1 = 0 ; | |
13848 | int res1 = 0 ; | |
13849 | bool val2 ; | |
13850 | int ecode2 = 0 ; | |
13851 | PyObject * obj0 = 0 ; | |
13852 | PyObject * obj1 = 0 ; | |
13853 | char * kwnames[] = { | |
13854 | (char *) "self",(char *) "editable", NULL | |
13855 | }; | |
13856 | ||
13857 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail; | |
13858 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13859 | if (!SWIG_IsOK(res1)) { | |
13860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13861 | } | |
13862 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13863 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
13864 | if (!SWIG_IsOK(ecode2)) { | |
13865 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'"); | |
13866 | } | |
13867 | arg2 = static_cast< bool >(val2); | |
13868 | { | |
13869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13870 | (arg1)->SetEditable(arg2); | |
13871 | wxPyEndAllowThreads(__tstate); | |
13872 | if (PyErr_Occurred()) SWIG_fail; | |
13873 | } | |
13874 | resultobj = SWIG_Py_Void(); | |
13875 | return resultobj; | |
13876 | fail: | |
13877 | return NULL; | |
13878 | } | |
13879 | ||
13880 | ||
b39fe951 RD |
13881 | SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13882 | PyObject *resultobj = 0; | |
13883 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13884 | void *argp1 = 0 ; | |
13885 | int res1 = 0 ; | |
13886 | PyObject *swig_obj[1] ; | |
13887 | ||
13888 | if (!args) SWIG_fail; | |
13889 | swig_obj[0] = args; | |
13890 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13891 | if (!SWIG_IsOK(res1)) { | |
13892 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13893 | } | |
13894 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13895 | { | |
13896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13897 | (arg1)->SendTextUpdatedEvent(); | |
13898 | wxPyEndAllowThreads(__tstate); | |
13899 | if (PyErr_Occurred()) SWIG_fail; | |
13900 | } | |
13901 | resultobj = SWIG_Py_Void(); | |
13902 | return resultobj; | |
13903 | fail: | |
13904 | return NULL; | |
13905 | } | |
13906 | ||
13907 | ||
0085ce49 RD |
13908 | SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13909 | PyObject *resultobj = 0; | |
13910 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13911 | wxString *arg2 = 0 ; | |
13912 | void *argp1 = 0 ; | |
13913 | int res1 = 0 ; | |
13914 | bool temp2 = false ; | |
13915 | PyObject * obj0 = 0 ; | |
13916 | PyObject * obj1 = 0 ; | |
13917 | char * kwnames[] = { | |
13918 | (char *) "self",(char *) "text", NULL | |
13919 | }; | |
13920 | ||
13921 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail; | |
13922 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13923 | if (!SWIG_IsOK(res1)) { | |
13924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13925 | } | |
13926 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13927 | { | |
13928 | arg2 = wxString_in_helper(obj1); | |
13929 | if (arg2 == NULL) SWIG_fail; | |
13930 | temp2 = true; | |
13931 | } | |
13932 | { | |
13933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13934 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
13935 | wxPyEndAllowThreads(__tstate); | |
13936 | if (PyErr_Occurred()) SWIG_fail; | |
13937 | } | |
13938 | resultobj = SWIG_Py_Void(); | |
13939 | { | |
13940 | if (temp2) | |
13941 | delete arg2; | |
13942 | } | |
13943 | return resultobj; | |
13944 | fail: | |
13945 | { | |
13946 | if (temp2) | |
13947 | delete arg2; | |
13948 | } | |
13949 | return NULL; | |
13950 | } | |
13951 | ||
13952 | ||
13953 | SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13954 | PyObject *resultobj = 0; | |
13955 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
13956 | long arg2 ; | |
13957 | long arg3 ; | |
13958 | wxString result; | |
13959 | void *argp1 = 0 ; | |
13960 | int res1 = 0 ; | |
13961 | long val2 ; | |
13962 | int ecode2 = 0 ; | |
13963 | long val3 ; | |
13964 | int ecode3 = 0 ; | |
13965 | PyObject * obj0 = 0 ; | |
13966 | PyObject * obj1 = 0 ; | |
13967 | PyObject * obj2 = 0 ; | |
13968 | char * kwnames[] = { | |
2131d850 | 13969 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
13970 | }; |
13971 | ||
13972 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13973 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 ); | |
13974 | if (!SWIG_IsOK(res1)) { | |
13975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'"); | |
13976 | } | |
13977 | arg1 = reinterpret_cast< wxTextCtrl * >(argp1); | |
13978 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
13979 | if (!SWIG_IsOK(ecode2)) { | |
13980 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'"); | |
13981 | } | |
13982 | arg2 = static_cast< long >(val2); | |
13983 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
13984 | if (!SWIG_IsOK(ecode3)) { | |
13985 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'"); | |
13986 | } | |
13987 | arg3 = static_cast< long >(val3); | |
13988 | { | |
13989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13990 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
13991 | wxPyEndAllowThreads(__tstate); | |
13992 | if (PyErr_Occurred()) SWIG_fail; | |
13993 | } | |
13994 | { | |
13995 | #if wxUSE_UNICODE | |
13996 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13997 | #else | |
13998 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13999 | #endif | |
14000 | } | |
14001 | return resultobj; | |
14002 | fail: | |
14003 | return NULL; | |
d14a1e28 RD |
14004 | } |
14005 | ||
14006 | ||
0085ce49 RD |
14007 | SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14008 | PyObject *resultobj = 0; | |
14009 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
14010 | SwigValueWrapper<wxVisualAttributes > result; | |
14011 | int val1 ; | |
14012 | int ecode1 = 0 ; | |
14013 | PyObject * obj0 = 0 ; | |
14014 | char * kwnames[] = { | |
14015 | (char *) "variant", NULL | |
14016 | }; | |
14017 | ||
14018 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
14019 | if (obj0) { | |
14020 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14021 | if (!SWIG_IsOK(ecode1)) { | |
14022 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
14023 | } | |
14024 | arg1 = static_cast< wxWindowVariant >(val1); | |
14025 | } | |
14026 | { | |
14027 | if (!wxPyCheckForApp()) SWIG_fail; | |
14028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14029 | result = wxTextCtrl::GetClassDefaultAttributes(arg1); | |
14030 | wxPyEndAllowThreads(__tstate); | |
14031 | if (PyErr_Occurred()) SWIG_fail; | |
14032 | } | |
14033 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
14034 | return resultobj; | |
14035 | fail: | |
14036 | return NULL; | |
14037 | } | |
14038 | ||
14039 | ||
14040 | SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
14041 | PyObject *obj; | |
14042 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14043 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj)); | |
14044 | return SWIG_Py_Void(); | |
14045 | } | |
14046 | ||
14047 | SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
14048 | return SWIG_Python_InitShadowInstance(args); | |
14049 | } | |
14050 | ||
14051 | SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14052 | PyObject *resultobj = 0; | |
14053 | int arg1 ; | |
14054 | wxMouseEvent *arg2 = 0 ; | |
14055 | long arg3 ; | |
14056 | long arg4 ; | |
14057 | wxTextUrlEvent *result = 0 ; | |
14058 | int val1 ; | |
14059 | int ecode1 = 0 ; | |
14060 | void *argp2 = 0 ; | |
14061 | int res2 = 0 ; | |
14062 | long val3 ; | |
14063 | int ecode3 = 0 ; | |
14064 | long val4 ; | |
14065 | int ecode4 = 0 ; | |
14066 | PyObject * obj0 = 0 ; | |
14067 | PyObject * obj1 = 0 ; | |
14068 | PyObject * obj2 = 0 ; | |
14069 | PyObject * obj3 = 0 ; | |
14070 | char * kwnames[] = { | |
14071 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
14072 | }; | |
14073 | ||
14074 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
14075 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14076 | if (!SWIG_IsOK(ecode1)) { | |
14077 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'"); | |
14078 | } | |
14079 | arg1 = static_cast< int >(val1); | |
14080 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0); | |
14081 | if (!SWIG_IsOK(res2)) { | |
14082 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'"); | |
14083 | } | |
14084 | if (!argp2) { | |
14085 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'"); | |
14086 | } | |
14087 | arg2 = reinterpret_cast< wxMouseEvent * >(argp2); | |
14088 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
14089 | if (!SWIG_IsOK(ecode3)) { | |
14090 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'"); | |
14091 | } | |
14092 | arg3 = static_cast< long >(val3); | |
14093 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
14094 | if (!SWIG_IsOK(ecode4)) { | |
14095 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'"); | |
14096 | } | |
14097 | arg4 = static_cast< long >(val4); | |
14098 | { | |
14099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14100 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
14101 | wxPyEndAllowThreads(__tstate); | |
14102 | if (PyErr_Occurred()) SWIG_fail; | |
14103 | } | |
14104 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 ); | |
14105 | return resultobj; | |
14106 | fail: | |
14107 | return NULL; | |
d14a1e28 RD |
14108 | } |
14109 | ||
14110 | ||
0085ce49 RD |
14111 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14112 | PyObject *resultobj = 0; | |
14113 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
14114 | wxMouseEvent *result = 0 ; | |
14115 | void *argp1 = 0 ; | |
14116 | int res1 = 0 ; | |
14117 | PyObject *swig_obj[1] ; | |
14118 | ||
14119 | if (!args) SWIG_fail; | |
14120 | swig_obj[0] = args; | |
14121 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
14122 | if (!SWIG_IsOK(res1)) { | |
14123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'"); | |
14124 | } | |
14125 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
14126 | { | |
14127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 14128 | { |
0085ce49 RD |
14129 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); |
14130 | result = (wxMouseEvent *) &_result_ref; | |
4f89f6a3 | 14131 | } |
0085ce49 RD |
14132 | wxPyEndAllowThreads(__tstate); |
14133 | if (PyErr_Occurred()) SWIG_fail; | |
14134 | } | |
14135 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 ); | |
14136 | return resultobj; | |
14137 | fail: | |
14138 | return NULL; | |
d14a1e28 RD |
14139 | } |
14140 | ||
14141 | ||
0085ce49 RD |
14142 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14143 | PyObject *resultobj = 0; | |
14144 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
14145 | long result; | |
14146 | void *argp1 = 0 ; | |
14147 | int res1 = 0 ; | |
14148 | PyObject *swig_obj[1] ; | |
14149 | ||
14150 | if (!args) SWIG_fail; | |
14151 | swig_obj[0] = args; | |
14152 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
14153 | if (!SWIG_IsOK(res1)) { | |
14154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'"); | |
14155 | } | |
14156 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
14157 | { | |
14158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14159 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
14160 | wxPyEndAllowThreads(__tstate); | |
14161 | if (PyErr_Occurred()) SWIG_fail; | |
14162 | } | |
14163 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
14164 | return resultobj; | |
14165 | fail: | |
14166 | return NULL; | |
d14a1e28 RD |
14167 | } |
14168 | ||
14169 | ||
0085ce49 RD |
14170 | SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14171 | PyObject *resultobj = 0; | |
14172 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
14173 | long result; | |
14174 | void *argp1 = 0 ; | |
14175 | int res1 = 0 ; | |
14176 | PyObject *swig_obj[1] ; | |
14177 | ||
14178 | if (!args) SWIG_fail; | |
14179 | swig_obj[0] = args; | |
14180 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 ); | |
14181 | if (!SWIG_IsOK(res1)) { | |
14182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'"); | |
14183 | } | |
14184 | arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1); | |
14185 | { | |
14186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14187 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
14188 | wxPyEndAllowThreads(__tstate); | |
14189 | if (PyErr_Occurred()) SWIG_fail; | |
14190 | } | |
14191 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
14192 | return resultobj; | |
14193 | fail: | |
14194 | return NULL; | |
d14a1e28 RD |
14195 | } |
14196 | ||
14197 | ||
0085ce49 RD |
14198 | SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14199 | PyObject *obj; | |
14200 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14201 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj)); | |
14202 | return SWIG_Py_Void(); | |
d14a1e28 RD |
14203 | } |
14204 | ||
0085ce49 RD |
14205 | SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14206 | return SWIG_Python_InitShadowInstance(args); | |
14207 | } | |
d14a1e28 | 14208 | |
0085ce49 RD |
14209 | SWIGINTERN int ScrollBarNameStr_set(PyObject *) { |
14210 | SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only."); | |
14211 | return 1; | |
14212 | } | |
14213 | ||
14214 | ||
14215 | SWIGINTERN PyObject *ScrollBarNameStr_get(void) { | |
14216 | PyObject *pyobj = 0; | |
14217 | ||
14218 | { | |
14219 | #if wxUSE_UNICODE | |
14220 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
14221 | #else | |
14222 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
14223 | #endif | |
14224 | } | |
14225 | return pyobj; | |
14226 | } | |
14227 | ||
14228 | ||
14229 | SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14230 | PyObject *resultobj = 0; | |
14231 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14232 | int arg2 = (int) -1 ; | |
14233 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14234 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14235 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14236 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14237 | long arg5 = (long) wxSB_HORIZONTAL ; | |
14238 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
14239 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
14240 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
14241 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14242 | wxScrollBar *result = 0 ; | |
14243 | void *argp1 = 0 ; | |
14244 | int res1 = 0 ; | |
14245 | int val2 ; | |
14246 | int ecode2 = 0 ; | |
14247 | wxPoint temp3 ; | |
14248 | wxSize temp4 ; | |
14249 | long val5 ; | |
14250 | int ecode5 = 0 ; | |
14251 | void *argp6 = 0 ; | |
14252 | int res6 = 0 ; | |
14253 | bool temp7 = false ; | |
14254 | PyObject * obj0 = 0 ; | |
14255 | PyObject * obj1 = 0 ; | |
14256 | PyObject * obj2 = 0 ; | |
14257 | PyObject * obj3 = 0 ; | |
14258 | PyObject * obj4 = 0 ; | |
14259 | PyObject * obj5 = 0 ; | |
14260 | PyObject * obj6 = 0 ; | |
14261 | char * kwnames[] = { | |
14262 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14263 | }; | |
14264 | ||
14265 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14266 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14267 | if (!SWIG_IsOK(res1)) { | |
14268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14269 | } | |
14270 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14271 | if (obj1) { | |
14272 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14273 | if (!SWIG_IsOK(ecode2)) { | |
14274 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'"); | |
14275 | } | |
14276 | arg2 = static_cast< int >(val2); | |
14277 | } | |
14278 | if (obj2) { | |
d14a1e28 | 14279 | { |
0085ce49 RD |
14280 | arg3 = &temp3; |
14281 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 14282 | } |
0085ce49 RD |
14283 | } |
14284 | if (obj3) { | |
4f89f6a3 | 14285 | { |
0085ce49 RD |
14286 | arg4 = &temp4; |
14287 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 14288 | } |
0085ce49 RD |
14289 | } |
14290 | if (obj4) { | |
14291 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14292 | if (!SWIG_IsOK(ecode5)) { | |
14293 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'"); | |
14294 | } | |
14295 | arg5 = static_cast< long >(val5); | |
14296 | } | |
14297 | if (obj5) { | |
14298 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
14299 | if (!SWIG_IsOK(res6)) { | |
14300 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
14301 | } | |
14302 | if (!argp6) { | |
14303 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
14304 | } | |
14305 | arg6 = reinterpret_cast< wxValidator * >(argp6); | |
14306 | } | |
14307 | if (obj6) { | |
14308 | { | |
14309 | arg7 = wxString_in_helper(obj6); | |
14310 | if (arg7 == NULL) SWIG_fail; | |
14311 | temp7 = true; | |
14312 | } | |
14313 | } | |
14314 | { | |
14315 | if (!wxPyCheckForApp()) SWIG_fail; | |
14316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14317 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
14318 | wxPyEndAllowThreads(__tstate); | |
14319 | if (PyErr_Occurred()) SWIG_fail; | |
14320 | } | |
14321 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 ); | |
14322 | { | |
14323 | if (temp7) | |
14324 | delete arg7; | |
14325 | } | |
14326 | return resultobj; | |
14327 | fail: | |
14328 | { | |
14329 | if (temp7) | |
14330 | delete arg7; | |
14331 | } | |
14332 | return NULL; | |
d14a1e28 RD |
14333 | } |
14334 | ||
14335 | ||
0085ce49 RD |
14336 | SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14337 | PyObject *resultobj = 0; | |
14338 | wxScrollBar *result = 0 ; | |
14339 | ||
14340 | if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail; | |
14341 | { | |
14342 | if (!wxPyCheckForApp()) SWIG_fail; | |
14343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14344 | result = (wxScrollBar *)new wxScrollBar(); | |
14345 | wxPyEndAllowThreads(__tstate); | |
14346 | if (PyErr_Occurred()) SWIG_fail; | |
14347 | } | |
14348 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 ); | |
14349 | return resultobj; | |
14350 | fail: | |
14351 | return NULL; | |
14352 | } | |
14353 | ||
14354 | ||
14355 | SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14356 | PyObject *resultobj = 0; | |
14357 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14358 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14359 | int arg3 = (int) -1 ; | |
14360 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14361 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14362 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14363 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14364 | long arg6 = (long) wxSB_HORIZONTAL ; | |
14365 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
14366 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
14367 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
14368 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14369 | bool result; | |
14370 | void *argp1 = 0 ; | |
14371 | int res1 = 0 ; | |
14372 | void *argp2 = 0 ; | |
14373 | int res2 = 0 ; | |
14374 | int val3 ; | |
14375 | int ecode3 = 0 ; | |
14376 | wxPoint temp4 ; | |
14377 | wxSize temp5 ; | |
14378 | long val6 ; | |
14379 | int ecode6 = 0 ; | |
14380 | void *argp7 = 0 ; | |
14381 | int res7 = 0 ; | |
14382 | bool temp8 = false ; | |
14383 | PyObject * obj0 = 0 ; | |
14384 | PyObject * obj1 = 0 ; | |
14385 | PyObject * obj2 = 0 ; | |
14386 | PyObject * obj3 = 0 ; | |
14387 | PyObject * obj4 = 0 ; | |
14388 | PyObject * obj5 = 0 ; | |
14389 | PyObject * obj6 = 0 ; | |
14390 | PyObject * obj7 = 0 ; | |
14391 | char * kwnames[] = { | |
14392 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14393 | }; | |
14394 | ||
14395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
14396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14397 | if (!SWIG_IsOK(res1)) { | |
14398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'"); | |
14399 | } | |
14400 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14401 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14402 | if (!SWIG_IsOK(res2)) { | |
14403 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14404 | } | |
14405 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14406 | if (obj2) { | |
14407 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14408 | if (!SWIG_IsOK(ecode3)) { | |
14409 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
14410 | } | |
14411 | arg3 = static_cast< int >(val3); | |
14412 | } | |
14413 | if (obj3) { | |
093d3ff1 | 14414 | { |
0085ce49 RD |
14415 | arg4 = &temp4; |
14416 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 14417 | } |
0085ce49 RD |
14418 | } |
14419 | if (obj4) { | |
d14a1e28 | 14420 | { |
0085ce49 RD |
14421 | arg5 = &temp5; |
14422 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14423 | } | |
14424 | } | |
14425 | if (obj5) { | |
14426 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14427 | if (!SWIG_IsOK(ecode6)) { | |
14428 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'"); | |
14429 | } | |
14430 | arg6 = static_cast< long >(val6); | |
14431 | } | |
14432 | if (obj6) { | |
14433 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
14434 | if (!SWIG_IsOK(res7)) { | |
14435 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 14436 | } |
0085ce49 RD |
14437 | if (!argp7) { |
14438 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
14439 | } | |
14440 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
14441 | } | |
14442 | if (obj7) { | |
4f89f6a3 | 14443 | { |
0085ce49 RD |
14444 | arg8 = wxString_in_helper(obj7); |
14445 | if (arg8 == NULL) SWIG_fail; | |
14446 | temp8 = true; | |
4f89f6a3 | 14447 | } |
0085ce49 RD |
14448 | } |
14449 | { | |
14450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14451 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
14452 | wxPyEndAllowThreads(__tstate); | |
14453 | if (PyErr_Occurred()) SWIG_fail; | |
14454 | } | |
14455 | { | |
14456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14457 | } | |
14458 | { | |
14459 | if (temp8) | |
14460 | delete arg8; | |
14461 | } | |
14462 | return resultobj; | |
14463 | fail: | |
14464 | { | |
14465 | if (temp8) | |
14466 | delete arg8; | |
14467 | } | |
14468 | return NULL; | |
d14a1e28 RD |
14469 | } |
14470 | ||
14471 | ||
0085ce49 RD |
14472 | SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14473 | PyObject *resultobj = 0; | |
14474 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14475 | int result; | |
14476 | void *argp1 = 0 ; | |
14477 | int res1 = 0 ; | |
14478 | PyObject *swig_obj[1] ; | |
14479 | ||
14480 | if (!args) SWIG_fail; | |
14481 | swig_obj[0] = args; | |
14482 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14483 | if (!SWIG_IsOK(res1)) { | |
14484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14485 | } | |
14486 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14487 | { | |
14488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14489 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
14490 | wxPyEndAllowThreads(__tstate); | |
14491 | if (PyErr_Occurred()) SWIG_fail; | |
14492 | } | |
14493 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14494 | return resultobj; | |
14495 | fail: | |
14496 | return NULL; | |
d14a1e28 RD |
14497 | } |
14498 | ||
14499 | ||
0085ce49 RD |
14500 | SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14501 | PyObject *resultobj = 0; | |
14502 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14503 | int result; | |
14504 | void *argp1 = 0 ; | |
14505 | int res1 = 0 ; | |
14506 | PyObject *swig_obj[1] ; | |
14507 | ||
14508 | if (!args) SWIG_fail; | |
14509 | swig_obj[0] = args; | |
14510 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14511 | if (!SWIG_IsOK(res1)) { | |
14512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14513 | } | |
14514 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14515 | { | |
14516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14517 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
14518 | wxPyEndAllowThreads(__tstate); | |
14519 | if (PyErr_Occurred()) SWIG_fail; | |
14520 | } | |
14521 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14522 | return resultobj; | |
14523 | fail: | |
14524 | return NULL; | |
d14a1e28 RD |
14525 | } |
14526 | ||
14527 | ||
0085ce49 RD |
14528 | SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14529 | PyObject *resultobj = 0; | |
14530 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14531 | int result; | |
14532 | void *argp1 = 0 ; | |
14533 | int res1 = 0 ; | |
14534 | PyObject *swig_obj[1] ; | |
14535 | ||
14536 | if (!args) SWIG_fail; | |
14537 | swig_obj[0] = args; | |
14538 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14539 | if (!SWIG_IsOK(res1)) { | |
14540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14541 | } | |
14542 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14543 | { | |
14544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14545 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
14546 | wxPyEndAllowThreads(__tstate); | |
14547 | if (PyErr_Occurred()) SWIG_fail; | |
14548 | } | |
14549 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14550 | return resultobj; | |
14551 | fail: | |
14552 | return NULL; | |
d14a1e28 RD |
14553 | } |
14554 | ||
14555 | ||
0085ce49 RD |
14556 | SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14557 | PyObject *resultobj = 0; | |
14558 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14559 | int result; | |
14560 | void *argp1 = 0 ; | |
14561 | int res1 = 0 ; | |
14562 | PyObject *swig_obj[1] ; | |
14563 | ||
14564 | if (!args) SWIG_fail; | |
14565 | swig_obj[0] = args; | |
14566 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14567 | if (!SWIG_IsOK(res1)) { | |
14568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14569 | } | |
14570 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14571 | { | |
14572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14573 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
14574 | wxPyEndAllowThreads(__tstate); | |
14575 | if (PyErr_Occurred()) SWIG_fail; | |
14576 | } | |
14577 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14578 | return resultobj; | |
14579 | fail: | |
14580 | return NULL; | |
d14a1e28 RD |
14581 | } |
14582 | ||
14583 | ||
0085ce49 RD |
14584 | SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14585 | PyObject *resultobj = 0; | |
14586 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14587 | bool result; | |
14588 | void *argp1 = 0 ; | |
14589 | int res1 = 0 ; | |
14590 | PyObject *swig_obj[1] ; | |
14591 | ||
14592 | if (!args) SWIG_fail; | |
14593 | swig_obj[0] = args; | |
14594 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14595 | if (!SWIG_IsOK(res1)) { | |
14596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'"); | |
14597 | } | |
14598 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14599 | { | |
14600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14601 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
14602 | wxPyEndAllowThreads(__tstate); | |
14603 | if (PyErr_Occurred()) SWIG_fail; | |
14604 | } | |
14605 | { | |
14606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14607 | } | |
14608 | return resultobj; | |
14609 | fail: | |
14610 | return NULL; | |
14611 | } | |
14612 | ||
14613 | ||
14614 | SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14615 | PyObject *resultobj = 0; | |
14616 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
14617 | int arg2 ; | |
14618 | void *argp1 = 0 ; | |
14619 | int res1 = 0 ; | |
14620 | int val2 ; | |
14621 | int ecode2 = 0 ; | |
14622 | PyObject * obj0 = 0 ; | |
14623 | PyObject * obj1 = 0 ; | |
14624 | char * kwnames[] = { | |
14625 | (char *) "self",(char *) "viewStart", NULL | |
14626 | }; | |
14627 | ||
14628 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
14629 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 ); | |
14630 | if (!SWIG_IsOK(res1)) { | |
14631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'"); | |
14632 | } | |
14633 | arg1 = reinterpret_cast< wxScrollBar * >(argp1); | |
14634 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14635 | if (!SWIG_IsOK(ecode2)) { | |
14636 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'"); | |
14637 | } | |
14638 | arg2 = static_cast< int >(val2); | |
14639 | { | |
14640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14641 | (arg1)->SetThumbPosition(arg2); | |
14642 | wxPyEndAllowThreads(__tstate); | |
14643 | if (PyErr_Occurred()) SWIG_fail; | |
14644 | } | |
14645 | resultobj = SWIG_Py_Void(); | |
14646 | return resultobj; | |
14647 | fail: | |
14648 | return NULL; | |
14649 | } | |
14650 | ||
14651 | ||
14652 | SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14653 | PyObject *resultobj = 0; | |
14654 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
14655 | SwigValueWrapper<wxVisualAttributes > result; | |
14656 | int val1 ; | |
14657 | int ecode1 = 0 ; | |
14658 | PyObject * obj0 = 0 ; | |
14659 | char * kwnames[] = { | |
14660 | (char *) "variant", NULL | |
14661 | }; | |
14662 | ||
14663 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
14664 | if (obj0) { | |
14665 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14666 | if (!SWIG_IsOK(ecode1)) { | |
14667 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
14668 | } | |
14669 | arg1 = static_cast< wxWindowVariant >(val1); | |
14670 | } | |
14671 | { | |
14672 | if (!wxPyCheckForApp()) SWIG_fail; | |
14673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14674 | result = wxScrollBar::GetClassDefaultAttributes(arg1); | |
14675 | wxPyEndAllowThreads(__tstate); | |
14676 | if (PyErr_Occurred()) SWIG_fail; | |
14677 | } | |
14678 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
14679 | return resultobj; | |
14680 | fail: | |
14681 | return NULL; | |
d14a1e28 RD |
14682 | } |
14683 | ||
14684 | ||
0085ce49 RD |
14685 | SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14686 | PyObject *obj; | |
14687 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14688 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj)); | |
14689 | return SWIG_Py_Void(); | |
d14a1e28 RD |
14690 | } |
14691 | ||
0085ce49 RD |
14692 | SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14693 | return SWIG_Python_InitShadowInstance(args); | |
14694 | } | |
d14a1e28 | 14695 | |
0085ce49 RD |
14696 | SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) { |
14697 | SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
14698 | return 1; | |
d14a1e28 RD |
14699 | } |
14700 | ||
14701 | ||
0085ce49 RD |
14702 | SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) { |
14703 | PyObject *pyobj = 0; | |
14704 | ||
14705 | { | |
14706 | #if wxUSE_UNICODE | |
14707 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
14708 | #else | |
14709 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
14710 | #endif | |
14711 | } | |
14712 | return pyobj; | |
d14a1e28 RD |
14713 | } |
14714 | ||
14715 | ||
0085ce49 RD |
14716 | SWIGINTERN int SpinCtrlNameStr_set(PyObject *) { |
14717 | SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only."); | |
14718 | return 1; | |
d14a1e28 RD |
14719 | } |
14720 | ||
14721 | ||
0085ce49 RD |
14722 | SWIGINTERN PyObject *SpinCtrlNameStr_get(void) { |
14723 | PyObject *pyobj = 0; | |
14724 | ||
14725 | { | |
14726 | #if wxUSE_UNICODE | |
14727 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
14728 | #else | |
14729 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
14730 | #endif | |
14731 | } | |
14732 | return pyobj; | |
14733 | } | |
14734 | ||
14735 | ||
14736 | SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14737 | PyObject *resultobj = 0; | |
14738 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14739 | int arg2 = (int) -1 ; | |
14740 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14741 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14742 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14743 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14744 | long arg5 = (long) wxSP_HORIZONTAL ; | |
14745 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
14746 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14747 | wxSpinButton *result = 0 ; | |
14748 | void *argp1 = 0 ; | |
14749 | int res1 = 0 ; | |
14750 | int val2 ; | |
14751 | int ecode2 = 0 ; | |
14752 | wxPoint temp3 ; | |
14753 | wxSize temp4 ; | |
14754 | long val5 ; | |
14755 | int ecode5 = 0 ; | |
14756 | bool temp6 = false ; | |
14757 | PyObject * obj0 = 0 ; | |
14758 | PyObject * obj1 = 0 ; | |
14759 | PyObject * obj2 = 0 ; | |
14760 | PyObject * obj3 = 0 ; | |
14761 | PyObject * obj4 = 0 ; | |
14762 | PyObject * obj5 = 0 ; | |
14763 | char * kwnames[] = { | |
14764 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14765 | }; | |
14766 | ||
14767 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
14768 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14769 | if (!SWIG_IsOK(res1)) { | |
14770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14771 | } | |
14772 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14773 | if (obj1) { | |
14774 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14775 | if (!SWIG_IsOK(ecode2)) { | |
14776 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'"); | |
14777 | } | |
14778 | arg2 = static_cast< int >(val2); | |
14779 | } | |
14780 | if (obj2) { | |
093d3ff1 | 14781 | { |
0085ce49 RD |
14782 | arg3 = &temp3; |
14783 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 14784 | } |
0085ce49 RD |
14785 | } |
14786 | if (obj3) { | |
d14a1e28 | 14787 | { |
0085ce49 RD |
14788 | arg4 = &temp4; |
14789 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 14790 | } |
0085ce49 RD |
14791 | } |
14792 | if (obj4) { | |
14793 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14794 | if (!SWIG_IsOK(ecode5)) { | |
14795 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'"); | |
14796 | } | |
14797 | arg5 = static_cast< long >(val5); | |
14798 | } | |
14799 | if (obj5) { | |
d14a1e28 | 14800 | { |
0085ce49 RD |
14801 | arg6 = wxString_in_helper(obj5); |
14802 | if (arg6 == NULL) SWIG_fail; | |
14803 | temp6 = true; | |
d14a1e28 | 14804 | } |
0085ce49 RD |
14805 | } |
14806 | { | |
14807 | if (!wxPyCheckForApp()) SWIG_fail; | |
14808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14809 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14810 | wxPyEndAllowThreads(__tstate); | |
14811 | if (PyErr_Occurred()) SWIG_fail; | |
14812 | } | |
14813 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 ); | |
14814 | { | |
14815 | if (temp6) | |
14816 | delete arg6; | |
14817 | } | |
14818 | return resultobj; | |
14819 | fail: | |
14820 | { | |
14821 | if (temp6) | |
14822 | delete arg6; | |
14823 | } | |
14824 | return NULL; | |
d14a1e28 RD |
14825 | } |
14826 | ||
14827 | ||
0085ce49 RD |
14828 | SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14829 | PyObject *resultobj = 0; | |
14830 | wxSpinButton *result = 0 ; | |
14831 | ||
14832 | if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail; | |
14833 | { | |
14834 | if (!wxPyCheckForApp()) SWIG_fail; | |
14835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14836 | result = (wxSpinButton *)new wxSpinButton(); | |
14837 | wxPyEndAllowThreads(__tstate); | |
14838 | if (PyErr_Occurred()) SWIG_fail; | |
14839 | } | |
14840 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 ); | |
14841 | return resultobj; | |
14842 | fail: | |
14843 | return NULL; | |
14844 | } | |
14845 | ||
14846 | ||
14847 | SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14848 | PyObject *resultobj = 0; | |
14849 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14850 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14851 | int arg3 = (int) -1 ; | |
14852 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14853 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14854 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14855 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14856 | long arg6 = (long) wxSP_HORIZONTAL ; | |
14857 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
14858 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14859 | bool result; | |
14860 | void *argp1 = 0 ; | |
14861 | int res1 = 0 ; | |
14862 | void *argp2 = 0 ; | |
14863 | int res2 = 0 ; | |
14864 | int val3 ; | |
14865 | int ecode3 = 0 ; | |
14866 | wxPoint temp4 ; | |
14867 | wxSize temp5 ; | |
14868 | long val6 ; | |
14869 | int ecode6 = 0 ; | |
14870 | bool temp7 = false ; | |
14871 | PyObject * obj0 = 0 ; | |
14872 | PyObject * obj1 = 0 ; | |
14873 | PyObject * obj2 = 0 ; | |
14874 | PyObject * obj3 = 0 ; | |
14875 | PyObject * obj4 = 0 ; | |
14876 | PyObject * obj5 = 0 ; | |
14877 | PyObject * obj6 = 0 ; | |
14878 | char * kwnames[] = { | |
14879 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14880 | }; | |
14881 | ||
14882 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14883 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14884 | if (!SWIG_IsOK(res1)) { | |
14885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
14886 | } | |
14887 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14888 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14889 | if (!SWIG_IsOK(res2)) { | |
14890 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14891 | } | |
14892 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14893 | if (obj2) { | |
14894 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14895 | if (!SWIG_IsOK(ecode3)) { | |
14896 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
14897 | } | |
14898 | arg3 = static_cast< int >(val3); | |
14899 | } | |
14900 | if (obj3) { | |
d14a1e28 | 14901 | { |
0085ce49 RD |
14902 | arg4 = &temp4; |
14903 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 14904 | } |
0085ce49 RD |
14905 | } |
14906 | if (obj4) { | |
d14a1e28 | 14907 | { |
0085ce49 RD |
14908 | arg5 = &temp5; |
14909 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 14910 | } |
0085ce49 RD |
14911 | } |
14912 | if (obj5) { | |
14913 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14914 | if (!SWIG_IsOK(ecode6)) { | |
14915 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'"); | |
14916 | } | |
14917 | arg6 = static_cast< long >(val6); | |
14918 | } | |
14919 | if (obj6) { | |
d14a1e28 | 14920 | { |
0085ce49 RD |
14921 | arg7 = wxString_in_helper(obj6); |
14922 | if (arg7 == NULL) SWIG_fail; | |
14923 | temp7 = true; | |
d14a1e28 | 14924 | } |
0085ce49 RD |
14925 | } |
14926 | { | |
14927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14928 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14929 | wxPyEndAllowThreads(__tstate); | |
14930 | if (PyErr_Occurred()) SWIG_fail; | |
14931 | } | |
14932 | { | |
14933 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14934 | } | |
14935 | { | |
14936 | if (temp7) | |
14937 | delete arg7; | |
14938 | } | |
14939 | return resultobj; | |
14940 | fail: | |
14941 | { | |
14942 | if (temp7) | |
14943 | delete arg7; | |
14944 | } | |
14945 | return NULL; | |
d14a1e28 RD |
14946 | } |
14947 | ||
14948 | ||
0085ce49 RD |
14949 | SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14950 | PyObject *resultobj = 0; | |
14951 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14952 | int result; | |
14953 | void *argp1 = 0 ; | |
14954 | int res1 = 0 ; | |
14955 | PyObject *swig_obj[1] ; | |
14956 | ||
14957 | if (!args) SWIG_fail; | |
14958 | swig_obj[0] = args; | |
14959 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14960 | if (!SWIG_IsOK(res1)) { | |
14961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
14962 | } | |
14963 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14964 | { | |
14965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14966 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
14967 | wxPyEndAllowThreads(__tstate); | |
14968 | if (PyErr_Occurred()) SWIG_fail; | |
14969 | } | |
14970 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14971 | return resultobj; | |
14972 | fail: | |
14973 | return NULL; | |
d14a1e28 RD |
14974 | } |
14975 | ||
14976 | ||
0085ce49 RD |
14977 | SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14978 | PyObject *resultobj = 0; | |
14979 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
14980 | int result; | |
14981 | void *argp1 = 0 ; | |
14982 | int res1 = 0 ; | |
14983 | PyObject *swig_obj[1] ; | |
14984 | ||
14985 | if (!args) SWIG_fail; | |
14986 | swig_obj[0] = args; | |
14987 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
14988 | if (!SWIG_IsOK(res1)) { | |
14989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
14990 | } | |
14991 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
14992 | { | |
14993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14994 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
14995 | wxPyEndAllowThreads(__tstate); | |
14996 | if (PyErr_Occurred()) SWIG_fail; | |
14997 | } | |
14998 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14999 | return resultobj; | |
15000 | fail: | |
15001 | return NULL; | |
d14a1e28 RD |
15002 | } |
15003 | ||
15004 | ||
0085ce49 RD |
15005 | SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15006 | PyObject *resultobj = 0; | |
15007 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15008 | int result; | |
15009 | void *argp1 = 0 ; | |
15010 | int res1 = 0 ; | |
15011 | PyObject *swig_obj[1] ; | |
15012 | ||
15013 | if (!args) SWIG_fail; | |
15014 | swig_obj[0] = args; | |
15015 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15016 | if (!SWIG_IsOK(res1)) { | |
15017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
15018 | } | |
15019 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15020 | { | |
15021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15022 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
15023 | wxPyEndAllowThreads(__tstate); | |
15024 | if (PyErr_Occurred()) SWIG_fail; | |
15025 | } | |
15026 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15027 | return resultobj; | |
15028 | fail: | |
15029 | return NULL; | |
15030 | } | |
15031 | ||
15032 | ||
15033 | SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15034 | PyObject *resultobj = 0; | |
15035 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15036 | int arg2 ; | |
15037 | void *argp1 = 0 ; | |
15038 | int res1 = 0 ; | |
15039 | int val2 ; | |
15040 | int ecode2 = 0 ; | |
15041 | PyObject * obj0 = 0 ; | |
15042 | PyObject * obj1 = 0 ; | |
15043 | char * kwnames[] = { | |
15044 | (char *) "self",(char *) "val", NULL | |
15045 | }; | |
15046 | ||
15047 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
15048 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15049 | if (!SWIG_IsOK(res1)) { | |
15050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
15051 | } | |
15052 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15053 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15054 | if (!SWIG_IsOK(ecode2)) { | |
15055 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
15056 | } | |
15057 | arg2 = static_cast< int >(val2); | |
15058 | { | |
15059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15060 | (arg1)->SetValue(arg2); | |
15061 | wxPyEndAllowThreads(__tstate); | |
15062 | if (PyErr_Occurred()) SWIG_fail; | |
15063 | } | |
15064 | resultobj = SWIG_Py_Void(); | |
15065 | return resultobj; | |
15066 | fail: | |
15067 | return NULL; | |
15068 | } | |
15069 | ||
15070 | ||
15071 | SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15072 | PyObject *resultobj = 0; | |
15073 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15074 | int arg2 ; | |
15075 | void *argp1 = 0 ; | |
15076 | int res1 = 0 ; | |
15077 | int val2 ; | |
15078 | int ecode2 = 0 ; | |
15079 | PyObject * obj0 = 0 ; | |
15080 | PyObject * obj1 = 0 ; | |
15081 | char * kwnames[] = { | |
15082 | (char *) "self",(char *) "minVal", NULL | |
15083 | }; | |
15084 | ||
15085 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail; | |
15086 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15087 | if (!SWIG_IsOK(res1)) { | |
15088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
15089 | } | |
15090 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15091 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15092 | if (!SWIG_IsOK(ecode2)) { | |
15093 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'"); | |
15094 | } | |
15095 | arg2 = static_cast< int >(val2); | |
15096 | { | |
15097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15098 | (arg1)->SetMin(arg2); | |
15099 | wxPyEndAllowThreads(__tstate); | |
15100 | if (PyErr_Occurred()) SWIG_fail; | |
15101 | } | |
15102 | resultobj = SWIG_Py_Void(); | |
15103 | return resultobj; | |
15104 | fail: | |
15105 | return NULL; | |
15106 | } | |
15107 | ||
15108 | ||
15109 | SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15110 | PyObject *resultobj = 0; | |
15111 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15112 | int arg2 ; | |
15113 | void *argp1 = 0 ; | |
15114 | int res1 = 0 ; | |
15115 | int val2 ; | |
15116 | int ecode2 = 0 ; | |
15117 | PyObject * obj0 = 0 ; | |
15118 | PyObject * obj1 = 0 ; | |
15119 | char * kwnames[] = { | |
15120 | (char *) "self",(char *) "maxVal", NULL | |
15121 | }; | |
15122 | ||
15123 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail; | |
15124 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15125 | if (!SWIG_IsOK(res1)) { | |
15126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
15127 | } | |
15128 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15129 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15130 | if (!SWIG_IsOK(ecode2)) { | |
15131 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'"); | |
15132 | } | |
15133 | arg2 = static_cast< int >(val2); | |
15134 | { | |
15135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15136 | (arg1)->SetMax(arg2); | |
15137 | wxPyEndAllowThreads(__tstate); | |
15138 | if (PyErr_Occurred()) SWIG_fail; | |
15139 | } | |
15140 | resultobj = SWIG_Py_Void(); | |
15141 | return resultobj; | |
15142 | fail: | |
15143 | return NULL; | |
15144 | } | |
15145 | ||
15146 | ||
15147 | SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15148 | PyObject *resultobj = 0; | |
15149 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15150 | int arg2 ; | |
15151 | int arg3 ; | |
15152 | void *argp1 = 0 ; | |
15153 | int res1 = 0 ; | |
15154 | int val2 ; | |
15155 | int ecode2 = 0 ; | |
15156 | int val3 ; | |
15157 | int ecode3 = 0 ; | |
15158 | PyObject * obj0 = 0 ; | |
15159 | PyObject * obj1 = 0 ; | |
15160 | PyObject * obj2 = 0 ; | |
15161 | char * kwnames[] = { | |
15162 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
15163 | }; | |
15164 | ||
15165 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15166 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15167 | if (!SWIG_IsOK(res1)) { | |
15168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'"); | |
15169 | } | |
15170 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15171 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15172 | if (!SWIG_IsOK(ecode2)) { | |
15173 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
15174 | } | |
15175 | arg2 = static_cast< int >(val2); | |
15176 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15177 | if (!SWIG_IsOK(ecode3)) { | |
15178 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
15179 | } | |
15180 | arg3 = static_cast< int >(val3); | |
15181 | { | |
15182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15183 | (arg1)->SetRange(arg2,arg3); | |
15184 | wxPyEndAllowThreads(__tstate); | |
15185 | if (PyErr_Occurred()) SWIG_fail; | |
15186 | } | |
15187 | resultobj = SWIG_Py_Void(); | |
15188 | return resultobj; | |
15189 | fail: | |
15190 | return NULL; | |
d14a1e28 RD |
15191 | } |
15192 | ||
15193 | ||
0085ce49 RD |
15194 | SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15195 | PyObject *resultobj = 0; | |
15196 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
15197 | bool result; | |
15198 | void *argp1 = 0 ; | |
15199 | int res1 = 0 ; | |
15200 | PyObject *swig_obj[1] ; | |
15201 | ||
15202 | if (!args) SWIG_fail; | |
15203 | swig_obj[0] = args; | |
15204 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 ); | |
15205 | if (!SWIG_IsOK(res1)) { | |
15206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'"); | |
15207 | } | |
15208 | arg1 = reinterpret_cast< wxSpinButton * >(argp1); | |
15209 | { | |
15210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15211 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
15212 | wxPyEndAllowThreads(__tstate); | |
15213 | if (PyErr_Occurred()) SWIG_fail; | |
15214 | } | |
15215 | { | |
15216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15217 | } | |
15218 | return resultobj; | |
15219 | fail: | |
15220 | return NULL; | |
d14a1e28 RD |
15221 | } |
15222 | ||
15223 | ||
0085ce49 RD |
15224 | SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15225 | PyObject *resultobj = 0; | |
15226 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
15227 | SwigValueWrapper<wxVisualAttributes > result; | |
15228 | int val1 ; | |
15229 | int ecode1 = 0 ; | |
15230 | PyObject * obj0 = 0 ; | |
15231 | char * kwnames[] = { | |
15232 | (char *) "variant", NULL | |
15233 | }; | |
15234 | ||
15235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
15236 | if (obj0) { | |
15237 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15238 | if (!SWIG_IsOK(ecode1)) { | |
15239 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
15240 | } | |
15241 | arg1 = static_cast< wxWindowVariant >(val1); | |
15242 | } | |
15243 | { | |
15244 | if (!wxPyCheckForApp()) SWIG_fail; | |
15245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15246 | result = wxSpinButton::GetClassDefaultAttributes(arg1); | |
15247 | wxPyEndAllowThreads(__tstate); | |
15248 | if (PyErr_Occurred()) SWIG_fail; | |
15249 | } | |
15250 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
15251 | return resultobj; | |
15252 | fail: | |
15253 | return NULL; | |
15254 | } | |
15255 | ||
15256 | ||
15257 | SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15258 | PyObject *obj; | |
15259 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15260 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj)); | |
15261 | return SWIG_Py_Void(); | |
15262 | } | |
15263 | ||
15264 | SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15265 | return SWIG_Python_InitShadowInstance(args); | |
15266 | } | |
15267 | ||
15268 | SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15269 | PyObject *resultobj = 0; | |
15270 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15271 | int arg2 = (int) -1 ; | |
15272 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15273 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15274 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15275 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15276 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15277 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15278 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
15279 | int arg7 = (int) 0 ; | |
15280 | int arg8 = (int) 100 ; | |
15281 | int arg9 = (int) 0 ; | |
15282 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
15283 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
15284 | wxSpinCtrl *result = 0 ; | |
15285 | void *argp1 = 0 ; | |
15286 | int res1 = 0 ; | |
15287 | int val2 ; | |
15288 | int ecode2 = 0 ; | |
15289 | bool temp3 = false ; | |
15290 | wxPoint temp4 ; | |
15291 | wxSize temp5 ; | |
15292 | long val6 ; | |
15293 | int ecode6 = 0 ; | |
15294 | int val7 ; | |
15295 | int ecode7 = 0 ; | |
15296 | int val8 ; | |
15297 | int ecode8 = 0 ; | |
15298 | int val9 ; | |
15299 | int ecode9 = 0 ; | |
15300 | bool temp10 = false ; | |
15301 | PyObject * obj0 = 0 ; | |
15302 | PyObject * obj1 = 0 ; | |
15303 | PyObject * obj2 = 0 ; | |
15304 | PyObject * obj3 = 0 ; | |
15305 | PyObject * obj4 = 0 ; | |
15306 | PyObject * obj5 = 0 ; | |
15307 | PyObject * obj6 = 0 ; | |
15308 | PyObject * obj7 = 0 ; | |
15309 | PyObject * obj8 = 0 ; | |
15310 | PyObject * obj9 = 0 ; | |
15311 | char * kwnames[] = { | |
15312 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
15313 | }; | |
15314 | ||
15315 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
15316 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15317 | if (!SWIG_IsOK(res1)) { | |
15318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
15319 | } | |
15320 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
15321 | if (obj1) { | |
15322 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15323 | if (!SWIG_IsOK(ecode2)) { | |
15324 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'"); | |
15325 | } | |
15326 | arg2 = static_cast< int >(val2); | |
15327 | } | |
15328 | if (obj2) { | |
093d3ff1 | 15329 | { |
0085ce49 RD |
15330 | arg3 = wxString_in_helper(obj2); |
15331 | if (arg3 == NULL) SWIG_fail; | |
15332 | temp3 = true; | |
093d3ff1 | 15333 | } |
0085ce49 RD |
15334 | } |
15335 | if (obj3) { | |
093d3ff1 | 15336 | { |
0085ce49 RD |
15337 | arg4 = &temp4; |
15338 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 15339 | } |
0085ce49 RD |
15340 | } |
15341 | if (obj4) { | |
d14a1e28 | 15342 | { |
0085ce49 RD |
15343 | arg5 = &temp5; |
15344 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 15345 | } |
0085ce49 RD |
15346 | } |
15347 | if (obj5) { | |
15348 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
15349 | if (!SWIG_IsOK(ecode6)) { | |
15350 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'"); | |
15351 | } | |
15352 | arg6 = static_cast< long >(val6); | |
15353 | } | |
15354 | if (obj6) { | |
15355 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
15356 | if (!SWIG_IsOK(ecode7)) { | |
15357 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'"); | |
15358 | } | |
15359 | arg7 = static_cast< int >(val7); | |
15360 | } | |
15361 | if (obj7) { | |
15362 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
15363 | if (!SWIG_IsOK(ecode8)) { | |
15364 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'"); | |
15365 | } | |
15366 | arg8 = static_cast< int >(val8); | |
15367 | } | |
15368 | if (obj8) { | |
15369 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
15370 | if (!SWIG_IsOK(ecode9)) { | |
15371 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'"); | |
15372 | } | |
15373 | arg9 = static_cast< int >(val9); | |
15374 | } | |
15375 | if (obj9) { | |
d14a1e28 | 15376 | { |
0085ce49 RD |
15377 | arg10 = wxString_in_helper(obj9); |
15378 | if (arg10 == NULL) SWIG_fail; | |
15379 | temp10 = true; | |
d14a1e28 | 15380 | } |
0085ce49 RD |
15381 | } |
15382 | { | |
15383 | if (!wxPyCheckForApp()) SWIG_fail; | |
15384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15385 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
15386 | wxPyEndAllowThreads(__tstate); | |
15387 | if (PyErr_Occurred()) SWIG_fail; | |
15388 | } | |
15389 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 ); | |
15390 | { | |
15391 | if (temp3) | |
15392 | delete arg3; | |
15393 | } | |
15394 | { | |
15395 | if (temp10) | |
15396 | delete arg10; | |
15397 | } | |
15398 | return resultobj; | |
15399 | fail: | |
15400 | { | |
15401 | if (temp3) | |
15402 | delete arg3; | |
15403 | } | |
15404 | { | |
15405 | if (temp10) | |
15406 | delete arg10; | |
15407 | } | |
15408 | return NULL; | |
d14a1e28 RD |
15409 | } |
15410 | ||
15411 | ||
0085ce49 RD |
15412 | SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15413 | PyObject *resultobj = 0; | |
15414 | wxSpinCtrl *result = 0 ; | |
15415 | ||
15416 | if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail; | |
15417 | { | |
15418 | if (!wxPyCheckForApp()) SWIG_fail; | |
15419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15420 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
15421 | wxPyEndAllowThreads(__tstate); | |
15422 | if (PyErr_Occurred()) SWIG_fail; | |
15423 | } | |
15424 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 ); | |
15425 | return resultobj; | |
15426 | fail: | |
15427 | return NULL; | |
15428 | } | |
15429 | ||
15430 | ||
15431 | SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15432 | PyObject *resultobj = 0; | |
15433 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15434 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15435 | int arg3 = (int) -1 ; | |
15436 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15437 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15438 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
15439 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15440 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15441 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15442 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
15443 | int arg8 = (int) 0 ; | |
15444 | int arg9 = (int) 100 ; | |
15445 | int arg10 = (int) 0 ; | |
15446 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
15447 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
15448 | bool result; | |
15449 | void *argp1 = 0 ; | |
15450 | int res1 = 0 ; | |
15451 | void *argp2 = 0 ; | |
15452 | int res2 = 0 ; | |
15453 | int val3 ; | |
15454 | int ecode3 = 0 ; | |
15455 | bool temp4 = false ; | |
15456 | wxPoint temp5 ; | |
15457 | wxSize temp6 ; | |
15458 | long val7 ; | |
15459 | int ecode7 = 0 ; | |
15460 | int val8 ; | |
15461 | int ecode8 = 0 ; | |
15462 | int val9 ; | |
15463 | int ecode9 = 0 ; | |
15464 | int val10 ; | |
15465 | int ecode10 = 0 ; | |
15466 | bool temp11 = false ; | |
15467 | PyObject * obj0 = 0 ; | |
15468 | PyObject * obj1 = 0 ; | |
15469 | PyObject * obj2 = 0 ; | |
15470 | PyObject * obj3 = 0 ; | |
15471 | PyObject * obj4 = 0 ; | |
15472 | PyObject * obj5 = 0 ; | |
15473 | PyObject * obj6 = 0 ; | |
15474 | PyObject * obj7 = 0 ; | |
15475 | PyObject * obj8 = 0 ; | |
15476 | PyObject * obj9 = 0 ; | |
15477 | PyObject * obj10 = 0 ; | |
15478 | char * kwnames[] = { | |
15479 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
15480 | }; | |
15481 | ||
15482 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
15483 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15484 | if (!SWIG_IsOK(res1)) { | |
15485 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15486 | } | |
15487 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15488 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15489 | if (!SWIG_IsOK(res2)) { | |
15490 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
15491 | } | |
15492 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
15493 | if (obj2) { | |
15494 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15495 | if (!SWIG_IsOK(ecode3)) { | |
15496 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
15497 | } | |
15498 | arg3 = static_cast< int >(val3); | |
15499 | } | |
15500 | if (obj3) { | |
093d3ff1 | 15501 | { |
0085ce49 RD |
15502 | arg4 = wxString_in_helper(obj3); |
15503 | if (arg4 == NULL) SWIG_fail; | |
15504 | temp4 = true; | |
093d3ff1 | 15505 | } |
0085ce49 RD |
15506 | } |
15507 | if (obj4) { | |
d14a1e28 | 15508 | { |
0085ce49 RD |
15509 | arg5 = &temp5; |
15510 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 15511 | } |
0085ce49 RD |
15512 | } |
15513 | if (obj5) { | |
093d3ff1 | 15514 | { |
0085ce49 RD |
15515 | arg6 = &temp6; |
15516 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 15517 | } |
0085ce49 RD |
15518 | } |
15519 | if (obj6) { | |
15520 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
15521 | if (!SWIG_IsOK(ecode7)) { | |
15522 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
15523 | } | |
15524 | arg7 = static_cast< long >(val7); | |
15525 | } | |
15526 | if (obj7) { | |
15527 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
15528 | if (!SWIG_IsOK(ecode8)) { | |
15529 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'"); | |
15530 | } | |
15531 | arg8 = static_cast< int >(val8); | |
15532 | } | |
15533 | if (obj8) { | |
15534 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
15535 | if (!SWIG_IsOK(ecode9)) { | |
15536 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'"); | |
15537 | } | |
15538 | arg9 = static_cast< int >(val9); | |
15539 | } | |
15540 | if (obj9) { | |
15541 | ecode10 = SWIG_AsVal_int(obj9, &val10); | |
15542 | if (!SWIG_IsOK(ecode10)) { | |
15543 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'"); | |
15544 | } | |
15545 | arg10 = static_cast< int >(val10); | |
15546 | } | |
15547 | if (obj10) { | |
d14a1e28 | 15548 | { |
0085ce49 RD |
15549 | arg11 = wxString_in_helper(obj10); |
15550 | if (arg11 == NULL) SWIG_fail; | |
15551 | temp11 = true; | |
d14a1e28 | 15552 | } |
0085ce49 RD |
15553 | } |
15554 | { | |
15555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15556 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
15557 | wxPyEndAllowThreads(__tstate); | |
15558 | if (PyErr_Occurred()) SWIG_fail; | |
15559 | } | |
15560 | { | |
15561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15562 | } | |
15563 | { | |
15564 | if (temp4) | |
15565 | delete arg4; | |
15566 | } | |
15567 | { | |
15568 | if (temp11) | |
15569 | delete arg11; | |
15570 | } | |
15571 | return resultobj; | |
15572 | fail: | |
15573 | { | |
15574 | if (temp4) | |
15575 | delete arg4; | |
15576 | } | |
15577 | { | |
15578 | if (temp11) | |
15579 | delete arg11; | |
15580 | } | |
15581 | return NULL; | |
d14a1e28 RD |
15582 | } |
15583 | ||
15584 | ||
0085ce49 RD |
15585 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15586 | PyObject *resultobj = 0; | |
15587 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15588 | int result; | |
15589 | void *argp1 = 0 ; | |
15590 | int res1 = 0 ; | |
15591 | PyObject *swig_obj[1] ; | |
15592 | ||
15593 | if (!args) SWIG_fail; | |
15594 | swig_obj[0] = args; | |
15595 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15596 | if (!SWIG_IsOK(res1)) { | |
15597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15598 | } | |
15599 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15600 | { | |
15601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15602 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
15603 | wxPyEndAllowThreads(__tstate); | |
15604 | if (PyErr_Occurred()) SWIG_fail; | |
15605 | } | |
15606 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15607 | return resultobj; | |
15608 | fail: | |
15609 | return NULL; | |
15610 | } | |
15611 | ||
15612 | ||
15613 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15614 | PyObject *resultobj = 0; | |
15615 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15616 | int arg2 ; | |
15617 | void *argp1 = 0 ; | |
15618 | int res1 = 0 ; | |
15619 | int val2 ; | |
15620 | int ecode2 = 0 ; | |
15621 | PyObject * obj0 = 0 ; | |
15622 | PyObject * obj1 = 0 ; | |
15623 | char * kwnames[] = { | |
15624 | (char *) "self",(char *) "value", NULL | |
15625 | }; | |
15626 | ||
15627 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
15628 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15629 | if (!SWIG_IsOK(res1)) { | |
15630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15631 | } | |
15632 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15633 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15634 | if (!SWIG_IsOK(ecode2)) { | |
15635 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
15636 | } | |
15637 | arg2 = static_cast< int >(val2); | |
15638 | { | |
15639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15640 | (arg1)->SetValue(arg2); | |
15641 | wxPyEndAllowThreads(__tstate); | |
15642 | if (PyErr_Occurred()) SWIG_fail; | |
15643 | } | |
15644 | resultobj = SWIG_Py_Void(); | |
15645 | return resultobj; | |
15646 | fail: | |
15647 | return NULL; | |
15648 | } | |
15649 | ||
15650 | ||
15651 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15652 | PyObject *resultobj = 0; | |
15653 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15654 | wxString *arg2 = 0 ; | |
15655 | void *argp1 = 0 ; | |
15656 | int res1 = 0 ; | |
15657 | bool temp2 = false ; | |
15658 | PyObject * obj0 = 0 ; | |
15659 | PyObject * obj1 = 0 ; | |
15660 | char * kwnames[] = { | |
15661 | (char *) "self",(char *) "text", NULL | |
15662 | }; | |
15663 | ||
15664 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail; | |
15665 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15666 | if (!SWIG_IsOK(res1)) { | |
15667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15668 | } | |
15669 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15670 | { | |
15671 | arg2 = wxString_in_helper(obj1); | |
15672 | if (arg2 == NULL) SWIG_fail; | |
15673 | temp2 = true; | |
15674 | } | |
15675 | { | |
15676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15677 | (arg1)->SetValue((wxString const &)*arg2); | |
15678 | wxPyEndAllowThreads(__tstate); | |
15679 | if (PyErr_Occurred()) SWIG_fail; | |
15680 | } | |
15681 | resultobj = SWIG_Py_Void(); | |
15682 | { | |
15683 | if (temp2) | |
15684 | delete arg2; | |
15685 | } | |
15686 | return resultobj; | |
15687 | fail: | |
15688 | { | |
15689 | if (temp2) | |
15690 | delete arg2; | |
15691 | } | |
15692 | return NULL; | |
15693 | } | |
15694 | ||
15695 | ||
15696 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15697 | PyObject *resultobj = 0; | |
15698 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15699 | int arg2 ; | |
15700 | int arg3 ; | |
15701 | void *argp1 = 0 ; | |
15702 | int res1 = 0 ; | |
15703 | int val2 ; | |
15704 | int ecode2 = 0 ; | |
15705 | int val3 ; | |
15706 | int ecode3 = 0 ; | |
15707 | PyObject * obj0 = 0 ; | |
15708 | PyObject * obj1 = 0 ; | |
15709 | PyObject * obj2 = 0 ; | |
15710 | char * kwnames[] = { | |
15711 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
15712 | }; | |
15713 | ||
15714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15716 | if (!SWIG_IsOK(res1)) { | |
15717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15718 | } | |
15719 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15720 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15721 | if (!SWIG_IsOK(ecode2)) { | |
15722 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
15723 | } | |
15724 | arg2 = static_cast< int >(val2); | |
15725 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15726 | if (!SWIG_IsOK(ecode3)) { | |
15727 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
15728 | } | |
15729 | arg3 = static_cast< int >(val3); | |
15730 | { | |
15731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15732 | (arg1)->SetRange(arg2,arg3); | |
15733 | wxPyEndAllowThreads(__tstate); | |
15734 | if (PyErr_Occurred()) SWIG_fail; | |
15735 | } | |
15736 | resultobj = SWIG_Py_Void(); | |
15737 | return resultobj; | |
15738 | fail: | |
15739 | return NULL; | |
d14a1e28 RD |
15740 | } |
15741 | ||
15742 | ||
0085ce49 RD |
15743 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15744 | PyObject *resultobj = 0; | |
15745 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15746 | int result; | |
15747 | void *argp1 = 0 ; | |
15748 | int res1 = 0 ; | |
15749 | PyObject *swig_obj[1] ; | |
15750 | ||
15751 | if (!args) SWIG_fail; | |
15752 | swig_obj[0] = args; | |
15753 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15754 | if (!SWIG_IsOK(res1)) { | |
15755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15756 | } | |
15757 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15758 | { | |
15759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15760 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
15761 | wxPyEndAllowThreads(__tstate); | |
15762 | if (PyErr_Occurred()) SWIG_fail; | |
15763 | } | |
15764 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15765 | return resultobj; | |
15766 | fail: | |
15767 | return NULL; | |
d14a1e28 RD |
15768 | } |
15769 | ||
15770 | ||
0085ce49 RD |
15771 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15772 | PyObject *resultobj = 0; | |
15773 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15774 | int result; | |
15775 | void *argp1 = 0 ; | |
15776 | int res1 = 0 ; | |
15777 | PyObject *swig_obj[1] ; | |
15778 | ||
15779 | if (!args) SWIG_fail; | |
15780 | swig_obj[0] = args; | |
15781 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15782 | if (!SWIG_IsOK(res1)) { | |
15783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'"); | |
15784 | } | |
15785 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15786 | { | |
15787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15788 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
15789 | wxPyEndAllowThreads(__tstate); | |
15790 | if (PyErr_Occurred()) SWIG_fail; | |
15791 | } | |
15792 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15793 | return resultobj; | |
15794 | fail: | |
15795 | return NULL; | |
15796 | } | |
15797 | ||
15798 | ||
15799 | SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15800 | PyObject *resultobj = 0; | |
15801 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
15802 | long arg2 ; | |
15803 | long arg3 ; | |
15804 | void *argp1 = 0 ; | |
15805 | int res1 = 0 ; | |
15806 | long val2 ; | |
15807 | int ecode2 = 0 ; | |
15808 | long val3 ; | |
15809 | int ecode3 = 0 ; | |
15810 | PyObject * obj0 = 0 ; | |
15811 | PyObject * obj1 = 0 ; | |
15812 | PyObject * obj2 = 0 ; | |
15813 | char * kwnames[] = { | |
2131d850 | 15814 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
15815 | }; |
15816 | ||
15817 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15818 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 ); | |
15819 | if (!SWIG_IsOK(res1)) { | |
15820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'"); | |
15821 | } | |
15822 | arg1 = reinterpret_cast< wxSpinCtrl * >(argp1); | |
15823 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
15824 | if (!SWIG_IsOK(ecode2)) { | |
15825 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'"); | |
15826 | } | |
15827 | arg2 = static_cast< long >(val2); | |
15828 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
15829 | if (!SWIG_IsOK(ecode3)) { | |
15830 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'"); | |
15831 | } | |
15832 | arg3 = static_cast< long >(val3); | |
15833 | { | |
15834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15835 | (arg1)->SetSelection(arg2,arg3); | |
15836 | wxPyEndAllowThreads(__tstate); | |
15837 | if (PyErr_Occurred()) SWIG_fail; | |
15838 | } | |
15839 | resultobj = SWIG_Py_Void(); | |
15840 | return resultobj; | |
15841 | fail: | |
15842 | return NULL; | |
15843 | } | |
15844 | ||
15845 | ||
15846 | SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15847 | PyObject *resultobj = 0; | |
15848 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
15849 | SwigValueWrapper<wxVisualAttributes > result; | |
15850 | int val1 ; | |
15851 | int ecode1 = 0 ; | |
15852 | PyObject * obj0 = 0 ; | |
15853 | char * kwnames[] = { | |
15854 | (char *) "variant", NULL | |
15855 | }; | |
15856 | ||
15857 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
15858 | if (obj0) { | |
15859 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15860 | if (!SWIG_IsOK(ecode1)) { | |
15861 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
15862 | } | |
15863 | arg1 = static_cast< wxWindowVariant >(val1); | |
15864 | } | |
15865 | { | |
15866 | if (!wxPyCheckForApp()) SWIG_fail; | |
15867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15868 | result = wxSpinCtrl::GetClassDefaultAttributes(arg1); | |
15869 | wxPyEndAllowThreads(__tstate); | |
15870 | if (PyErr_Occurred()) SWIG_fail; | |
15871 | } | |
15872 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
15873 | return resultobj; | |
15874 | fail: | |
15875 | return NULL; | |
d14a1e28 RD |
15876 | } |
15877 | ||
15878 | ||
0085ce49 RD |
15879 | SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15880 | PyObject *obj; | |
15881 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15882 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj)); | |
15883 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15884 | } |
15885 | ||
0085ce49 RD |
15886 | SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15887 | return SWIG_Python_InitShadowInstance(args); | |
15888 | } | |
d14a1e28 | 15889 | |
0085ce49 RD |
15890 | SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15891 | PyObject *resultobj = 0; | |
15892 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15893 | int arg2 = (int) 0 ; | |
15894 | wxSpinEvent *result = 0 ; | |
15895 | int val1 ; | |
15896 | int ecode1 = 0 ; | |
15897 | int val2 ; | |
15898 | int ecode2 = 0 ; | |
15899 | PyObject * obj0 = 0 ; | |
15900 | PyObject * obj1 = 0 ; | |
15901 | char * kwnames[] = { | |
15902 | (char *) "commandType",(char *) "winid", NULL | |
15903 | }; | |
15904 | ||
15905 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
15906 | if (obj0) { | |
15907 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15908 | if (!SWIG_IsOK(ecode1)) { | |
15909 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
15910 | } | |
15911 | arg1 = static_cast< wxEventType >(val1); | |
15912 | } | |
15913 | if (obj1) { | |
15914 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15915 | if (!SWIG_IsOK(ecode2)) { | |
15916 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'"); | |
15917 | } | |
15918 | arg2 = static_cast< int >(val2); | |
15919 | } | |
15920 | { | |
15921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15922 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
15923 | wxPyEndAllowThreads(__tstate); | |
15924 | if (PyErr_Occurred()) SWIG_fail; | |
15925 | } | |
15926 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 ); | |
15927 | return resultobj; | |
15928 | fail: | |
15929 | return NULL; | |
d14a1e28 RD |
15930 | } |
15931 | ||
15932 | ||
0085ce49 RD |
15933 | SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15934 | PyObject *resultobj = 0; | |
15935 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
15936 | int result; | |
15937 | void *argp1 = 0 ; | |
15938 | int res1 = 0 ; | |
15939 | PyObject *swig_obj[1] ; | |
15940 | ||
15941 | if (!args) SWIG_fail; | |
15942 | swig_obj[0] = args; | |
15943 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 ); | |
15944 | if (!SWIG_IsOK(res1)) { | |
15945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'"); | |
15946 | } | |
15947 | arg1 = reinterpret_cast< wxSpinEvent * >(argp1); | |
15948 | { | |
15949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15950 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
15951 | wxPyEndAllowThreads(__tstate); | |
15952 | if (PyErr_Occurred()) SWIG_fail; | |
15953 | } | |
15954 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15955 | return resultobj; | |
15956 | fail: | |
15957 | return NULL; | |
15958 | } | |
15959 | ||
15960 | ||
15961 | SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15962 | PyObject *resultobj = 0; | |
15963 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
15964 | int arg2 ; | |
15965 | void *argp1 = 0 ; | |
15966 | int res1 = 0 ; | |
15967 | int val2 ; | |
15968 | int ecode2 = 0 ; | |
15969 | PyObject * obj0 = 0 ; | |
15970 | PyObject * obj1 = 0 ; | |
15971 | char * kwnames[] = { | |
15972 | (char *) "self",(char *) "pos", NULL | |
15973 | }; | |
15974 | ||
15975 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
15976 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 ); | |
15977 | if (!SWIG_IsOK(res1)) { | |
15978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'"); | |
15979 | } | |
15980 | arg1 = reinterpret_cast< wxSpinEvent * >(argp1); | |
15981 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15982 | if (!SWIG_IsOK(ecode2)) { | |
15983 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'"); | |
15984 | } | |
15985 | arg2 = static_cast< int >(val2); | |
15986 | { | |
15987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15988 | (arg1)->SetPosition(arg2); | |
15989 | wxPyEndAllowThreads(__tstate); | |
15990 | if (PyErr_Occurred()) SWIG_fail; | |
15991 | } | |
15992 | resultobj = SWIG_Py_Void(); | |
15993 | return resultobj; | |
15994 | fail: | |
15995 | return NULL; | |
d14a1e28 RD |
15996 | } |
15997 | ||
15998 | ||
0085ce49 RD |
15999 | SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16000 | PyObject *obj; | |
16001 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16002 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj)); | |
16003 | return SWIG_Py_Void(); | |
16004 | } | |
16005 | ||
16006 | SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16007 | return SWIG_Python_InitShadowInstance(args); | |
16008 | } | |
16009 | ||
16010 | SWIGINTERN int RadioBoxNameStr_set(PyObject *) { | |
16011 | SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only."); | |
16012 | return 1; | |
16013 | } | |
16014 | ||
16015 | ||
16016 | SWIGINTERN PyObject *RadioBoxNameStr_get(void) { | |
16017 | PyObject *pyobj = 0; | |
16018 | ||
16019 | { | |
d14a1e28 | 16020 | #if wxUSE_UNICODE |
0085ce49 | 16021 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); |
d14a1e28 | 16022 | #else |
0085ce49 | 16023 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); |
d14a1e28 | 16024 | #endif |
0085ce49 RD |
16025 | } |
16026 | return pyobj; | |
d14a1e28 RD |
16027 | } |
16028 | ||
16029 | ||
0085ce49 RD |
16030 | SWIGINTERN int RadioButtonNameStr_set(PyObject *) { |
16031 | SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only."); | |
16032 | return 1; | |
d14a1e28 RD |
16033 | } |
16034 | ||
16035 | ||
0085ce49 RD |
16036 | SWIGINTERN PyObject *RadioButtonNameStr_get(void) { |
16037 | PyObject *pyobj = 0; | |
16038 | ||
16039 | { | |
16040 | #if wxUSE_UNICODE | |
16041 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
16042 | #else | |
16043 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
16044 | #endif | |
16045 | } | |
16046 | return pyobj; | |
16047 | } | |
16048 | ||
16049 | ||
16050 | SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16051 | PyObject *resultobj = 0; | |
16052 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16053 | int arg2 = (int) -1 ; | |
16054 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16055 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16056 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
16057 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
16058 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
16059 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
16060 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
16061 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
16062 | int arg7 = (int) 0 ; | |
16063 | long arg8 = (long) wxRA_HORIZONTAL ; | |
16064 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
16065 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
16066 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
16067 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
16068 | wxRadioBox *result = 0 ; | |
16069 | void *argp1 = 0 ; | |
16070 | int res1 = 0 ; | |
16071 | int val2 ; | |
16072 | int ecode2 = 0 ; | |
16073 | bool temp3 = false ; | |
16074 | wxPoint temp4 ; | |
16075 | wxSize temp5 ; | |
16076 | bool temp6 = false ; | |
16077 | int val7 ; | |
16078 | int ecode7 = 0 ; | |
16079 | long val8 ; | |
16080 | int ecode8 = 0 ; | |
16081 | void *argp9 = 0 ; | |
16082 | int res9 = 0 ; | |
16083 | bool temp10 = false ; | |
16084 | PyObject * obj0 = 0 ; | |
16085 | PyObject * obj1 = 0 ; | |
16086 | PyObject * obj2 = 0 ; | |
16087 | PyObject * obj3 = 0 ; | |
16088 | PyObject * obj4 = 0 ; | |
16089 | PyObject * obj5 = 0 ; | |
16090 | PyObject * obj6 = 0 ; | |
16091 | PyObject * obj7 = 0 ; | |
16092 | PyObject * obj8 = 0 ; | |
16093 | PyObject * obj9 = 0 ; | |
16094 | char * kwnames[] = { | |
16095 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
16096 | }; | |
16097 | ||
16098 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
16099 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16100 | if (!SWIG_IsOK(res1)) { | |
16101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16102 | } | |
16103 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16104 | if (obj1) { | |
16105 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16106 | if (!SWIG_IsOK(ecode2)) { | |
16107 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'"); | |
16108 | } | |
16109 | arg2 = static_cast< int >(val2); | |
16110 | } | |
16111 | if (obj2) { | |
093d3ff1 | 16112 | { |
0085ce49 RD |
16113 | arg3 = wxString_in_helper(obj2); |
16114 | if (arg3 == NULL) SWIG_fail; | |
16115 | temp3 = true; | |
093d3ff1 | 16116 | } |
0085ce49 RD |
16117 | } |
16118 | if (obj3) { | |
093d3ff1 | 16119 | { |
0085ce49 RD |
16120 | arg4 = &temp4; |
16121 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 16122 | } |
0085ce49 RD |
16123 | } |
16124 | if (obj4) { | |
d14a1e28 | 16125 | { |
0085ce49 RD |
16126 | arg5 = &temp5; |
16127 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 16128 | } |
0085ce49 RD |
16129 | } |
16130 | if (obj5) { | |
d14a1e28 | 16131 | { |
0085ce49 RD |
16132 | if (! PySequence_Check(obj5)) { |
16133 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
16134 | SWIG_fail; | |
16135 | } | |
16136 | arg6 = new wxArrayString; | |
16137 | temp6 = true; | |
16138 | int i, len=PySequence_Length(obj5); | |
16139 | for (i=0; i<len; i++) { | |
16140 | PyObject* item = PySequence_GetItem(obj5, i); | |
16141 | wxString* s = wxString_in_helper(item); | |
16142 | if (PyErr_Occurred()) SWIG_fail; | |
16143 | arg6->Add(*s); | |
16144 | delete s; | |
16145 | Py_DECREF(item); | |
16146 | } | |
d14a1e28 | 16147 | } |
0085ce49 RD |
16148 | } |
16149 | if (obj6) { | |
16150 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
16151 | if (!SWIG_IsOK(ecode7)) { | |
16152 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'"); | |
16153 | } | |
16154 | arg7 = static_cast< int >(val7); | |
16155 | } | |
16156 | if (obj7) { | |
16157 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
16158 | if (!SWIG_IsOK(ecode8)) { | |
16159 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'"); | |
16160 | } | |
16161 | arg8 = static_cast< long >(val8); | |
16162 | } | |
16163 | if (obj8) { | |
16164 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
16165 | if (!SWIG_IsOK(res9)) { | |
16166 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
16167 | } | |
16168 | if (!argp9) { | |
16169 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 16170 | } |
0085ce49 RD |
16171 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
16172 | } | |
16173 | if (obj9) { | |
d14a1e28 | 16174 | { |
0085ce49 RD |
16175 | arg10 = wxString_in_helper(obj9); |
16176 | if (arg10 == NULL) SWIG_fail; | |
16177 | temp10 = true; | |
d14a1e28 | 16178 | } |
0085ce49 RD |
16179 | } |
16180 | { | |
16181 | if (!wxPyCheckForApp()) SWIG_fail; | |
16182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16183 | 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); | |
16184 | wxPyEndAllowThreads(__tstate); | |
16185 | if (PyErr_Occurred()) SWIG_fail; | |
16186 | } | |
16187 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 ); | |
16188 | { | |
16189 | if (temp3) | |
16190 | delete arg3; | |
16191 | } | |
16192 | { | |
16193 | if (temp6) delete arg6; | |
16194 | } | |
16195 | { | |
16196 | if (temp10) | |
16197 | delete arg10; | |
16198 | } | |
16199 | return resultobj; | |
16200 | fail: | |
16201 | { | |
16202 | if (temp3) | |
16203 | delete arg3; | |
16204 | } | |
16205 | { | |
16206 | if (temp6) delete arg6; | |
16207 | } | |
16208 | { | |
16209 | if (temp10) | |
16210 | delete arg10; | |
16211 | } | |
16212 | return NULL; | |
d14a1e28 RD |
16213 | } |
16214 | ||
16215 | ||
0085ce49 RD |
16216 | SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16217 | PyObject *resultobj = 0; | |
16218 | wxRadioBox *result = 0 ; | |
16219 | ||
16220 | if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail; | |
16221 | { | |
16222 | if (!wxPyCheckForApp()) SWIG_fail; | |
16223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16224 | result = (wxRadioBox *)new wxRadioBox(); | |
16225 | wxPyEndAllowThreads(__tstate); | |
16226 | if (PyErr_Occurred()) SWIG_fail; | |
16227 | } | |
16228 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 ); | |
16229 | return resultobj; | |
16230 | fail: | |
16231 | return NULL; | |
16232 | } | |
16233 | ||
16234 | ||
16235 | SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16236 | PyObject *resultobj = 0; | |
16237 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16238 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16239 | int arg3 = (int) -1 ; | |
16240 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16241 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16242 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
16243 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
16244 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
16245 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
16246 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
16247 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
16248 | int arg8 = (int) 0 ; | |
16249 | long arg9 = (long) wxRA_HORIZONTAL ; | |
16250 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
16251 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
16252 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
16253 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
16254 | bool result; | |
16255 | void *argp1 = 0 ; | |
16256 | int res1 = 0 ; | |
16257 | void *argp2 = 0 ; | |
16258 | int res2 = 0 ; | |
16259 | int val3 ; | |
16260 | int ecode3 = 0 ; | |
16261 | bool temp4 = false ; | |
16262 | wxPoint temp5 ; | |
16263 | wxSize temp6 ; | |
16264 | bool temp7 = false ; | |
16265 | int val8 ; | |
16266 | int ecode8 = 0 ; | |
16267 | long val9 ; | |
16268 | int ecode9 = 0 ; | |
16269 | void *argp10 = 0 ; | |
16270 | int res10 = 0 ; | |
16271 | bool temp11 = false ; | |
16272 | PyObject * obj0 = 0 ; | |
16273 | PyObject * obj1 = 0 ; | |
16274 | PyObject * obj2 = 0 ; | |
16275 | PyObject * obj3 = 0 ; | |
16276 | PyObject * obj4 = 0 ; | |
16277 | PyObject * obj5 = 0 ; | |
16278 | PyObject * obj6 = 0 ; | |
16279 | PyObject * obj7 = 0 ; | |
16280 | PyObject * obj8 = 0 ; | |
16281 | PyObject * obj9 = 0 ; | |
16282 | PyObject * obj10 = 0 ; | |
16283 | char * kwnames[] = { | |
16284 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
16285 | }; | |
16286 | ||
16287 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
16288 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16289 | if (!SWIG_IsOK(res1)) { | |
16290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16291 | } | |
16292 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16293 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16294 | if (!SWIG_IsOK(res2)) { | |
16295 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
16296 | } | |
16297 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
16298 | if (obj2) { | |
16299 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16300 | if (!SWIG_IsOK(ecode3)) { | |
16301 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
16302 | } | |
16303 | arg3 = static_cast< int >(val3); | |
16304 | } | |
16305 | if (obj3) { | |
093d3ff1 | 16306 | { |
0085ce49 RD |
16307 | arg4 = wxString_in_helper(obj3); |
16308 | if (arg4 == NULL) SWIG_fail; | |
16309 | temp4 = true; | |
093d3ff1 | 16310 | } |
0085ce49 RD |
16311 | } |
16312 | if (obj4) { | |
d14a1e28 | 16313 | { |
0085ce49 RD |
16314 | arg5 = &temp5; |
16315 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 16316 | } |
0085ce49 RD |
16317 | } |
16318 | if (obj5) { | |
d14a1e28 | 16319 | { |
0085ce49 RD |
16320 | arg6 = &temp6; |
16321 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 16322 | } |
0085ce49 RD |
16323 | } |
16324 | if (obj6) { | |
d14a1e28 | 16325 | { |
0085ce49 RD |
16326 | if (! PySequence_Check(obj6)) { |
16327 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
16328 | SWIG_fail; | |
16329 | } | |
16330 | arg7 = new wxArrayString; | |
16331 | temp7 = true; | |
16332 | int i, len=PySequence_Length(obj6); | |
16333 | for (i=0; i<len; i++) { | |
16334 | PyObject* item = PySequence_GetItem(obj6, i); | |
16335 | wxString* s = wxString_in_helper(item); | |
16336 | if (PyErr_Occurred()) SWIG_fail; | |
16337 | arg7->Add(*s); | |
16338 | delete s; | |
16339 | Py_DECREF(item); | |
16340 | } | |
d14a1e28 | 16341 | } |
0085ce49 RD |
16342 | } |
16343 | if (obj7) { | |
16344 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
16345 | if (!SWIG_IsOK(ecode8)) { | |
16346 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'"); | |
16347 | } | |
16348 | arg8 = static_cast< int >(val8); | |
16349 | } | |
16350 | if (obj8) { | |
16351 | ecode9 = SWIG_AsVal_long(obj8, &val9); | |
16352 | if (!SWIG_IsOK(ecode9)) { | |
16353 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'"); | |
16354 | } | |
16355 | arg9 = static_cast< long >(val9); | |
16356 | } | |
16357 | if (obj9) { | |
16358 | res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0); | |
16359 | if (!SWIG_IsOK(res10)) { | |
16360 | SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
4f89f6a3 | 16361 | } |
0085ce49 RD |
16362 | if (!argp10) { |
16363 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 16364 | } |
0085ce49 RD |
16365 | arg10 = reinterpret_cast< wxValidator * >(argp10); |
16366 | } | |
16367 | if (obj10) { | |
d14a1e28 | 16368 | { |
0085ce49 RD |
16369 | arg11 = wxString_in_helper(obj10); |
16370 | if (arg11 == NULL) SWIG_fail; | |
16371 | temp11 = true; | |
d14a1e28 | 16372 | } |
0085ce49 RD |
16373 | } |
16374 | { | |
16375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16376 | 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); | |
16377 | wxPyEndAllowThreads(__tstate); | |
16378 | if (PyErr_Occurred()) SWIG_fail; | |
16379 | } | |
16380 | { | |
16381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16382 | } | |
16383 | { | |
16384 | if (temp4) | |
16385 | delete arg4; | |
16386 | } | |
16387 | { | |
16388 | if (temp7) delete arg7; | |
16389 | } | |
16390 | { | |
16391 | if (temp11) | |
16392 | delete arg11; | |
16393 | } | |
16394 | return resultobj; | |
16395 | fail: | |
16396 | { | |
16397 | if (temp4) | |
16398 | delete arg4; | |
16399 | } | |
16400 | { | |
16401 | if (temp7) delete arg7; | |
16402 | } | |
16403 | { | |
16404 | if (temp11) | |
16405 | delete arg11; | |
16406 | } | |
16407 | return NULL; | |
16408 | } | |
16409 | ||
16410 | ||
16411 | SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16412 | PyObject *resultobj = 0; | |
16413 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16414 | int arg2 ; | |
16415 | void *argp1 = 0 ; | |
16416 | int res1 = 0 ; | |
16417 | int val2 ; | |
16418 | int ecode2 = 0 ; | |
16419 | PyObject * obj0 = 0 ; | |
16420 | PyObject * obj1 = 0 ; | |
16421 | char * kwnames[] = { | |
16422 | (char *) "self",(char *) "n", NULL | |
16423 | }; | |
16424 | ||
16425 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
16426 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16427 | if (!SWIG_IsOK(res1)) { | |
16428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16429 | } | |
16430 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16431 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16432 | if (!SWIG_IsOK(ecode2)) { | |
16433 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
16434 | } | |
16435 | arg2 = static_cast< int >(val2); | |
16436 | { | |
16437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16438 | (arg1)->SetSelection(arg2); | |
16439 | wxPyEndAllowThreads(__tstate); | |
16440 | if (PyErr_Occurred()) SWIG_fail; | |
16441 | } | |
16442 | resultobj = SWIG_Py_Void(); | |
16443 | return resultobj; | |
16444 | fail: | |
16445 | return NULL; | |
d14a1e28 RD |
16446 | } |
16447 | ||
16448 | ||
0085ce49 RD |
16449 | SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16450 | PyObject *resultobj = 0; | |
16451 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16452 | int result; | |
16453 | void *argp1 = 0 ; | |
16454 | int res1 = 0 ; | |
16455 | PyObject *swig_obj[1] ; | |
16456 | ||
16457 | if (!args) SWIG_fail; | |
16458 | swig_obj[0] = args; | |
16459 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16460 | if (!SWIG_IsOK(res1)) { | |
16461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16462 | } | |
16463 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16464 | { | |
16465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16466 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
16467 | wxPyEndAllowThreads(__tstate); | |
16468 | if (PyErr_Occurred()) SWIG_fail; | |
16469 | } | |
16470 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16471 | return resultobj; | |
16472 | fail: | |
16473 | return NULL; | |
d14a1e28 RD |
16474 | } |
16475 | ||
16476 | ||
0085ce49 RD |
16477 | SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16478 | PyObject *resultobj = 0; | |
16479 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16480 | wxString result; | |
16481 | void *argp1 = 0 ; | |
16482 | int res1 = 0 ; | |
16483 | PyObject *swig_obj[1] ; | |
16484 | ||
16485 | if (!args) SWIG_fail; | |
16486 | swig_obj[0] = args; | |
16487 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16488 | if (!SWIG_IsOK(res1)) { | |
16489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16490 | } | |
16491 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16492 | { | |
16493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16494 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
16495 | wxPyEndAllowThreads(__tstate); | |
16496 | if (PyErr_Occurred()) SWIG_fail; | |
16497 | } | |
16498 | { | |
16499 | #if wxUSE_UNICODE | |
16500 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16501 | #else | |
16502 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16503 | #endif | |
16504 | } | |
16505 | return resultobj; | |
16506 | fail: | |
16507 | return NULL; | |
16508 | } | |
16509 | ||
16510 | ||
16511 | SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16512 | PyObject *resultobj = 0; | |
16513 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16514 | wxString *arg2 = 0 ; | |
16515 | bool result; | |
16516 | void *argp1 = 0 ; | |
16517 | int res1 = 0 ; | |
16518 | bool temp2 = false ; | |
16519 | PyObject * obj0 = 0 ; | |
16520 | PyObject * obj1 = 0 ; | |
16521 | char * kwnames[] = { | |
16522 | (char *) "self",(char *) "s", NULL | |
16523 | }; | |
16524 | ||
16525 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
16526 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16527 | if (!SWIG_IsOK(res1)) { | |
16528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16529 | } | |
16530 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16531 | { | |
16532 | arg2 = wxString_in_helper(obj1); | |
16533 | if (arg2 == NULL) SWIG_fail; | |
16534 | temp2 = true; | |
16535 | } | |
16536 | { | |
16537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16538 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
16539 | wxPyEndAllowThreads(__tstate); | |
16540 | if (PyErr_Occurred()) SWIG_fail; | |
16541 | } | |
16542 | { | |
16543 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16544 | } | |
16545 | { | |
16546 | if (temp2) | |
16547 | delete arg2; | |
16548 | } | |
16549 | return resultobj; | |
16550 | fail: | |
16551 | { | |
16552 | if (temp2) | |
16553 | delete arg2; | |
16554 | } | |
16555 | return NULL; | |
d14a1e28 RD |
16556 | } |
16557 | ||
16558 | ||
0085ce49 RD |
16559 | SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16560 | PyObject *resultobj = 0; | |
16561 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
75219dcb | 16562 | size_t result; |
0085ce49 RD |
16563 | void *argp1 = 0 ; |
16564 | int res1 = 0 ; | |
16565 | PyObject *swig_obj[1] ; | |
16566 | ||
16567 | if (!args) SWIG_fail; | |
16568 | swig_obj[0] = args; | |
16569 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16570 | if (!SWIG_IsOK(res1)) { | |
16571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16572 | } | |
16573 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16574 | { | |
16575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
75219dcb | 16576 | result = (size_t)((wxRadioBox const *)arg1)->GetCount(); |
0085ce49 RD |
16577 | wxPyEndAllowThreads(__tstate); |
16578 | if (PyErr_Occurred()) SWIG_fail; | |
16579 | } | |
75219dcb | 16580 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); |
0085ce49 RD |
16581 | return resultobj; |
16582 | fail: | |
16583 | return NULL; | |
16584 | } | |
16585 | ||
16586 | ||
16587 | SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16588 | PyObject *resultobj = 0; | |
16589 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16590 | wxString *arg2 = 0 ; | |
16591 | int result; | |
16592 | void *argp1 = 0 ; | |
16593 | int res1 = 0 ; | |
16594 | bool temp2 = false ; | |
16595 | PyObject * obj0 = 0 ; | |
16596 | PyObject * obj1 = 0 ; | |
16597 | char * kwnames[] = { | |
16598 | (char *) "self",(char *) "s", NULL | |
16599 | }; | |
16600 | ||
16601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
16602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16603 | if (!SWIG_IsOK(res1)) { | |
16604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16605 | } | |
16606 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16607 | { | |
16608 | arg2 = wxString_in_helper(obj1); | |
16609 | if (arg2 == NULL) SWIG_fail; | |
16610 | temp2 = true; | |
16611 | } | |
16612 | { | |
16613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16614 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
16615 | wxPyEndAllowThreads(__tstate); | |
16616 | if (PyErr_Occurred()) SWIG_fail; | |
16617 | } | |
16618 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16619 | { | |
16620 | if (temp2) | |
16621 | delete arg2; | |
16622 | } | |
16623 | return resultobj; | |
16624 | fail: | |
16625 | { | |
16626 | if (temp2) | |
16627 | delete arg2; | |
16628 | } | |
16629 | return NULL; | |
16630 | } | |
16631 | ||
16632 | ||
16633 | SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16634 | PyObject *resultobj = 0; | |
16635 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16636 | int arg2 ; | |
16637 | wxString result; | |
16638 | void *argp1 = 0 ; | |
16639 | int res1 = 0 ; | |
16640 | int val2 ; | |
16641 | int ecode2 = 0 ; | |
16642 | PyObject * obj0 = 0 ; | |
16643 | PyObject * obj1 = 0 ; | |
16644 | char * kwnames[] = { | |
16645 | (char *) "self",(char *) "n", NULL | |
16646 | }; | |
16647 | ||
16648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail; | |
16649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16650 | if (!SWIG_IsOK(res1)) { | |
16651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16652 | } | |
16653 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16654 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16655 | if (!SWIG_IsOK(ecode2)) { | |
16656 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'"); | |
16657 | } | |
16658 | arg2 = static_cast< int >(val2); | |
16659 | { | |
16660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16661 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
16662 | wxPyEndAllowThreads(__tstate); | |
16663 | if (PyErr_Occurred()) SWIG_fail; | |
16664 | } | |
16665 | { | |
16666 | #if wxUSE_UNICODE | |
16667 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16668 | #else | |
16669 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16670 | #endif | |
16671 | } | |
16672 | return resultobj; | |
16673 | fail: | |
16674 | return NULL; | |
16675 | } | |
16676 | ||
16677 | ||
16678 | SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16679 | PyObject *resultobj = 0; | |
16680 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16681 | int arg2 ; | |
16682 | wxString *arg3 = 0 ; | |
16683 | void *argp1 = 0 ; | |
16684 | int res1 = 0 ; | |
16685 | int val2 ; | |
16686 | int ecode2 = 0 ; | |
16687 | bool temp3 = false ; | |
16688 | PyObject * obj0 = 0 ; | |
16689 | PyObject * obj1 = 0 ; | |
16690 | PyObject * obj2 = 0 ; | |
16691 | char * kwnames[] = { | |
16692 | (char *) "self",(char *) "n",(char *) "label", NULL | |
16693 | }; | |
16694 | ||
16695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16696 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16697 | if (!SWIG_IsOK(res1)) { | |
16698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16699 | } | |
16700 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16701 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16702 | if (!SWIG_IsOK(ecode2)) { | |
16703 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'"); | |
16704 | } | |
16705 | arg2 = static_cast< int >(val2); | |
16706 | { | |
16707 | arg3 = wxString_in_helper(obj2); | |
16708 | if (arg3 == NULL) SWIG_fail; | |
16709 | temp3 = true; | |
16710 | } | |
16711 | { | |
16712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16713 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
16714 | wxPyEndAllowThreads(__tstate); | |
16715 | if (PyErr_Occurred()) SWIG_fail; | |
16716 | } | |
16717 | resultobj = SWIG_Py_Void(); | |
16718 | { | |
16719 | if (temp3) | |
16720 | delete arg3; | |
16721 | } | |
16722 | return resultobj; | |
16723 | fail: | |
16724 | { | |
16725 | if (temp3) | |
16726 | delete arg3; | |
16727 | } | |
16728 | return NULL; | |
16729 | } | |
16730 | ||
16731 | ||
16732 | SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16733 | PyObject *resultobj = 0; | |
16734 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16735 | unsigned int arg2 ; |
0085ce49 RD |
16736 | bool arg3 = (bool) true ; |
16737 | void *argp1 = 0 ; | |
16738 | int res1 = 0 ; | |
50f151d7 | 16739 | unsigned int val2 ; |
0085ce49 RD |
16740 | int ecode2 = 0 ; |
16741 | bool val3 ; | |
16742 | int ecode3 = 0 ; | |
16743 | PyObject * obj0 = 0 ; | |
16744 | PyObject * obj1 = 0 ; | |
16745 | PyObject * obj2 = 0 ; | |
16746 | char * kwnames[] = { | |
16747 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
16748 | }; | |
16749 | ||
16750 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16751 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16752 | if (!SWIG_IsOK(res1)) { | |
16753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16754 | } | |
16755 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
50f151d7 | 16756 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
0085ce49 | 16757 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 16758 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'"); |
0085ce49 | 16759 | } |
50f151d7 | 16760 | arg2 = static_cast< unsigned int >(val2); |
0085ce49 RD |
16761 | if (obj2) { |
16762 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
16763 | if (!SWIG_IsOK(ecode3)) { | |
16764 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'"); | |
16765 | } | |
16766 | arg3 = static_cast< bool >(val3); | |
16767 | } | |
16768 | { | |
16769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16770 | (arg1)->Enable(arg2,arg3); | |
16771 | wxPyEndAllowThreads(__tstate); | |
16772 | if (PyErr_Occurred()) SWIG_fail; | |
16773 | } | |
16774 | resultobj = SWIG_Py_Void(); | |
16775 | return resultobj; | |
16776 | fail: | |
16777 | return NULL; | |
16778 | } | |
16779 | ||
16780 | ||
16781 | SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16782 | PyObject *resultobj = 0; | |
16783 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16784 | unsigned int arg2 ; |
0085ce49 RD |
16785 | bool arg3 = (bool) true ; |
16786 | void *argp1 = 0 ; | |
16787 | int res1 = 0 ; | |
50f151d7 | 16788 | unsigned int val2 ; |
0085ce49 RD |
16789 | int ecode2 = 0 ; |
16790 | bool val3 ; | |
16791 | int ecode3 = 0 ; | |
16792 | PyObject * obj0 = 0 ; | |
16793 | PyObject * obj1 = 0 ; | |
16794 | PyObject * obj2 = 0 ; | |
16795 | char * kwnames[] = { | |
16796 | (char *) "self",(char *) "n",(char *) "show", NULL | |
16797 | }; | |
16798 | ||
16799 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16800 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16801 | if (!SWIG_IsOK(res1)) { | |
16802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
16803 | } | |
16804 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
50f151d7 | 16805 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
0085ce49 | 16806 | if (!SWIG_IsOK(ecode2)) { |
50f151d7 | 16807 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'"); |
0085ce49 | 16808 | } |
50f151d7 | 16809 | arg2 = static_cast< unsigned int >(val2); |
0085ce49 RD |
16810 | if (obj2) { |
16811 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
16812 | if (!SWIG_IsOK(ecode3)) { | |
16813 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'"); | |
16814 | } | |
16815 | arg3 = static_cast< bool >(val3); | |
16816 | } | |
16817 | { | |
16818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16819 | (arg1)->Show(arg2,arg3); | |
16820 | wxPyEndAllowThreads(__tstate); | |
16821 | if (PyErr_Occurred()) SWIG_fail; | |
16822 | } | |
16823 | resultobj = SWIG_Py_Void(); | |
16824 | return resultobj; | |
16825 | fail: | |
16826 | return NULL; | |
d14a1e28 RD |
16827 | } |
16828 | ||
16829 | ||
50f151d7 RD |
16830 | SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16831 | PyObject *resultobj = 0; | |
16832 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16833 | unsigned int arg2 ; | |
16834 | bool result; | |
16835 | void *argp1 = 0 ; | |
16836 | int res1 = 0 ; | |
16837 | unsigned int val2 ; | |
16838 | int ecode2 = 0 ; | |
16839 | PyObject * obj0 = 0 ; | |
16840 | PyObject * obj1 = 0 ; | |
16841 | char * kwnames[] = { | |
16842 | (char *) "self",(char *) "n", NULL | |
16843 | }; | |
16844 | ||
16845 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
16846 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16847 | if (!SWIG_IsOK(res1)) { | |
16848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16849 | } | |
16850 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16851 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
16852 | if (!SWIG_IsOK(ecode2)) { | |
16853 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'"); | |
16854 | } | |
16855 | arg2 = static_cast< unsigned int >(val2); | |
16856 | { | |
16857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16858 | result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2); | |
16859 | wxPyEndAllowThreads(__tstate); | |
16860 | if (PyErr_Occurred()) SWIG_fail; | |
16861 | } | |
16862 | { | |
16863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16864 | } | |
16865 | return resultobj; | |
16866 | fail: | |
16867 | return NULL; | |
16868 | } | |
16869 | ||
16870 | ||
16871 | SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16872 | PyObject *resultobj = 0; | |
16873 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16874 | unsigned int arg2 ; | |
16875 | bool result; | |
16876 | void *argp1 = 0 ; | |
16877 | int res1 = 0 ; | |
16878 | unsigned int val2 ; | |
16879 | int ecode2 = 0 ; | |
16880 | PyObject * obj0 = 0 ; | |
16881 | PyObject * obj1 = 0 ; | |
16882 | char * kwnames[] = { | |
16883 | (char *) "self",(char *) "n", NULL | |
16884 | }; | |
16885 | ||
16886 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail; | |
16887 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16888 | if (!SWIG_IsOK(res1)) { | |
16889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16890 | } | |
16891 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16892 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
16893 | if (!SWIG_IsOK(ecode2)) { | |
16894 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'"); | |
16895 | } | |
16896 | arg2 = static_cast< unsigned int >(val2); | |
16897 | { | |
16898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16899 | result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2); | |
16900 | wxPyEndAllowThreads(__tstate); | |
16901 | if (PyErr_Occurred()) SWIG_fail; | |
16902 | } | |
16903 | { | |
16904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16905 | } | |
16906 | return resultobj; | |
16907 | fail: | |
16908 | return NULL; | |
16909 | } | |
16910 | ||
16911 | ||
0085ce49 RD |
16912 | SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16913 | PyObject *resultobj = 0; | |
16914 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16915 | unsigned int result; |
0085ce49 RD |
16916 | void *argp1 = 0 ; |
16917 | int res1 = 0 ; | |
16918 | PyObject *swig_obj[1] ; | |
16919 | ||
16920 | if (!args) SWIG_fail; | |
16921 | swig_obj[0] = args; | |
16922 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16923 | if (!SWIG_IsOK(res1)) { | |
16924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16925 | } | |
16926 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16927 | { | |
16928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50f151d7 | 16929 | result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount(); |
0085ce49 RD |
16930 | wxPyEndAllowThreads(__tstate); |
16931 | if (PyErr_Occurred()) SWIG_fail; | |
16932 | } | |
50f151d7 | 16933 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
0085ce49 RD |
16934 | return resultobj; |
16935 | fail: | |
16936 | return NULL; | |
d14a1e28 RD |
16937 | } |
16938 | ||
16939 | ||
0085ce49 RD |
16940 | SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16941 | PyObject *resultobj = 0; | |
16942 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
50f151d7 | 16943 | unsigned int result; |
0085ce49 RD |
16944 | void *argp1 = 0 ; |
16945 | int res1 = 0 ; | |
16946 | PyObject *swig_obj[1] ; | |
16947 | ||
16948 | if (!args) SWIG_fail; | |
16949 | swig_obj[0] = args; | |
16950 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16951 | if (!SWIG_IsOK(res1)) { | |
16952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16953 | } | |
16954 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16955 | { | |
16956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50f151d7 | 16957 | result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount(); |
0085ce49 RD |
16958 | wxPyEndAllowThreads(__tstate); |
16959 | if (PyErr_Occurred()) SWIG_fail; | |
16960 | } | |
50f151d7 | 16961 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
0085ce49 RD |
16962 | return resultobj; |
16963 | fail: | |
16964 | return NULL; | |
16965 | } | |
16966 | ||
16967 | ||
16968 | SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16969 | PyObject *resultobj = 0; | |
16970 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
16971 | int arg2 ; | |
16972 | wxDirection arg3 ; | |
16973 | long arg4 ; | |
16974 | int result; | |
16975 | void *argp1 = 0 ; | |
16976 | int res1 = 0 ; | |
16977 | int val2 ; | |
16978 | int ecode2 = 0 ; | |
16979 | int val3 ; | |
16980 | int ecode3 = 0 ; | |
16981 | long val4 ; | |
16982 | int ecode4 = 0 ; | |
16983 | PyObject * obj0 = 0 ; | |
16984 | PyObject * obj1 = 0 ; | |
16985 | PyObject * obj2 = 0 ; | |
16986 | PyObject * obj3 = 0 ; | |
16987 | char * kwnames[] = { | |
16988 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
16989 | }; | |
16990 | ||
16991 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16992 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
16993 | if (!SWIG_IsOK(res1)) { | |
16994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
16995 | } | |
16996 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
16997 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16998 | if (!SWIG_IsOK(ecode2)) { | |
16999 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'"); | |
17000 | } | |
17001 | arg2 = static_cast< int >(val2); | |
17002 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17003 | if (!SWIG_IsOK(ecode3)) { | |
17004 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'"); | |
17005 | } | |
17006 | arg3 = static_cast< wxDirection >(val3); | |
17007 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
17008 | if (!SWIG_IsOK(ecode4)) { | |
17009 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'"); | |
17010 | } | |
17011 | arg4 = static_cast< long >(val4); | |
17012 | { | |
17013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50f151d7 | 17014 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4); |
0085ce49 RD |
17015 | wxPyEndAllowThreads(__tstate); |
17016 | if (PyErr_Occurred()) SWIG_fail; | |
17017 | } | |
17018 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17019 | return resultobj; | |
17020 | fail: | |
17021 | return NULL; | |
17022 | } | |
17023 | ||
17024 | ||
01f6b6d3 RD |
17025 | SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17026 | PyObject *resultobj = 0; | |
17027 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
17028 | unsigned int arg2 ; | |
17029 | wxString *arg3 = 0 ; | |
17030 | void *argp1 = 0 ; | |
17031 | int res1 = 0 ; | |
17032 | unsigned int val2 ; | |
17033 | int ecode2 = 0 ; | |
17034 | bool temp3 = false ; | |
17035 | PyObject * obj0 = 0 ; | |
17036 | PyObject * obj1 = 0 ; | |
17037 | PyObject * obj2 = 0 ; | |
17038 | char * kwnames[] = { | |
17039 | (char *) "self",(char *) "item",(char *) "text", NULL | |
17040 | }; | |
17041 | ||
17042 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17043 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17044 | if (!SWIG_IsOK(res1)) { | |
17045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
17046 | } | |
17047 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17048 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
17049 | if (!SWIG_IsOK(ecode2)) { | |
17050 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'"); | |
17051 | } | |
17052 | arg2 = static_cast< unsigned int >(val2); | |
17053 | { | |
17054 | arg3 = wxString_in_helper(obj2); | |
17055 | if (arg3 == NULL) SWIG_fail; | |
17056 | temp3 = true; | |
17057 | } | |
17058 | { | |
17059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17060 | (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3); | |
17061 | wxPyEndAllowThreads(__tstate); | |
17062 | if (PyErr_Occurred()) SWIG_fail; | |
17063 | } | |
17064 | resultobj = SWIG_Py_Void(); | |
17065 | { | |
17066 | if (temp3) | |
17067 | delete arg3; | |
17068 | } | |
17069 | return resultobj; | |
17070 | fail: | |
17071 | { | |
17072 | if (temp3) | |
17073 | delete arg3; | |
17074 | } | |
17075 | return NULL; | |
17076 | } | |
17077 | ||
17078 | ||
17079 | SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17080 | PyObject *resultobj = 0; | |
17081 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
17082 | unsigned int arg2 ; | |
17083 | wxToolTip *result = 0 ; | |
17084 | void *argp1 = 0 ; | |
17085 | int res1 = 0 ; | |
17086 | unsigned int val2 ; | |
17087 | int ecode2 = 0 ; | |
17088 | PyObject * obj0 = 0 ; | |
17089 | PyObject * obj1 = 0 ; | |
17090 | char * kwnames[] = { | |
17091 | (char *) "self",(char *) "item", NULL | |
17092 | }; | |
17093 | ||
17094 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail; | |
17095 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17096 | if (!SWIG_IsOK(res1)) { | |
17097 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
17098 | } | |
17099 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17100 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
17101 | if (!SWIG_IsOK(ecode2)) { | |
17102 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'"); | |
17103 | } | |
17104 | arg2 = static_cast< unsigned int >(val2); | |
17105 | { | |
17106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17107 | result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2); | |
17108 | wxPyEndAllowThreads(__tstate); | |
17109 | if (PyErr_Occurred()) SWIG_fail; | |
17110 | } | |
17111 | { | |
17112 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
17113 | } | |
17114 | return resultobj; | |
17115 | fail: | |
17116 | return NULL; | |
17117 | } | |
17118 | ||
17119 | ||
b850e7f3 RD |
17120 | SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17121 | PyObject *resultobj = 0; | |
17122 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
17123 | unsigned int arg2 ; | |
17124 | wxString *arg3 = 0 ; | |
17125 | void *argp1 = 0 ; | |
17126 | int res1 = 0 ; | |
17127 | unsigned int val2 ; | |
17128 | int ecode2 = 0 ; | |
17129 | bool temp3 = false ; | |
17130 | PyObject * obj0 = 0 ; | |
17131 | PyObject * obj1 = 0 ; | |
17132 | PyObject * obj2 = 0 ; | |
17133 | char * kwnames[] = { | |
17134 | (char *) "self",(char *) "n",(char *) "helpText", NULL | |
17135 | }; | |
17136 | ||
17137 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17138 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17139 | if (!SWIG_IsOK(res1)) { | |
17140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'"); | |
17141 | } | |
17142 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17143 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
17144 | if (!SWIG_IsOK(ecode2)) { | |
17145 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'"); | |
17146 | } | |
17147 | arg2 = static_cast< unsigned int >(val2); | |
17148 | { | |
17149 | arg3 = wxString_in_helper(obj2); | |
17150 | if (arg3 == NULL) SWIG_fail; | |
17151 | temp3 = true; | |
17152 | } | |
17153 | { | |
17154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17155 | (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3); | |
17156 | wxPyEndAllowThreads(__tstate); | |
17157 | if (PyErr_Occurred()) SWIG_fail; | |
17158 | } | |
17159 | resultobj = SWIG_Py_Void(); | |
17160 | { | |
17161 | if (temp3) | |
17162 | delete arg3; | |
17163 | } | |
17164 | return resultobj; | |
17165 | fail: | |
17166 | { | |
17167 | if (temp3) | |
17168 | delete arg3; | |
17169 | } | |
17170 | return NULL; | |
17171 | } | |
17172 | ||
17173 | ||
17174 | SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17175 | PyObject *resultobj = 0; | |
17176 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
17177 | unsigned int arg2 ; | |
17178 | wxString result; | |
17179 | void *argp1 = 0 ; | |
17180 | int res1 = 0 ; | |
17181 | unsigned int val2 ; | |
17182 | int ecode2 = 0 ; | |
17183 | PyObject * obj0 = 0 ; | |
17184 | PyObject * obj1 = 0 ; | |
17185 | char * kwnames[] = { | |
17186 | (char *) "self",(char *) "n", NULL | |
17187 | }; | |
17188 | ||
17189 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail; | |
17190 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 ); | |
17191 | if (!SWIG_IsOK(res1)) { | |
17192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'"); | |
17193 | } | |
17194 | arg1 = reinterpret_cast< wxRadioBox * >(argp1); | |
17195 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
17196 | if (!SWIG_IsOK(ecode2)) { | |
17197 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'"); | |
17198 | } | |
17199 | arg2 = static_cast< unsigned int >(val2); | |
17200 | { | |
17201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17202 | result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2); | |
17203 | wxPyEndAllowThreads(__tstate); | |
17204 | if (PyErr_Occurred()) SWIG_fail; | |
17205 | } | |
17206 | { | |
17207 | #if wxUSE_UNICODE | |
17208 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17209 | #else | |
17210 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17211 | #endif | |
17212 | } | |
17213 | return resultobj; | |
17214 | fail: | |
17215 | return NULL; | |
17216 | } | |
17217 | ||
17218 | ||
0085ce49 RD |
17219 | SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17220 | PyObject *resultobj = 0; | |
17221 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
17222 | SwigValueWrapper<wxVisualAttributes > result; | |
17223 | int val1 ; | |
17224 | int ecode1 = 0 ; | |
17225 | PyObject * obj0 = 0 ; | |
17226 | char * kwnames[] = { | |
17227 | (char *) "variant", NULL | |
17228 | }; | |
17229 | ||
17230 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
17231 | if (obj0) { | |
17232 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17233 | if (!SWIG_IsOK(ecode1)) { | |
17234 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
17235 | } | |
17236 | arg1 = static_cast< wxWindowVariant >(val1); | |
17237 | } | |
17238 | { | |
17239 | if (!wxPyCheckForApp()) SWIG_fail; | |
17240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17241 | result = wxRadioBox::GetClassDefaultAttributes(arg1); | |
17242 | wxPyEndAllowThreads(__tstate); | |
17243 | if (PyErr_Occurred()) SWIG_fail; | |
17244 | } | |
17245 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
17246 | return resultobj; | |
17247 | fail: | |
17248 | return NULL; | |
17249 | } | |
17250 | ||
17251 | ||
17252 | SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17253 | PyObject *obj; | |
17254 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17255 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj)); | |
17256 | return SWIG_Py_Void(); | |
17257 | } | |
17258 | ||
17259 | SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17260 | return SWIG_Python_InitShadowInstance(args); | |
17261 | } | |
17262 | ||
17263 | SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17264 | PyObject *resultobj = 0; | |
17265 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17266 | int arg2 = (int) -1 ; | |
17267 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17268 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17269 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
17270 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17271 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17272 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17273 | long arg6 = (long) 0 ; | |
17274 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
17275 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
17276 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
17277 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17278 | wxRadioButton *result = 0 ; | |
17279 | void *argp1 = 0 ; | |
17280 | int res1 = 0 ; | |
17281 | int val2 ; | |
17282 | int ecode2 = 0 ; | |
17283 | bool temp3 = false ; | |
17284 | wxPoint temp4 ; | |
17285 | wxSize temp5 ; | |
17286 | long val6 ; | |
17287 | int ecode6 = 0 ; | |
17288 | void *argp7 = 0 ; | |
17289 | int res7 = 0 ; | |
17290 | bool temp8 = false ; | |
17291 | PyObject * obj0 = 0 ; | |
17292 | PyObject * obj1 = 0 ; | |
17293 | PyObject * obj2 = 0 ; | |
17294 | PyObject * obj3 = 0 ; | |
17295 | PyObject * obj4 = 0 ; | |
17296 | PyObject * obj5 = 0 ; | |
17297 | PyObject * obj6 = 0 ; | |
17298 | PyObject * obj7 = 0 ; | |
17299 | char * kwnames[] = { | |
17300 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17301 | }; | |
17302 | ||
17303 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
17304 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17305 | if (!SWIG_IsOK(res1)) { | |
17306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17307 | } | |
17308 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17309 | if (obj1) { | |
17310 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17311 | if (!SWIG_IsOK(ecode2)) { | |
17312 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'"); | |
17313 | } | |
17314 | arg2 = static_cast< int >(val2); | |
17315 | } | |
17316 | if (obj2) { | |
d14a1e28 | 17317 | { |
0085ce49 RD |
17318 | arg3 = wxString_in_helper(obj2); |
17319 | if (arg3 == NULL) SWIG_fail; | |
17320 | temp3 = true; | |
d14a1e28 | 17321 | } |
0085ce49 RD |
17322 | } |
17323 | if (obj3) { | |
d14a1e28 | 17324 | { |
0085ce49 RD |
17325 | arg4 = &temp4; |
17326 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 17327 | } |
0085ce49 RD |
17328 | } |
17329 | if (obj4) { | |
d14a1e28 | 17330 | { |
0085ce49 RD |
17331 | arg5 = &temp5; |
17332 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17333 | } | |
17334 | } | |
17335 | if (obj5) { | |
17336 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
17337 | if (!SWIG_IsOK(ecode6)) { | |
17338 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'"); | |
17339 | } | |
17340 | arg6 = static_cast< long >(val6); | |
17341 | } | |
17342 | if (obj6) { | |
17343 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
17344 | if (!SWIG_IsOK(res7)) { | |
17345 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 17346 | } |
0085ce49 RD |
17347 | if (!argp7) { |
17348 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
17349 | } | |
17350 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
17351 | } | |
17352 | if (obj7) { | |
d14a1e28 | 17353 | { |
0085ce49 RD |
17354 | arg8 = wxString_in_helper(obj7); |
17355 | if (arg8 == NULL) SWIG_fail; | |
17356 | temp8 = true; | |
d14a1e28 | 17357 | } |
0085ce49 RD |
17358 | } |
17359 | { | |
17360 | if (!wxPyCheckForApp()) SWIG_fail; | |
17361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17362 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
17363 | wxPyEndAllowThreads(__tstate); | |
17364 | if (PyErr_Occurred()) SWIG_fail; | |
17365 | } | |
17366 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 ); | |
17367 | { | |
17368 | if (temp3) | |
17369 | delete arg3; | |
17370 | } | |
17371 | { | |
17372 | if (temp8) | |
17373 | delete arg8; | |
17374 | } | |
17375 | return resultobj; | |
17376 | fail: | |
17377 | { | |
17378 | if (temp3) | |
17379 | delete arg3; | |
17380 | } | |
17381 | { | |
17382 | if (temp8) | |
17383 | delete arg8; | |
17384 | } | |
17385 | return NULL; | |
d14a1e28 RD |
17386 | } |
17387 | ||
17388 | ||
0085ce49 RD |
17389 | SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17390 | PyObject *resultobj = 0; | |
17391 | wxRadioButton *result = 0 ; | |
17392 | ||
17393 | if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail; | |
17394 | { | |
17395 | if (!wxPyCheckForApp()) SWIG_fail; | |
17396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17397 | result = (wxRadioButton *)new wxRadioButton(); | |
17398 | wxPyEndAllowThreads(__tstate); | |
17399 | if (PyErr_Occurred()) SWIG_fail; | |
17400 | } | |
17401 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 ); | |
17402 | return resultobj; | |
17403 | fail: | |
17404 | return NULL; | |
17405 | } | |
17406 | ||
17407 | ||
17408 | SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17409 | PyObject *resultobj = 0; | |
17410 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
17411 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17412 | int arg3 = (int) -1 ; | |
17413 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
17414 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
17415 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
17416 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
17417 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
17418 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
17419 | long arg7 = (long) 0 ; | |
17420 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
17421 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
17422 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
17423 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
17424 | bool result; | |
17425 | void *argp1 = 0 ; | |
17426 | int res1 = 0 ; | |
17427 | void *argp2 = 0 ; | |
17428 | int res2 = 0 ; | |
17429 | int val3 ; | |
17430 | int ecode3 = 0 ; | |
17431 | bool temp4 = false ; | |
17432 | wxPoint temp5 ; | |
17433 | wxSize temp6 ; | |
17434 | long val7 ; | |
17435 | int ecode7 = 0 ; | |
17436 | void *argp8 = 0 ; | |
17437 | int res8 = 0 ; | |
17438 | bool temp9 = false ; | |
17439 | PyObject * obj0 = 0 ; | |
17440 | PyObject * obj1 = 0 ; | |
17441 | PyObject * obj2 = 0 ; | |
17442 | PyObject * obj3 = 0 ; | |
17443 | PyObject * obj4 = 0 ; | |
17444 | PyObject * obj5 = 0 ; | |
17445 | PyObject * obj6 = 0 ; | |
17446 | PyObject * obj7 = 0 ; | |
17447 | PyObject * obj8 = 0 ; | |
17448 | char * kwnames[] = { | |
17449 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17450 | }; | |
17451 | ||
17452 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
17453 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17454 | if (!SWIG_IsOK(res1)) { | |
17455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17456 | } | |
17457 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17458 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17459 | if (!SWIG_IsOK(res2)) { | |
17460 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
17461 | } | |
17462 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
17463 | if (obj2) { | |
17464 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17465 | if (!SWIG_IsOK(ecode3)) { | |
17466 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
17467 | } | |
17468 | arg3 = static_cast< int >(val3); | |
17469 | } | |
17470 | if (obj3) { | |
d14a1e28 | 17471 | { |
0085ce49 RD |
17472 | arg4 = wxString_in_helper(obj3); |
17473 | if (arg4 == NULL) SWIG_fail; | |
17474 | temp4 = true; | |
d14a1e28 | 17475 | } |
0085ce49 RD |
17476 | } |
17477 | if (obj4) { | |
d14a1e28 | 17478 | { |
0085ce49 RD |
17479 | arg5 = &temp5; |
17480 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 17481 | } |
0085ce49 RD |
17482 | } |
17483 | if (obj5) { | |
d14a1e28 | 17484 | { |
0085ce49 RD |
17485 | arg6 = &temp6; |
17486 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
17487 | } | |
17488 | } | |
17489 | if (obj6) { | |
17490 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
17491 | if (!SWIG_IsOK(ecode7)) { | |
17492 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
17493 | } | |
17494 | arg7 = static_cast< long >(val7); | |
17495 | } | |
17496 | if (obj7) { | |
17497 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
17498 | if (!SWIG_IsOK(res8)) { | |
17499 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
17500 | } | |
17501 | if (!argp8) { | |
17502 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 17503 | } |
0085ce49 RD |
17504 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
17505 | } | |
17506 | if (obj8) { | |
d14a1e28 | 17507 | { |
0085ce49 RD |
17508 | arg9 = wxString_in_helper(obj8); |
17509 | if (arg9 == NULL) SWIG_fail; | |
17510 | temp9 = true; | |
d14a1e28 | 17511 | } |
0085ce49 RD |
17512 | } |
17513 | { | |
17514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17515 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
17516 | wxPyEndAllowThreads(__tstate); | |
17517 | if (PyErr_Occurred()) SWIG_fail; | |
17518 | } | |
17519 | { | |
17520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17521 | } | |
17522 | { | |
17523 | if (temp4) | |
17524 | delete arg4; | |
17525 | } | |
17526 | { | |
17527 | if (temp9) | |
17528 | delete arg9; | |
17529 | } | |
17530 | return resultobj; | |
17531 | fail: | |
17532 | { | |
17533 | if (temp4) | |
17534 | delete arg4; | |
17535 | } | |
17536 | { | |
17537 | if (temp9) | |
17538 | delete arg9; | |
17539 | } | |
17540 | return NULL; | |
d14a1e28 RD |
17541 | } |
17542 | ||
17543 | ||
0085ce49 RD |
17544 | SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17545 | PyObject *resultobj = 0; | |
17546 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
17547 | bool result; | |
17548 | void *argp1 = 0 ; | |
17549 | int res1 = 0 ; | |
17550 | PyObject *swig_obj[1] ; | |
17551 | ||
17552 | if (!args) SWIG_fail; | |
17553 | swig_obj[0] = args; | |
17554 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17555 | if (!SWIG_IsOK(res1)) { | |
17556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17557 | } | |
17558 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17559 | { | |
17560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17561 | result = (bool)(arg1)->GetValue(); | |
17562 | wxPyEndAllowThreads(__tstate); | |
17563 | if (PyErr_Occurred()) SWIG_fail; | |
17564 | } | |
17565 | { | |
17566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17567 | } | |
17568 | return resultobj; | |
17569 | fail: | |
17570 | return NULL; | |
17571 | } | |
17572 | ||
17573 | ||
17574 | SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17575 | PyObject *resultobj = 0; | |
17576 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
17577 | bool arg2 ; | |
17578 | void *argp1 = 0 ; | |
17579 | int res1 = 0 ; | |
17580 | bool val2 ; | |
17581 | int ecode2 = 0 ; | |
17582 | PyObject * obj0 = 0 ; | |
17583 | PyObject * obj1 = 0 ; | |
17584 | char * kwnames[] = { | |
17585 | (char *) "self",(char *) "value", NULL | |
17586 | }; | |
17587 | ||
17588 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
17589 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 ); | |
17590 | if (!SWIG_IsOK(res1)) { | |
17591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'"); | |
17592 | } | |
17593 | arg1 = reinterpret_cast< wxRadioButton * >(argp1); | |
17594 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
17595 | if (!SWIG_IsOK(ecode2)) { | |
17596 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
17597 | } | |
17598 | arg2 = static_cast< bool >(val2); | |
17599 | { | |
17600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17601 | (arg1)->SetValue(arg2); | |
17602 | wxPyEndAllowThreads(__tstate); | |
17603 | if (PyErr_Occurred()) SWIG_fail; | |
17604 | } | |
17605 | resultobj = SWIG_Py_Void(); | |
17606 | return resultobj; | |
17607 | fail: | |
17608 | return NULL; | |
17609 | } | |
17610 | ||
17611 | ||
17612 | SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17613 | PyObject *resultobj = 0; | |
17614 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
17615 | SwigValueWrapper<wxVisualAttributes > result; | |
17616 | int val1 ; | |
17617 | int ecode1 = 0 ; | |
17618 | PyObject * obj0 = 0 ; | |
17619 | char * kwnames[] = { | |
17620 | (char *) "variant", NULL | |
17621 | }; | |
17622 | ||
17623 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
17624 | if (obj0) { | |
17625 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17626 | if (!SWIG_IsOK(ecode1)) { | |
17627 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
17628 | } | |
17629 | arg1 = static_cast< wxWindowVariant >(val1); | |
17630 | } | |
17631 | { | |
17632 | if (!wxPyCheckForApp()) SWIG_fail; | |
17633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17634 | result = wxRadioButton::GetClassDefaultAttributes(arg1); | |
17635 | wxPyEndAllowThreads(__tstate); | |
17636 | if (PyErr_Occurred()) SWIG_fail; | |
17637 | } | |
17638 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
17639 | return resultobj; | |
17640 | fail: | |
17641 | return NULL; | |
d14a1e28 RD |
17642 | } |
17643 | ||
17644 | ||
0085ce49 RD |
17645 | SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17646 | PyObject *obj; | |
17647 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17648 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj)); | |
17649 | return SWIG_Py_Void(); | |
17650 | } | |
17651 | ||
17652 | SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17653 | return SWIG_Python_InitShadowInstance(args); | |
17654 | } | |
17655 | ||
17656 | SWIGINTERN int SliderNameStr_set(PyObject *) { | |
17657 | SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only."); | |
17658 | return 1; | |
17659 | } | |
17660 | ||
17661 | ||
17662 | SWIGINTERN PyObject *SliderNameStr_get(void) { | |
17663 | PyObject *pyobj = 0; | |
17664 | ||
17665 | { | |
17666 | #if wxUSE_UNICODE | |
17667 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
17668 | #else | |
17669 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
17670 | #endif | |
17671 | } | |
17672 | return pyobj; | |
17673 | } | |
17674 | ||
17675 | ||
17676 | SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17677 | PyObject *resultobj = 0; | |
17678 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17679 | int arg2 = (int) -1 ; | |
17680 | int arg3 = (int) 0 ; | |
17681 | int arg4 = (int) 0 ; | |
17682 | int arg5 = (int) 100 ; | |
17683 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
17684 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
17685 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
17686 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
17687 | long arg8 = (long) wxSL_HORIZONTAL ; | |
17688 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
17689 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
17690 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
17691 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
17692 | wxSlider *result = 0 ; | |
17693 | void *argp1 = 0 ; | |
17694 | int res1 = 0 ; | |
17695 | int val2 ; | |
17696 | int ecode2 = 0 ; | |
17697 | int val3 ; | |
17698 | int ecode3 = 0 ; | |
17699 | int val4 ; | |
17700 | int ecode4 = 0 ; | |
17701 | int val5 ; | |
17702 | int ecode5 = 0 ; | |
17703 | wxPoint temp6 ; | |
17704 | wxSize temp7 ; | |
17705 | long val8 ; | |
17706 | int ecode8 = 0 ; | |
17707 | void *argp9 = 0 ; | |
17708 | int res9 = 0 ; | |
17709 | bool temp10 = false ; | |
17710 | PyObject * obj0 = 0 ; | |
17711 | PyObject * obj1 = 0 ; | |
17712 | PyObject * obj2 = 0 ; | |
17713 | PyObject * obj3 = 0 ; | |
17714 | PyObject * obj4 = 0 ; | |
17715 | PyObject * obj5 = 0 ; | |
17716 | PyObject * obj6 = 0 ; | |
17717 | PyObject * obj7 = 0 ; | |
17718 | PyObject * obj8 = 0 ; | |
17719 | PyObject * obj9 = 0 ; | |
17720 | char * kwnames[] = { | |
17721 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17722 | }; | |
17723 | ||
17724 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
17725 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17726 | if (!SWIG_IsOK(res1)) { | |
17727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17728 | } | |
17729 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17730 | if (obj1) { | |
17731 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17732 | if (!SWIG_IsOK(ecode2)) { | |
17733 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'"); | |
17734 | } | |
17735 | arg2 = static_cast< int >(val2); | |
17736 | } | |
17737 | if (obj2) { | |
17738 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17739 | if (!SWIG_IsOK(ecode3)) { | |
17740 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'"); | |
17741 | } | |
17742 | arg3 = static_cast< int >(val3); | |
17743 | } | |
17744 | if (obj3) { | |
17745 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17746 | if (!SWIG_IsOK(ecode4)) { | |
17747 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'"); | |
17748 | } | |
17749 | arg4 = static_cast< int >(val4); | |
17750 | } | |
17751 | if (obj4) { | |
17752 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17753 | if (!SWIG_IsOK(ecode5)) { | |
17754 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'"); | |
17755 | } | |
17756 | arg5 = static_cast< int >(val5); | |
17757 | } | |
17758 | if (obj5) { | |
093d3ff1 | 17759 | { |
0085ce49 RD |
17760 | arg6 = &temp6; |
17761 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
093d3ff1 | 17762 | } |
0085ce49 RD |
17763 | } |
17764 | if (obj6) { | |
093d3ff1 | 17765 | { |
0085ce49 RD |
17766 | arg7 = &temp7; |
17767 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
093d3ff1 | 17768 | } |
0085ce49 RD |
17769 | } |
17770 | if (obj7) { | |
17771 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
17772 | if (!SWIG_IsOK(ecode8)) { | |
17773 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'"); | |
17774 | } | |
17775 | arg8 = static_cast< long >(val8); | |
17776 | } | |
17777 | if (obj8) { | |
17778 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
17779 | if (!SWIG_IsOK(res9)) { | |
17780 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 17781 | } |
0085ce49 RD |
17782 | if (!argp9) { |
17783 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 17784 | } |
0085ce49 RD |
17785 | arg9 = reinterpret_cast< wxValidator * >(argp9); |
17786 | } | |
17787 | if (obj9) { | |
4f89f6a3 | 17788 | { |
0085ce49 RD |
17789 | arg10 = wxString_in_helper(obj9); |
17790 | if (arg10 == NULL) SWIG_fail; | |
17791 | temp10 = true; | |
4f89f6a3 | 17792 | } |
0085ce49 RD |
17793 | } |
17794 | { | |
17795 | if (!wxPyCheckForApp()) SWIG_fail; | |
17796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17797 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
17798 | wxPyEndAllowThreads(__tstate); | |
17799 | if (PyErr_Occurred()) SWIG_fail; | |
17800 | } | |
17801 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 ); | |
17802 | { | |
17803 | if (temp10) | |
17804 | delete arg10; | |
17805 | } | |
17806 | return resultobj; | |
17807 | fail: | |
17808 | { | |
17809 | if (temp10) | |
17810 | delete arg10; | |
17811 | } | |
17812 | return NULL; | |
d14a1e28 RD |
17813 | } |
17814 | ||
17815 | ||
0085ce49 RD |
17816 | SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17817 | PyObject *resultobj = 0; | |
17818 | wxSlider *result = 0 ; | |
17819 | ||
17820 | if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail; | |
17821 | { | |
17822 | if (!wxPyCheckForApp()) SWIG_fail; | |
17823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17824 | result = (wxSlider *)new wxSlider(); | |
17825 | wxPyEndAllowThreads(__tstate); | |
17826 | if (PyErr_Occurred()) SWIG_fail; | |
17827 | } | |
17828 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 ); | |
17829 | return resultobj; | |
17830 | fail: | |
17831 | return NULL; | |
17832 | } | |
17833 | ||
17834 | ||
17835 | SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17836 | PyObject *resultobj = 0; | |
17837 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17838 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17839 | int arg3 = (int) -1 ; | |
17840 | int arg4 = (int) 0 ; | |
17841 | int arg5 = (int) 0 ; | |
17842 | int arg6 = (int) 100 ; | |
17843 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17844 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17845 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
17846 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
17847 | long arg9 = (long) wxSL_HORIZONTAL ; | |
17848 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
17849 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
17850 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
17851 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
17852 | bool result; | |
17853 | void *argp1 = 0 ; | |
17854 | int res1 = 0 ; | |
17855 | void *argp2 = 0 ; | |
17856 | int res2 = 0 ; | |
17857 | int val3 ; | |
17858 | int ecode3 = 0 ; | |
17859 | int val4 ; | |
17860 | int ecode4 = 0 ; | |
17861 | int val5 ; | |
17862 | int ecode5 = 0 ; | |
17863 | int val6 ; | |
17864 | int ecode6 = 0 ; | |
17865 | wxPoint temp7 ; | |
17866 | wxSize temp8 ; | |
17867 | long val9 ; | |
17868 | int ecode9 = 0 ; | |
17869 | void *argp10 = 0 ; | |
17870 | int res10 = 0 ; | |
17871 | bool temp11 = false ; | |
17872 | PyObject * obj0 = 0 ; | |
17873 | PyObject * obj1 = 0 ; | |
17874 | PyObject * obj2 = 0 ; | |
17875 | PyObject * obj3 = 0 ; | |
17876 | PyObject * obj4 = 0 ; | |
17877 | PyObject * obj5 = 0 ; | |
17878 | PyObject * obj6 = 0 ; | |
17879 | PyObject * obj7 = 0 ; | |
17880 | PyObject * obj8 = 0 ; | |
17881 | PyObject * obj9 = 0 ; | |
17882 | PyObject * obj10 = 0 ; | |
17883 | char * kwnames[] = { | |
17884 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17885 | }; | |
17886 | ||
17887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
17888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17889 | if (!SWIG_IsOK(res1)) { | |
17890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
17891 | } | |
17892 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
17893 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17894 | if (!SWIG_IsOK(res2)) { | |
17895 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
17896 | } | |
17897 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
17898 | if (obj2) { | |
17899 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17900 | if (!SWIG_IsOK(ecode3)) { | |
17901 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'"); | |
17902 | } | |
17903 | arg3 = static_cast< int >(val3); | |
17904 | } | |
17905 | if (obj3) { | |
17906 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17907 | if (!SWIG_IsOK(ecode4)) { | |
17908 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'"); | |
17909 | } | |
17910 | arg4 = static_cast< int >(val4); | |
17911 | } | |
17912 | if (obj4) { | |
17913 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17914 | if (!SWIG_IsOK(ecode5)) { | |
17915 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'"); | |
17916 | } | |
17917 | arg5 = static_cast< int >(val5); | |
17918 | } | |
17919 | if (obj5) { | |
17920 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
17921 | if (!SWIG_IsOK(ecode6)) { | |
17922 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'"); | |
17923 | } | |
17924 | arg6 = static_cast< int >(val6); | |
17925 | } | |
17926 | if (obj6) { | |
093d3ff1 | 17927 | { |
0085ce49 RD |
17928 | arg7 = &temp7; |
17929 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
d14a1e28 | 17930 | } |
0085ce49 RD |
17931 | } |
17932 | if (obj7) { | |
d14a1e28 | 17933 | { |
0085ce49 RD |
17934 | arg8 = &temp8; |
17935 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
d14a1e28 | 17936 | } |
0085ce49 RD |
17937 | } |
17938 | if (obj8) { | |
17939 | ecode9 = SWIG_AsVal_long(obj8, &val9); | |
17940 | if (!SWIG_IsOK(ecode9)) { | |
17941 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'"); | |
17942 | } | |
17943 | arg9 = static_cast< long >(val9); | |
17944 | } | |
17945 | if (obj9) { | |
17946 | res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0); | |
17947 | if (!SWIG_IsOK(res10)) { | |
17948 | SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 17949 | } |
0085ce49 RD |
17950 | if (!argp10) { |
17951 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 17952 | } |
0085ce49 RD |
17953 | arg10 = reinterpret_cast< wxValidator * >(argp10); |
17954 | } | |
17955 | if (obj10) { | |
4f89f6a3 | 17956 | { |
0085ce49 RD |
17957 | arg11 = wxString_in_helper(obj10); |
17958 | if (arg11 == NULL) SWIG_fail; | |
17959 | temp11 = true; | |
4f89f6a3 | 17960 | } |
0085ce49 RD |
17961 | } |
17962 | { | |
17963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17964 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
17965 | wxPyEndAllowThreads(__tstate); | |
17966 | if (PyErr_Occurred()) SWIG_fail; | |
17967 | } | |
17968 | { | |
17969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17970 | } | |
17971 | { | |
17972 | if (temp11) | |
17973 | delete arg11; | |
17974 | } | |
17975 | return resultobj; | |
17976 | fail: | |
17977 | { | |
17978 | if (temp11) | |
17979 | delete arg11; | |
17980 | } | |
17981 | return NULL; | |
d14a1e28 RD |
17982 | } |
17983 | ||
17984 | ||
0085ce49 RD |
17985 | SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17986 | PyObject *resultobj = 0; | |
17987 | wxSlider *arg1 = (wxSlider *) 0 ; | |
17988 | int result; | |
17989 | void *argp1 = 0 ; | |
17990 | int res1 = 0 ; | |
17991 | PyObject *swig_obj[1] ; | |
17992 | ||
17993 | if (!args) SWIG_fail; | |
17994 | swig_obj[0] = args; | |
17995 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
17996 | if (!SWIG_IsOK(res1)) { | |
17997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
17998 | } | |
17999 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18000 | { | |
18001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18002 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
18003 | wxPyEndAllowThreads(__tstate); | |
18004 | if (PyErr_Occurred()) SWIG_fail; | |
18005 | } | |
18006 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18007 | return resultobj; | |
18008 | fail: | |
18009 | return NULL; | |
18010 | } | |
18011 | ||
18012 | ||
18013 | SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18014 | PyObject *resultobj = 0; | |
18015 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18016 | int arg2 ; | |
18017 | void *argp1 = 0 ; | |
18018 | int res1 = 0 ; | |
18019 | int val2 ; | |
18020 | int ecode2 = 0 ; | |
18021 | PyObject * obj0 = 0 ; | |
18022 | PyObject * obj1 = 0 ; | |
18023 | char * kwnames[] = { | |
18024 | (char *) "self",(char *) "value", NULL | |
18025 | }; | |
18026 | ||
18027 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
18028 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18029 | if (!SWIG_IsOK(res1)) { | |
18030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18031 | } | |
18032 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18033 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18034 | if (!SWIG_IsOK(ecode2)) { | |
18035 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'"); | |
18036 | } | |
18037 | arg2 = static_cast< int >(val2); | |
18038 | { | |
18039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18040 | (arg1)->SetValue(arg2); | |
18041 | wxPyEndAllowThreads(__tstate); | |
18042 | if (PyErr_Occurred()) SWIG_fail; | |
18043 | } | |
18044 | resultobj = SWIG_Py_Void(); | |
18045 | return resultobj; | |
18046 | fail: | |
18047 | return NULL; | |
18048 | } | |
18049 | ||
18050 | ||
18051 | SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18052 | PyObject *resultobj = 0; | |
18053 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18054 | int arg2 ; | |
18055 | int arg3 ; | |
18056 | void *argp1 = 0 ; | |
18057 | int res1 = 0 ; | |
18058 | int val2 ; | |
18059 | int ecode2 = 0 ; | |
18060 | int val3 ; | |
18061 | int ecode3 = 0 ; | |
18062 | PyObject * obj0 = 0 ; | |
18063 | PyObject * obj1 = 0 ; | |
18064 | PyObject * obj2 = 0 ; | |
18065 | char * kwnames[] = { | |
18066 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
18067 | }; | |
18068 | ||
18069 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18070 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18071 | if (!SWIG_IsOK(res1)) { | |
18072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18073 | } | |
18074 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18075 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18076 | if (!SWIG_IsOK(ecode2)) { | |
18077 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
18078 | } | |
18079 | arg2 = static_cast< int >(val2); | |
18080 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18081 | if (!SWIG_IsOK(ecode3)) { | |
18082 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
18083 | } | |
18084 | arg3 = static_cast< int >(val3); | |
18085 | { | |
18086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18087 | (arg1)->SetRange(arg2,arg3); | |
18088 | wxPyEndAllowThreads(__tstate); | |
18089 | if (PyErr_Occurred()) SWIG_fail; | |
18090 | } | |
18091 | resultobj = SWIG_Py_Void(); | |
18092 | return resultobj; | |
18093 | fail: | |
18094 | return NULL; | |
d14a1e28 RD |
18095 | } |
18096 | ||
18097 | ||
0085ce49 RD |
18098 | SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18099 | PyObject *resultobj = 0; | |
18100 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18101 | int result; | |
18102 | void *argp1 = 0 ; | |
18103 | int res1 = 0 ; | |
18104 | PyObject *swig_obj[1] ; | |
18105 | ||
18106 | if (!args) SWIG_fail; | |
18107 | swig_obj[0] = args; | |
18108 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18109 | if (!SWIG_IsOK(res1)) { | |
18110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18111 | } | |
18112 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18113 | { | |
18114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18115 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
18116 | wxPyEndAllowThreads(__tstate); | |
18117 | if (PyErr_Occurred()) SWIG_fail; | |
18118 | } | |
18119 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18120 | return resultobj; | |
18121 | fail: | |
18122 | return NULL; | |
d14a1e28 RD |
18123 | } |
18124 | ||
18125 | ||
0085ce49 RD |
18126 | SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18127 | PyObject *resultobj = 0; | |
18128 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18129 | int result; | |
18130 | void *argp1 = 0 ; | |
18131 | int res1 = 0 ; | |
18132 | PyObject *swig_obj[1] ; | |
18133 | ||
18134 | if (!args) SWIG_fail; | |
18135 | swig_obj[0] = args; | |
18136 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18137 | if (!SWIG_IsOK(res1)) { | |
18138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18139 | } | |
18140 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18141 | { | |
18142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18143 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
18144 | wxPyEndAllowThreads(__tstate); | |
18145 | if (PyErr_Occurred()) SWIG_fail; | |
18146 | } | |
18147 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18148 | return resultobj; | |
18149 | fail: | |
18150 | return NULL; | |
18151 | } | |
18152 | ||
18153 | ||
18154 | SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18155 | PyObject *resultobj = 0; | |
18156 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18157 | int arg2 ; | |
18158 | void *argp1 = 0 ; | |
18159 | int res1 = 0 ; | |
18160 | int val2 ; | |
18161 | int ecode2 = 0 ; | |
18162 | PyObject * obj0 = 0 ; | |
18163 | PyObject * obj1 = 0 ; | |
18164 | char * kwnames[] = { | |
18165 | (char *) "self",(char *) "minValue", NULL | |
18166 | }; | |
18167 | ||
18168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail; | |
18169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18170 | if (!SWIG_IsOK(res1)) { | |
18171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18172 | } | |
18173 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18174 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18175 | if (!SWIG_IsOK(ecode2)) { | |
18176 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'"); | |
18177 | } | |
18178 | arg2 = static_cast< int >(val2); | |
18179 | { | |
18180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18181 | (arg1)->SetMin(arg2); | |
18182 | wxPyEndAllowThreads(__tstate); | |
18183 | if (PyErr_Occurred()) SWIG_fail; | |
18184 | } | |
18185 | resultobj = SWIG_Py_Void(); | |
18186 | return resultobj; | |
18187 | fail: | |
18188 | return NULL; | |
18189 | } | |
18190 | ||
18191 | ||
18192 | SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18193 | PyObject *resultobj = 0; | |
18194 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18195 | int arg2 ; | |
18196 | void *argp1 = 0 ; | |
18197 | int res1 = 0 ; | |
18198 | int val2 ; | |
18199 | int ecode2 = 0 ; | |
18200 | PyObject * obj0 = 0 ; | |
18201 | PyObject * obj1 = 0 ; | |
18202 | char * kwnames[] = { | |
18203 | (char *) "self",(char *) "maxValue", NULL | |
18204 | }; | |
18205 | ||
18206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail; | |
18207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18208 | if (!SWIG_IsOK(res1)) { | |
18209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18210 | } | |
18211 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18212 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18213 | if (!SWIG_IsOK(ecode2)) { | |
18214 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'"); | |
18215 | } | |
18216 | arg2 = static_cast< int >(val2); | |
18217 | { | |
18218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18219 | (arg1)->SetMax(arg2); | |
18220 | wxPyEndAllowThreads(__tstate); | |
18221 | if (PyErr_Occurred()) SWIG_fail; | |
18222 | } | |
18223 | resultobj = SWIG_Py_Void(); | |
18224 | return resultobj; | |
18225 | fail: | |
18226 | return NULL; | |
18227 | } | |
18228 | ||
18229 | ||
18230 | SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18231 | PyObject *resultobj = 0; | |
18232 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18233 | int arg2 ; | |
18234 | void *argp1 = 0 ; | |
18235 | int res1 = 0 ; | |
18236 | int val2 ; | |
18237 | int ecode2 = 0 ; | |
18238 | PyObject * obj0 = 0 ; | |
18239 | PyObject * obj1 = 0 ; | |
18240 | char * kwnames[] = { | |
18241 | (char *) "self",(char *) "lineSize", NULL | |
18242 | }; | |
18243 | ||
18244 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
18245 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18246 | if (!SWIG_IsOK(res1)) { | |
18247 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18248 | } | |
18249 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18250 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18251 | if (!SWIG_IsOK(ecode2)) { | |
18252 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'"); | |
18253 | } | |
18254 | arg2 = static_cast< int >(val2); | |
18255 | { | |
18256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18257 | (arg1)->SetLineSize(arg2); | |
18258 | wxPyEndAllowThreads(__tstate); | |
18259 | if (PyErr_Occurred()) SWIG_fail; | |
18260 | } | |
18261 | resultobj = SWIG_Py_Void(); | |
18262 | return resultobj; | |
18263 | fail: | |
18264 | return NULL; | |
18265 | } | |
18266 | ||
18267 | ||
18268 | SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18269 | PyObject *resultobj = 0; | |
18270 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18271 | int arg2 ; | |
18272 | void *argp1 = 0 ; | |
18273 | int res1 = 0 ; | |
18274 | int val2 ; | |
18275 | int ecode2 = 0 ; | |
18276 | PyObject * obj0 = 0 ; | |
18277 | PyObject * obj1 = 0 ; | |
18278 | char * kwnames[] = { | |
18279 | (char *) "self",(char *) "pageSize", NULL | |
18280 | }; | |
18281 | ||
18282 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
18283 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18284 | if (!SWIG_IsOK(res1)) { | |
18285 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18286 | } | |
18287 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18288 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18289 | if (!SWIG_IsOK(ecode2)) { | |
18290 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'"); | |
18291 | } | |
18292 | arg2 = static_cast< int >(val2); | |
18293 | { | |
18294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18295 | (arg1)->SetPageSize(arg2); | |
18296 | wxPyEndAllowThreads(__tstate); | |
18297 | if (PyErr_Occurred()) SWIG_fail; | |
18298 | } | |
18299 | resultobj = SWIG_Py_Void(); | |
18300 | return resultobj; | |
18301 | fail: | |
18302 | return NULL; | |
d14a1e28 RD |
18303 | } |
18304 | ||
18305 | ||
0085ce49 RD |
18306 | SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18307 | PyObject *resultobj = 0; | |
18308 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18309 | int result; | |
18310 | void *argp1 = 0 ; | |
18311 | int res1 = 0 ; | |
18312 | PyObject *swig_obj[1] ; | |
18313 | ||
18314 | if (!args) SWIG_fail; | |
18315 | swig_obj[0] = args; | |
18316 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18317 | if (!SWIG_IsOK(res1)) { | |
18318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18319 | } | |
18320 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18321 | { | |
18322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18323 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
18324 | wxPyEndAllowThreads(__tstate); | |
18325 | if (PyErr_Occurred()) SWIG_fail; | |
18326 | } | |
18327 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18328 | return resultobj; | |
18329 | fail: | |
18330 | return NULL; | |
d14a1e28 RD |
18331 | } |
18332 | ||
18333 | ||
0085ce49 RD |
18334 | SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18335 | PyObject *resultobj = 0; | |
18336 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18337 | int result; | |
18338 | void *argp1 = 0 ; | |
18339 | int res1 = 0 ; | |
18340 | PyObject *swig_obj[1] ; | |
18341 | ||
18342 | if (!args) SWIG_fail; | |
18343 | swig_obj[0] = args; | |
18344 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18345 | if (!SWIG_IsOK(res1)) { | |
18346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18347 | } | |
18348 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18349 | { | |
18350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18351 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
18352 | wxPyEndAllowThreads(__tstate); | |
18353 | if (PyErr_Occurred()) SWIG_fail; | |
18354 | } | |
18355 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18356 | return resultobj; | |
18357 | fail: | |
18358 | return NULL; | |
18359 | } | |
18360 | ||
18361 | ||
18362 | SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18363 | PyObject *resultobj = 0; | |
18364 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18365 | int arg2 ; | |
18366 | void *argp1 = 0 ; | |
18367 | int res1 = 0 ; | |
18368 | int val2 ; | |
18369 | int ecode2 = 0 ; | |
18370 | PyObject * obj0 = 0 ; | |
18371 | PyObject * obj1 = 0 ; | |
18372 | char * kwnames[] = { | |
18373 | (char *) "self",(char *) "lenPixels", NULL | |
18374 | }; | |
18375 | ||
18376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
18377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18378 | if (!SWIG_IsOK(res1)) { | |
18379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18380 | } | |
18381 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18382 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18383 | if (!SWIG_IsOK(ecode2)) { | |
18384 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'"); | |
18385 | } | |
18386 | arg2 = static_cast< int >(val2); | |
18387 | { | |
18388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18389 | (arg1)->SetThumbLength(arg2); | |
18390 | wxPyEndAllowThreads(__tstate); | |
18391 | if (PyErr_Occurred()) SWIG_fail; | |
18392 | } | |
18393 | resultobj = SWIG_Py_Void(); | |
18394 | return resultobj; | |
18395 | fail: | |
18396 | return NULL; | |
4d5c3d91 RD |
18397 | } |
18398 | ||
18399 | ||
0085ce49 RD |
18400 | SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18401 | PyObject *resultobj = 0; | |
18402 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18403 | int result; | |
18404 | void *argp1 = 0 ; | |
18405 | int res1 = 0 ; | |
18406 | PyObject *swig_obj[1] ; | |
18407 | ||
18408 | if (!args) SWIG_fail; | |
18409 | swig_obj[0] = args; | |
18410 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18411 | if (!SWIG_IsOK(res1)) { | |
18412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18413 | } | |
18414 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18415 | { | |
18416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18417 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
18418 | wxPyEndAllowThreads(__tstate); | |
18419 | if (PyErr_Occurred()) SWIG_fail; | |
18420 | } | |
18421 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18422 | return resultobj; | |
18423 | fail: | |
18424 | return NULL; | |
18425 | } | |
18426 | ||
18427 | ||
18428 | SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18429 | PyObject *resultobj = 0; | |
18430 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18431 | int arg2 ; | |
18432 | int arg3 = (int) 1 ; | |
18433 | void *argp1 = 0 ; | |
18434 | int res1 = 0 ; | |
18435 | int val2 ; | |
18436 | int ecode2 = 0 ; | |
18437 | int val3 ; | |
18438 | int ecode3 = 0 ; | |
18439 | PyObject * obj0 = 0 ; | |
18440 | PyObject * obj1 = 0 ; | |
18441 | PyObject * obj2 = 0 ; | |
18442 | char * kwnames[] = { | |
18443 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
18444 | }; | |
18445 | ||
18446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18447 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18448 | if (!SWIG_IsOK(res1)) { | |
18449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18450 | } | |
18451 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18452 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18453 | if (!SWIG_IsOK(ecode2)) { | |
18454 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'"); | |
18455 | } | |
18456 | arg2 = static_cast< int >(val2); | |
18457 | if (obj2) { | |
18458 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18459 | if (!SWIG_IsOK(ecode3)) { | |
18460 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'"); | |
18461 | } | |
18462 | arg3 = static_cast< int >(val3); | |
18463 | } | |
18464 | { | |
18465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18466 | (arg1)->SetTickFreq(arg2,arg3); | |
18467 | wxPyEndAllowThreads(__tstate); | |
18468 | if (PyErr_Occurred()) SWIG_fail; | |
18469 | } | |
18470 | resultobj = SWIG_Py_Void(); | |
18471 | return resultobj; | |
18472 | fail: | |
18473 | return NULL; | |
4896ac9e RD |
18474 | } |
18475 | ||
18476 | ||
0085ce49 RD |
18477 | SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18478 | PyObject *resultobj = 0; | |
18479 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18480 | int result; | |
18481 | void *argp1 = 0 ; | |
18482 | int res1 = 0 ; | |
18483 | PyObject *swig_obj[1] ; | |
18484 | ||
18485 | if (!args) SWIG_fail; | |
18486 | swig_obj[0] = args; | |
18487 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18488 | if (!SWIG_IsOK(res1)) { | |
18489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18490 | } | |
18491 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18492 | { | |
18493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18494 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
18495 | wxPyEndAllowThreads(__tstate); | |
18496 | if (PyErr_Occurred()) SWIG_fail; | |
18497 | } | |
18498 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18499 | return resultobj; | |
18500 | fail: | |
18501 | return NULL; | |
d14a1e28 RD |
18502 | } |
18503 | ||
18504 | ||
0085ce49 RD |
18505 | SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18506 | PyObject *resultobj = 0; | |
18507 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18508 | void *argp1 = 0 ; | |
18509 | int res1 = 0 ; | |
18510 | PyObject *swig_obj[1] ; | |
18511 | ||
18512 | if (!args) SWIG_fail; | |
18513 | swig_obj[0] = args; | |
18514 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18515 | if (!SWIG_IsOK(res1)) { | |
18516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18517 | } | |
18518 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18519 | { | |
18520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18521 | (arg1)->ClearTicks(); | |
18522 | wxPyEndAllowThreads(__tstate); | |
18523 | if (PyErr_Occurred()) SWIG_fail; | |
18524 | } | |
18525 | resultobj = SWIG_Py_Void(); | |
18526 | return resultobj; | |
18527 | fail: | |
18528 | return NULL; | |
18529 | } | |
18530 | ||
18531 | ||
18532 | SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18533 | PyObject *resultobj = 0; | |
18534 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18535 | int arg2 ; | |
18536 | void *argp1 = 0 ; | |
18537 | int res1 = 0 ; | |
18538 | int val2 ; | |
18539 | int ecode2 = 0 ; | |
18540 | PyObject * obj0 = 0 ; | |
18541 | PyObject * obj1 = 0 ; | |
18542 | char * kwnames[] = { | |
18543 | (char *) "self",(char *) "tickPos", NULL | |
18544 | }; | |
18545 | ||
18546 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail; | |
18547 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18548 | if (!SWIG_IsOK(res1)) { | |
18549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18550 | } | |
18551 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18552 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18553 | if (!SWIG_IsOK(ecode2)) { | |
18554 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'"); | |
18555 | } | |
18556 | arg2 = static_cast< int >(val2); | |
18557 | { | |
18558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18559 | (arg1)->SetTick(arg2); | |
18560 | wxPyEndAllowThreads(__tstate); | |
18561 | if (PyErr_Occurred()) SWIG_fail; | |
18562 | } | |
18563 | resultobj = SWIG_Py_Void(); | |
18564 | return resultobj; | |
18565 | fail: | |
18566 | return NULL; | |
d14a1e28 RD |
18567 | } |
18568 | ||
18569 | ||
0085ce49 RD |
18570 | SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18571 | PyObject *resultobj = 0; | |
18572 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18573 | void *argp1 = 0 ; | |
18574 | int res1 = 0 ; | |
18575 | PyObject *swig_obj[1] ; | |
18576 | ||
18577 | if (!args) SWIG_fail; | |
18578 | swig_obj[0] = args; | |
18579 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18580 | if (!SWIG_IsOK(res1)) { | |
18581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18582 | } | |
18583 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18584 | { | |
18585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18586 | (arg1)->ClearSel(); | |
18587 | wxPyEndAllowThreads(__tstate); | |
18588 | if (PyErr_Occurred()) SWIG_fail; | |
18589 | } | |
18590 | resultobj = SWIG_Py_Void(); | |
18591 | return resultobj; | |
18592 | fail: | |
18593 | return NULL; | |
d14a1e28 RD |
18594 | } |
18595 | ||
18596 | ||
0085ce49 RD |
18597 | SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18598 | PyObject *resultobj = 0; | |
18599 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18600 | int result; | |
18601 | void *argp1 = 0 ; | |
18602 | int res1 = 0 ; | |
18603 | PyObject *swig_obj[1] ; | |
18604 | ||
18605 | if (!args) SWIG_fail; | |
18606 | swig_obj[0] = args; | |
18607 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18608 | if (!SWIG_IsOK(res1)) { | |
18609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18610 | } | |
18611 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18612 | { | |
18613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18614 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
18615 | wxPyEndAllowThreads(__tstate); | |
18616 | if (PyErr_Occurred()) SWIG_fail; | |
18617 | } | |
18618 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18619 | return resultobj; | |
18620 | fail: | |
18621 | return NULL; | |
d14a1e28 RD |
18622 | } |
18623 | ||
18624 | ||
0085ce49 RD |
18625 | SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18626 | PyObject *resultobj = 0; | |
18627 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18628 | int result; | |
18629 | void *argp1 = 0 ; | |
18630 | int res1 = 0 ; | |
18631 | PyObject *swig_obj[1] ; | |
18632 | ||
18633 | if (!args) SWIG_fail; | |
18634 | swig_obj[0] = args; | |
18635 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18636 | if (!SWIG_IsOK(res1)) { | |
18637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'"); | |
18638 | } | |
18639 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18640 | { | |
18641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18642 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
18643 | wxPyEndAllowThreads(__tstate); | |
18644 | if (PyErr_Occurred()) SWIG_fail; | |
18645 | } | |
18646 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18647 | return resultobj; | |
18648 | fail: | |
18649 | return NULL; | |
18650 | } | |
18651 | ||
18652 | ||
18653 | SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18654 | PyObject *resultobj = 0; | |
18655 | wxSlider *arg1 = (wxSlider *) 0 ; | |
18656 | int arg2 ; | |
18657 | int arg3 ; | |
18658 | void *argp1 = 0 ; | |
18659 | int res1 = 0 ; | |
18660 | int val2 ; | |
18661 | int ecode2 = 0 ; | |
18662 | int val3 ; | |
18663 | int ecode3 = 0 ; | |
18664 | PyObject * obj0 = 0 ; | |
18665 | PyObject * obj1 = 0 ; | |
18666 | PyObject * obj2 = 0 ; | |
18667 | char * kwnames[] = { | |
18668 | (char *) "self",(char *) "min",(char *) "max", NULL | |
18669 | }; | |
18670 | ||
18671 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18672 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 ); | |
18673 | if (!SWIG_IsOK(res1)) { | |
18674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'"); | |
18675 | } | |
18676 | arg1 = reinterpret_cast< wxSlider * >(argp1); | |
18677 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18678 | if (!SWIG_IsOK(ecode2)) { | |
18679 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
18680 | } | |
18681 | arg2 = static_cast< int >(val2); | |
18682 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18683 | if (!SWIG_IsOK(ecode3)) { | |
18684 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'"); | |
18685 | } | |
18686 | arg3 = static_cast< int >(val3); | |
18687 | { | |
18688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18689 | (arg1)->SetSelection(arg2,arg3); | |
18690 | wxPyEndAllowThreads(__tstate); | |
18691 | if (PyErr_Occurred()) SWIG_fail; | |
18692 | } | |
18693 | resultobj = SWIG_Py_Void(); | |
18694 | return resultobj; | |
18695 | fail: | |
18696 | return NULL; | |
18697 | } | |
18698 | ||
18699 | ||
18700 | SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18701 | PyObject *resultobj = 0; | |
18702 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
18703 | SwigValueWrapper<wxVisualAttributes > result; | |
18704 | int val1 ; | |
18705 | int ecode1 = 0 ; | |
18706 | PyObject * obj0 = 0 ; | |
18707 | char * kwnames[] = { | |
18708 | (char *) "variant", NULL | |
18709 | }; | |
18710 | ||
18711 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
18712 | if (obj0) { | |
18713 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18714 | if (!SWIG_IsOK(ecode1)) { | |
18715 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
18716 | } | |
18717 | arg1 = static_cast< wxWindowVariant >(val1); | |
18718 | } | |
18719 | { | |
18720 | if (!wxPyCheckForApp()) SWIG_fail; | |
18721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18722 | result = wxSlider::GetClassDefaultAttributes(arg1); | |
18723 | wxPyEndAllowThreads(__tstate); | |
18724 | if (PyErr_Occurred()) SWIG_fail; | |
18725 | } | |
18726 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
18727 | return resultobj; | |
18728 | fail: | |
18729 | return NULL; | |
d14a1e28 RD |
18730 | } |
18731 | ||
18732 | ||
0085ce49 RD |
18733 | SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18734 | PyObject *obj; | |
18735 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18736 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj)); | |
18737 | return SWIG_Py_Void(); | |
d14a1e28 RD |
18738 | } |
18739 | ||
0085ce49 RD |
18740 | SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18741 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
18742 | } |
18743 | ||
0085ce49 RD |
18744 | SWIGINTERN int ToggleButtonNameStr_set(PyObject *) { |
18745 | SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only."); | |
18746 | return 1; | |
d14a1e28 RD |
18747 | } |
18748 | ||
18749 | ||
0085ce49 RD |
18750 | SWIGINTERN PyObject *ToggleButtonNameStr_get(void) { |
18751 | PyObject *pyobj = 0; | |
18752 | ||
18753 | { | |
18754 | #if wxUSE_UNICODE | |
18755 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
18756 | #else | |
18757 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
18758 | #endif | |
18759 | } | |
18760 | return pyobj; | |
18761 | } | |
18762 | ||
18763 | ||
18764 | SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18765 | PyObject *resultobj = 0; | |
18766 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18767 | int arg2 = (int) -1 ; | |
18768 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
18769 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18770 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
18771 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18772 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18773 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18774 | long arg6 = (long) 0 ; | |
18775 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
18776 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
18777 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
18778 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
18779 | wxToggleButton *result = 0 ; | |
18780 | void *argp1 = 0 ; | |
18781 | int res1 = 0 ; | |
18782 | int val2 ; | |
18783 | int ecode2 = 0 ; | |
18784 | bool temp3 = false ; | |
18785 | wxPoint temp4 ; | |
18786 | wxSize temp5 ; | |
18787 | long val6 ; | |
18788 | int ecode6 = 0 ; | |
18789 | void *argp7 = 0 ; | |
18790 | int res7 = 0 ; | |
18791 | bool temp8 = false ; | |
18792 | PyObject * obj0 = 0 ; | |
18793 | PyObject * obj1 = 0 ; | |
18794 | PyObject * obj2 = 0 ; | |
18795 | PyObject * obj3 = 0 ; | |
18796 | PyObject * obj4 = 0 ; | |
18797 | PyObject * obj5 = 0 ; | |
18798 | PyObject * obj6 = 0 ; | |
18799 | PyObject * obj7 = 0 ; | |
18800 | char * kwnames[] = { | |
18801 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
18802 | }; | |
18803 | ||
18804 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
18805 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18806 | if (!SWIG_IsOK(res1)) { | |
18807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18808 | } | |
18809 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18810 | if (obj1) { | |
18811 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18812 | if (!SWIG_IsOK(ecode2)) { | |
18813 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'"); | |
18814 | } | |
18815 | arg2 = static_cast< int >(val2); | |
18816 | } | |
18817 | if (obj2) { | |
d14a1e28 | 18818 | { |
0085ce49 RD |
18819 | arg3 = wxString_in_helper(obj2); |
18820 | if (arg3 == NULL) SWIG_fail; | |
18821 | temp3 = true; | |
d14a1e28 | 18822 | } |
0085ce49 RD |
18823 | } |
18824 | if (obj3) { | |
4f89f6a3 | 18825 | { |
0085ce49 RD |
18826 | arg4 = &temp4; |
18827 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 18828 | } |
0085ce49 RD |
18829 | } |
18830 | if (obj4) { | |
d14a1e28 | 18831 | { |
0085ce49 RD |
18832 | arg5 = &temp5; |
18833 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 18834 | } |
0085ce49 RD |
18835 | } |
18836 | if (obj5) { | |
18837 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
18838 | if (!SWIG_IsOK(ecode6)) { | |
18839 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'"); | |
18840 | } | |
18841 | arg6 = static_cast< long >(val6); | |
18842 | } | |
18843 | if (obj6) { | |
18844 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
18845 | if (!SWIG_IsOK(res7)) { | |
18846 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
4f89f6a3 | 18847 | } |
0085ce49 RD |
18848 | if (!argp7) { |
18849 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
093d3ff1 | 18850 | } |
0085ce49 RD |
18851 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
18852 | } | |
18853 | if (obj7) { | |
d14a1e28 | 18854 | { |
0085ce49 RD |
18855 | arg8 = wxString_in_helper(obj7); |
18856 | if (arg8 == NULL) SWIG_fail; | |
18857 | temp8 = true; | |
d14a1e28 | 18858 | } |
0085ce49 RD |
18859 | } |
18860 | { | |
18861 | if (!wxPyCheckForApp()) SWIG_fail; | |
18862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18863 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
18864 | wxPyEndAllowThreads(__tstate); | |
18865 | if (PyErr_Occurred()) SWIG_fail; | |
18866 | } | |
18867 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 ); | |
18868 | { | |
18869 | if (temp3) | |
18870 | delete arg3; | |
18871 | } | |
18872 | { | |
18873 | if (temp8) | |
18874 | delete arg8; | |
18875 | } | |
18876 | return resultobj; | |
18877 | fail: | |
18878 | { | |
18879 | if (temp3) | |
18880 | delete arg3; | |
18881 | } | |
18882 | { | |
18883 | if (temp8) | |
18884 | delete arg8; | |
18885 | } | |
18886 | return NULL; | |
d14a1e28 RD |
18887 | } |
18888 | ||
18889 | ||
0085ce49 RD |
18890 | SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18891 | PyObject *resultobj = 0; | |
18892 | wxToggleButton *result = 0 ; | |
18893 | ||
18894 | if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail; | |
18895 | { | |
18896 | if (!wxPyCheckForApp()) SWIG_fail; | |
18897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18898 | result = (wxToggleButton *)new wxToggleButton(); | |
18899 | wxPyEndAllowThreads(__tstate); | |
18900 | if (PyErr_Occurred()) SWIG_fail; | |
18901 | } | |
18902 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 ); | |
18903 | return resultobj; | |
18904 | fail: | |
18905 | return NULL; | |
18906 | } | |
18907 | ||
18908 | ||
18909 | SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18910 | PyObject *resultobj = 0; | |
18911 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
18912 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18913 | int arg3 = (int) -1 ; | |
18914 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18915 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18916 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
18917 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
18918 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
18919 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
18920 | long arg7 = (long) 0 ; | |
18921 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
18922 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
18923 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
18924 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
18925 | bool result; | |
18926 | void *argp1 = 0 ; | |
18927 | int res1 = 0 ; | |
18928 | void *argp2 = 0 ; | |
18929 | int res2 = 0 ; | |
18930 | int val3 ; | |
18931 | int ecode3 = 0 ; | |
18932 | bool temp4 = false ; | |
18933 | wxPoint temp5 ; | |
18934 | wxSize temp6 ; | |
18935 | long val7 ; | |
18936 | int ecode7 = 0 ; | |
18937 | void *argp8 = 0 ; | |
18938 | int res8 = 0 ; | |
18939 | bool temp9 = false ; | |
18940 | PyObject * obj0 = 0 ; | |
18941 | PyObject * obj1 = 0 ; | |
18942 | PyObject * obj2 = 0 ; | |
18943 | PyObject * obj3 = 0 ; | |
18944 | PyObject * obj4 = 0 ; | |
18945 | PyObject * obj5 = 0 ; | |
18946 | PyObject * obj6 = 0 ; | |
18947 | PyObject * obj7 = 0 ; | |
18948 | PyObject * obj8 = 0 ; | |
18949 | char * kwnames[] = { | |
18950 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
18951 | }; | |
18952 | ||
18953 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
18954 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
18955 | if (!SWIG_IsOK(res1)) { | |
18956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'"); | |
18957 | } | |
18958 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
18959 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18960 | if (!SWIG_IsOK(res2)) { | |
18961 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
18962 | } | |
18963 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
18964 | if (obj2) { | |
18965 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18966 | if (!SWIG_IsOK(ecode3)) { | |
18967 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'"); | |
18968 | } | |
18969 | arg3 = static_cast< int >(val3); | |
18970 | } | |
18971 | if (obj3) { | |
d14a1e28 | 18972 | { |
0085ce49 RD |
18973 | arg4 = wxString_in_helper(obj3); |
18974 | if (arg4 == NULL) SWIG_fail; | |
18975 | temp4 = true; | |
d14a1e28 | 18976 | } |
0085ce49 RD |
18977 | } |
18978 | if (obj4) { | |
d14a1e28 | 18979 | { |
0085ce49 RD |
18980 | arg5 = &temp5; |
18981 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 18982 | } |
0085ce49 RD |
18983 | } |
18984 | if (obj5) { | |
093d3ff1 | 18985 | { |
0085ce49 RD |
18986 | arg6 = &temp6; |
18987 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
093d3ff1 | 18988 | } |
0085ce49 RD |
18989 | } |
18990 | if (obj6) { | |
18991 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
18992 | if (!SWIG_IsOK(ecode7)) { | |
18993 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'"); | |
18994 | } | |
18995 | arg7 = static_cast< long >(val7); | |
18996 | } | |
18997 | if (obj7) { | |
18998 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
18999 | if (!SWIG_IsOK(res8)) { | |
19000 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
19001 | } | |
19002 | if (!argp8) { | |
19003 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 19004 | } |
0085ce49 RD |
19005 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
19006 | } | |
19007 | if (obj8) { | |
093d3ff1 | 19008 | { |
0085ce49 RD |
19009 | arg9 = wxString_in_helper(obj8); |
19010 | if (arg9 == NULL) SWIG_fail; | |
19011 | temp9 = true; | |
093d3ff1 | 19012 | } |
0085ce49 RD |
19013 | } |
19014 | { | |
19015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19016 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
19017 | wxPyEndAllowThreads(__tstate); | |
19018 | if (PyErr_Occurred()) SWIG_fail; | |
19019 | } | |
19020 | { | |
19021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19022 | } | |
19023 | { | |
19024 | if (temp4) | |
19025 | delete arg4; | |
19026 | } | |
19027 | { | |
19028 | if (temp9) | |
19029 | delete arg9; | |
19030 | } | |
19031 | return resultobj; | |
19032 | fail: | |
19033 | { | |
19034 | if (temp4) | |
19035 | delete arg4; | |
19036 | } | |
19037 | { | |
19038 | if (temp9) | |
19039 | delete arg9; | |
19040 | } | |
19041 | return NULL; | |
19042 | } | |
19043 | ||
19044 | ||
19045 | SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19046 | PyObject *resultobj = 0; | |
19047 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
19048 | bool arg2 ; | |
19049 | void *argp1 = 0 ; | |
19050 | int res1 = 0 ; | |
19051 | bool val2 ; | |
19052 | int ecode2 = 0 ; | |
19053 | PyObject * obj0 = 0 ; | |
19054 | PyObject * obj1 = 0 ; | |
19055 | char * kwnames[] = { | |
19056 | (char *) "self",(char *) "value", NULL | |
19057 | }; | |
19058 | ||
19059 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
19060 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
19061 | if (!SWIG_IsOK(res1)) { | |
19062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'"); | |
19063 | } | |
19064 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
19065 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19066 | if (!SWIG_IsOK(ecode2)) { | |
19067 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'"); | |
19068 | } | |
19069 | arg2 = static_cast< bool >(val2); | |
19070 | { | |
19071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19072 | (arg1)->SetValue(arg2); | |
19073 | wxPyEndAllowThreads(__tstate); | |
19074 | if (PyErr_Occurred()) SWIG_fail; | |
19075 | } | |
19076 | resultobj = SWIG_Py_Void(); | |
19077 | return resultobj; | |
19078 | fail: | |
19079 | return NULL; | |
d14a1e28 RD |
19080 | } |
19081 | ||
19082 | ||
0085ce49 RD |
19083 | SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19084 | PyObject *resultobj = 0; | |
19085 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
19086 | bool result; | |
19087 | void *argp1 = 0 ; | |
19088 | int res1 = 0 ; | |
19089 | PyObject *swig_obj[1] ; | |
19090 | ||
19091 | if (!args) SWIG_fail; | |
19092 | swig_obj[0] = args; | |
19093 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 ); | |
19094 | if (!SWIG_IsOK(res1)) { | |
19095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'"); | |
19096 | } | |
19097 | arg1 = reinterpret_cast< wxToggleButton * >(argp1); | |
19098 | { | |
19099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19100 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
19101 | wxPyEndAllowThreads(__tstate); | |
19102 | if (PyErr_Occurred()) SWIG_fail; | |
19103 | } | |
19104 | { | |
19105 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19106 | } | |
19107 | return resultobj; | |
19108 | fail: | |
19109 | return NULL; | |
d14a1e28 RD |
19110 | } |
19111 | ||
19112 | ||
0085ce49 RD |
19113 | SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19114 | PyObject *resultobj = 0; | |
19115 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
19116 | SwigValueWrapper<wxVisualAttributes > result; | |
19117 | int val1 ; | |
19118 | int ecode1 = 0 ; | |
19119 | PyObject * obj0 = 0 ; | |
19120 | char * kwnames[] = { | |
19121 | (char *) "variant", NULL | |
19122 | }; | |
19123 | ||
19124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
19125 | if (obj0) { | |
19126 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19127 | if (!SWIG_IsOK(ecode1)) { | |
19128 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
19129 | } | |
19130 | arg1 = static_cast< wxWindowVariant >(val1); | |
19131 | } | |
19132 | { | |
19133 | if (!wxPyCheckForApp()) SWIG_fail; | |
19134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19135 | result = wxToggleButton::GetClassDefaultAttributes(arg1); | |
19136 | wxPyEndAllowThreads(__tstate); | |
19137 | if (PyErr_Occurred()) SWIG_fail; | |
19138 | } | |
19139 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
19140 | return resultobj; | |
19141 | fail: | |
19142 | return NULL; | |
d14a1e28 RD |
19143 | } |
19144 | ||
19145 | ||
0085ce49 RD |
19146 | SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19147 | PyObject *obj; | |
19148 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19149 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj)); | |
19150 | return SWIG_Py_Void(); | |
d14a1e28 RD |
19151 | } |
19152 | ||
0085ce49 RD |
19153 | SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19154 | return SWIG_Python_InitShadowInstance(args); | |
19155 | } | |
d14a1e28 | 19156 | |
0085ce49 RD |
19157 | SWIGINTERN int NotebookNameStr_set(PyObject *) { |
19158 | SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only."); | |
19159 | return 1; | |
d14a1e28 RD |
19160 | } |
19161 | ||
19162 | ||
0085ce49 RD |
19163 | SWIGINTERN PyObject *NotebookNameStr_get(void) { |
19164 | PyObject *pyobj = 0; | |
19165 | ||
19166 | { | |
d14a1e28 | 19167 | #if wxUSE_UNICODE |
0085ce49 | 19168 | pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
d14a1e28 | 19169 | #else |
0085ce49 | 19170 | pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
d14a1e28 | 19171 | #endif |
0085ce49 RD |
19172 | } |
19173 | return pyobj; | |
d14a1e28 RD |
19174 | } |
19175 | ||
19176 | ||
0085ce49 RD |
19177 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19178 | PyObject *resultobj = 0; | |
19179 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19180 | size_t result; | |
19181 | void *argp1 = 0 ; | |
19182 | int res1 = 0 ; | |
19183 | PyObject *swig_obj[1] ; | |
19184 | ||
19185 | if (!args) SWIG_fail; | |
19186 | swig_obj[0] = args; | |
19187 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19188 | if (!SWIG_IsOK(res1)) { | |
19189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19190 | } | |
19191 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19192 | { | |
19193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19194 | result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount(); | |
19195 | wxPyEndAllowThreads(__tstate); | |
19196 | if (PyErr_Occurred()) SWIG_fail; | |
19197 | } | |
19198 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
19199 | return resultobj; | |
19200 | fail: | |
19201 | return NULL; | |
19202 | } | |
19203 | ||
19204 | ||
19205 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19206 | PyObject *resultobj = 0; | |
19207 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19208 | size_t arg2 ; | |
19209 | wxWindow *result = 0 ; | |
19210 | void *argp1 = 0 ; | |
19211 | int res1 = 0 ; | |
19212 | size_t val2 ; | |
19213 | int ecode2 = 0 ; | |
19214 | PyObject * obj0 = 0 ; | |
19215 | PyObject * obj1 = 0 ; | |
19216 | char * kwnames[] = { | |
19217 | (char *) "self",(char *) "n", NULL | |
19218 | }; | |
19219 | ||
19220 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19221 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19222 | if (!SWIG_IsOK(res1)) { | |
19223 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19224 | } | |
19225 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19226 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19227 | if (!SWIG_IsOK(ecode2)) { | |
19228 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'"); | |
19229 | } | |
19230 | arg2 = static_cast< size_t >(val2); | |
19231 | { | |
19232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19233 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
19234 | wxPyEndAllowThreads(__tstate); | |
19235 | if (PyErr_Occurred()) SWIG_fail; | |
19236 | } | |
19237 | { | |
19238 | resultobj = wxPyMake_wxObject(result, 0); | |
19239 | } | |
19240 | return resultobj; | |
19241 | fail: | |
19242 | return NULL; | |
22bfe96c RD |
19243 | } |
19244 | ||
19245 | ||
0085ce49 RD |
19246 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19247 | PyObject *resultobj = 0; | |
19248 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19249 | wxWindow *result = 0 ; | |
19250 | void *argp1 = 0 ; | |
19251 | int res1 = 0 ; | |
19252 | PyObject *swig_obj[1] ; | |
19253 | ||
19254 | if (!args) SWIG_fail; | |
19255 | swig_obj[0] = args; | |
19256 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19257 | if (!SWIG_IsOK(res1)) { | |
19258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19259 | } | |
19260 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19261 | { | |
19262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19263 | result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage(); | |
19264 | wxPyEndAllowThreads(__tstate); | |
19265 | if (PyErr_Occurred()) SWIG_fail; | |
19266 | } | |
19267 | { | |
19268 | resultobj = wxPyMake_wxObject(result, 0); | |
19269 | } | |
19270 | return resultobj; | |
19271 | fail: | |
19272 | return NULL; | |
d14a1e28 RD |
19273 | } |
19274 | ||
19275 | ||
0085ce49 RD |
19276 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19277 | PyObject *resultobj = 0; | |
19278 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19279 | int result; | |
19280 | void *argp1 = 0 ; | |
19281 | int res1 = 0 ; | |
19282 | PyObject *swig_obj[1] ; | |
19283 | ||
19284 | if (!args) SWIG_fail; | |
19285 | swig_obj[0] = args; | |
19286 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19287 | if (!SWIG_IsOK(res1)) { | |
19288 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19289 | } | |
19290 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19291 | { | |
19292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19293 | result = (int)((wxBookCtrlBase const *)arg1)->GetSelection(); | |
19294 | wxPyEndAllowThreads(__tstate); | |
19295 | if (PyErr_Occurred()) SWIG_fail; | |
19296 | } | |
19297 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19298 | return resultobj; | |
19299 | fail: | |
19300 | return NULL; | |
19301 | } | |
19302 | ||
19303 | ||
19304 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19305 | PyObject *resultobj = 0; | |
19306 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19307 | size_t arg2 ; | |
19308 | wxString *arg3 = 0 ; | |
19309 | bool result; | |
19310 | void *argp1 = 0 ; | |
19311 | int res1 = 0 ; | |
19312 | size_t val2 ; | |
19313 | int ecode2 = 0 ; | |
19314 | bool temp3 = false ; | |
19315 | PyObject * obj0 = 0 ; | |
19316 | PyObject * obj1 = 0 ; | |
19317 | PyObject * obj2 = 0 ; | |
19318 | char * kwnames[] = { | |
19319 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
19320 | }; | |
19321 | ||
19322 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19323 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19324 | if (!SWIG_IsOK(res1)) { | |
19325 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19326 | } | |
19327 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19328 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19329 | if (!SWIG_IsOK(ecode2)) { | |
19330 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'"); | |
19331 | } | |
19332 | arg2 = static_cast< size_t >(val2); | |
19333 | { | |
19334 | arg3 = wxString_in_helper(obj2); | |
19335 | if (arg3 == NULL) SWIG_fail; | |
19336 | temp3 = true; | |
19337 | } | |
19338 | { | |
19339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19340 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
19341 | wxPyEndAllowThreads(__tstate); | |
19342 | if (PyErr_Occurred()) SWIG_fail; | |
19343 | } | |
19344 | { | |
19345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19346 | } | |
19347 | { | |
19348 | if (temp3) | |
19349 | delete arg3; | |
19350 | } | |
19351 | return resultobj; | |
19352 | fail: | |
19353 | { | |
19354 | if (temp3) | |
19355 | delete arg3; | |
19356 | } | |
19357 | return NULL; | |
19358 | } | |
19359 | ||
19360 | ||
19361 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19362 | PyObject *resultobj = 0; | |
19363 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19364 | size_t arg2 ; | |
19365 | wxString result; | |
19366 | void *argp1 = 0 ; | |
19367 | int res1 = 0 ; | |
19368 | size_t val2 ; | |
19369 | int ecode2 = 0 ; | |
19370 | PyObject * obj0 = 0 ; | |
19371 | PyObject * obj1 = 0 ; | |
19372 | char * kwnames[] = { | |
19373 | (char *) "self",(char *) "n", NULL | |
19374 | }; | |
19375 | ||
19376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail; | |
19377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19378 | if (!SWIG_IsOK(res1)) { | |
19379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19380 | } | |
19381 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19382 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19383 | if (!SWIG_IsOK(ecode2)) { | |
19384 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'"); | |
19385 | } | |
19386 | arg2 = static_cast< size_t >(val2); | |
19387 | { | |
19388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19389 | result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2); | |
19390 | wxPyEndAllowThreads(__tstate); | |
19391 | if (PyErr_Occurred()) SWIG_fail; | |
19392 | } | |
19393 | { | |
19394 | #if wxUSE_UNICODE | |
19395 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19396 | #else | |
19397 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19398 | #endif | |
19399 | } | |
19400 | return resultobj; | |
19401 | fail: | |
19402 | return NULL; | |
19403 | } | |
19404 | ||
19405 | ||
19406 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19407 | PyObject *resultobj = 0; | |
19408 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19409 | wxImageList *arg2 = (wxImageList *) 0 ; | |
19410 | void *argp1 = 0 ; | |
19411 | int res1 = 0 ; | |
19412 | void *argp2 = 0 ; | |
19413 | int res2 = 0 ; | |
19414 | PyObject * obj0 = 0 ; | |
19415 | PyObject * obj1 = 0 ; | |
19416 | char * kwnames[] = { | |
19417 | (char *) "self",(char *) "imageList", NULL | |
19418 | }; | |
19419 | ||
19420 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
19421 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19422 | if (!SWIG_IsOK(res1)) { | |
19423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19424 | } | |
19425 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19426 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
19427 | if (!SWIG_IsOK(res2)) { | |
19428 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
19429 | } | |
19430 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
19431 | { | |
19432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19433 | (arg1)->SetImageList(arg2); | |
19434 | wxPyEndAllowThreads(__tstate); | |
19435 | if (PyErr_Occurred()) SWIG_fail; | |
19436 | } | |
19437 | resultobj = SWIG_Py_Void(); | |
19438 | return resultobj; | |
19439 | fail: | |
19440 | return NULL; | |
19441 | } | |
19442 | ||
19443 | ||
19444 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19445 | PyObject *resultobj = 0; | |
19446 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19447 | wxImageList *arg2 = (wxImageList *) 0 ; | |
19448 | void *argp1 = 0 ; | |
19449 | int res1 = 0 ; | |
19450 | int res2 = 0 ; | |
19451 | PyObject * obj0 = 0 ; | |
19452 | PyObject * obj1 = 0 ; | |
19453 | char * kwnames[] = { | |
19454 | (char *) "self",(char *) "imageList", NULL | |
19455 | }; | |
19456 | ||
19457 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
19458 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19459 | if (!SWIG_IsOK(res1)) { | |
19460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19461 | } | |
19462 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19463 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
19464 | if (!SWIG_IsOK(res2)) { | |
19465 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
19466 | } | |
19467 | { | |
19468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19469 | (arg1)->AssignImageList(arg2); | |
19470 | wxPyEndAllowThreads(__tstate); | |
19471 | if (PyErr_Occurred()) SWIG_fail; | |
19472 | } | |
19473 | resultobj = SWIG_Py_Void(); | |
19474 | return resultobj; | |
19475 | fail: | |
19476 | return NULL; | |
d14a1e28 RD |
19477 | } |
19478 | ||
19479 | ||
0085ce49 RD |
19480 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19481 | PyObject *resultobj = 0; | |
19482 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19483 | wxImageList *result = 0 ; | |
19484 | void *argp1 = 0 ; | |
19485 | int res1 = 0 ; | |
19486 | PyObject *swig_obj[1] ; | |
19487 | ||
19488 | if (!args) SWIG_fail; | |
19489 | swig_obj[0] = args; | |
19490 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19491 | if (!SWIG_IsOK(res1)) { | |
19492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19493 | } | |
19494 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19495 | { | |
19496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19497 | result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList(); | |
19498 | wxPyEndAllowThreads(__tstate); | |
19499 | if (PyErr_Occurred()) SWIG_fail; | |
19500 | } | |
3ecece7e RD |
19501 | { |
19502 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
19503 | } | |
0085ce49 RD |
19504 | return resultobj; |
19505 | fail: | |
19506 | return NULL; | |
19507 | } | |
19508 | ||
19509 | ||
19510 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19511 | PyObject *resultobj = 0; | |
19512 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19513 | size_t arg2 ; | |
19514 | int result; | |
19515 | void *argp1 = 0 ; | |
19516 | int res1 = 0 ; | |
19517 | size_t val2 ; | |
19518 | int ecode2 = 0 ; | |
19519 | PyObject * obj0 = 0 ; | |
19520 | PyObject * obj1 = 0 ; | |
19521 | char * kwnames[] = { | |
19522 | (char *) "self",(char *) "n", NULL | |
19523 | }; | |
19524 | ||
19525 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19526 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19527 | if (!SWIG_IsOK(res1)) { | |
19528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19529 | } | |
19530 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19531 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19532 | if (!SWIG_IsOK(ecode2)) { | |
19533 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'"); | |
19534 | } | |
19535 | arg2 = static_cast< size_t >(val2); | |
19536 | { | |
19537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19538 | result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2); | |
19539 | wxPyEndAllowThreads(__tstate); | |
19540 | if (PyErr_Occurred()) SWIG_fail; | |
19541 | } | |
19542 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19543 | return resultobj; | |
19544 | fail: | |
19545 | return NULL; | |
19546 | } | |
19547 | ||
19548 | ||
19549 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19550 | PyObject *resultobj = 0; | |
19551 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19552 | size_t arg2 ; | |
19553 | int arg3 ; | |
19554 | bool result; | |
19555 | void *argp1 = 0 ; | |
19556 | int res1 = 0 ; | |
19557 | size_t val2 ; | |
19558 | int ecode2 = 0 ; | |
19559 | int val3 ; | |
19560 | int ecode3 = 0 ; | |
19561 | PyObject * obj0 = 0 ; | |
19562 | PyObject * obj1 = 0 ; | |
19563 | PyObject * obj2 = 0 ; | |
19564 | char * kwnames[] = { | |
19565 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
19566 | }; | |
19567 | ||
19568 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19569 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19570 | if (!SWIG_IsOK(res1)) { | |
19571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19572 | } | |
19573 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19574 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19575 | if (!SWIG_IsOK(ecode2)) { | |
19576 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'"); | |
19577 | } | |
19578 | arg2 = static_cast< size_t >(val2); | |
19579 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19580 | if (!SWIG_IsOK(ecode3)) { | |
19581 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'"); | |
19582 | } | |
19583 | arg3 = static_cast< int >(val3); | |
19584 | { | |
19585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19586 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
19587 | wxPyEndAllowThreads(__tstate); | |
19588 | if (PyErr_Occurred()) SWIG_fail; | |
19589 | } | |
19590 | { | |
19591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19592 | } | |
19593 | return resultobj; | |
19594 | fail: | |
19595 | return NULL; | |
19596 | } | |
19597 | ||
19598 | ||
19599 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19600 | PyObject *resultobj = 0; | |
19601 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19602 | wxSize *arg2 = 0 ; | |
19603 | void *argp1 = 0 ; | |
19604 | int res1 = 0 ; | |
19605 | wxSize temp2 ; | |
19606 | PyObject * obj0 = 0 ; | |
19607 | PyObject * obj1 = 0 ; | |
19608 | char * kwnames[] = { | |
19609 | (char *) "self",(char *) "size", NULL | |
19610 | }; | |
19611 | ||
19612 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
19613 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19614 | if (!SWIG_IsOK(res1)) { | |
19615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19616 | } | |
19617 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19618 | { | |
19619 | arg2 = &temp2; | |
19620 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19621 | } | |
19622 | { | |
19623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19624 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
19625 | wxPyEndAllowThreads(__tstate); | |
19626 | if (PyErr_Occurred()) SWIG_fail; | |
19627 | } | |
19628 | resultobj = SWIG_Py_Void(); | |
19629 | return resultobj; | |
19630 | fail: | |
19631 | return NULL; | |
19632 | } | |
19633 | ||
19634 | ||
19635 | SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19636 | PyObject *resultobj = 0; | |
19637 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19638 | wxSize *arg2 = 0 ; | |
19639 | wxSize result; | |
19640 | void *argp1 = 0 ; | |
19641 | int res1 = 0 ; | |
19642 | wxSize temp2 ; | |
19643 | PyObject * obj0 = 0 ; | |
19644 | PyObject * obj1 = 0 ; | |
19645 | char * kwnames[] = { | |
19646 | (char *) "self",(char *) "sizePage", NULL | |
19647 | }; | |
19648 | ||
19649 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19650 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19651 | if (!SWIG_IsOK(res1)) { | |
19652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19653 | } | |
19654 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19655 | { | |
19656 | arg2 = &temp2; | |
19657 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19658 | } | |
19659 | { | |
19660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19661 | result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
19662 | wxPyEndAllowThreads(__tstate); | |
19663 | if (PyErr_Occurred()) SWIG_fail; | |
19664 | } | |
19665 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
19666 | return resultobj; | |
19667 | fail: | |
19668 | return NULL; | |
d14a1e28 RD |
19669 | } |
19670 | ||
19671 | ||
0085ce49 RD |
19672 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19673 | PyObject *resultobj = 0; | |
19674 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
e9d6f3a4 | 19675 | unsigned int result; |
0085ce49 RD |
19676 | void *argp1 = 0 ; |
19677 | int res1 = 0 ; | |
19678 | PyObject *swig_obj[1] ; | |
19679 | ||
19680 | if (!args) SWIG_fail; | |
19681 | swig_obj[0] = args; | |
19682 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19683 | if (!SWIG_IsOK(res1)) { | |
19684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19685 | } | |
19686 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19687 | { | |
19688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e9d6f3a4 | 19689 | result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder(); |
0085ce49 RD |
19690 | wxPyEndAllowThreads(__tstate); |
19691 | if (PyErr_Occurred()) SWIG_fail; | |
19692 | } | |
e9d6f3a4 | 19693 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
0085ce49 RD |
19694 | return resultobj; |
19695 | fail: | |
19696 | return NULL; | |
19697 | } | |
19698 | ||
19699 | ||
19700 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19701 | PyObject *resultobj = 0; | |
19702 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
e9d6f3a4 | 19703 | unsigned int arg2 ; |
0085ce49 RD |
19704 | void *argp1 = 0 ; |
19705 | int res1 = 0 ; | |
e9d6f3a4 | 19706 | unsigned int val2 ; |
0085ce49 RD |
19707 | int ecode2 = 0 ; |
19708 | PyObject * obj0 = 0 ; | |
19709 | PyObject * obj1 = 0 ; | |
19710 | char * kwnames[] = { | |
19711 | (char *) "self",(char *) "internalBorder", NULL | |
19712 | }; | |
19713 | ||
19714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail; | |
19715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19716 | if (!SWIG_IsOK(res1)) { | |
19717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19718 | } | |
19719 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
e9d6f3a4 | 19720 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
0085ce49 | 19721 | if (!SWIG_IsOK(ecode2)) { |
e9d6f3a4 | 19722 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'"); |
0085ce49 | 19723 | } |
e9d6f3a4 | 19724 | arg2 = static_cast< unsigned int >(val2); |
0085ce49 RD |
19725 | { |
19726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19727 | (arg1)->SetInternalBorder(arg2); | |
19728 | wxPyEndAllowThreads(__tstate); | |
19729 | if (PyErr_Occurred()) SWIG_fail; | |
19730 | } | |
19731 | resultobj = SWIG_Py_Void(); | |
19732 | return resultobj; | |
19733 | fail: | |
19734 | return NULL; | |
b2dc1044 RD |
19735 | } |
19736 | ||
19737 | ||
0085ce49 RD |
19738 | SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19739 | PyObject *resultobj = 0; | |
19740 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19741 | bool result; | |
19742 | void *argp1 = 0 ; | |
19743 | int res1 = 0 ; | |
19744 | PyObject *swig_obj[1] ; | |
19745 | ||
19746 | if (!args) SWIG_fail; | |
19747 | swig_obj[0] = args; | |
19748 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19749 | if (!SWIG_IsOK(res1)) { | |
19750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19751 | } | |
19752 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19753 | { | |
19754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19755 | result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical(); | |
19756 | wxPyEndAllowThreads(__tstate); | |
19757 | if (PyErr_Occurred()) SWIG_fail; | |
19758 | } | |
19759 | { | |
19760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19761 | } | |
19762 | return resultobj; | |
19763 | fail: | |
19764 | return NULL; | |
19765 | } | |
19766 | ||
19767 | ||
e9d6f3a4 RD |
19768 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19769 | PyObject *resultobj = 0; | |
19770 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19771 | int arg2 ; | |
19772 | void *argp1 = 0 ; | |
19773 | int res1 = 0 ; | |
19774 | int val2 ; | |
19775 | int ecode2 = 0 ; | |
19776 | PyObject * obj0 = 0 ; | |
19777 | PyObject * obj1 = 0 ; | |
19778 | char * kwnames[] = { | |
19779 | (char *) "self",(char *) "margin", NULL | |
19780 | }; | |
19781 | ||
19782 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail; | |
19783 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19784 | if (!SWIG_IsOK(res1)) { | |
19785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19786 | } | |
19787 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19788 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19789 | if (!SWIG_IsOK(ecode2)) { | |
19790 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'"); | |
19791 | } | |
19792 | arg2 = static_cast< int >(val2); | |
19793 | { | |
19794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19795 | (arg1)->SetControlMargin(arg2); | |
19796 | wxPyEndAllowThreads(__tstate); | |
19797 | if (PyErr_Occurred()) SWIG_fail; | |
19798 | } | |
19799 | resultobj = SWIG_Py_Void(); | |
19800 | return resultobj; | |
19801 | fail: | |
19802 | return NULL; | |
19803 | } | |
19804 | ||
19805 | ||
19806 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19807 | PyObject *resultobj = 0; | |
19808 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19809 | int result; | |
19810 | void *argp1 = 0 ; | |
19811 | int res1 = 0 ; | |
19812 | PyObject *swig_obj[1] ; | |
19813 | ||
19814 | if (!args) SWIG_fail; | |
19815 | swig_obj[0] = args; | |
19816 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19817 | if (!SWIG_IsOK(res1)) { | |
19818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19819 | } | |
19820 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19821 | { | |
19822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19823 | result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin(); | |
19824 | wxPyEndAllowThreads(__tstate); | |
19825 | if (PyErr_Occurred()) SWIG_fail; | |
19826 | } | |
19827 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19828 | return resultobj; | |
19829 | fail: | |
19830 | return NULL; | |
19831 | } | |
19832 | ||
19833 | ||
0085ce49 RD |
19834 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19835 | PyObject *resultobj = 0; | |
19836 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19837 | bool arg2 ; | |
19838 | void *argp1 = 0 ; | |
19839 | int res1 = 0 ; | |
19840 | bool val2 ; | |
19841 | int ecode2 = 0 ; | |
19842 | PyObject * obj0 = 0 ; | |
19843 | PyObject * obj1 = 0 ; | |
19844 | char * kwnames[] = { | |
19845 | (char *) "self",(char *) "fit", NULL | |
19846 | }; | |
19847 | ||
19848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19849 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19850 | if (!SWIG_IsOK(res1)) { | |
19851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19852 | } | |
19853 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19854 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19855 | if (!SWIG_IsOK(ecode2)) { | |
19856 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'"); | |
19857 | } | |
19858 | arg2 = static_cast< bool >(val2); | |
19859 | { | |
19860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19861 | (arg1)->SetFitToCurrentPage(arg2); | |
19862 | wxPyEndAllowThreads(__tstate); | |
19863 | if (PyErr_Occurred()) SWIG_fail; | |
19864 | } | |
19865 | resultobj = SWIG_Py_Void(); | |
19866 | return resultobj; | |
19867 | fail: | |
19868 | return NULL; | |
d14a1e28 RD |
19869 | } |
19870 | ||
19871 | ||
0085ce49 RD |
19872 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19873 | PyObject *resultobj = 0; | |
19874 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19875 | bool result; | |
19876 | void *argp1 = 0 ; | |
19877 | int res1 = 0 ; | |
19878 | PyObject *swig_obj[1] ; | |
19879 | ||
19880 | if (!args) SWIG_fail; | |
19881 | swig_obj[0] = args; | |
19882 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19883 | if (!SWIG_IsOK(res1)) { | |
19884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19885 | } | |
19886 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19887 | { | |
19888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19889 | result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage(); | |
19890 | wxPyEndAllowThreads(__tstate); | |
19891 | if (PyErr_Occurred()) SWIG_fail; | |
19892 | } | |
19893 | { | |
19894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19895 | } | |
19896 | return resultobj; | |
19897 | fail: | |
19898 | return NULL; | |
19899 | } | |
19900 | ||
19901 | ||
e9d6f3a4 RD |
19902 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19903 | PyObject *resultobj = 0; | |
19904 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19905 | wxSizer *result = 0 ; | |
19906 | void *argp1 = 0 ; | |
19907 | int res1 = 0 ; | |
19908 | PyObject *swig_obj[1] ; | |
19909 | ||
19910 | if (!args) SWIG_fail; | |
19911 | swig_obj[0] = args; | |
19912 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19913 | if (!SWIG_IsOK(res1)) { | |
19914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
19915 | } | |
19916 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19917 | { | |
19918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19919 | result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer(); | |
19920 | wxPyEndAllowThreads(__tstate); | |
19921 | if (PyErr_Occurred()) SWIG_fail; | |
19922 | } | |
19923 | { | |
19924 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
19925 | } | |
19926 | return resultobj; | |
19927 | fail: | |
19928 | return NULL; | |
19929 | } | |
19930 | ||
19931 | ||
0085ce49 RD |
19932 | SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19933 | PyObject *resultobj = 0; | |
19934 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19935 | size_t arg2 ; | |
19936 | bool result; | |
19937 | void *argp1 = 0 ; | |
19938 | int res1 = 0 ; | |
19939 | size_t val2 ; | |
19940 | int ecode2 = 0 ; | |
19941 | PyObject * obj0 = 0 ; | |
19942 | PyObject * obj1 = 0 ; | |
19943 | char * kwnames[] = { | |
19944 | (char *) "self",(char *) "n", NULL | |
19945 | }; | |
19946 | ||
19947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19948 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19949 | if (!SWIG_IsOK(res1)) { | |
19950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19951 | } | |
19952 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19953 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19954 | if (!SWIG_IsOK(ecode2)) { | |
19955 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'"); | |
19956 | } | |
19957 | arg2 = static_cast< size_t >(val2); | |
19958 | { | |
19959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19960 | result = (bool)(arg1)->DeletePage(arg2); | |
19961 | wxPyEndAllowThreads(__tstate); | |
19962 | if (PyErr_Occurred()) SWIG_fail; | |
19963 | } | |
19964 | { | |
19965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19966 | } | |
19967 | return resultobj; | |
19968 | fail: | |
19969 | return NULL; | |
19970 | } | |
19971 | ||
19972 | ||
19973 | SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19974 | PyObject *resultobj = 0; | |
19975 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
19976 | size_t arg2 ; | |
19977 | bool result; | |
19978 | void *argp1 = 0 ; | |
19979 | int res1 = 0 ; | |
19980 | size_t val2 ; | |
19981 | int ecode2 = 0 ; | |
19982 | PyObject * obj0 = 0 ; | |
19983 | PyObject * obj1 = 0 ; | |
19984 | char * kwnames[] = { | |
19985 | (char *) "self",(char *) "n", NULL | |
19986 | }; | |
19987 | ||
19988 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail; | |
19989 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
19990 | if (!SWIG_IsOK(res1)) { | |
19991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
19992 | } | |
19993 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
19994 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
19995 | if (!SWIG_IsOK(ecode2)) { | |
19996 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'"); | |
19997 | } | |
19998 | arg2 = static_cast< size_t >(val2); | |
19999 | { | |
20000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20001 | result = (bool)(arg1)->RemovePage(arg2); | |
20002 | wxPyEndAllowThreads(__tstate); | |
20003 | if (PyErr_Occurred()) SWIG_fail; | |
20004 | } | |
20005 | { | |
20006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20007 | } | |
20008 | return resultobj; | |
20009 | fail: | |
20010 | return NULL; | |
d14a1e28 RD |
20011 | } |
20012 | ||
20013 | ||
0085ce49 RD |
20014 | SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20015 | PyObject *resultobj = 0; | |
20016 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20017 | bool result; | |
20018 | void *argp1 = 0 ; | |
20019 | int res1 = 0 ; | |
20020 | PyObject *swig_obj[1] ; | |
20021 | ||
20022 | if (!args) SWIG_fail; | |
20023 | swig_obj[0] = args; | |
20024 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20025 | if (!SWIG_IsOK(res1)) { | |
20026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20027 | } | |
20028 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20029 | { | |
20030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20031 | result = (bool)(arg1)->DeleteAllPages(); | |
20032 | wxPyEndAllowThreads(__tstate); | |
20033 | if (PyErr_Occurred()) SWIG_fail; | |
20034 | } | |
20035 | { | |
20036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20037 | } | |
20038 | return resultobj; | |
20039 | fail: | |
20040 | return NULL; | |
20041 | } | |
20042 | ||
20043 | ||
20044 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20045 | PyObject *resultobj = 0; | |
20046 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20047 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20048 | wxString *arg3 = 0 ; | |
20049 | bool arg4 = (bool) false ; | |
20050 | int arg5 = (int) -1 ; | |
20051 | bool result; | |
20052 | void *argp1 = 0 ; | |
20053 | int res1 = 0 ; | |
20054 | void *argp2 = 0 ; | |
20055 | int res2 = 0 ; | |
20056 | bool temp3 = false ; | |
20057 | bool val4 ; | |
20058 | int ecode4 = 0 ; | |
20059 | int val5 ; | |
20060 | int ecode5 = 0 ; | |
20061 | PyObject * obj0 = 0 ; | |
20062 | PyObject * obj1 = 0 ; | |
20063 | PyObject * obj2 = 0 ; | |
20064 | PyObject * obj3 = 0 ; | |
20065 | PyObject * obj4 = 0 ; | |
20066 | char * kwnames[] = { | |
20067 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
20068 | }; | |
20069 | ||
20070 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20071 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20072 | if (!SWIG_IsOK(res1)) { | |
20073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20074 | } | |
20075 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20076 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20077 | if (!SWIG_IsOK(res2)) { | |
20078 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20079 | } | |
20080 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20081 | { | |
20082 | arg3 = wxString_in_helper(obj2); | |
20083 | if (arg3 == NULL) SWIG_fail; | |
20084 | temp3 = true; | |
20085 | } | |
20086 | if (obj3) { | |
20087 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
20088 | if (!SWIG_IsOK(ecode4)) { | |
20089 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'"); | |
20090 | } | |
20091 | arg4 = static_cast< bool >(val4); | |
20092 | } | |
20093 | if (obj4) { | |
20094 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20095 | if (!SWIG_IsOK(ecode5)) { | |
20096 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'"); | |
20097 | } | |
20098 | arg5 = static_cast< int >(val5); | |
20099 | } | |
20100 | { | |
20101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20102 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
20103 | wxPyEndAllowThreads(__tstate); | |
20104 | if (PyErr_Occurred()) SWIG_fail; | |
20105 | } | |
20106 | { | |
20107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20108 | } | |
20109 | { | |
20110 | if (temp3) | |
20111 | delete arg3; | |
20112 | } | |
20113 | return resultobj; | |
20114 | fail: | |
20115 | { | |
20116 | if (temp3) | |
20117 | delete arg3; | |
20118 | } | |
20119 | return NULL; | |
20120 | } | |
20121 | ||
20122 | ||
20123 | SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20124 | PyObject *resultobj = 0; | |
20125 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20126 | size_t arg2 ; | |
20127 | wxWindow *arg3 = (wxWindow *) 0 ; | |
20128 | wxString *arg4 = 0 ; | |
20129 | bool arg5 = (bool) false ; | |
20130 | int arg6 = (int) -1 ; | |
20131 | bool result; | |
20132 | void *argp1 = 0 ; | |
20133 | int res1 = 0 ; | |
20134 | size_t val2 ; | |
20135 | int ecode2 = 0 ; | |
20136 | void *argp3 = 0 ; | |
20137 | int res3 = 0 ; | |
20138 | bool temp4 = false ; | |
20139 | bool val5 ; | |
20140 | int ecode5 = 0 ; | |
20141 | int val6 ; | |
20142 | int ecode6 = 0 ; | |
20143 | PyObject * obj0 = 0 ; | |
20144 | PyObject * obj1 = 0 ; | |
20145 | PyObject * obj2 = 0 ; | |
20146 | PyObject * obj3 = 0 ; | |
20147 | PyObject * obj4 = 0 ; | |
20148 | PyObject * obj5 = 0 ; | |
20149 | char * kwnames[] = { | |
20150 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
20151 | }; | |
20152 | ||
20153 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20154 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20155 | if (!SWIG_IsOK(res1)) { | |
20156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20157 | } | |
20158 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20159 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
20160 | if (!SWIG_IsOK(ecode2)) { | |
20161 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'"); | |
20162 | } | |
20163 | arg2 = static_cast< size_t >(val2); | |
20164 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20165 | if (!SWIG_IsOK(res3)) { | |
20166 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
20167 | } | |
20168 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
20169 | { | |
20170 | arg4 = wxString_in_helper(obj3); | |
20171 | if (arg4 == NULL) SWIG_fail; | |
20172 | temp4 = true; | |
20173 | } | |
20174 | if (obj4) { | |
20175 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
20176 | if (!SWIG_IsOK(ecode5)) { | |
20177 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'"); | |
20178 | } | |
20179 | arg5 = static_cast< bool >(val5); | |
20180 | } | |
20181 | if (obj5) { | |
20182 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20183 | if (!SWIG_IsOK(ecode6)) { | |
20184 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'"); | |
20185 | } | |
20186 | arg6 = static_cast< int >(val6); | |
20187 | } | |
20188 | { | |
20189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20190 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
20191 | wxPyEndAllowThreads(__tstate); | |
20192 | if (PyErr_Occurred()) SWIG_fail; | |
20193 | } | |
20194 | { | |
20195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20196 | } | |
20197 | { | |
20198 | if (temp4) | |
20199 | delete arg4; | |
20200 | } | |
20201 | return resultobj; | |
20202 | fail: | |
20203 | { | |
20204 | if (temp4) | |
20205 | delete arg4; | |
20206 | } | |
20207 | return NULL; | |
20208 | } | |
20209 | ||
20210 | ||
20211 | SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20212 | PyObject *resultobj = 0; | |
20213 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20214 | size_t arg2 ; | |
20215 | int result; | |
20216 | void *argp1 = 0 ; | |
20217 | int res1 = 0 ; | |
20218 | size_t val2 ; | |
20219 | int ecode2 = 0 ; | |
20220 | PyObject * obj0 = 0 ; | |
20221 | PyObject * obj1 = 0 ; | |
20222 | char * kwnames[] = { | |
20223 | (char *) "self",(char *) "n", NULL | |
20224 | }; | |
20225 | ||
20226 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20227 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20228 | if (!SWIG_IsOK(res1)) { | |
20229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20230 | } | |
20231 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20232 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
20233 | if (!SWIG_IsOK(ecode2)) { | |
20234 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'"); | |
20235 | } | |
20236 | arg2 = static_cast< size_t >(val2); | |
20237 | { | |
20238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20239 | result = (int)(arg1)->SetSelection(arg2); | |
20240 | wxPyEndAllowThreads(__tstate); | |
20241 | if (PyErr_Occurred()) SWIG_fail; | |
20242 | } | |
20243 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20244 | return resultobj; | |
20245 | fail: | |
20246 | return NULL; | |
20247 | } | |
20248 | ||
20249 | ||
b39fe951 RD |
20250 | SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20251 | PyObject *resultobj = 0; | |
20252 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20253 | size_t arg2 ; | |
20254 | int result; | |
20255 | void *argp1 = 0 ; | |
20256 | int res1 = 0 ; | |
20257 | size_t val2 ; | |
20258 | int ecode2 = 0 ; | |
20259 | PyObject * obj0 = 0 ; | |
20260 | PyObject * obj1 = 0 ; | |
20261 | char * kwnames[] = { | |
20262 | (char *) "self",(char *) "n", NULL | |
20263 | }; | |
20264 | ||
20265 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20266 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20267 | if (!SWIG_IsOK(res1)) { | |
20268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20269 | } | |
20270 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20271 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
20272 | if (!SWIG_IsOK(ecode2)) { | |
20273 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'"); | |
20274 | } | |
20275 | arg2 = static_cast< size_t >(val2); | |
20276 | { | |
20277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20278 | result = (int)(arg1)->ChangeSelection(arg2); | |
20279 | wxPyEndAllowThreads(__tstate); | |
20280 | if (PyErr_Occurred()) SWIG_fail; | |
20281 | } | |
20282 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20283 | return resultobj; | |
20284 | fail: | |
20285 | return NULL; | |
20286 | } | |
20287 | ||
20288 | ||
0085ce49 RD |
20289 | SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20290 | PyObject *resultobj = 0; | |
20291 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20292 | bool arg2 = (bool) true ; | |
20293 | void *argp1 = 0 ; | |
20294 | int res1 = 0 ; | |
20295 | bool val2 ; | |
20296 | int ecode2 = 0 ; | |
20297 | PyObject * obj0 = 0 ; | |
20298 | PyObject * obj1 = 0 ; | |
20299 | char * kwnames[] = { | |
20300 | (char *) "self",(char *) "forward", NULL | |
20301 | }; | |
20302 | ||
20303 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20304 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20305 | if (!SWIG_IsOK(res1)) { | |
20306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'"); | |
20307 | } | |
20308 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20309 | if (obj1) { | |
20310 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
20311 | if (!SWIG_IsOK(ecode2)) { | |
20312 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'"); | |
20313 | } | |
20314 | arg2 = static_cast< bool >(val2); | |
20315 | } | |
20316 | { | |
20317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20318 | (arg1)->AdvanceSelection(arg2); | |
20319 | wxPyEndAllowThreads(__tstate); | |
20320 | if (PyErr_Occurred()) SWIG_fail; | |
20321 | } | |
20322 | resultobj = SWIG_Py_Void(); | |
20323 | return resultobj; | |
20324 | fail: | |
20325 | return NULL; | |
20326 | } | |
20327 | ||
20328 | ||
704eda0c RD |
20329 | SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20330 | PyObject *resultobj = 0; | |
20331 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
20332 | wxPoint *arg2 = 0 ; | |
20333 | long *arg3 = (long *) 0 ; | |
20334 | int result; | |
20335 | void *argp1 = 0 ; | |
20336 | int res1 = 0 ; | |
20337 | wxPoint temp2 ; | |
20338 | long temp3 ; | |
20339 | int res3 = SWIG_TMPOBJ ; | |
20340 | PyObject * obj0 = 0 ; | |
20341 | PyObject * obj1 = 0 ; | |
20342 | char * kwnames[] = { | |
20343 | (char *) "self",(char *) "pt", NULL | |
20344 | }; | |
20345 | ||
20346 | arg3 = &temp3; | |
20347 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
20348 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 ); | |
20349 | if (!SWIG_IsOK(res1)) { | |
20350 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'"); | |
20351 | } | |
20352 | arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1); | |
20353 | { | |
20354 | arg2 = &temp2; | |
20355 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20356 | } | |
20357 | { | |
20358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20359 | result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
20360 | wxPyEndAllowThreads(__tstate); | |
20361 | if (PyErr_Occurred()) SWIG_fail; | |
20362 | } | |
20363 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20364 | if (SWIG_IsTmpObj(res3)) { | |
20365 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
20366 | } else { | |
20367 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20368 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
20369 | } | |
20370 | return resultobj; | |
20371 | fail: | |
20372 | return NULL; | |
20373 | } | |
20374 | ||
20375 | ||
0085ce49 RD |
20376 | SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20377 | PyObject *resultobj = 0; | |
20378 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
20379 | SwigValueWrapper<wxVisualAttributes > result; | |
20380 | int val1 ; | |
20381 | int ecode1 = 0 ; | |
20382 | PyObject * obj0 = 0 ; | |
20383 | char * kwnames[] = { | |
20384 | (char *) "variant", NULL | |
20385 | }; | |
20386 | ||
20387 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
20388 | if (obj0) { | |
20389 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20390 | if (!SWIG_IsOK(ecode1)) { | |
20391 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
20392 | } | |
20393 | arg1 = static_cast< wxWindowVariant >(val1); | |
20394 | } | |
20395 | { | |
20396 | if (!wxPyCheckForApp()) SWIG_fail; | |
20397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20398 | result = wxBookCtrlBase::GetClassDefaultAttributes(arg1); | |
20399 | wxPyEndAllowThreads(__tstate); | |
20400 | if (PyErr_Occurred()) SWIG_fail; | |
20401 | } | |
20402 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
20403 | return resultobj; | |
20404 | fail: | |
20405 | return NULL; | |
20406 | } | |
20407 | ||
20408 | ||
20409 | SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20410 | PyObject *obj; | |
20411 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20412 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj)); | |
20413 | return SWIG_Py_Void(); | |
20414 | } | |
20415 | ||
20416 | SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20417 | PyObject *resultobj = 0; | |
20418 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20419 | int arg2 = (int) 0 ; | |
20420 | int arg3 = (int) -1 ; | |
20421 | int arg4 = (int) -1 ; | |
20422 | wxBookCtrlBaseEvent *result = 0 ; | |
20423 | int val1 ; | |
20424 | int ecode1 = 0 ; | |
20425 | int val2 ; | |
20426 | int ecode2 = 0 ; | |
20427 | int val3 ; | |
20428 | int ecode3 = 0 ; | |
20429 | int val4 ; | |
20430 | int ecode4 = 0 ; | |
20431 | PyObject * obj0 = 0 ; | |
20432 | PyObject * obj1 = 0 ; | |
20433 | PyObject * obj2 = 0 ; | |
20434 | PyObject * obj3 = 0 ; | |
20435 | char * kwnames[] = { | |
20436 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
20437 | }; | |
20438 | ||
20439 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20440 | if (obj0) { | |
20441 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20442 | if (!SWIG_IsOK(ecode1)) { | |
20443 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
20444 | } | |
20445 | arg1 = static_cast< wxEventType >(val1); | |
20446 | } | |
20447 | if (obj1) { | |
20448 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20449 | if (!SWIG_IsOK(ecode2)) { | |
20450 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'"); | |
20451 | } | |
20452 | arg2 = static_cast< int >(val2); | |
20453 | } | |
20454 | if (obj2) { | |
20455 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20456 | if (!SWIG_IsOK(ecode3)) { | |
20457 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'"); | |
20458 | } | |
20459 | arg3 = static_cast< int >(val3); | |
20460 | } | |
20461 | if (obj3) { | |
20462 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20463 | if (!SWIG_IsOK(ecode4)) { | |
20464 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'"); | |
20465 | } | |
20466 | arg4 = static_cast< int >(val4); | |
20467 | } | |
20468 | { | |
20469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20470 | result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4); | |
20471 | wxPyEndAllowThreads(__tstate); | |
20472 | if (PyErr_Occurred()) SWIG_fail; | |
20473 | } | |
20474 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 ); | |
20475 | return resultobj; | |
20476 | fail: | |
20477 | return NULL; | |
d14a1e28 RD |
20478 | } |
20479 | ||
20480 | ||
0085ce49 RD |
20481 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20482 | PyObject *resultobj = 0; | |
20483 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20484 | int result; | |
20485 | void *argp1 = 0 ; | |
20486 | int res1 = 0 ; | |
20487 | PyObject *swig_obj[1] ; | |
20488 | ||
20489 | if (!args) SWIG_fail; | |
20490 | swig_obj[0] = args; | |
20491 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20492 | if (!SWIG_IsOK(res1)) { | |
20493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'"); | |
20494 | } | |
20495 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20496 | { | |
20497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20498 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection(); | |
20499 | wxPyEndAllowThreads(__tstate); | |
20500 | if (PyErr_Occurred()) SWIG_fail; | |
20501 | } | |
20502 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20503 | return resultobj; | |
20504 | fail: | |
20505 | return NULL; | |
20506 | } | |
20507 | ||
20508 | ||
20509 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20510 | PyObject *resultobj = 0; | |
20511 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20512 | int arg2 ; | |
20513 | void *argp1 = 0 ; | |
20514 | int res1 = 0 ; | |
20515 | int val2 ; | |
20516 | int ecode2 = 0 ; | |
20517 | PyObject * obj0 = 0 ; | |
20518 | PyObject * obj1 = 0 ; | |
20519 | char * kwnames[] = { | |
20520 | (char *) "self",(char *) "nSel", NULL | |
20521 | }; | |
20522 | ||
20523 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20524 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20525 | if (!SWIG_IsOK(res1)) { | |
20526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'"); | |
20527 | } | |
20528 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20529 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20530 | if (!SWIG_IsOK(ecode2)) { | |
20531 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
20532 | } | |
20533 | arg2 = static_cast< int >(val2); | |
20534 | { | |
20535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20536 | (arg1)->SetSelection(arg2); | |
20537 | wxPyEndAllowThreads(__tstate); | |
20538 | if (PyErr_Occurred()) SWIG_fail; | |
20539 | } | |
20540 | resultobj = SWIG_Py_Void(); | |
20541 | return resultobj; | |
20542 | fail: | |
20543 | return NULL; | |
d14a1e28 RD |
20544 | } |
20545 | ||
20546 | ||
0085ce49 RD |
20547 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20548 | PyObject *resultobj = 0; | |
20549 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20550 | int result; | |
20551 | void *argp1 = 0 ; | |
20552 | int res1 = 0 ; | |
20553 | PyObject *swig_obj[1] ; | |
20554 | ||
20555 | if (!args) SWIG_fail; | |
20556 | swig_obj[0] = args; | |
20557 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20558 | if (!SWIG_IsOK(res1)) { | |
20559 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'"); | |
20560 | } | |
20561 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20562 | { | |
20563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20564 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection(); | |
20565 | wxPyEndAllowThreads(__tstate); | |
20566 | if (PyErr_Occurred()) SWIG_fail; | |
20567 | } | |
20568 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20569 | return resultobj; | |
20570 | fail: | |
20571 | return NULL; | |
20572 | } | |
20573 | ||
20574 | ||
20575 | SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20576 | PyObject *resultobj = 0; | |
20577 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
20578 | int arg2 ; | |
20579 | void *argp1 = 0 ; | |
20580 | int res1 = 0 ; | |
20581 | int val2 ; | |
20582 | int ecode2 = 0 ; | |
20583 | PyObject * obj0 = 0 ; | |
20584 | PyObject * obj1 = 0 ; | |
20585 | char * kwnames[] = { | |
20586 | (char *) "self",(char *) "nOldSel", NULL | |
20587 | }; | |
20588 | ||
20589 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
20590 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 ); | |
20591 | if (!SWIG_IsOK(res1)) { | |
20592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'"); | |
20593 | } | |
20594 | arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1); | |
20595 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20596 | if (!SWIG_IsOK(ecode2)) { | |
20597 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'"); | |
20598 | } | |
20599 | arg2 = static_cast< int >(val2); | |
20600 | { | |
20601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20602 | (arg1)->SetOldSelection(arg2); | |
20603 | wxPyEndAllowThreads(__tstate); | |
20604 | if (PyErr_Occurred()) SWIG_fail; | |
20605 | } | |
20606 | resultobj = SWIG_Py_Void(); | |
20607 | return resultobj; | |
20608 | fail: | |
20609 | return NULL; | |
20610 | } | |
20611 | ||
20612 | ||
20613 | SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20614 | PyObject *obj; | |
20615 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20616 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj)); | |
20617 | return SWIG_Py_Void(); | |
20618 | } | |
20619 | ||
20620 | SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20621 | return SWIG_Python_InitShadowInstance(args); | |
20622 | } | |
20623 | ||
20624 | SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20625 | PyObject *resultobj = 0; | |
20626 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20627 | int arg2 = (int) -1 ; | |
20628 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20629 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20630 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20631 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20632 | long arg5 = (long) 0 ; | |
20633 | wxString const &arg6_defvalue = wxPyNotebookNameStr ; | |
20634 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20635 | wxNotebook *result = 0 ; | |
20636 | void *argp1 = 0 ; | |
20637 | int res1 = 0 ; | |
20638 | int val2 ; | |
20639 | int ecode2 = 0 ; | |
20640 | wxPoint temp3 ; | |
20641 | wxSize temp4 ; | |
20642 | long val5 ; | |
20643 | int ecode5 = 0 ; | |
20644 | bool temp6 = false ; | |
20645 | PyObject * obj0 = 0 ; | |
20646 | PyObject * obj1 = 0 ; | |
20647 | PyObject * obj2 = 0 ; | |
20648 | PyObject * obj3 = 0 ; | |
20649 | PyObject * obj4 = 0 ; | |
20650 | PyObject * obj5 = 0 ; | |
20651 | char * kwnames[] = { | |
20652 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20653 | }; | |
20654 | ||
20655 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20656 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20657 | if (!SWIG_IsOK(res1)) { | |
20658 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20659 | } | |
20660 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20661 | if (obj1) { | |
20662 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20663 | if (!SWIG_IsOK(ecode2)) { | |
20664 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'"); | |
20665 | } | |
20666 | arg2 = static_cast< int >(val2); | |
20667 | } | |
20668 | if (obj2) { | |
093d3ff1 | 20669 | { |
0085ce49 RD |
20670 | arg3 = &temp3; |
20671 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 20672 | } |
0085ce49 RD |
20673 | } |
20674 | if (obj3) { | |
d14a1e28 | 20675 | { |
0085ce49 RD |
20676 | arg4 = &temp4; |
20677 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 20678 | } |
0085ce49 RD |
20679 | } |
20680 | if (obj4) { | |
20681 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
20682 | if (!SWIG_IsOK(ecode5)) { | |
20683 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'"); | |
20684 | } | |
20685 | arg5 = static_cast< long >(val5); | |
20686 | } | |
20687 | if (obj5) { | |
093d3ff1 | 20688 | { |
0085ce49 RD |
20689 | arg6 = wxString_in_helper(obj5); |
20690 | if (arg6 == NULL) SWIG_fail; | |
20691 | temp6 = true; | |
093d3ff1 | 20692 | } |
0085ce49 RD |
20693 | } |
20694 | { | |
20695 | if (!wxPyCheckForApp()) SWIG_fail; | |
20696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20697 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20698 | wxPyEndAllowThreads(__tstate); | |
20699 | if (PyErr_Occurred()) SWIG_fail; | |
20700 | } | |
20701 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 ); | |
20702 | { | |
20703 | if (temp6) | |
20704 | delete arg6; | |
20705 | } | |
20706 | return resultobj; | |
20707 | fail: | |
20708 | { | |
20709 | if (temp6) | |
20710 | delete arg6; | |
20711 | } | |
20712 | return NULL; | |
d14a1e28 RD |
20713 | } |
20714 | ||
20715 | ||
0085ce49 RD |
20716 | SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20717 | PyObject *resultobj = 0; | |
20718 | wxNotebook *result = 0 ; | |
20719 | ||
20720 | if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail; | |
20721 | { | |
20722 | if (!wxPyCheckForApp()) SWIG_fail; | |
20723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20724 | result = (wxNotebook *)new wxNotebook(); | |
20725 | wxPyEndAllowThreads(__tstate); | |
20726 | if (PyErr_Occurred()) SWIG_fail; | |
20727 | } | |
20728 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 ); | |
20729 | return resultobj; | |
20730 | fail: | |
20731 | return NULL; | |
20732 | } | |
20733 | ||
20734 | ||
20735 | SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20736 | PyObject *resultobj = 0; | |
20737 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20738 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20739 | int arg3 = (int) -1 ; | |
20740 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20741 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20742 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20743 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20744 | long arg6 = (long) 0 ; | |
20745 | wxString const &arg7_defvalue = wxPyNotebookNameStr ; | |
20746 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20747 | bool result; | |
20748 | void *argp1 = 0 ; | |
20749 | int res1 = 0 ; | |
20750 | void *argp2 = 0 ; | |
20751 | int res2 = 0 ; | |
20752 | int val3 ; | |
20753 | int ecode3 = 0 ; | |
20754 | wxPoint temp4 ; | |
20755 | wxSize temp5 ; | |
20756 | long val6 ; | |
20757 | int ecode6 = 0 ; | |
20758 | bool temp7 = false ; | |
20759 | PyObject * obj0 = 0 ; | |
20760 | PyObject * obj1 = 0 ; | |
20761 | PyObject * obj2 = 0 ; | |
20762 | PyObject * obj3 = 0 ; | |
20763 | PyObject * obj4 = 0 ; | |
20764 | PyObject * obj5 = 0 ; | |
20765 | PyObject * obj6 = 0 ; | |
20766 | char * kwnames[] = { | |
20767 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20768 | }; | |
20769 | ||
20770 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20771 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20772 | if (!SWIG_IsOK(res1)) { | |
20773 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20774 | } | |
20775 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20776 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20777 | if (!SWIG_IsOK(res2)) { | |
20778 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20779 | } | |
20780 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20781 | if (obj2) { | |
20782 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20783 | if (!SWIG_IsOK(ecode3)) { | |
20784 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
20785 | } | |
20786 | arg3 = static_cast< int >(val3); | |
20787 | } | |
20788 | if (obj3) { | |
093d3ff1 | 20789 | { |
0085ce49 RD |
20790 | arg4 = &temp4; |
20791 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 20792 | } |
0085ce49 RD |
20793 | } |
20794 | if (obj4) { | |
d14a1e28 | 20795 | { |
0085ce49 RD |
20796 | arg5 = &temp5; |
20797 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 20798 | } |
0085ce49 RD |
20799 | } |
20800 | if (obj5) { | |
20801 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20802 | if (!SWIG_IsOK(ecode6)) { | |
20803 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
20804 | } | |
20805 | arg6 = static_cast< long >(val6); | |
20806 | } | |
20807 | if (obj6) { | |
4f89f6a3 | 20808 | { |
0085ce49 RD |
20809 | arg7 = wxString_in_helper(obj6); |
20810 | if (arg7 == NULL) SWIG_fail; | |
20811 | temp7 = true; | |
4f89f6a3 | 20812 | } |
0085ce49 RD |
20813 | } |
20814 | { | |
20815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20816 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20817 | wxPyEndAllowThreads(__tstate); | |
20818 | if (PyErr_Occurred()) SWIG_fail; | |
20819 | } | |
20820 | { | |
20821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20822 | } | |
20823 | { | |
20824 | if (temp7) | |
20825 | delete arg7; | |
20826 | } | |
20827 | return resultobj; | |
20828 | fail: | |
20829 | { | |
20830 | if (temp7) | |
20831 | delete arg7; | |
20832 | } | |
20833 | return NULL; | |
d14a1e28 RD |
20834 | } |
20835 | ||
20836 | ||
0085ce49 RD |
20837 | SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20838 | PyObject *resultobj = 0; | |
20839 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20840 | int result; | |
20841 | void *argp1 = 0 ; | |
20842 | int res1 = 0 ; | |
20843 | PyObject *swig_obj[1] ; | |
20844 | ||
20845 | if (!args) SWIG_fail; | |
20846 | swig_obj[0] = args; | |
20847 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20848 | if (!SWIG_IsOK(res1)) { | |
20849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'"); | |
20850 | } | |
20851 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20852 | { | |
20853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20854 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
20855 | wxPyEndAllowThreads(__tstate); | |
20856 | if (PyErr_Occurred()) SWIG_fail; | |
20857 | } | |
20858 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20859 | return resultobj; | |
20860 | fail: | |
20861 | return NULL; | |
20862 | } | |
20863 | ||
20864 | ||
20865 | SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20866 | PyObject *resultobj = 0; | |
20867 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20868 | wxSize *arg2 = 0 ; | |
20869 | void *argp1 = 0 ; | |
20870 | int res1 = 0 ; | |
20871 | wxSize temp2 ; | |
20872 | PyObject * obj0 = 0 ; | |
20873 | PyObject * obj1 = 0 ; | |
20874 | char * kwnames[] = { | |
20875 | (char *) "self",(char *) "padding", NULL | |
20876 | }; | |
20877 | ||
20878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail; | |
20879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20880 | if (!SWIG_IsOK(res1)) { | |
20881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20882 | } | |
20883 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20884 | { | |
20885 | arg2 = &temp2; | |
20886 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20887 | } | |
20888 | { | |
20889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20890 | (arg1)->SetPadding((wxSize const &)*arg2); | |
20891 | wxPyEndAllowThreads(__tstate); | |
20892 | if (PyErr_Occurred()) SWIG_fail; | |
20893 | } | |
20894 | resultobj = SWIG_Py_Void(); | |
20895 | return resultobj; | |
20896 | fail: | |
20897 | return NULL; | |
20898 | } | |
20899 | ||
20900 | ||
20901 | SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20902 | PyObject *resultobj = 0; | |
20903 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20904 | wxSize *arg2 = 0 ; | |
20905 | void *argp1 = 0 ; | |
20906 | int res1 = 0 ; | |
20907 | wxSize temp2 ; | |
20908 | PyObject * obj0 = 0 ; | |
20909 | PyObject * obj1 = 0 ; | |
20910 | char * kwnames[] = { | |
20911 | (char *) "self",(char *) "sz", NULL | |
20912 | }; | |
20913 | ||
20914 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
20915 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20916 | if (!SWIG_IsOK(res1)) { | |
20917 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
20918 | } | |
20919 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20920 | { | |
20921 | arg2 = &temp2; | |
20922 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20923 | } | |
20924 | { | |
20925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20926 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
20927 | wxPyEndAllowThreads(__tstate); | |
20928 | if (PyErr_Occurred()) SWIG_fail; | |
20929 | } | |
20930 | resultobj = SWIG_Py_Void(); | |
20931 | return resultobj; | |
20932 | fail: | |
20933 | return NULL; | |
20934 | } | |
20935 | ||
20936 | ||
0085ce49 RD |
20937 | SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20938 | PyObject *resultobj = 0; | |
20939 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
20940 | wxColour result; | |
20941 | void *argp1 = 0 ; | |
20942 | int res1 = 0 ; | |
20943 | PyObject *swig_obj[1] ; | |
20944 | ||
20945 | if (!args) SWIG_fail; | |
20946 | swig_obj[0] = args; | |
20947 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
20948 | if (!SWIG_IsOK(res1)) { | |
20949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'"); | |
20950 | } | |
20951 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
20952 | { | |
20953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20954 | result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour(); | |
20955 | wxPyEndAllowThreads(__tstate); | |
20956 | if (PyErr_Occurred()) SWIG_fail; | |
20957 | } | |
20958 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
20959 | return resultobj; | |
20960 | fail: | |
20961 | return NULL; | |
20962 | } | |
20963 | ||
20964 | ||
20965 | SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20966 | PyObject *resultobj = 0; | |
20967 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
20968 | SwigValueWrapper<wxVisualAttributes > result; | |
20969 | int val1 ; | |
20970 | int ecode1 = 0 ; | |
20971 | PyObject * obj0 = 0 ; | |
20972 | char * kwnames[] = { | |
20973 | (char *) "variant", NULL | |
20974 | }; | |
20975 | ||
20976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
20977 | if (obj0) { | |
20978 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20979 | if (!SWIG_IsOK(ecode1)) { | |
20980 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
20981 | } | |
20982 | arg1 = static_cast< wxWindowVariant >(val1); | |
20983 | } | |
20984 | { | |
20985 | if (!wxPyCheckForApp()) SWIG_fail; | |
20986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20987 | result = wxNotebook::GetClassDefaultAttributes(arg1); | |
20988 | wxPyEndAllowThreads(__tstate); | |
20989 | if (PyErr_Occurred()) SWIG_fail; | |
20990 | } | |
20991 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
20992 | return resultobj; | |
20993 | fail: | |
20994 | return NULL; | |
20995 | } | |
20996 | ||
20997 | ||
b39fe951 RD |
20998 | SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20999 | PyObject *resultobj = 0; | |
21000 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
21001 | int arg2 ; | |
21002 | bool result; | |
21003 | void *argp1 = 0 ; | |
21004 | int res1 = 0 ; | |
21005 | int val2 ; | |
21006 | int ecode2 = 0 ; | |
21007 | PyObject * obj0 = 0 ; | |
21008 | PyObject * obj1 = 0 ; | |
21009 | char * kwnames[] = { | |
21010 | (char *) "self",(char *) "nPage", NULL | |
21011 | }; | |
21012 | ||
21013 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
21014 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
21015 | if (!SWIG_IsOK(res1)) { | |
21016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
21017 | } | |
21018 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
21019 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21020 | if (!SWIG_IsOK(ecode2)) { | |
21021 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'"); | |
21022 | } | |
21023 | arg2 = static_cast< int >(val2); | |
21024 | { | |
21025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21026 | result = (bool)(arg1)->SendPageChangingEvent(arg2); | |
21027 | wxPyEndAllowThreads(__tstate); | |
21028 | if (PyErr_Occurred()) SWIG_fail; | |
21029 | } | |
21030 | { | |
21031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21032 | } | |
21033 | return resultobj; | |
21034 | fail: | |
21035 | return NULL; | |
21036 | } | |
21037 | ||
21038 | ||
21039 | SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21040 | PyObject *resultobj = 0; | |
21041 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
21042 | int arg2 ; | |
21043 | int arg3 = (int) -1 ; | |
21044 | void *argp1 = 0 ; | |
21045 | int res1 = 0 ; | |
21046 | int val2 ; | |
21047 | int ecode2 = 0 ; | |
21048 | int val3 ; | |
21049 | int ecode3 = 0 ; | |
21050 | PyObject * obj0 = 0 ; | |
21051 | PyObject * obj1 = 0 ; | |
21052 | PyObject * obj2 = 0 ; | |
21053 | char * kwnames[] = { | |
21054 | (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL | |
21055 | }; | |
21056 | ||
21057 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21058 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 ); | |
21059 | if (!SWIG_IsOK(res1)) { | |
21060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'"); | |
21061 | } | |
21062 | arg1 = reinterpret_cast< wxNotebook * >(argp1); | |
21063 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21064 | if (!SWIG_IsOK(ecode2)) { | |
21065 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'"); | |
21066 | } | |
21067 | arg2 = static_cast< int >(val2); | |
21068 | if (obj2) { | |
21069 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21070 | if (!SWIG_IsOK(ecode3)) { | |
21071 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'"); | |
21072 | } | |
21073 | arg3 = static_cast< int >(val3); | |
21074 | } | |
21075 | { | |
21076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21077 | (arg1)->SendPageChangedEvent(arg2,arg3); | |
21078 | wxPyEndAllowThreads(__tstate); | |
21079 | if (PyErr_Occurred()) SWIG_fail; | |
21080 | } | |
21081 | resultobj = SWIG_Py_Void(); | |
21082 | return resultobj; | |
21083 | fail: | |
21084 | return NULL; | |
21085 | } | |
21086 | ||
21087 | ||
0085ce49 RD |
21088 | SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21089 | PyObject *obj; | |
21090 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21091 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj)); | |
21092 | return SWIG_Py_Void(); | |
21093 | } | |
21094 | ||
21095 | SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21096 | return SWIG_Python_InitShadowInstance(args); | |
21097 | } | |
21098 | ||
21099 | SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21100 | PyObject *resultobj = 0; | |
21101 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21102 | int arg2 = (int) 0 ; | |
21103 | int arg3 = (int) -1 ; | |
21104 | int arg4 = (int) -1 ; | |
21105 | wxNotebookEvent *result = 0 ; | |
21106 | int val1 ; | |
21107 | int ecode1 = 0 ; | |
21108 | int val2 ; | |
21109 | int ecode2 = 0 ; | |
21110 | int val3 ; | |
21111 | int ecode3 = 0 ; | |
21112 | int val4 ; | |
21113 | int ecode4 = 0 ; | |
21114 | PyObject * obj0 = 0 ; | |
21115 | PyObject * obj1 = 0 ; | |
21116 | PyObject * obj2 = 0 ; | |
21117 | PyObject * obj3 = 0 ; | |
21118 | char * kwnames[] = { | |
21119 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
21120 | }; | |
21121 | ||
21122 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21123 | if (obj0) { | |
21124 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21125 | if (!SWIG_IsOK(ecode1)) { | |
21126 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
21127 | } | |
21128 | arg1 = static_cast< wxEventType >(val1); | |
21129 | } | |
21130 | if (obj1) { | |
21131 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21132 | if (!SWIG_IsOK(ecode2)) { | |
21133 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
21134 | } | |
21135 | arg2 = static_cast< int >(val2); | |
21136 | } | |
21137 | if (obj2) { | |
21138 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21139 | if (!SWIG_IsOK(ecode3)) { | |
21140 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
21141 | } | |
21142 | arg3 = static_cast< int >(val3); | |
21143 | } | |
21144 | if (obj3) { | |
21145 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21146 | if (!SWIG_IsOK(ecode4)) { | |
21147 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
21148 | } | |
21149 | arg4 = static_cast< int >(val4); | |
21150 | } | |
21151 | { | |
21152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21153 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
21154 | wxPyEndAllowThreads(__tstate); | |
21155 | if (PyErr_Occurred()) SWIG_fail; | |
21156 | } | |
21157 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 ); | |
21158 | return resultobj; | |
21159 | fail: | |
21160 | return NULL; | |
21161 | } | |
21162 | ||
21163 | ||
21164 | SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21165 | PyObject *obj; | |
21166 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21167 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj)); | |
21168 | return SWIG_Py_Void(); | |
21169 | } | |
21170 | ||
21171 | SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21172 | return SWIG_Python_InitShadowInstance(args); | |
21173 | } | |
21174 | ||
21175 | SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21176 | PyObject *resultobj = 0; | |
21177 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21178 | int arg2 = (int) -1 ; | |
21179 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21180 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21181 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21182 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21183 | long arg5 = (long) 0 ; | |
21184 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
21185 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21186 | wxListbook *result = 0 ; | |
21187 | void *argp1 = 0 ; | |
21188 | int res1 = 0 ; | |
21189 | int val2 ; | |
21190 | int ecode2 = 0 ; | |
21191 | wxPoint temp3 ; | |
21192 | wxSize temp4 ; | |
21193 | long val5 ; | |
21194 | int ecode5 = 0 ; | |
21195 | bool temp6 = false ; | |
21196 | PyObject * obj0 = 0 ; | |
21197 | PyObject * obj1 = 0 ; | |
21198 | PyObject * obj2 = 0 ; | |
21199 | PyObject * obj3 = 0 ; | |
21200 | PyObject * obj4 = 0 ; | |
21201 | PyObject * obj5 = 0 ; | |
21202 | char * kwnames[] = { | |
21203 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21204 | }; | |
21205 | ||
21206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21208 | if (!SWIG_IsOK(res1)) { | |
21209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21210 | } | |
21211 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21212 | if (obj1) { | |
21213 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21214 | if (!SWIG_IsOK(ecode2)) { | |
21215 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'"); | |
21216 | } | |
21217 | arg2 = static_cast< int >(val2); | |
21218 | } | |
21219 | if (obj2) { | |
093d3ff1 | 21220 | { |
0085ce49 RD |
21221 | arg3 = &temp3; |
21222 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 21223 | } |
0085ce49 RD |
21224 | } |
21225 | if (obj3) { | |
093d3ff1 | 21226 | { |
0085ce49 RD |
21227 | arg4 = &temp4; |
21228 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 21229 | } |
0085ce49 RD |
21230 | } |
21231 | if (obj4) { | |
21232 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21233 | if (!SWIG_IsOK(ecode5)) { | |
21234 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'"); | |
21235 | } | |
21236 | arg5 = static_cast< long >(val5); | |
21237 | } | |
21238 | if (obj5) { | |
d14a1e28 | 21239 | { |
0085ce49 RD |
21240 | arg6 = wxString_in_helper(obj5); |
21241 | if (arg6 == NULL) SWIG_fail; | |
21242 | temp6 = true; | |
d14a1e28 | 21243 | } |
0085ce49 RD |
21244 | } |
21245 | { | |
21246 | if (!wxPyCheckForApp()) SWIG_fail; | |
21247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21248 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21249 | wxPyEndAllowThreads(__tstate); | |
21250 | if (PyErr_Occurred()) SWIG_fail; | |
21251 | } | |
21252 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 ); | |
21253 | { | |
21254 | if (temp6) | |
21255 | delete arg6; | |
21256 | } | |
21257 | return resultobj; | |
21258 | fail: | |
21259 | { | |
21260 | if (temp6) | |
21261 | delete arg6; | |
21262 | } | |
21263 | return NULL; | |
d14a1e28 RD |
21264 | } |
21265 | ||
21266 | ||
0085ce49 RD |
21267 | SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21268 | PyObject *resultobj = 0; | |
21269 | wxListbook *result = 0 ; | |
21270 | ||
21271 | if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail; | |
21272 | { | |
21273 | if (!wxPyCheckForApp()) SWIG_fail; | |
21274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21275 | result = (wxListbook *)new wxListbook(); | |
21276 | wxPyEndAllowThreads(__tstate); | |
21277 | if (PyErr_Occurred()) SWIG_fail; | |
21278 | } | |
21279 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 ); | |
21280 | return resultobj; | |
21281 | fail: | |
21282 | return NULL; | |
21283 | } | |
21284 | ||
21285 | ||
21286 | SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21287 | PyObject *resultobj = 0; | |
21288 | wxListbook *arg1 = (wxListbook *) 0 ; | |
21289 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21290 | int arg3 = (int) -1 ; | |
21291 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21292 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21293 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21294 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21295 | long arg6 = (long) 0 ; | |
21296 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
21297 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21298 | bool result; | |
21299 | void *argp1 = 0 ; | |
21300 | int res1 = 0 ; | |
21301 | void *argp2 = 0 ; | |
21302 | int res2 = 0 ; | |
21303 | int val3 ; | |
21304 | int ecode3 = 0 ; | |
21305 | wxPoint temp4 ; | |
21306 | wxSize temp5 ; | |
21307 | long val6 ; | |
21308 | int ecode6 = 0 ; | |
21309 | bool temp7 = false ; | |
21310 | PyObject * obj0 = 0 ; | |
21311 | PyObject * obj1 = 0 ; | |
21312 | PyObject * obj2 = 0 ; | |
21313 | PyObject * obj3 = 0 ; | |
21314 | PyObject * obj4 = 0 ; | |
21315 | PyObject * obj5 = 0 ; | |
21316 | PyObject * obj6 = 0 ; | |
21317 | char * kwnames[] = { | |
21318 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21319 | }; | |
21320 | ||
21321 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21322 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 ); | |
21323 | if (!SWIG_IsOK(res1)) { | |
21324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'"); | |
21325 | } | |
21326 | arg1 = reinterpret_cast< wxListbook * >(argp1); | |
21327 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21328 | if (!SWIG_IsOK(res2)) { | |
21329 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21330 | } | |
21331 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21332 | if (obj2) { | |
21333 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21334 | if (!SWIG_IsOK(ecode3)) { | |
21335 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'"); | |
21336 | } | |
21337 | arg3 = static_cast< int >(val3); | |
21338 | } | |
21339 | if (obj3) { | |
22bfe96c | 21340 | { |
0085ce49 RD |
21341 | arg4 = &temp4; |
21342 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22bfe96c | 21343 | } |
0085ce49 RD |
21344 | } |
21345 | if (obj4) { | |
22bfe96c | 21346 | { |
0085ce49 RD |
21347 | arg5 = &temp5; |
21348 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22bfe96c | 21349 | } |
0085ce49 RD |
21350 | } |
21351 | if (obj5) { | |
21352 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21353 | if (!SWIG_IsOK(ecode6)) { | |
21354 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'"); | |
21355 | } | |
21356 | arg6 = static_cast< long >(val6); | |
21357 | } | |
21358 | if (obj6) { | |
b2dc1044 | 21359 | { |
0085ce49 RD |
21360 | arg7 = wxString_in_helper(obj6); |
21361 | if (arg7 == NULL) SWIG_fail; | |
21362 | temp7 = true; | |
b2dc1044 | 21363 | } |
0085ce49 RD |
21364 | } |
21365 | { | |
21366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21367 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21368 | wxPyEndAllowThreads(__tstate); | |
21369 | if (PyErr_Occurred()) SWIG_fail; | |
21370 | } | |
21371 | { | |
21372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21373 | } | |
21374 | { | |
21375 | if (temp7) | |
21376 | delete arg7; | |
21377 | } | |
21378 | return resultobj; | |
21379 | fail: | |
21380 | { | |
21381 | if (temp7) | |
21382 | delete arg7; | |
21383 | } | |
21384 | return NULL; | |
b2dc1044 RD |
21385 | } |
21386 | ||
21387 | ||
0085ce49 RD |
21388 | SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21389 | PyObject *resultobj = 0; | |
21390 | wxListbook *arg1 = (wxListbook *) 0 ; | |
21391 | wxListView *result = 0 ; | |
21392 | void *argp1 = 0 ; | |
21393 | int res1 = 0 ; | |
21394 | PyObject *swig_obj[1] ; | |
21395 | ||
21396 | if (!args) SWIG_fail; | |
21397 | swig_obj[0] = args; | |
21398 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 ); | |
21399 | if (!SWIG_IsOK(res1)) { | |
21400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'"); | |
21401 | } | |
21402 | arg1 = reinterpret_cast< wxListbook * >(argp1); | |
21403 | { | |
21404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21405 | result = (wxListView *)(arg1)->GetListView(); | |
21406 | wxPyEndAllowThreads(__tstate); | |
21407 | if (PyErr_Occurred()) SWIG_fail; | |
21408 | } | |
21409 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 ); | |
21410 | return resultobj; | |
21411 | fail: | |
21412 | return NULL; | |
21413 | } | |
21414 | ||
21415 | ||
21416 | SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21417 | PyObject *obj; | |
21418 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21419 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj)); | |
21420 | return SWIG_Py_Void(); | |
21421 | } | |
21422 | ||
21423 | SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21424 | return SWIG_Python_InitShadowInstance(args); | |
21425 | } | |
21426 | ||
21427 | SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21428 | PyObject *resultobj = 0; | |
21429 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21430 | int arg2 = (int) 0 ; | |
21431 | int arg3 = (int) -1 ; | |
21432 | int arg4 = (int) -1 ; | |
21433 | wxListbookEvent *result = 0 ; | |
21434 | int val1 ; | |
21435 | int ecode1 = 0 ; | |
21436 | int val2 ; | |
21437 | int ecode2 = 0 ; | |
21438 | int val3 ; | |
21439 | int ecode3 = 0 ; | |
21440 | int val4 ; | |
21441 | int ecode4 = 0 ; | |
21442 | PyObject * obj0 = 0 ; | |
21443 | PyObject * obj1 = 0 ; | |
21444 | PyObject * obj2 = 0 ; | |
21445 | PyObject * obj3 = 0 ; | |
21446 | char * kwnames[] = { | |
21447 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
21448 | }; | |
21449 | ||
21450 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21451 | if (obj0) { | |
21452 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21453 | if (!SWIG_IsOK(ecode1)) { | |
21454 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
21455 | } | |
21456 | arg1 = static_cast< wxEventType >(val1); | |
21457 | } | |
21458 | if (obj1) { | |
21459 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21460 | if (!SWIG_IsOK(ecode2)) { | |
21461 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'"); | |
21462 | } | |
21463 | arg2 = static_cast< int >(val2); | |
21464 | } | |
21465 | if (obj2) { | |
21466 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21467 | if (!SWIG_IsOK(ecode3)) { | |
21468 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'"); | |
21469 | } | |
21470 | arg3 = static_cast< int >(val3); | |
21471 | } | |
21472 | if (obj3) { | |
21473 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21474 | if (!SWIG_IsOK(ecode4)) { | |
21475 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'"); | |
21476 | } | |
21477 | arg4 = static_cast< int >(val4); | |
21478 | } | |
21479 | { | |
21480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21481 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
21482 | wxPyEndAllowThreads(__tstate); | |
21483 | if (PyErr_Occurred()) SWIG_fail; | |
21484 | } | |
21485 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 ); | |
21486 | return resultobj; | |
21487 | fail: | |
21488 | return NULL; | |
21489 | } | |
21490 | ||
21491 | ||
21492 | SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21493 | PyObject *obj; | |
21494 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21495 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj)); | |
21496 | return SWIG_Py_Void(); | |
21497 | } | |
21498 | ||
21499 | SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21500 | return SWIG_Python_InitShadowInstance(args); | |
21501 | } | |
21502 | ||
21503 | SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21504 | PyObject *resultobj = 0; | |
21505 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21506 | int arg2 ; | |
21507 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21508 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21509 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21510 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21511 | long arg5 = (long) 0 ; | |
21512 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
21513 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21514 | wxChoicebook *result = 0 ; | |
21515 | void *argp1 = 0 ; | |
21516 | int res1 = 0 ; | |
21517 | int val2 ; | |
21518 | int ecode2 = 0 ; | |
21519 | wxPoint temp3 ; | |
21520 | wxSize temp4 ; | |
21521 | long val5 ; | |
21522 | int ecode5 = 0 ; | |
21523 | bool temp6 = false ; | |
21524 | PyObject * obj0 = 0 ; | |
21525 | PyObject * obj1 = 0 ; | |
21526 | PyObject * obj2 = 0 ; | |
21527 | PyObject * obj3 = 0 ; | |
21528 | PyObject * obj4 = 0 ; | |
21529 | PyObject * obj5 = 0 ; | |
21530 | char * kwnames[] = { | |
21531 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21532 | }; | |
21533 | ||
21534 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21535 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21536 | if (!SWIG_IsOK(res1)) { | |
21537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21538 | } | |
21539 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21540 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21541 | if (!SWIG_IsOK(ecode2)) { | |
21542 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'"); | |
21543 | } | |
21544 | arg2 = static_cast< int >(val2); | |
21545 | if (obj2) { | |
d14a1e28 | 21546 | { |
0085ce49 RD |
21547 | arg3 = &temp3; |
21548 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 21549 | } |
0085ce49 RD |
21550 | } |
21551 | if (obj3) { | |
d14a1e28 | 21552 | { |
0085ce49 RD |
21553 | arg4 = &temp4; |
21554 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 21555 | } |
0085ce49 RD |
21556 | } |
21557 | if (obj4) { | |
21558 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21559 | if (!SWIG_IsOK(ecode5)) { | |
21560 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'"); | |
21561 | } | |
21562 | arg5 = static_cast< long >(val5); | |
21563 | } | |
21564 | if (obj5) { | |
d14a1e28 | 21565 | { |
0085ce49 RD |
21566 | arg6 = wxString_in_helper(obj5); |
21567 | if (arg6 == NULL) SWIG_fail; | |
21568 | temp6 = true; | |
d14a1e28 | 21569 | } |
0085ce49 RD |
21570 | } |
21571 | { | |
21572 | if (!wxPyCheckForApp()) SWIG_fail; | |
21573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21574 | result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21575 | wxPyEndAllowThreads(__tstate); | |
21576 | if (PyErr_Occurred()) SWIG_fail; | |
21577 | } | |
21578 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 ); | |
21579 | { | |
21580 | if (temp6) | |
21581 | delete arg6; | |
21582 | } | |
21583 | return resultobj; | |
21584 | fail: | |
21585 | { | |
21586 | if (temp6) | |
21587 | delete arg6; | |
21588 | } | |
21589 | return NULL; | |
d14a1e28 RD |
21590 | } |
21591 | ||
21592 | ||
0085ce49 RD |
21593 | SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21594 | PyObject *resultobj = 0; | |
21595 | wxChoicebook *result = 0 ; | |
21596 | ||
21597 | if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail; | |
21598 | { | |
21599 | if (!wxPyCheckForApp()) SWIG_fail; | |
21600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21601 | result = (wxChoicebook *)new wxChoicebook(); | |
21602 | wxPyEndAllowThreads(__tstate); | |
21603 | if (PyErr_Occurred()) SWIG_fail; | |
21604 | } | |
21605 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 ); | |
21606 | return resultobj; | |
21607 | fail: | |
21608 | return NULL; | |
21609 | } | |
21610 | ||
21611 | ||
21612 | SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21613 | PyObject *resultobj = 0; | |
21614 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
21615 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21616 | int arg3 ; | |
21617 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21618 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21619 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21620 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21621 | long arg6 = (long) 0 ; | |
21622 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
21623 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21624 | bool result; | |
21625 | void *argp1 = 0 ; | |
21626 | int res1 = 0 ; | |
21627 | void *argp2 = 0 ; | |
21628 | int res2 = 0 ; | |
21629 | int val3 ; | |
21630 | int ecode3 = 0 ; | |
21631 | wxPoint temp4 ; | |
21632 | wxSize temp5 ; | |
21633 | long val6 ; | |
21634 | int ecode6 = 0 ; | |
21635 | bool temp7 = false ; | |
21636 | PyObject * obj0 = 0 ; | |
21637 | PyObject * obj1 = 0 ; | |
21638 | PyObject * obj2 = 0 ; | |
21639 | PyObject * obj3 = 0 ; | |
21640 | PyObject * obj4 = 0 ; | |
21641 | PyObject * obj5 = 0 ; | |
21642 | PyObject * obj6 = 0 ; | |
21643 | char * kwnames[] = { | |
21644 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21645 | }; | |
21646 | ||
21647 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21648 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 ); | |
21649 | if (!SWIG_IsOK(res1)) { | |
21650 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'"); | |
21651 | } | |
21652 | arg1 = reinterpret_cast< wxChoicebook * >(argp1); | |
21653 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21654 | if (!SWIG_IsOK(res2)) { | |
21655 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21656 | } | |
21657 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21658 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21659 | if (!SWIG_IsOK(ecode3)) { | |
21660 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
21661 | } | |
21662 | arg3 = static_cast< int >(val3); | |
21663 | if (obj3) { | |
4f89f6a3 | 21664 | { |
0085ce49 RD |
21665 | arg4 = &temp4; |
21666 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 21667 | } |
0085ce49 RD |
21668 | } |
21669 | if (obj4) { | |
d14a1e28 | 21670 | { |
0085ce49 RD |
21671 | arg5 = &temp5; |
21672 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 21673 | } |
0085ce49 RD |
21674 | } |
21675 | if (obj5) { | |
21676 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21677 | if (!SWIG_IsOK(ecode6)) { | |
21678 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
21679 | } | |
21680 | arg6 = static_cast< long >(val6); | |
21681 | } | |
21682 | if (obj6) { | |
d14a1e28 | 21683 | { |
0085ce49 RD |
21684 | arg7 = wxString_in_helper(obj6); |
21685 | if (arg7 == NULL) SWIG_fail; | |
21686 | temp7 = true; | |
d14a1e28 | 21687 | } |
0085ce49 RD |
21688 | } |
21689 | { | |
21690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21691 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21692 | wxPyEndAllowThreads(__tstate); | |
21693 | if (PyErr_Occurred()) SWIG_fail; | |
21694 | } | |
21695 | { | |
21696 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21697 | } | |
21698 | { | |
21699 | if (temp7) | |
21700 | delete arg7; | |
21701 | } | |
21702 | return resultobj; | |
21703 | fail: | |
21704 | { | |
21705 | if (temp7) | |
21706 | delete arg7; | |
21707 | } | |
21708 | return NULL; | |
d14a1e28 RD |
21709 | } |
21710 | ||
21711 | ||
0085ce49 RD |
21712 | SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21713 | PyObject *resultobj = 0; | |
21714 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
21715 | wxChoice *result = 0 ; | |
21716 | void *argp1 = 0 ; | |
21717 | int res1 = 0 ; | |
21718 | PyObject *swig_obj[1] ; | |
21719 | ||
21720 | if (!args) SWIG_fail; | |
21721 | swig_obj[0] = args; | |
21722 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 ); | |
21723 | if (!SWIG_IsOK(res1)) { | |
21724 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'"); | |
21725 | } | |
21726 | arg1 = reinterpret_cast< wxChoicebook * >(argp1); | |
21727 | { | |
21728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21729 | result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl(); | |
21730 | wxPyEndAllowThreads(__tstate); | |
21731 | if (PyErr_Occurred()) SWIG_fail; | |
21732 | } | |
21733 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 ); | |
21734 | return resultobj; | |
21735 | fail: | |
21736 | return NULL; | |
21737 | } | |
21738 | ||
21739 | ||
21740 | SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21741 | PyObject *obj; | |
21742 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21743 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj)); | |
21744 | return SWIG_Py_Void(); | |
21745 | } | |
21746 | ||
21747 | SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21748 | return SWIG_Python_InitShadowInstance(args); | |
21749 | } | |
21750 | ||
21751 | SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21752 | PyObject *resultobj = 0; | |
21753 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21754 | int arg2 = (int) 0 ; | |
21755 | int arg3 = (int) -1 ; | |
21756 | int arg4 = (int) -1 ; | |
21757 | wxChoicebookEvent *result = 0 ; | |
21758 | int val1 ; | |
21759 | int ecode1 = 0 ; | |
21760 | int val2 ; | |
21761 | int ecode2 = 0 ; | |
21762 | int val3 ; | |
21763 | int ecode3 = 0 ; | |
21764 | int val4 ; | |
21765 | int ecode4 = 0 ; | |
21766 | PyObject * obj0 = 0 ; | |
21767 | PyObject * obj1 = 0 ; | |
21768 | PyObject * obj2 = 0 ; | |
21769 | PyObject * obj3 = 0 ; | |
21770 | char * kwnames[] = { | |
21771 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
21772 | }; | |
21773 | ||
21774 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21775 | if (obj0) { | |
21776 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21777 | if (!SWIG_IsOK(ecode1)) { | |
21778 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
21779 | } | |
21780 | arg1 = static_cast< wxEventType >(val1); | |
21781 | } | |
21782 | if (obj1) { | |
21783 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21784 | if (!SWIG_IsOK(ecode2)) { | |
21785 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
21786 | } | |
21787 | arg2 = static_cast< int >(val2); | |
21788 | } | |
21789 | if (obj2) { | |
21790 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21791 | if (!SWIG_IsOK(ecode3)) { | |
21792 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
21793 | } | |
21794 | arg3 = static_cast< int >(val3); | |
21795 | } | |
21796 | if (obj3) { | |
21797 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21798 | if (!SWIG_IsOK(ecode4)) { | |
21799 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
21800 | } | |
21801 | arg4 = static_cast< int >(val4); | |
21802 | } | |
21803 | { | |
21804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21805 | result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4); | |
21806 | wxPyEndAllowThreads(__tstate); | |
21807 | if (PyErr_Occurred()) SWIG_fail; | |
21808 | } | |
21809 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 ); | |
21810 | return resultobj; | |
21811 | fail: | |
21812 | return NULL; | |
21813 | } | |
21814 | ||
21815 | ||
21816 | SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21817 | PyObject *obj; | |
21818 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21819 | SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj)); | |
21820 | return SWIG_Py_Void(); | |
21821 | } | |
21822 | ||
21823 | SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21824 | return SWIG_Python_InitShadowInstance(args); | |
21825 | } | |
21826 | ||
21827 | SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21828 | PyObject *resultobj = 0; | |
21829 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21830 | int arg2 ; | |
21831 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21832 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21833 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21834 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21835 | long arg5 = (long) wxBK_DEFAULT ; | |
21836 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
21837 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21838 | wxTreebook *result = 0 ; | |
21839 | void *argp1 = 0 ; | |
21840 | int res1 = 0 ; | |
21841 | int val2 ; | |
21842 | int ecode2 = 0 ; | |
21843 | wxPoint temp3 ; | |
21844 | wxSize temp4 ; | |
21845 | long val5 ; | |
21846 | int ecode5 = 0 ; | |
21847 | bool temp6 = false ; | |
21848 | PyObject * obj0 = 0 ; | |
21849 | PyObject * obj1 = 0 ; | |
21850 | PyObject * obj2 = 0 ; | |
21851 | PyObject * obj3 = 0 ; | |
21852 | PyObject * obj4 = 0 ; | |
21853 | PyObject * obj5 = 0 ; | |
21854 | char * kwnames[] = { | |
21855 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21856 | }; | |
21857 | ||
21858 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21859 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21860 | if (!SWIG_IsOK(res1)) { | |
21861 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21862 | } | |
21863 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21864 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21865 | if (!SWIG_IsOK(ecode2)) { | |
21866 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'"); | |
21867 | } | |
21868 | arg2 = static_cast< int >(val2); | |
21869 | if (obj2) { | |
093d3ff1 | 21870 | { |
0085ce49 RD |
21871 | arg3 = &temp3; |
21872 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 21873 | } |
0085ce49 RD |
21874 | } |
21875 | if (obj3) { | |
d14a1e28 | 21876 | { |
0085ce49 RD |
21877 | arg4 = &temp4; |
21878 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 21879 | } |
0085ce49 RD |
21880 | } |
21881 | if (obj4) { | |
21882 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21883 | if (!SWIG_IsOK(ecode5)) { | |
21884 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'"); | |
21885 | } | |
21886 | arg5 = static_cast< long >(val5); | |
21887 | } | |
21888 | if (obj5) { | |
093d3ff1 | 21889 | { |
0085ce49 RD |
21890 | arg6 = wxString_in_helper(obj5); |
21891 | if (arg6 == NULL) SWIG_fail; | |
21892 | temp6 = true; | |
093d3ff1 | 21893 | } |
0085ce49 RD |
21894 | } |
21895 | { | |
21896 | if (!wxPyCheckForApp()) SWIG_fail; | |
21897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21898 | result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21899 | wxPyEndAllowThreads(__tstate); | |
21900 | if (PyErr_Occurred()) SWIG_fail; | |
21901 | } | |
21902 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 ); | |
21903 | { | |
21904 | if (temp6) | |
21905 | delete arg6; | |
21906 | } | |
21907 | return resultobj; | |
21908 | fail: | |
21909 | { | |
21910 | if (temp6) | |
21911 | delete arg6; | |
21912 | } | |
21913 | return NULL; | |
d14a1e28 RD |
21914 | } |
21915 | ||
21916 | ||
0085ce49 RD |
21917 | SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21918 | PyObject *resultobj = 0; | |
21919 | wxTreebook *result = 0 ; | |
21920 | ||
21921 | if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail; | |
21922 | { | |
21923 | if (!wxPyCheckForApp()) SWIG_fail; | |
21924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21925 | result = (wxTreebook *)new wxTreebook(); | |
21926 | wxPyEndAllowThreads(__tstate); | |
21927 | if (PyErr_Occurred()) SWIG_fail; | |
21928 | } | |
21929 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 ); | |
21930 | return resultobj; | |
21931 | fail: | |
21932 | return NULL; | |
21933 | } | |
21934 | ||
21935 | ||
21936 | SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21937 | PyObject *resultobj = 0; | |
21938 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
21939 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21940 | int arg3 ; | |
21941 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21942 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21943 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21944 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21945 | long arg6 = (long) wxBK_DEFAULT ; | |
21946 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
21947 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21948 | bool result; | |
21949 | void *argp1 = 0 ; | |
21950 | int res1 = 0 ; | |
21951 | void *argp2 = 0 ; | |
21952 | int res2 = 0 ; | |
21953 | int val3 ; | |
21954 | int ecode3 = 0 ; | |
21955 | wxPoint temp4 ; | |
21956 | wxSize temp5 ; | |
21957 | long val6 ; | |
21958 | int ecode6 = 0 ; | |
21959 | bool temp7 = false ; | |
21960 | PyObject * obj0 = 0 ; | |
21961 | PyObject * obj1 = 0 ; | |
21962 | PyObject * obj2 = 0 ; | |
21963 | PyObject * obj3 = 0 ; | |
21964 | PyObject * obj4 = 0 ; | |
21965 | PyObject * obj5 = 0 ; | |
21966 | PyObject * obj6 = 0 ; | |
21967 | char * kwnames[] = { | |
21968 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21969 | }; | |
21970 | ||
21971 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21972 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
21973 | if (!SWIG_IsOK(res1)) { | |
21974 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
21975 | } | |
21976 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
21977 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21978 | if (!SWIG_IsOK(res2)) { | |
21979 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21980 | } | |
21981 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21982 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21983 | if (!SWIG_IsOK(ecode3)) { | |
21984 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'"); | |
21985 | } | |
21986 | arg3 = static_cast< int >(val3); | |
21987 | if (obj3) { | |
d14a1e28 | 21988 | { |
0085ce49 RD |
21989 | arg4 = &temp4; |
21990 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 21991 | } |
0085ce49 RD |
21992 | } |
21993 | if (obj4) { | |
093d3ff1 | 21994 | { |
0085ce49 RD |
21995 | arg5 = &temp5; |
21996 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 21997 | } |
0085ce49 RD |
21998 | } |
21999 | if (obj5) { | |
22000 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
22001 | if (!SWIG_IsOK(ecode6)) { | |
22002 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'"); | |
22003 | } | |
22004 | arg6 = static_cast< long >(val6); | |
22005 | } | |
22006 | if (obj6) { | |
093d3ff1 | 22007 | { |
0085ce49 RD |
22008 | arg7 = wxString_in_helper(obj6); |
22009 | if (arg7 == NULL) SWIG_fail; | |
22010 | temp7 = true; | |
093d3ff1 | 22011 | } |
0085ce49 RD |
22012 | } |
22013 | { | |
22014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22015 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22016 | wxPyEndAllowThreads(__tstate); | |
22017 | if (PyErr_Occurred()) SWIG_fail; | |
22018 | } | |
22019 | { | |
22020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22021 | } | |
22022 | { | |
22023 | if (temp7) | |
22024 | delete arg7; | |
22025 | } | |
22026 | return resultobj; | |
22027 | fail: | |
22028 | { | |
22029 | if (temp7) | |
22030 | delete arg7; | |
22031 | } | |
22032 | return NULL; | |
22033 | } | |
22034 | ||
22035 | ||
22036 | SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22037 | PyObject *resultobj = 0; | |
22038 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22039 | size_t arg2 ; | |
22040 | wxWindow *arg3 = (wxWindow *) 0 ; | |
22041 | wxString *arg4 = 0 ; | |
22042 | bool arg5 = (bool) false ; | |
22043 | int arg6 = (int) wxNOT_FOUND ; | |
22044 | bool result; | |
22045 | void *argp1 = 0 ; | |
22046 | int res1 = 0 ; | |
22047 | size_t val2 ; | |
22048 | int ecode2 = 0 ; | |
22049 | void *argp3 = 0 ; | |
22050 | int res3 = 0 ; | |
22051 | bool temp4 = false ; | |
22052 | bool val5 ; | |
22053 | int ecode5 = 0 ; | |
22054 | int val6 ; | |
22055 | int ecode6 = 0 ; | |
22056 | PyObject * obj0 = 0 ; | |
22057 | PyObject * obj1 = 0 ; | |
22058 | PyObject * obj2 = 0 ; | |
22059 | PyObject * obj3 = 0 ; | |
22060 | PyObject * obj4 = 0 ; | |
22061 | PyObject * obj5 = 0 ; | |
22062 | char * kwnames[] = { | |
22063 | (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
22064 | }; | |
22065 | ||
22066 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22067 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22068 | if (!SWIG_IsOK(res1)) { | |
22069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22070 | } | |
22071 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22072 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22073 | if (!SWIG_IsOK(ecode2)) { | |
22074 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'"); | |
22075 | } | |
22076 | arg2 = static_cast< size_t >(val2); | |
22077 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22078 | if (!SWIG_IsOK(res3)) { | |
22079 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
22080 | } | |
22081 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
22082 | { | |
22083 | arg4 = wxString_in_helper(obj3); | |
22084 | if (arg4 == NULL) SWIG_fail; | |
22085 | temp4 = true; | |
22086 | } | |
22087 | if (obj4) { | |
22088 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
22089 | if (!SWIG_IsOK(ecode5)) { | |
22090 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'"); | |
22091 | } | |
22092 | arg5 = static_cast< bool >(val5); | |
22093 | } | |
22094 | if (obj5) { | |
22095 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
22096 | if (!SWIG_IsOK(ecode6)) { | |
22097 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'"); | |
22098 | } | |
22099 | arg6 = static_cast< int >(val6); | |
22100 | } | |
22101 | { | |
22102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22103 | result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
22104 | wxPyEndAllowThreads(__tstate); | |
22105 | if (PyErr_Occurred()) SWIG_fail; | |
22106 | } | |
22107 | { | |
22108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22109 | } | |
22110 | { | |
22111 | if (temp4) | |
22112 | delete arg4; | |
22113 | } | |
22114 | return resultobj; | |
22115 | fail: | |
22116 | { | |
22117 | if (temp4) | |
22118 | delete arg4; | |
22119 | } | |
22120 | return NULL; | |
22121 | } | |
22122 | ||
22123 | ||
22124 | SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22125 | PyObject *resultobj = 0; | |
22126 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22127 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22128 | wxString *arg3 = 0 ; | |
22129 | bool arg4 = (bool) false ; | |
22130 | int arg5 = (int) wxNOT_FOUND ; | |
22131 | bool result; | |
22132 | void *argp1 = 0 ; | |
22133 | int res1 = 0 ; | |
22134 | void *argp2 = 0 ; | |
22135 | int res2 = 0 ; | |
22136 | bool temp3 = false ; | |
22137 | bool val4 ; | |
22138 | int ecode4 = 0 ; | |
22139 | int val5 ; | |
22140 | int ecode5 = 0 ; | |
22141 | PyObject * obj0 = 0 ; | |
22142 | PyObject * obj1 = 0 ; | |
22143 | PyObject * obj2 = 0 ; | |
22144 | PyObject * obj3 = 0 ; | |
22145 | PyObject * obj4 = 0 ; | |
22146 | char * kwnames[] = { | |
22147 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
22148 | }; | |
22149 | ||
22150 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
22151 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22152 | if (!SWIG_IsOK(res1)) { | |
22153 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22154 | } | |
22155 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22156 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22157 | if (!SWIG_IsOK(res2)) { | |
22158 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
22159 | } | |
22160 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
22161 | { | |
22162 | arg3 = wxString_in_helper(obj2); | |
22163 | if (arg3 == NULL) SWIG_fail; | |
22164 | temp3 = true; | |
22165 | } | |
22166 | if (obj3) { | |
22167 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
22168 | if (!SWIG_IsOK(ecode4)) { | |
22169 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'"); | |
22170 | } | |
22171 | arg4 = static_cast< bool >(val4); | |
22172 | } | |
22173 | if (obj4) { | |
22174 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22175 | if (!SWIG_IsOK(ecode5)) { | |
22176 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'"); | |
22177 | } | |
22178 | arg5 = static_cast< int >(val5); | |
22179 | } | |
22180 | { | |
22181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22182 | result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
22183 | wxPyEndAllowThreads(__tstate); | |
22184 | if (PyErr_Occurred()) SWIG_fail; | |
22185 | } | |
22186 | { | |
22187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22188 | } | |
22189 | { | |
22190 | if (temp3) | |
22191 | delete arg3; | |
22192 | } | |
22193 | return resultobj; | |
22194 | fail: | |
22195 | { | |
22196 | if (temp3) | |
22197 | delete arg3; | |
22198 | } | |
22199 | return NULL; | |
22200 | } | |
22201 | ||
22202 | ||
22203 | SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22204 | PyObject *resultobj = 0; | |
22205 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22206 | size_t arg2 ; | |
22207 | bool result; | |
22208 | void *argp1 = 0 ; | |
22209 | int res1 = 0 ; | |
22210 | size_t val2 ; | |
22211 | int ecode2 = 0 ; | |
22212 | PyObject * obj0 = 0 ; | |
22213 | PyObject * obj1 = 0 ; | |
22214 | char * kwnames[] = { | |
22215 | (char *) "self",(char *) "pos", NULL | |
22216 | }; | |
22217 | ||
22218 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail; | |
22219 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22220 | if (!SWIG_IsOK(res1)) { | |
22221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
22222 | } | |
22223 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22224 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22225 | if (!SWIG_IsOK(ecode2)) { | |
22226 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'"); | |
22227 | } | |
22228 | arg2 = static_cast< size_t >(val2); | |
22229 | { | |
22230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22231 | result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2); | |
22232 | wxPyEndAllowThreads(__tstate); | |
22233 | if (PyErr_Occurred()) SWIG_fail; | |
22234 | } | |
22235 | { | |
22236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22237 | } | |
22238 | return resultobj; | |
22239 | fail: | |
22240 | return NULL; | |
22241 | } | |
22242 | ||
22243 | ||
22244 | SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22245 | PyObject *resultobj = 0; | |
22246 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22247 | size_t arg2 ; | |
22248 | bool arg3 = (bool) true ; | |
22249 | bool result; | |
22250 | void *argp1 = 0 ; | |
22251 | int res1 = 0 ; | |
22252 | size_t val2 ; | |
22253 | int ecode2 = 0 ; | |
22254 | bool val3 ; | |
22255 | int ecode3 = 0 ; | |
22256 | PyObject * obj0 = 0 ; | |
22257 | PyObject * obj1 = 0 ; | |
22258 | PyObject * obj2 = 0 ; | |
22259 | char * kwnames[] = { | |
22260 | (char *) "self",(char *) "pos",(char *) "expand", NULL | |
22261 | }; | |
22262 | ||
22263 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22264 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22265 | if (!SWIG_IsOK(res1)) { | |
22266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22267 | } | |
22268 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22269 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22270 | if (!SWIG_IsOK(ecode2)) { | |
22271 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'"); | |
22272 | } | |
22273 | arg2 = static_cast< size_t >(val2); | |
22274 | if (obj2) { | |
22275 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
22276 | if (!SWIG_IsOK(ecode3)) { | |
22277 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'"); | |
22278 | } | |
22279 | arg3 = static_cast< bool >(val3); | |
22280 | } | |
22281 | { | |
22282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22283 | result = (bool)(arg1)->ExpandNode(arg2,arg3); | |
22284 | wxPyEndAllowThreads(__tstate); | |
22285 | if (PyErr_Occurred()) SWIG_fail; | |
22286 | } | |
22287 | { | |
22288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22289 | } | |
22290 | return resultobj; | |
22291 | fail: | |
22292 | return NULL; | |
22293 | } | |
22294 | ||
22295 | ||
22296 | SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22297 | PyObject *resultobj = 0; | |
22298 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22299 | size_t arg2 ; | |
22300 | bool result; | |
22301 | void *argp1 = 0 ; | |
22302 | int res1 = 0 ; | |
22303 | size_t val2 ; | |
22304 | int ecode2 = 0 ; | |
22305 | PyObject * obj0 = 0 ; | |
22306 | PyObject * obj1 = 0 ; | |
22307 | char * kwnames[] = { | |
22308 | (char *) "self",(char *) "pos", NULL | |
22309 | }; | |
22310 | ||
22311 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail; | |
22312 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22313 | if (!SWIG_IsOK(res1)) { | |
22314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'"); | |
22315 | } | |
22316 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22317 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22318 | if (!SWIG_IsOK(ecode2)) { | |
22319 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'"); | |
22320 | } | |
22321 | arg2 = static_cast< size_t >(val2); | |
22322 | { | |
22323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22324 | result = (bool)(arg1)->CollapseNode(arg2); | |
22325 | wxPyEndAllowThreads(__tstate); | |
22326 | if (PyErr_Occurred()) SWIG_fail; | |
22327 | } | |
22328 | { | |
22329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22330 | } | |
22331 | return resultobj; | |
22332 | fail: | |
22333 | return NULL; | |
22334 | } | |
22335 | ||
22336 | ||
22337 | SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22338 | PyObject *resultobj = 0; | |
22339 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
22340 | size_t arg2 ; | |
22341 | int result; | |
22342 | void *argp1 = 0 ; | |
22343 | int res1 = 0 ; | |
22344 | size_t val2 ; | |
22345 | int ecode2 = 0 ; | |
22346 | PyObject * obj0 = 0 ; | |
22347 | PyObject * obj1 = 0 ; | |
22348 | char * kwnames[] = { | |
22349 | (char *) "self",(char *) "pos", NULL | |
22350 | }; | |
22351 | ||
22352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
22353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22354 | if (!SWIG_IsOK(res1)) { | |
22355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
22356 | } | |
22357 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22358 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
22359 | if (!SWIG_IsOK(ecode2)) { | |
22360 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'"); | |
22361 | } | |
22362 | arg2 = static_cast< size_t >(val2); | |
22363 | { | |
22364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22365 | result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2); | |
22366 | wxPyEndAllowThreads(__tstate); | |
22367 | if (PyErr_Occurred()) SWIG_fail; | |
22368 | } | |
22369 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22370 | return resultobj; | |
22371 | fail: | |
22372 | return NULL; | |
d14a1e28 RD |
22373 | } |
22374 | ||
22375 | ||
0085ce49 RD |
22376 | SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22377 | PyObject *resultobj = 0; | |
22378 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
10044bf1 | 22379 | wxPyTreeCtrl *result = 0 ; |
0085ce49 RD |
22380 | void *argp1 = 0 ; |
22381 | int res1 = 0 ; | |
22382 | PyObject *swig_obj[1] ; | |
22383 | ||
22384 | if (!args) SWIG_fail; | |
22385 | swig_obj[0] = args; | |
22386 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 ); | |
22387 | if (!SWIG_IsOK(res1)) { | |
22388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'"); | |
22389 | } | |
22390 | arg1 = reinterpret_cast< wxTreebook * >(argp1); | |
22391 | { | |
22392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10044bf1 | 22393 | result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl(); |
0085ce49 RD |
22394 | wxPyEndAllowThreads(__tstate); |
22395 | if (PyErr_Occurred()) SWIG_fail; | |
22396 | } | |
10044bf1 RD |
22397 | { |
22398 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
22399 | } | |
0085ce49 RD |
22400 | return resultobj; |
22401 | fail: | |
22402 | return NULL; | |
22403 | } | |
22404 | ||
22405 | ||
22406 | SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22407 | PyObject *obj; | |
22408 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22409 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj)); | |
22410 | return SWIG_Py_Void(); | |
22411 | } | |
22412 | ||
22413 | SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22414 | return SWIG_Python_InitShadowInstance(args); | |
22415 | } | |
22416 | ||
22417 | SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22418 | PyObject *resultobj = 0; | |
22419 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22420 | int arg2 = (int) 0 ; | |
22421 | int arg3 = (int) wxNOT_FOUND ; | |
22422 | int arg4 = (int) wxNOT_FOUND ; | |
22423 | wxTreebookEvent *result = 0 ; | |
22424 | int val1 ; | |
22425 | int ecode1 = 0 ; | |
22426 | int val2 ; | |
22427 | int ecode2 = 0 ; | |
22428 | int val3 ; | |
22429 | int ecode3 = 0 ; | |
22430 | int val4 ; | |
22431 | int ecode4 = 0 ; | |
22432 | PyObject * obj0 = 0 ; | |
22433 | PyObject * obj1 = 0 ; | |
22434 | PyObject * obj2 = 0 ; | |
22435 | PyObject * obj3 = 0 ; | |
22436 | char * kwnames[] = { | |
22437 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
22438 | }; | |
22439 | ||
22440 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22441 | if (obj0) { | |
22442 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
22443 | if (!SWIG_IsOK(ecode1)) { | |
22444 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
22445 | } | |
22446 | arg1 = static_cast< wxEventType >(val1); | |
22447 | } | |
22448 | if (obj1) { | |
22449 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22450 | if (!SWIG_IsOK(ecode2)) { | |
22451 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'"); | |
22452 | } | |
22453 | arg2 = static_cast< int >(val2); | |
22454 | } | |
22455 | if (obj2) { | |
22456 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22457 | if (!SWIG_IsOK(ecode3)) { | |
22458 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'"); | |
22459 | } | |
22460 | arg3 = static_cast< int >(val3); | |
22461 | } | |
22462 | if (obj3) { | |
22463 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22464 | if (!SWIG_IsOK(ecode4)) { | |
22465 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'"); | |
22466 | } | |
22467 | arg4 = static_cast< int >(val4); | |
22468 | } | |
22469 | { | |
22470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22471 | result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4); | |
22472 | wxPyEndAllowThreads(__tstate); | |
22473 | if (PyErr_Occurred()) SWIG_fail; | |
22474 | } | |
22475 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 ); | |
22476 | return resultobj; | |
22477 | fail: | |
22478 | return NULL; | |
22479 | } | |
22480 | ||
22481 | ||
22482 | SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22483 | PyObject *obj; | |
22484 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22485 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj)); | |
22486 | return SWIG_Py_Void(); | |
22487 | } | |
22488 | ||
22489 | SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22490 | return SWIG_Python_InitShadowInstance(args); | |
22491 | } | |
22492 | ||
22493 | SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22494 | PyObject *resultobj = 0; | |
22495 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22496 | int arg2 ; | |
22497 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22498 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22499 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22500 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22501 | long arg5 = (long) wxBK_DEFAULT ; | |
22502 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
22503 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22504 | wxToolbook *result = 0 ; | |
22505 | void *argp1 = 0 ; | |
22506 | int res1 = 0 ; | |
22507 | int val2 ; | |
22508 | int ecode2 = 0 ; | |
22509 | wxPoint temp3 ; | |
22510 | wxSize temp4 ; | |
22511 | long val5 ; | |
22512 | int ecode5 = 0 ; | |
22513 | bool temp6 = false ; | |
22514 | PyObject * obj0 = 0 ; | |
22515 | PyObject * obj1 = 0 ; | |
22516 | PyObject * obj2 = 0 ; | |
22517 | PyObject * obj3 = 0 ; | |
22518 | PyObject * obj4 = 0 ; | |
22519 | PyObject * obj5 = 0 ; | |
22520 | char * kwnames[] = { | |
22521 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22522 | }; | |
22523 | ||
22524 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22525 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22526 | if (!SWIG_IsOK(res1)) { | |
22527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
22528 | } | |
22529 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
22530 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22531 | if (!SWIG_IsOK(ecode2)) { | |
22532 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'"); | |
22533 | } | |
22534 | arg2 = static_cast< int >(val2); | |
22535 | if (obj2) { | |
d14a1e28 | 22536 | { |
0085ce49 RD |
22537 | arg3 = &temp3; |
22538 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 22539 | } |
0085ce49 RD |
22540 | } |
22541 | if (obj3) { | |
093d3ff1 | 22542 | { |
0085ce49 RD |
22543 | arg4 = &temp4; |
22544 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 22545 | } |
0085ce49 RD |
22546 | } |
22547 | if (obj4) { | |
22548 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
22549 | if (!SWIG_IsOK(ecode5)) { | |
22550 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'"); | |
22551 | } | |
22552 | arg5 = static_cast< long >(val5); | |
22553 | } | |
22554 | if (obj5) { | |
d14a1e28 | 22555 | { |
0085ce49 RD |
22556 | arg6 = wxString_in_helper(obj5); |
22557 | if (arg6 == NULL) SWIG_fail; | |
22558 | temp6 = true; | |
d14a1e28 | 22559 | } |
0085ce49 RD |
22560 | } |
22561 | { | |
22562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22563 | result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22564 | wxPyEndAllowThreads(__tstate); | |
22565 | if (PyErr_Occurred()) SWIG_fail; | |
22566 | } | |
22567 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 ); | |
22568 | { | |
22569 | if (temp6) | |
22570 | delete arg6; | |
22571 | } | |
22572 | return resultobj; | |
22573 | fail: | |
22574 | { | |
22575 | if (temp6) | |
22576 | delete arg6; | |
22577 | } | |
22578 | return NULL; | |
d14a1e28 RD |
22579 | } |
22580 | ||
22581 | ||
0085ce49 RD |
22582 | SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22583 | PyObject *resultobj = 0; | |
22584 | wxToolbook *result = 0 ; | |
22585 | ||
22586 | if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail; | |
22587 | { | |
22588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22589 | result = (wxToolbook *)new wxToolbook(); | |
22590 | wxPyEndAllowThreads(__tstate); | |
22591 | if (PyErr_Occurred()) SWIG_fail; | |
22592 | } | |
22593 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 ); | |
22594 | return resultobj; | |
22595 | fail: | |
22596 | return NULL; | |
22597 | } | |
22598 | ||
22599 | ||
22600 | SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22601 | PyObject *resultobj = 0; | |
22602 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
22603 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22604 | int arg3 ; | |
22605 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22606 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22607 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22608 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22609 | long arg6 = (long) 0 ; | |
22610 | wxString const &arg7_defvalue = wxEmptyString ; | |
22611 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22612 | bool result; | |
22613 | void *argp1 = 0 ; | |
22614 | int res1 = 0 ; | |
22615 | void *argp2 = 0 ; | |
22616 | int res2 = 0 ; | |
22617 | int val3 ; | |
22618 | int ecode3 = 0 ; | |
22619 | wxPoint temp4 ; | |
22620 | wxSize temp5 ; | |
22621 | long val6 ; | |
22622 | int ecode6 = 0 ; | |
22623 | bool temp7 = false ; | |
22624 | PyObject * obj0 = 0 ; | |
22625 | PyObject * obj1 = 0 ; | |
22626 | PyObject * obj2 = 0 ; | |
22627 | PyObject * obj3 = 0 ; | |
22628 | PyObject * obj4 = 0 ; | |
22629 | PyObject * obj5 = 0 ; | |
22630 | PyObject * obj6 = 0 ; | |
22631 | char * kwnames[] = { | |
22632 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22633 | }; | |
22634 | ||
22635 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
22636 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
22637 | if (!SWIG_IsOK(res1)) { | |
22638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'"); | |
22639 | } | |
22640 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
22641 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22642 | if (!SWIG_IsOK(res2)) { | |
22643 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
22644 | } | |
22645 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
22646 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22647 | if (!SWIG_IsOK(ecode3)) { | |
22648 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'"); | |
22649 | } | |
22650 | arg3 = static_cast< int >(val3); | |
22651 | if (obj3) { | |
093d3ff1 | 22652 | { |
0085ce49 RD |
22653 | arg4 = &temp4; |
22654 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 22655 | } |
0085ce49 RD |
22656 | } |
22657 | if (obj4) { | |
093d3ff1 | 22658 | { |
0085ce49 RD |
22659 | arg5 = &temp5; |
22660 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 22661 | } |
0085ce49 RD |
22662 | } |
22663 | if (obj5) { | |
22664 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
22665 | if (!SWIG_IsOK(ecode6)) { | |
22666 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'"); | |
22667 | } | |
22668 | arg6 = static_cast< long >(val6); | |
22669 | } | |
22670 | if (obj6) { | |
994141e6 | 22671 | { |
0085ce49 RD |
22672 | arg7 = wxString_in_helper(obj6); |
22673 | if (arg7 == NULL) SWIG_fail; | |
22674 | temp7 = true; | |
d14a1e28 | 22675 | } |
0085ce49 RD |
22676 | } |
22677 | { | |
22678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22679 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22680 | wxPyEndAllowThreads(__tstate); | |
22681 | if (PyErr_Occurred()) SWIG_fail; | |
22682 | } | |
22683 | { | |
22684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22685 | } | |
22686 | { | |
22687 | if (temp7) | |
22688 | delete arg7; | |
22689 | } | |
22690 | return resultobj; | |
22691 | fail: | |
22692 | { | |
22693 | if (temp7) | |
22694 | delete arg7; | |
22695 | } | |
22696 | return NULL; | |
22bfe96c RD |
22697 | } |
22698 | ||
22699 | ||
0085ce49 RD |
22700 | SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22701 | PyObject *resultobj = 0; | |
22702 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
22703 | wxToolBarBase *result = 0 ; | |
22704 | void *argp1 = 0 ; | |
22705 | int res1 = 0 ; | |
22706 | PyObject *swig_obj[1] ; | |
22707 | ||
22708 | if (!args) SWIG_fail; | |
22709 | swig_obj[0] = args; | |
22710 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
22711 | if (!SWIG_IsOK(res1)) { | |
22712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'"); | |
22713 | } | |
22714 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
22715 | { | |
22716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22717 | result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar(); | |
22718 | wxPyEndAllowThreads(__tstate); | |
22719 | if (PyErr_Occurred()) SWIG_fail; | |
22720 | } | |
22721 | { | |
22722 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
22723 | } | |
22724 | return resultobj; | |
22725 | fail: | |
22726 | return NULL; | |
d14a1e28 RD |
22727 | } |
22728 | ||
22729 | ||
0085ce49 RD |
22730 | SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22731 | PyObject *resultobj = 0; | |
22732 | wxToolbook *arg1 = (wxToolbook *) 0 ; | |
22733 | void *argp1 = 0 ; | |
22734 | int res1 = 0 ; | |
22735 | PyObject *swig_obj[1] ; | |
22736 | ||
22737 | if (!args) SWIG_fail; | |
22738 | swig_obj[0] = args; | |
22739 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 ); | |
22740 | if (!SWIG_IsOK(res1)) { | |
22741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'"); | |
22742 | } | |
22743 | arg1 = reinterpret_cast< wxToolbook * >(argp1); | |
22744 | { | |
22745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22746 | (arg1)->Realize(); | |
22747 | wxPyEndAllowThreads(__tstate); | |
22748 | if (PyErr_Occurred()) SWIG_fail; | |
22749 | } | |
22750 | resultobj = SWIG_Py_Void(); | |
22751 | return resultobj; | |
22752 | fail: | |
22753 | return NULL; | |
22754 | } | |
22755 | ||
22756 | ||
22757 | SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22758 | PyObject *obj; | |
22759 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22760 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj)); | |
22761 | return SWIG_Py_Void(); | |
22762 | } | |
22763 | ||
22764 | SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22765 | return SWIG_Python_InitShadowInstance(args); | |
22766 | } | |
22767 | ||
22768 | SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22769 | PyObject *resultobj = 0; | |
22770 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22771 | int arg2 = (int) 0 ; | |
22772 | int arg3 = (int) wxNOT_FOUND ; | |
22773 | int arg4 = (int) wxNOT_FOUND ; | |
22774 | wxToolbookEvent *result = 0 ; | |
22775 | int val1 ; | |
22776 | int ecode1 = 0 ; | |
22777 | int val2 ; | |
22778 | int ecode2 = 0 ; | |
22779 | int val3 ; | |
22780 | int ecode3 = 0 ; | |
22781 | int val4 ; | |
22782 | int ecode4 = 0 ; | |
22783 | PyObject * obj0 = 0 ; | |
22784 | PyObject * obj1 = 0 ; | |
22785 | PyObject * obj2 = 0 ; | |
22786 | PyObject * obj3 = 0 ; | |
22787 | char * kwnames[] = { | |
22788 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
22789 | }; | |
22790 | ||
22791 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22792 | if (obj0) { | |
22793 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
22794 | if (!SWIG_IsOK(ecode1)) { | |
22795 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
22796 | } | |
22797 | arg1 = static_cast< wxEventType >(val1); | |
22798 | } | |
22799 | if (obj1) { | |
22800 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22801 | if (!SWIG_IsOK(ecode2)) { | |
22802 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'"); | |
22803 | } | |
22804 | arg2 = static_cast< int >(val2); | |
22805 | } | |
22806 | if (obj2) { | |
22807 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22808 | if (!SWIG_IsOK(ecode3)) { | |
22809 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'"); | |
22810 | } | |
22811 | arg3 = static_cast< int >(val3); | |
22812 | } | |
22813 | if (obj3) { | |
22814 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22815 | if (!SWIG_IsOK(ecode4)) { | |
22816 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'"); | |
22817 | } | |
22818 | arg4 = static_cast< int >(val4); | |
22819 | } | |
22820 | { | |
22821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22822 | result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4); | |
22823 | wxPyEndAllowThreads(__tstate); | |
22824 | if (PyErr_Occurred()) SWIG_fail; | |
22825 | } | |
22826 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 ); | |
22827 | return resultobj; | |
22828 | fail: | |
22829 | return NULL; | |
d14a1e28 RD |
22830 | } |
22831 | ||
22832 | ||
0085ce49 RD |
22833 | SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22834 | PyObject *obj; | |
22835 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22836 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj)); | |
22837 | return SWIG_Py_Void(); | |
d14a1e28 RD |
22838 | } |
22839 | ||
0085ce49 RD |
22840 | SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22841 | return SWIG_Python_InitShadowInstance(args); | |
22842 | } | |
d14a1e28 | 22843 | |
0085ce49 RD |
22844 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22845 | PyObject *resultobj = 0; | |
22846 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22847 | int result; | |
22848 | void *argp1 = 0 ; | |
22849 | int res1 = 0 ; | |
22850 | PyObject *swig_obj[1] ; | |
22851 | ||
22852 | if (!args) SWIG_fail; | |
22853 | swig_obj[0] = args; | |
22854 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22855 | if (!SWIG_IsOK(res1)) { | |
22856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22857 | } | |
22858 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22859 | { | |
22860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22861 | result = (int)(arg1)->GetId(); | |
22862 | wxPyEndAllowThreads(__tstate); | |
22863 | if (PyErr_Occurred()) SWIG_fail; | |
22864 | } | |
22865 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22866 | return resultobj; | |
22867 | fail: | |
22868 | return NULL; | |
d14a1e28 RD |
22869 | } |
22870 | ||
22871 | ||
0085ce49 RD |
22872 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22873 | PyObject *resultobj = 0; | |
22874 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22875 | wxControl *result = 0 ; | |
22876 | void *argp1 = 0 ; | |
22877 | int res1 = 0 ; | |
22878 | PyObject *swig_obj[1] ; | |
22879 | ||
22880 | if (!args) SWIG_fail; | |
22881 | swig_obj[0] = args; | |
22882 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22883 | if (!SWIG_IsOK(res1)) { | |
22884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22885 | } | |
22886 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22887 | { | |
22888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22889 | result = (wxControl *)(arg1)->GetControl(); | |
22890 | wxPyEndAllowThreads(__tstate); | |
22891 | if (PyErr_Occurred()) SWIG_fail; | |
22892 | } | |
22893 | { | |
22894 | resultobj = wxPyMake_wxObject(result, 0); | |
22895 | } | |
22896 | return resultobj; | |
22897 | fail: | |
22898 | return NULL; | |
d14a1e28 RD |
22899 | } |
22900 | ||
22901 | ||
0085ce49 RD |
22902 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22903 | PyObject *resultobj = 0; | |
22904 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22905 | wxToolBarBase *result = 0 ; | |
22906 | void *argp1 = 0 ; | |
22907 | int res1 = 0 ; | |
22908 | PyObject *swig_obj[1] ; | |
22909 | ||
22910 | if (!args) SWIG_fail; | |
22911 | swig_obj[0] = args; | |
22912 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22913 | if (!SWIG_IsOK(res1)) { | |
22914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22915 | } | |
22916 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22917 | { | |
22918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22919 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
22920 | wxPyEndAllowThreads(__tstate); | |
22921 | if (PyErr_Occurred()) SWIG_fail; | |
22922 | } | |
22923 | { | |
22924 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
22925 | } | |
22926 | return resultobj; | |
22927 | fail: | |
22928 | return NULL; | |
d14a1e28 RD |
22929 | } |
22930 | ||
22931 | ||
0085ce49 RD |
22932 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22933 | PyObject *resultobj = 0; | |
22934 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22935 | int result; | |
22936 | void *argp1 = 0 ; | |
22937 | int res1 = 0 ; | |
22938 | PyObject *swig_obj[1] ; | |
22939 | ||
22940 | if (!args) SWIG_fail; | |
22941 | swig_obj[0] = args; | |
22942 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22943 | if (!SWIG_IsOK(res1)) { | |
22944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22945 | } | |
22946 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22947 | { | |
22948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22949 | result = (int)(arg1)->IsButton(); | |
22950 | wxPyEndAllowThreads(__tstate); | |
22951 | if (PyErr_Occurred()) SWIG_fail; | |
22952 | } | |
22953 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22954 | return resultobj; | |
22955 | fail: | |
22956 | return NULL; | |
d14a1e28 RD |
22957 | } |
22958 | ||
22959 | ||
0085ce49 RD |
22960 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22961 | PyObject *resultobj = 0; | |
22962 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22963 | int result; | |
22964 | void *argp1 = 0 ; | |
22965 | int res1 = 0 ; | |
22966 | PyObject *swig_obj[1] ; | |
22967 | ||
22968 | if (!args) SWIG_fail; | |
22969 | swig_obj[0] = args; | |
22970 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22971 | if (!SWIG_IsOK(res1)) { | |
22972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
22973 | } | |
22974 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
22975 | { | |
22976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22977 | result = (int)(arg1)->IsControl(); | |
22978 | wxPyEndAllowThreads(__tstate); | |
22979 | if (PyErr_Occurred()) SWIG_fail; | |
22980 | } | |
22981 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22982 | return resultobj; | |
22983 | fail: | |
22984 | return NULL; | |
d14a1e28 RD |
22985 | } |
22986 | ||
22987 | ||
0085ce49 RD |
22988 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22989 | PyObject *resultobj = 0; | |
22990 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
22991 | int result; | |
22992 | void *argp1 = 0 ; | |
22993 | int res1 = 0 ; | |
22994 | PyObject *swig_obj[1] ; | |
22995 | ||
22996 | if (!args) SWIG_fail; | |
22997 | swig_obj[0] = args; | |
22998 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
22999 | if (!SWIG_IsOK(res1)) { | |
23000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23001 | } | |
23002 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23003 | { | |
23004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23005 | result = (int)(arg1)->IsSeparator(); | |
23006 | wxPyEndAllowThreads(__tstate); | |
23007 | if (PyErr_Occurred()) SWIG_fail; | |
23008 | } | |
23009 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23010 | return resultobj; | |
23011 | fail: | |
23012 | return NULL; | |
d14a1e28 RD |
23013 | } |
23014 | ||
23015 | ||
0085ce49 RD |
23016 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23017 | PyObject *resultobj = 0; | |
23018 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23019 | int result; | |
23020 | void *argp1 = 0 ; | |
23021 | int res1 = 0 ; | |
23022 | PyObject *swig_obj[1] ; | |
23023 | ||
23024 | if (!args) SWIG_fail; | |
23025 | swig_obj[0] = args; | |
23026 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23027 | if (!SWIG_IsOK(res1)) { | |
23028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23029 | } | |
23030 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23031 | { | |
23032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23033 | result = (int)(arg1)->GetStyle(); | |
23034 | wxPyEndAllowThreads(__tstate); | |
23035 | if (PyErr_Occurred()) SWIG_fail; | |
23036 | } | |
23037 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23038 | return resultobj; | |
23039 | fail: | |
23040 | return NULL; | |
d14a1e28 RD |
23041 | } |
23042 | ||
23043 | ||
0085ce49 RD |
23044 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23045 | PyObject *resultobj = 0; | |
23046 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23047 | wxItemKind result; | |
23048 | void *argp1 = 0 ; | |
23049 | int res1 = 0 ; | |
23050 | PyObject *swig_obj[1] ; | |
23051 | ||
23052 | if (!args) SWIG_fail; | |
23053 | swig_obj[0] = args; | |
23054 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23055 | if (!SWIG_IsOK(res1)) { | |
23056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23057 | } | |
23058 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23059 | { | |
23060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23061 | result = (wxItemKind)(arg1)->GetKind(); | |
23062 | wxPyEndAllowThreads(__tstate); | |
23063 | if (PyErr_Occurred()) SWIG_fail; | |
23064 | } | |
23065 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23066 | return resultobj; | |
23067 | fail: | |
23068 | return NULL; | |
d14a1e28 RD |
23069 | } |
23070 | ||
23071 | ||
0085ce49 RD |
23072 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23073 | PyObject *resultobj = 0; | |
23074 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23075 | bool result; | |
23076 | void *argp1 = 0 ; | |
23077 | int res1 = 0 ; | |
23078 | PyObject *swig_obj[1] ; | |
23079 | ||
23080 | if (!args) SWIG_fail; | |
23081 | swig_obj[0] = args; | |
23082 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23083 | if (!SWIG_IsOK(res1)) { | |
23084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23085 | } | |
23086 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23087 | { | |
23088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23089 | result = (bool)(arg1)->IsEnabled(); | |
23090 | wxPyEndAllowThreads(__tstate); | |
23091 | if (PyErr_Occurred()) SWIG_fail; | |
23092 | } | |
23093 | { | |
23094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23095 | } | |
23096 | return resultobj; | |
23097 | fail: | |
23098 | return NULL; | |
d14a1e28 RD |
23099 | } |
23100 | ||
23101 | ||
0085ce49 RD |
23102 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23103 | PyObject *resultobj = 0; | |
23104 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23105 | bool result; | |
23106 | void *argp1 = 0 ; | |
23107 | int res1 = 0 ; | |
23108 | PyObject *swig_obj[1] ; | |
23109 | ||
23110 | if (!args) SWIG_fail; | |
23111 | swig_obj[0] = args; | |
23112 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23113 | if (!SWIG_IsOK(res1)) { | |
23114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23115 | } | |
23116 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23117 | { | |
23118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23119 | result = (bool)(arg1)->IsToggled(); | |
23120 | wxPyEndAllowThreads(__tstate); | |
23121 | if (PyErr_Occurred()) SWIG_fail; | |
23122 | } | |
23123 | { | |
23124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23125 | } | |
23126 | return resultobj; | |
23127 | fail: | |
23128 | return NULL; | |
22bfe96c RD |
23129 | } |
23130 | ||
23131 | ||
0085ce49 RD |
23132 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23133 | PyObject *resultobj = 0; | |
23134 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23135 | bool result; | |
23136 | void *argp1 = 0 ; | |
23137 | int res1 = 0 ; | |
23138 | PyObject *swig_obj[1] ; | |
23139 | ||
23140 | if (!args) SWIG_fail; | |
23141 | swig_obj[0] = args; | |
23142 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23143 | if (!SWIG_IsOK(res1)) { | |
23144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23145 | } | |
23146 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23147 | { | |
23148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23149 | result = (bool)(arg1)->CanBeToggled(); | |
23150 | wxPyEndAllowThreads(__tstate); | |
23151 | if (PyErr_Occurred()) SWIG_fail; | |
23152 | } | |
23153 | { | |
23154 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23155 | } | |
23156 | return resultobj; | |
23157 | fail: | |
23158 | return NULL; | |
d1e20054 RD |
23159 | } |
23160 | ||
23161 | ||
0085ce49 RD |
23162 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23163 | PyObject *resultobj = 0; | |
23164 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23165 | wxBitmap *result = 0 ; | |
23166 | void *argp1 = 0 ; | |
23167 | int res1 = 0 ; | |
23168 | PyObject *swig_obj[1] ; | |
23169 | ||
23170 | if (!args) SWIG_fail; | |
23171 | swig_obj[0] = args; | |
23172 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23173 | if (!SWIG_IsOK(res1)) { | |
23174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23175 | } | |
23176 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23177 | { | |
23178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 23179 | { |
0085ce49 RD |
23180 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); |
23181 | result = (wxBitmap *) &_result_ref; | |
093d3ff1 | 23182 | } |
0085ce49 RD |
23183 | wxPyEndAllowThreads(__tstate); |
23184 | if (PyErr_Occurred()) SWIG_fail; | |
23185 | } | |
23186 | { | |
23187 | wxBitmap* resultptr = new wxBitmap(*result); | |
23188 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
23189 | } | |
23190 | return resultobj; | |
23191 | fail: | |
23192 | return NULL; | |
d1e20054 RD |
23193 | } |
23194 | ||
23195 | ||
0085ce49 RD |
23196 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23197 | PyObject *resultobj = 0; | |
23198 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23199 | wxBitmap *result = 0 ; | |
23200 | void *argp1 = 0 ; | |
23201 | int res1 = 0 ; | |
23202 | PyObject *swig_obj[1] ; | |
23203 | ||
23204 | if (!args) SWIG_fail; | |
23205 | swig_obj[0] = args; | |
23206 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23207 | if (!SWIG_IsOK(res1)) { | |
23208 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23209 | } | |
23210 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23211 | { | |
23212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d1e20054 | 23213 | { |
0085ce49 RD |
23214 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); |
23215 | result = (wxBitmap *) &_result_ref; | |
d1e20054 | 23216 | } |
0085ce49 RD |
23217 | wxPyEndAllowThreads(__tstate); |
23218 | if (PyErr_Occurred()) SWIG_fail; | |
23219 | } | |
23220 | { | |
23221 | wxBitmap* resultptr = new wxBitmap(*result); | |
23222 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
23223 | } | |
23224 | return resultobj; | |
23225 | fail: | |
23226 | return NULL; | |
d1e20054 RD |
23227 | } |
23228 | ||
23229 | ||
0085ce49 RD |
23230 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23231 | PyObject *resultobj = 0; | |
23232 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23233 | wxBitmap result; | |
23234 | void *argp1 = 0 ; | |
23235 | int res1 = 0 ; | |
23236 | PyObject *swig_obj[1] ; | |
23237 | ||
23238 | if (!args) SWIG_fail; | |
23239 | swig_obj[0] = args; | |
23240 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23241 | if (!SWIG_IsOK(res1)) { | |
23242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23243 | } | |
23244 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23245 | { | |
23246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23247 | result = (arg1)->GetBitmap(); | |
23248 | wxPyEndAllowThreads(__tstate); | |
23249 | if (PyErr_Occurred()) SWIG_fail; | |
23250 | } | |
23251 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
23252 | return resultobj; | |
23253 | fail: | |
23254 | return NULL; | |
b2dc1044 RD |
23255 | } |
23256 | ||
23257 | ||
0085ce49 RD |
23258 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23259 | PyObject *resultobj = 0; | |
23260 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23261 | wxString result; | |
23262 | void *argp1 = 0 ; | |
23263 | int res1 = 0 ; | |
23264 | PyObject *swig_obj[1] ; | |
23265 | ||
23266 | if (!args) SWIG_fail; | |
23267 | swig_obj[0] = args; | |
23268 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23269 | if (!SWIG_IsOK(res1)) { | |
23270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23271 | } | |
23272 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23273 | { | |
23274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23275 | result = (arg1)->GetLabel(); | |
23276 | wxPyEndAllowThreads(__tstate); | |
23277 | if (PyErr_Occurred()) SWIG_fail; | |
23278 | } | |
23279 | { | |
b2dc1044 | 23280 | #if wxUSE_UNICODE |
0085ce49 | 23281 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 23282 | #else |
0085ce49 | 23283 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 23284 | #endif |
0085ce49 RD |
23285 | } |
23286 | return resultobj; | |
23287 | fail: | |
23288 | return NULL; | |
b2dc1044 RD |
23289 | } |
23290 | ||
23291 | ||
0085ce49 RD |
23292 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23293 | PyObject *resultobj = 0; | |
23294 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23295 | wxString 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_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23305 | } | |
23306 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23307 | { | |
23308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23309 | result = (arg1)->GetShortHelp(); | |
23310 | wxPyEndAllowThreads(__tstate); | |
23311 | if (PyErr_Occurred()) SWIG_fail; | |
23312 | } | |
23313 | { | |
b2dc1044 | 23314 | #if wxUSE_UNICODE |
0085ce49 | 23315 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 23316 | #else |
0085ce49 | 23317 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 23318 | #endif |
0085ce49 RD |
23319 | } |
23320 | return resultobj; | |
23321 | fail: | |
23322 | return NULL; | |
d14a1e28 RD |
23323 | } |
23324 | ||
23325 | ||
0085ce49 RD |
23326 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23327 | PyObject *resultobj = 0; | |
23328 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23329 | wxString result; | |
23330 | void *argp1 = 0 ; | |
23331 | int res1 = 0 ; | |
23332 | PyObject *swig_obj[1] ; | |
23333 | ||
23334 | if (!args) SWIG_fail; | |
23335 | swig_obj[0] = args; | |
23336 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23337 | if (!SWIG_IsOK(res1)) { | |
23338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23339 | } | |
23340 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23341 | { | |
23342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23343 | result = (arg1)->GetLongHelp(); | |
23344 | wxPyEndAllowThreads(__tstate); | |
23345 | if (PyErr_Occurred()) SWIG_fail; | |
23346 | } | |
23347 | { | |
23348 | #if wxUSE_UNICODE | |
23349 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23350 | #else | |
23351 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23352 | #endif | |
23353 | } | |
23354 | return resultobj; | |
23355 | fail: | |
23356 | return NULL; | |
23357 | } | |
23358 | ||
23359 | ||
23360 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23361 | PyObject *resultobj = 0; | |
23362 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23363 | bool arg2 ; | |
23364 | bool result; | |
23365 | void *argp1 = 0 ; | |
23366 | int res1 = 0 ; | |
23367 | bool val2 ; | |
23368 | int ecode2 = 0 ; | |
23369 | PyObject * obj0 = 0 ; | |
23370 | PyObject * obj1 = 0 ; | |
23371 | char * kwnames[] = { | |
23372 | (char *) "self",(char *) "enable", NULL | |
23373 | }; | |
23374 | ||
23375 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail; | |
23376 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23377 | if (!SWIG_IsOK(res1)) { | |
23378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23379 | } | |
23380 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23381 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23382 | if (!SWIG_IsOK(ecode2)) { | |
23383 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'"); | |
23384 | } | |
23385 | arg2 = static_cast< bool >(val2); | |
23386 | { | |
23387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23388 | result = (bool)(arg1)->Enable(arg2); | |
23389 | wxPyEndAllowThreads(__tstate); | |
23390 | if (PyErr_Occurred()) SWIG_fail; | |
23391 | } | |
23392 | { | |
23393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23394 | } | |
23395 | return resultobj; | |
23396 | fail: | |
23397 | return NULL; | |
d14a1e28 RD |
23398 | } |
23399 | ||
23400 | ||
0085ce49 RD |
23401 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23402 | PyObject *resultobj = 0; | |
23403 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23404 | void *argp1 = 0 ; | |
23405 | int res1 = 0 ; | |
23406 | PyObject *swig_obj[1] ; | |
23407 | ||
23408 | if (!args) SWIG_fail; | |
23409 | swig_obj[0] = args; | |
23410 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23411 | if (!SWIG_IsOK(res1)) { | |
23412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23413 | } | |
23414 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23415 | { | |
23416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23417 | (arg1)->Toggle(); | |
23418 | wxPyEndAllowThreads(__tstate); | |
23419 | if (PyErr_Occurred()) SWIG_fail; | |
23420 | } | |
23421 | resultobj = SWIG_Py_Void(); | |
23422 | return resultobj; | |
23423 | fail: | |
23424 | return NULL; | |
23425 | } | |
23426 | ||
23427 | ||
23428 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23429 | PyObject *resultobj = 0; | |
23430 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23431 | bool arg2 ; | |
23432 | bool result; | |
23433 | void *argp1 = 0 ; | |
23434 | int res1 = 0 ; | |
23435 | bool val2 ; | |
23436 | int ecode2 = 0 ; | |
23437 | PyObject * obj0 = 0 ; | |
23438 | PyObject * obj1 = 0 ; | |
23439 | char * kwnames[] = { | |
23440 | (char *) "self",(char *) "toggle", NULL | |
23441 | }; | |
23442 | ||
23443 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
23444 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23445 | if (!SWIG_IsOK(res1)) { | |
23446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23447 | } | |
23448 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23449 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23450 | if (!SWIG_IsOK(ecode2)) { | |
23451 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'"); | |
23452 | } | |
23453 | arg2 = static_cast< bool >(val2); | |
23454 | { | |
23455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23456 | result = (bool)(arg1)->SetToggle(arg2); | |
23457 | wxPyEndAllowThreads(__tstate); | |
23458 | if (PyErr_Occurred()) SWIG_fail; | |
23459 | } | |
23460 | { | |
23461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23462 | } | |
23463 | return resultobj; | |
23464 | fail: | |
23465 | return NULL; | |
23466 | } | |
23467 | ||
23468 | ||
23469 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23470 | PyObject *resultobj = 0; | |
23471 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23472 | wxString *arg2 = 0 ; | |
23473 | bool result; | |
23474 | void *argp1 = 0 ; | |
23475 | int res1 = 0 ; | |
23476 | bool temp2 = false ; | |
23477 | PyObject * obj0 = 0 ; | |
23478 | PyObject * obj1 = 0 ; | |
23479 | char * kwnames[] = { | |
23480 | (char *) "self",(char *) "help", NULL | |
23481 | }; | |
23482 | ||
23483 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
23484 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23485 | if (!SWIG_IsOK(res1)) { | |
23486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23487 | } | |
23488 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23489 | { | |
23490 | arg2 = wxString_in_helper(obj1); | |
23491 | if (arg2 == NULL) SWIG_fail; | |
23492 | temp2 = true; | |
23493 | } | |
23494 | { | |
23495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23496 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
23497 | wxPyEndAllowThreads(__tstate); | |
23498 | if (PyErr_Occurred()) SWIG_fail; | |
23499 | } | |
23500 | { | |
23501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23502 | } | |
23503 | { | |
23504 | if (temp2) | |
23505 | delete arg2; | |
23506 | } | |
23507 | return resultobj; | |
23508 | fail: | |
23509 | { | |
23510 | if (temp2) | |
23511 | delete arg2; | |
23512 | } | |
23513 | return NULL; | |
23514 | } | |
23515 | ||
23516 | ||
23517 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23518 | PyObject *resultobj = 0; | |
23519 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23520 | wxString *arg2 = 0 ; | |
23521 | bool result; | |
23522 | void *argp1 = 0 ; | |
23523 | int res1 = 0 ; | |
23524 | bool temp2 = false ; | |
23525 | PyObject * obj0 = 0 ; | |
23526 | PyObject * obj1 = 0 ; | |
23527 | char * kwnames[] = { | |
23528 | (char *) "self",(char *) "help", NULL | |
23529 | }; | |
23530 | ||
23531 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
23532 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23533 | if (!SWIG_IsOK(res1)) { | |
23534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23535 | } | |
23536 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23537 | { | |
23538 | arg2 = wxString_in_helper(obj1); | |
23539 | if (arg2 == NULL) SWIG_fail; | |
23540 | temp2 = true; | |
23541 | } | |
23542 | { | |
23543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23544 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
23545 | wxPyEndAllowThreads(__tstate); | |
23546 | if (PyErr_Occurred()) SWIG_fail; | |
23547 | } | |
23548 | { | |
23549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23550 | } | |
23551 | { | |
23552 | if (temp2) | |
23553 | delete arg2; | |
23554 | } | |
23555 | return resultobj; | |
23556 | fail: | |
23557 | { | |
23558 | if (temp2) | |
23559 | delete arg2; | |
23560 | } | |
23561 | return NULL; | |
23562 | } | |
23563 | ||
23564 | ||
23565 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23566 | PyObject *resultobj = 0; | |
23567 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23568 | wxBitmap *arg2 = 0 ; | |
23569 | void *argp1 = 0 ; | |
23570 | int res1 = 0 ; | |
23571 | void *argp2 = 0 ; | |
23572 | int res2 = 0 ; | |
23573 | PyObject * obj0 = 0 ; | |
23574 | PyObject * obj1 = 0 ; | |
23575 | char * kwnames[] = { | |
23576 | (char *) "self",(char *) "bmp", NULL | |
23577 | }; | |
23578 | ||
23579 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
23580 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23581 | if (!SWIG_IsOK(res1)) { | |
23582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23583 | } | |
23584 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23585 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23586 | if (!SWIG_IsOK(res2)) { | |
23587 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23588 | } | |
23589 | if (!argp2) { | |
23590 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23591 | } | |
23592 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
23593 | { | |
23594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23595 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
23596 | wxPyEndAllowThreads(__tstate); | |
23597 | if (PyErr_Occurred()) SWIG_fail; | |
23598 | } | |
23599 | resultobj = SWIG_Py_Void(); | |
23600 | return resultobj; | |
23601 | fail: | |
23602 | return NULL; | |
23603 | } | |
23604 | ||
23605 | ||
23606 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23607 | PyObject *resultobj = 0; | |
23608 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23609 | wxBitmap *arg2 = 0 ; | |
23610 | void *argp1 = 0 ; | |
23611 | int res1 = 0 ; | |
23612 | void *argp2 = 0 ; | |
23613 | int res2 = 0 ; | |
23614 | PyObject * obj0 = 0 ; | |
23615 | PyObject * obj1 = 0 ; | |
23616 | char * kwnames[] = { | |
23617 | (char *) "self",(char *) "bmp", NULL | |
23618 | }; | |
23619 | ||
23620 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
23621 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23622 | if (!SWIG_IsOK(res1)) { | |
23623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23624 | } | |
23625 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23626 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23627 | if (!SWIG_IsOK(res2)) { | |
23628 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23629 | } | |
23630 | if (!argp2) { | |
23631 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23632 | } | |
23633 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
23634 | { | |
23635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23636 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
23637 | wxPyEndAllowThreads(__tstate); | |
23638 | if (PyErr_Occurred()) SWIG_fail; | |
23639 | } | |
23640 | resultobj = SWIG_Py_Void(); | |
23641 | return resultobj; | |
23642 | fail: | |
23643 | return NULL; | |
23644 | } | |
23645 | ||
23646 | ||
23647 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23648 | PyObject *resultobj = 0; | |
23649 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23650 | wxString *arg2 = 0 ; | |
23651 | void *argp1 = 0 ; | |
23652 | int res1 = 0 ; | |
23653 | bool temp2 = false ; | |
23654 | PyObject * obj0 = 0 ; | |
23655 | PyObject * obj1 = 0 ; | |
23656 | char * kwnames[] = { | |
23657 | (char *) "self",(char *) "label", NULL | |
23658 | }; | |
23659 | ||
23660 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
23661 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23662 | if (!SWIG_IsOK(res1)) { | |
23663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23664 | } | |
23665 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23666 | { | |
23667 | arg2 = wxString_in_helper(obj1); | |
23668 | if (arg2 == NULL) SWIG_fail; | |
23669 | temp2 = true; | |
23670 | } | |
23671 | { | |
23672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23673 | (arg1)->SetLabel((wxString const &)*arg2); | |
23674 | wxPyEndAllowThreads(__tstate); | |
23675 | if (PyErr_Occurred()) SWIG_fail; | |
23676 | } | |
23677 | resultobj = SWIG_Py_Void(); | |
23678 | { | |
23679 | if (temp2) | |
23680 | delete arg2; | |
23681 | } | |
23682 | return resultobj; | |
23683 | fail: | |
23684 | { | |
23685 | if (temp2) | |
23686 | delete arg2; | |
23687 | } | |
23688 | return NULL; | |
d14a1e28 RD |
23689 | } |
23690 | ||
23691 | ||
0085ce49 RD |
23692 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23693 | PyObject *resultobj = 0; | |
23694 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23695 | void *argp1 = 0 ; | |
23696 | int res1 = 0 ; | |
23697 | PyObject *swig_obj[1] ; | |
23698 | ||
23699 | if (!args) SWIG_fail; | |
23700 | swig_obj[0] = args; | |
23701 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23702 | if (!SWIG_IsOK(res1)) { | |
23703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23704 | } | |
23705 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23706 | { | |
23707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23708 | (arg1)->Detach(); | |
23709 | wxPyEndAllowThreads(__tstate); | |
23710 | if (PyErr_Occurred()) SWIG_fail; | |
23711 | } | |
23712 | resultobj = SWIG_Py_Void(); | |
23713 | return resultobj; | |
23714 | fail: | |
23715 | return NULL; | |
23716 | } | |
23717 | ||
23718 | ||
23719 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23720 | PyObject *resultobj = 0; | |
23721 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23722 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
23723 | void *argp1 = 0 ; | |
23724 | int res1 = 0 ; | |
23725 | void *argp2 = 0 ; | |
23726 | int res2 = 0 ; | |
23727 | PyObject * obj0 = 0 ; | |
23728 | PyObject * obj1 = 0 ; | |
23729 | char * kwnames[] = { | |
23730 | (char *) "self",(char *) "tbar", NULL | |
23731 | }; | |
23732 | ||
23733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail; | |
23734 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23735 | if (!SWIG_IsOK(res1)) { | |
23736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23737 | } | |
23738 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23739 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23740 | if (!SWIG_IsOK(res2)) { | |
23741 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'"); | |
23742 | } | |
23743 | arg2 = reinterpret_cast< wxToolBarBase * >(argp2); | |
23744 | { | |
23745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23746 | (arg1)->Attach(arg2); | |
23747 | wxPyEndAllowThreads(__tstate); | |
23748 | if (PyErr_Occurred()) SWIG_fail; | |
23749 | } | |
23750 | resultobj = SWIG_Py_Void(); | |
23751 | return resultobj; | |
23752 | fail: | |
23753 | return NULL; | |
d14a1e28 RD |
23754 | } |
23755 | ||
23756 | ||
0085ce49 RD |
23757 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23758 | PyObject *resultobj = 0; | |
23759 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23760 | PyObject *result = 0 ; | |
23761 | void *argp1 = 0 ; | |
23762 | int res1 = 0 ; | |
23763 | PyObject *swig_obj[1] ; | |
23764 | ||
23765 | if (!args) SWIG_fail; | |
23766 | swig_obj[0] = args; | |
23767 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23768 | if (!SWIG_IsOK(res1)) { | |
23769 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23770 | } | |
23771 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23772 | { | |
23773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23774 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
23775 | wxPyEndAllowThreads(__tstate); | |
23776 | if (PyErr_Occurred()) SWIG_fail; | |
23777 | } | |
23778 | resultobj = result; | |
23779 | return resultobj; | |
23780 | fail: | |
23781 | return NULL; | |
23782 | } | |
23783 | ||
23784 | ||
23785 | SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23786 | PyObject *resultobj = 0; | |
23787 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
23788 | PyObject *arg2 = (PyObject *) 0 ; | |
23789 | void *argp1 = 0 ; | |
23790 | int res1 = 0 ; | |
23791 | PyObject * obj0 = 0 ; | |
23792 | PyObject * obj1 = 0 ; | |
23793 | char * kwnames[] = { | |
23794 | (char *) "self",(char *) "clientData", NULL | |
23795 | }; | |
23796 | ||
23797 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail; | |
23798 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
23799 | if (!SWIG_IsOK(res1)) { | |
23800 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'"); | |
23801 | } | |
23802 | arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1); | |
23803 | arg2 = obj1; | |
23804 | { | |
23805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23806 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
23807 | wxPyEndAllowThreads(__tstate); | |
23808 | if (PyErr_Occurred()) SWIG_fail; | |
23809 | } | |
23810 | resultobj = SWIG_Py_Void(); | |
23811 | return resultobj; | |
23812 | fail: | |
23813 | return NULL; | |
23814 | } | |
23815 | ||
23816 | ||
23817 | SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23818 | PyObject *obj; | |
23819 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23820 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj)); | |
23821 | return SWIG_Py_Void(); | |
23822 | } | |
23823 | ||
23824 | SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23825 | PyObject *resultobj = 0; | |
23826 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23827 | int arg2 ; | |
23828 | wxString *arg3 = 0 ; | |
23829 | wxBitmap *arg4 = 0 ; | |
23830 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
23831 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
23832 | wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ; | |
23833 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
23834 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23835 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
23836 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23837 | PyObject *arg9 = (PyObject *) NULL ; | |
23838 | wxToolBarToolBase *result = 0 ; | |
23839 | void *argp1 = 0 ; | |
23840 | int res1 = 0 ; | |
23841 | int val2 ; | |
23842 | int ecode2 = 0 ; | |
23843 | bool temp3 = false ; | |
23844 | void *argp4 = 0 ; | |
23845 | int res4 = 0 ; | |
23846 | void *argp5 = 0 ; | |
23847 | int res5 = 0 ; | |
23848 | int val6 ; | |
23849 | int ecode6 = 0 ; | |
23850 | bool temp7 = false ; | |
23851 | bool temp8 = false ; | |
23852 | PyObject * obj0 = 0 ; | |
23853 | PyObject * obj1 = 0 ; | |
23854 | PyObject * obj2 = 0 ; | |
23855 | PyObject * obj3 = 0 ; | |
23856 | PyObject * obj4 = 0 ; | |
23857 | PyObject * obj5 = 0 ; | |
23858 | PyObject * obj6 = 0 ; | |
23859 | PyObject * obj7 = 0 ; | |
23860 | PyObject * obj8 = 0 ; | |
23861 | char * kwnames[] = { | |
23862 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
23863 | }; | |
23864 | ||
23865 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
23866 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
23867 | if (!SWIG_IsOK(res1)) { | |
23868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
23869 | } | |
23870 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
23871 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23872 | if (!SWIG_IsOK(ecode2)) { | |
23873 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'"); | |
23874 | } | |
23875 | arg2 = static_cast< int >(val2); | |
23876 | { | |
23877 | arg3 = wxString_in_helper(obj2); | |
23878 | if (arg3 == NULL) SWIG_fail; | |
23879 | temp3 = true; | |
23880 | } | |
23881 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23882 | if (!SWIG_IsOK(res4)) { | |
23883 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
23884 | } | |
23885 | if (!argp4) { | |
23886 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
23887 | } | |
23888 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
23889 | if (obj4) { | |
23890 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23891 | if (!SWIG_IsOK(res5)) { | |
23892 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
d14a1e28 | 23893 | } |
0085ce49 RD |
23894 | if (!argp5) { |
23895 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
d14a1e28 | 23896 | } |
0085ce49 RD |
23897 | arg5 = reinterpret_cast< wxBitmap * >(argp5); |
23898 | } | |
23899 | if (obj5) { | |
23900 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
23901 | if (!SWIG_IsOK(ecode6)) { | |
23902 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'"); | |
23903 | } | |
23904 | arg6 = static_cast< wxItemKind >(val6); | |
23905 | } | |
23906 | if (obj6) { | |
093d3ff1 | 23907 | { |
0085ce49 RD |
23908 | arg7 = wxString_in_helper(obj6); |
23909 | if (arg7 == NULL) SWIG_fail; | |
23910 | temp7 = true; | |
093d3ff1 | 23911 | } |
0085ce49 RD |
23912 | } |
23913 | if (obj7) { | |
d14a1e28 | 23914 | { |
0085ce49 RD |
23915 | arg8 = wxString_in_helper(obj7); |
23916 | if (arg8 == NULL) SWIG_fail; | |
23917 | temp8 = true; | |
d14a1e28 | 23918 | } |
0085ce49 RD |
23919 | } |
23920 | if (obj8) { | |
23921 | arg9 = obj8; | |
23922 | } | |
23923 | { | |
23924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23925 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
23926 | wxPyEndAllowThreads(__tstate); | |
23927 | if (PyErr_Occurred()) SWIG_fail; | |
23928 | } | |
23929 | { | |
23930 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
23931 | } | |
23932 | { | |
23933 | if (temp3) | |
23934 | delete arg3; | |
23935 | } | |
23936 | { | |
23937 | if (temp7) | |
23938 | delete arg7; | |
23939 | } | |
23940 | { | |
23941 | if (temp8) | |
23942 | delete arg8; | |
23943 | } | |
23944 | return resultobj; | |
23945 | fail: | |
23946 | { | |
23947 | if (temp3) | |
23948 | delete arg3; | |
23949 | } | |
23950 | { | |
23951 | if (temp7) | |
23952 | delete arg7; | |
23953 | } | |
23954 | { | |
23955 | if (temp8) | |
23956 | delete arg8; | |
23957 | } | |
23958 | return NULL; | |
23959 | } | |
23960 | ||
23961 | ||
23962 | SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23963 | PyObject *resultobj = 0; | |
23964 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
23965 | size_t arg2 ; | |
23966 | int arg3 ; | |
23967 | wxString *arg4 = 0 ; | |
23968 | wxBitmap *arg5 = 0 ; | |
23969 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
23970 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
23971 | wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ; | |
23972 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
23973 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23974 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
23975 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
23976 | PyObject *arg10 = (PyObject *) NULL ; | |
23977 | wxToolBarToolBase *result = 0 ; | |
23978 | void *argp1 = 0 ; | |
23979 | int res1 = 0 ; | |
23980 | size_t val2 ; | |
23981 | int ecode2 = 0 ; | |
23982 | int val3 ; | |
23983 | int ecode3 = 0 ; | |
23984 | bool temp4 = false ; | |
23985 | void *argp5 = 0 ; | |
23986 | int res5 = 0 ; | |
23987 | void *argp6 = 0 ; | |
23988 | int res6 = 0 ; | |
23989 | int val7 ; | |
23990 | int ecode7 = 0 ; | |
23991 | bool temp8 = false ; | |
23992 | bool temp9 = false ; | |
23993 | PyObject * obj0 = 0 ; | |
23994 | PyObject * obj1 = 0 ; | |
23995 | PyObject * obj2 = 0 ; | |
23996 | PyObject * obj3 = 0 ; | |
23997 | PyObject * obj4 = 0 ; | |
23998 | PyObject * obj5 = 0 ; | |
23999 | PyObject * obj6 = 0 ; | |
24000 | PyObject * obj7 = 0 ; | |
24001 | PyObject * obj8 = 0 ; | |
24002 | PyObject * obj9 = 0 ; | |
24003 | char * kwnames[] = { | |
24004 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
24005 | }; | |
24006 | ||
24007 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
24008 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24009 | if (!SWIG_IsOK(res1)) { | |
24010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24011 | } | |
24012 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24013 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24014 | if (!SWIG_IsOK(ecode2)) { | |
24015 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'"); | |
24016 | } | |
24017 | arg2 = static_cast< size_t >(val2); | |
24018 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24019 | if (!SWIG_IsOK(ecode3)) { | |
24020 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'"); | |
24021 | } | |
24022 | arg3 = static_cast< int >(val3); | |
24023 | { | |
24024 | arg4 = wxString_in_helper(obj3); | |
24025 | if (arg4 == NULL) SWIG_fail; | |
24026 | temp4 = true; | |
24027 | } | |
24028 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24029 | if (!SWIG_IsOK(res5)) { | |
24030 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
24031 | } | |
24032 | if (!argp5) { | |
24033 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'"); | |
24034 | } | |
24035 | arg5 = reinterpret_cast< wxBitmap * >(argp5); | |
24036 | if (obj5) { | |
24037 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24038 | if (!SWIG_IsOK(res6)) { | |
24039 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'"); | |
d14a1e28 | 24040 | } |
0085ce49 RD |
24041 | if (!argp6) { |
24042 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 24043 | } |
0085ce49 RD |
24044 | arg6 = reinterpret_cast< wxBitmap * >(argp6); |
24045 | } | |
24046 | if (obj6) { | |
24047 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
24048 | if (!SWIG_IsOK(ecode7)) { | |
24049 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'"); | |
24050 | } | |
24051 | arg7 = static_cast< wxItemKind >(val7); | |
24052 | } | |
24053 | if (obj7) { | |
d14a1e28 | 24054 | { |
0085ce49 RD |
24055 | arg8 = wxString_in_helper(obj7); |
24056 | if (arg8 == NULL) SWIG_fail; | |
24057 | temp8 = true; | |
d14a1e28 | 24058 | } |
0085ce49 RD |
24059 | } |
24060 | if (obj8) { | |
d14a1e28 | 24061 | { |
0085ce49 RD |
24062 | arg9 = wxString_in_helper(obj8); |
24063 | if (arg9 == NULL) SWIG_fail; | |
24064 | temp9 = true; | |
d14a1e28 | 24065 | } |
0085ce49 RD |
24066 | } |
24067 | if (obj9) { | |
24068 | arg10 = obj9; | |
24069 | } | |
24070 | { | |
24071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24072 | result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10); | |
24073 | wxPyEndAllowThreads(__tstate); | |
24074 | if (PyErr_Occurred()) SWIG_fail; | |
24075 | } | |
24076 | { | |
24077 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24078 | } | |
24079 | { | |
24080 | if (temp4) | |
24081 | delete arg4; | |
24082 | } | |
24083 | { | |
24084 | if (temp8) | |
24085 | delete arg8; | |
24086 | } | |
24087 | { | |
24088 | if (temp9) | |
24089 | delete arg9; | |
24090 | } | |
24091 | return resultobj; | |
24092 | fail: | |
24093 | { | |
24094 | if (temp4) | |
24095 | delete arg4; | |
24096 | } | |
24097 | { | |
24098 | if (temp8) | |
24099 | delete arg8; | |
24100 | } | |
24101 | { | |
24102 | if (temp9) | |
24103 | delete arg9; | |
24104 | } | |
24105 | return NULL; | |
24106 | } | |
24107 | ||
24108 | ||
24109 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24110 | PyObject *resultobj = 0; | |
24111 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24112 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
24113 | wxToolBarToolBase *result = 0 ; | |
24114 | void *argp1 = 0 ; | |
24115 | int res1 = 0 ; | |
24116 | void *argp2 = 0 ; | |
24117 | int res2 = 0 ; | |
24118 | PyObject * obj0 = 0 ; | |
24119 | PyObject * obj1 = 0 ; | |
24120 | char * kwnames[] = { | |
24121 | (char *) "self",(char *) "tool", NULL | |
24122 | }; | |
24123 | ||
24124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
24125 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24126 | if (!SWIG_IsOK(res1)) { | |
24127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24128 | } | |
24129 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24130 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
24131 | if (!SWIG_IsOK(res2)) { | |
24132 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'"); | |
24133 | } | |
24134 | arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2); | |
24135 | { | |
24136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24137 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
24138 | wxPyEndAllowThreads(__tstate); | |
24139 | if (PyErr_Occurred()) SWIG_fail; | |
24140 | } | |
24141 | { | |
24142 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24143 | } | |
24144 | return resultobj; | |
24145 | fail: | |
24146 | return NULL; | |
24147 | } | |
24148 | ||
24149 | ||
24150 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24151 | PyObject *resultobj = 0; | |
24152 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24153 | size_t arg2 ; | |
24154 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
24155 | wxToolBarToolBase *result = 0 ; | |
24156 | void *argp1 = 0 ; | |
24157 | int res1 = 0 ; | |
24158 | size_t val2 ; | |
24159 | int ecode2 = 0 ; | |
24160 | void *argp3 = 0 ; | |
24161 | int res3 = 0 ; | |
24162 | PyObject * obj0 = 0 ; | |
24163 | PyObject * obj1 = 0 ; | |
24164 | PyObject * obj2 = 0 ; | |
24165 | char * kwnames[] = { | |
24166 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
24167 | }; | |
24168 | ||
24169 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24170 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24171 | if (!SWIG_IsOK(res1)) { | |
24172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24173 | } | |
24174 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24175 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24176 | if (!SWIG_IsOK(ecode2)) { | |
24177 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'"); | |
24178 | } | |
24179 | arg2 = static_cast< size_t >(val2); | |
24180 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 ); | |
24181 | if (!SWIG_IsOK(res3)) { | |
24182 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'"); | |
24183 | } | |
24184 | arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3); | |
24185 | { | |
24186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24187 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
24188 | wxPyEndAllowThreads(__tstate); | |
24189 | if (PyErr_Occurred()) SWIG_fail; | |
24190 | } | |
24191 | { | |
24192 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24193 | } | |
24194 | return resultobj; | |
24195 | fail: | |
24196 | return NULL; | |
24197 | } | |
24198 | ||
24199 | ||
24200 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24201 | PyObject *resultobj = 0; | |
24202 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24203 | wxControl *arg2 = (wxControl *) 0 ; | |
24204 | wxToolBarToolBase *result = 0 ; | |
24205 | void *argp1 = 0 ; | |
24206 | int res1 = 0 ; | |
24207 | void *argp2 = 0 ; | |
24208 | int res2 = 0 ; | |
24209 | PyObject * obj0 = 0 ; | |
24210 | PyObject * obj1 = 0 ; | |
24211 | char * kwnames[] = { | |
24212 | (char *) "self",(char *) "control", NULL | |
24213 | }; | |
24214 | ||
24215 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
24216 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24217 | if (!SWIG_IsOK(res1)) { | |
24218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24219 | } | |
24220 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24221 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 ); | |
24222 | if (!SWIG_IsOK(res2)) { | |
24223 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'"); | |
24224 | } | |
24225 | arg2 = reinterpret_cast< wxControl * >(argp2); | |
24226 | { | |
24227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24228 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
24229 | wxPyEndAllowThreads(__tstate); | |
24230 | if (PyErr_Occurred()) SWIG_fail; | |
24231 | } | |
24232 | { | |
24233 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24234 | } | |
24235 | return resultobj; | |
24236 | fail: | |
24237 | return NULL; | |
24238 | } | |
24239 | ||
24240 | ||
24241 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24242 | PyObject *resultobj = 0; | |
24243 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24244 | size_t arg2 ; | |
24245 | wxControl *arg3 = (wxControl *) 0 ; | |
24246 | wxToolBarToolBase *result = 0 ; | |
24247 | void *argp1 = 0 ; | |
24248 | int res1 = 0 ; | |
24249 | size_t val2 ; | |
24250 | int ecode2 = 0 ; | |
24251 | void *argp3 = 0 ; | |
24252 | int res3 = 0 ; | |
24253 | PyObject * obj0 = 0 ; | |
24254 | PyObject * obj1 = 0 ; | |
24255 | PyObject * obj2 = 0 ; | |
24256 | char * kwnames[] = { | |
24257 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
24258 | }; | |
24259 | ||
24260 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24261 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24262 | if (!SWIG_IsOK(res1)) { | |
24263 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24264 | } | |
24265 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24266 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24267 | if (!SWIG_IsOK(ecode2)) { | |
24268 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'"); | |
24269 | } | |
24270 | arg2 = static_cast< size_t >(val2); | |
24271 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 ); | |
24272 | if (!SWIG_IsOK(res3)) { | |
24273 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'"); | |
24274 | } | |
24275 | arg3 = reinterpret_cast< wxControl * >(argp3); | |
24276 | { | |
24277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24278 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
24279 | wxPyEndAllowThreads(__tstate); | |
24280 | if (PyErr_Occurred()) SWIG_fail; | |
24281 | } | |
24282 | { | |
24283 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24284 | } | |
24285 | return resultobj; | |
24286 | fail: | |
24287 | return NULL; | |
24288 | } | |
24289 | ||
24290 | ||
24291 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24292 | PyObject *resultobj = 0; | |
24293 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24294 | int arg2 ; | |
24295 | wxControl *result = 0 ; | |
24296 | void *argp1 = 0 ; | |
24297 | int res1 = 0 ; | |
24298 | int val2 ; | |
24299 | int ecode2 = 0 ; | |
24300 | PyObject * obj0 = 0 ; | |
24301 | PyObject * obj1 = 0 ; | |
24302 | char * kwnames[] = { | |
24303 | (char *) "self",(char *) "id", NULL | |
24304 | }; | |
24305 | ||
24306 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
24307 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24308 | if (!SWIG_IsOK(res1)) { | |
24309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24310 | } | |
24311 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24312 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24313 | if (!SWIG_IsOK(ecode2)) { | |
24314 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'"); | |
24315 | } | |
24316 | arg2 = static_cast< int >(val2); | |
24317 | { | |
24318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24319 | result = (wxControl *)(arg1)->FindControl(arg2); | |
24320 | wxPyEndAllowThreads(__tstate); | |
24321 | if (PyErr_Occurred()) SWIG_fail; | |
24322 | } | |
24323 | { | |
24324 | resultobj = wxPyMake_wxObject(result, 0); | |
24325 | } | |
24326 | return resultobj; | |
24327 | fail: | |
24328 | return NULL; | |
d14a1e28 RD |
24329 | } |
24330 | ||
24331 | ||
0085ce49 RD |
24332 | SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24333 | PyObject *resultobj = 0; | |
24334 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24335 | wxToolBarToolBase *result = 0 ; | |
24336 | void *argp1 = 0 ; | |
24337 | int res1 = 0 ; | |
24338 | PyObject *swig_obj[1] ; | |
24339 | ||
24340 | if (!args) SWIG_fail; | |
24341 | swig_obj[0] = args; | |
24342 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24343 | if (!SWIG_IsOK(res1)) { | |
24344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24345 | } | |
24346 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24347 | { | |
24348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24349 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
24350 | wxPyEndAllowThreads(__tstate); | |
24351 | if (PyErr_Occurred()) SWIG_fail; | |
24352 | } | |
24353 | { | |
24354 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24355 | } | |
24356 | return resultobj; | |
24357 | fail: | |
24358 | return NULL; | |
24359 | } | |
24360 | ||
24361 | ||
24362 | SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24363 | PyObject *resultobj = 0; | |
24364 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24365 | size_t arg2 ; | |
24366 | wxToolBarToolBase *result = 0 ; | |
24367 | void *argp1 = 0 ; | |
24368 | int res1 = 0 ; | |
24369 | size_t val2 ; | |
24370 | int ecode2 = 0 ; | |
24371 | PyObject * obj0 = 0 ; | |
24372 | PyObject * obj1 = 0 ; | |
24373 | char * kwnames[] = { | |
24374 | (char *) "self",(char *) "pos", NULL | |
24375 | }; | |
24376 | ||
24377 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail; | |
24378 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24379 | if (!SWIG_IsOK(res1)) { | |
24380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24381 | } | |
24382 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24383 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24384 | if (!SWIG_IsOK(ecode2)) { | |
24385 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'"); | |
24386 | } | |
24387 | arg2 = static_cast< size_t >(val2); | |
24388 | { | |
24389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24390 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
24391 | wxPyEndAllowThreads(__tstate); | |
24392 | if (PyErr_Occurred()) SWIG_fail; | |
24393 | } | |
24394 | { | |
24395 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24396 | } | |
24397 | return resultobj; | |
24398 | fail: | |
24399 | return NULL; | |
24400 | } | |
24401 | ||
24402 | ||
24403 | SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24404 | PyObject *resultobj = 0; | |
24405 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24406 | int arg2 ; | |
24407 | wxToolBarToolBase *result = 0 ; | |
24408 | void *argp1 = 0 ; | |
24409 | int res1 = 0 ; | |
24410 | int val2 ; | |
24411 | int ecode2 = 0 ; | |
24412 | PyObject * obj0 = 0 ; | |
24413 | PyObject * obj1 = 0 ; | |
24414 | char * kwnames[] = { | |
24415 | (char *) "self",(char *) "id", NULL | |
24416 | }; | |
24417 | ||
24418 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail; | |
24419 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24420 | if (!SWIG_IsOK(res1)) { | |
24421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24422 | } | |
24423 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24424 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24425 | if (!SWIG_IsOK(ecode2)) { | |
24426 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'"); | |
24427 | } | |
24428 | arg2 = static_cast< int >(val2); | |
24429 | { | |
24430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24431 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
24432 | wxPyEndAllowThreads(__tstate); | |
24433 | if (PyErr_Occurred()) SWIG_fail; | |
24434 | } | |
24435 | { | |
24436 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
24437 | } | |
24438 | return resultobj; | |
24439 | fail: | |
24440 | return NULL; | |
24441 | } | |
24442 | ||
24443 | ||
24444 | SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24445 | PyObject *resultobj = 0; | |
24446 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24447 | size_t arg2 ; | |
24448 | bool result; | |
24449 | void *argp1 = 0 ; | |
24450 | int res1 = 0 ; | |
24451 | size_t val2 ; | |
24452 | int ecode2 = 0 ; | |
24453 | PyObject * obj0 = 0 ; | |
24454 | PyObject * obj1 = 0 ; | |
24455 | char * kwnames[] = { | |
24456 | (char *) "self",(char *) "pos", NULL | |
24457 | }; | |
24458 | ||
24459 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
24460 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24461 | if (!SWIG_IsOK(res1)) { | |
24462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24463 | } | |
24464 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24465 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
24466 | if (!SWIG_IsOK(ecode2)) { | |
24467 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'"); | |
24468 | } | |
24469 | arg2 = static_cast< size_t >(val2); | |
24470 | { | |
24471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24472 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
24473 | wxPyEndAllowThreads(__tstate); | |
24474 | if (PyErr_Occurred()) SWIG_fail; | |
24475 | } | |
24476 | { | |
24477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24478 | } | |
24479 | return resultobj; | |
24480 | fail: | |
24481 | return NULL; | |
24482 | } | |
24483 | ||
24484 | ||
24485 | SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24486 | PyObject *resultobj = 0; | |
24487 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24488 | int arg2 ; | |
24489 | bool result; | |
24490 | void *argp1 = 0 ; | |
24491 | int res1 = 0 ; | |
24492 | int val2 ; | |
24493 | int ecode2 = 0 ; | |
24494 | PyObject * obj0 = 0 ; | |
24495 | PyObject * obj1 = 0 ; | |
24496 | char * kwnames[] = { | |
24497 | (char *) "self",(char *) "id", NULL | |
24498 | }; | |
24499 | ||
24500 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail; | |
24501 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24502 | if (!SWIG_IsOK(res1)) { | |
24503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24504 | } | |
24505 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24506 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24507 | if (!SWIG_IsOK(ecode2)) { | |
24508 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'"); | |
24509 | } | |
24510 | arg2 = static_cast< int >(val2); | |
24511 | { | |
24512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24513 | result = (bool)(arg1)->DeleteTool(arg2); | |
24514 | wxPyEndAllowThreads(__tstate); | |
24515 | if (PyErr_Occurred()) SWIG_fail; | |
24516 | } | |
24517 | { | |
24518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24519 | } | |
24520 | return resultobj; | |
24521 | fail: | |
24522 | return NULL; | |
d14a1e28 RD |
24523 | } |
24524 | ||
24525 | ||
0085ce49 RD |
24526 | SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24527 | PyObject *resultobj = 0; | |
24528 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24529 | void *argp1 = 0 ; | |
24530 | int res1 = 0 ; | |
24531 | PyObject *swig_obj[1] ; | |
24532 | ||
24533 | if (!args) SWIG_fail; | |
24534 | swig_obj[0] = args; | |
24535 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24536 | if (!SWIG_IsOK(res1)) { | |
24537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24538 | } | |
24539 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24540 | { | |
24541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24542 | (arg1)->ClearTools(); | |
24543 | wxPyEndAllowThreads(__tstate); | |
24544 | if (PyErr_Occurred()) SWIG_fail; | |
24545 | } | |
24546 | resultobj = SWIG_Py_Void(); | |
24547 | return resultobj; | |
24548 | fail: | |
24549 | return NULL; | |
d14a1e28 RD |
24550 | } |
24551 | ||
24552 | ||
0085ce49 RD |
24553 | SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24554 | PyObject *resultobj = 0; | |
24555 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24556 | bool result; | |
24557 | void *argp1 = 0 ; | |
24558 | int res1 = 0 ; | |
24559 | PyObject *swig_obj[1] ; | |
24560 | ||
24561 | if (!args) SWIG_fail; | |
24562 | swig_obj[0] = args; | |
24563 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24564 | if (!SWIG_IsOK(res1)) { | |
24565 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24566 | } | |
24567 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24568 | { | |
24569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24570 | result = (bool)(arg1)->Realize(); | |
24571 | wxPyEndAllowThreads(__tstate); | |
24572 | if (PyErr_Occurred()) SWIG_fail; | |
24573 | } | |
24574 | { | |
24575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24576 | } | |
24577 | return resultobj; | |
24578 | fail: | |
24579 | return NULL; | |
24580 | } | |
24581 | ||
24582 | ||
24583 | SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24584 | PyObject *resultobj = 0; | |
24585 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24586 | int arg2 ; | |
24587 | bool arg3 ; | |
24588 | void *argp1 = 0 ; | |
24589 | int res1 = 0 ; | |
24590 | int val2 ; | |
24591 | int ecode2 = 0 ; | |
24592 | bool val3 ; | |
24593 | int ecode3 = 0 ; | |
24594 | PyObject * obj0 = 0 ; | |
24595 | PyObject * obj1 = 0 ; | |
24596 | PyObject * obj2 = 0 ; | |
24597 | char * kwnames[] = { | |
24598 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
24599 | }; | |
24600 | ||
24601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24603 | if (!SWIG_IsOK(res1)) { | |
24604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24605 | } | |
24606 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24607 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24608 | if (!SWIG_IsOK(ecode2)) { | |
24609 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'"); | |
24610 | } | |
24611 | arg2 = static_cast< int >(val2); | |
24612 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24613 | if (!SWIG_IsOK(ecode3)) { | |
24614 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'"); | |
24615 | } | |
24616 | arg3 = static_cast< bool >(val3); | |
24617 | { | |
24618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24619 | (arg1)->EnableTool(arg2,arg3); | |
24620 | wxPyEndAllowThreads(__tstate); | |
24621 | if (PyErr_Occurred()) SWIG_fail; | |
24622 | } | |
24623 | resultobj = SWIG_Py_Void(); | |
24624 | return resultobj; | |
24625 | fail: | |
24626 | return NULL; | |
24627 | } | |
24628 | ||
24629 | ||
24630 | SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24631 | PyObject *resultobj = 0; | |
24632 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24633 | int arg2 ; | |
24634 | bool arg3 ; | |
24635 | void *argp1 = 0 ; | |
24636 | int res1 = 0 ; | |
24637 | int val2 ; | |
24638 | int ecode2 = 0 ; | |
24639 | bool val3 ; | |
24640 | int ecode3 = 0 ; | |
24641 | PyObject * obj0 = 0 ; | |
24642 | PyObject * obj1 = 0 ; | |
24643 | PyObject * obj2 = 0 ; | |
24644 | char * kwnames[] = { | |
24645 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
24646 | }; | |
24647 | ||
24648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24650 | if (!SWIG_IsOK(res1)) { | |
24651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24652 | } | |
24653 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24654 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24655 | if (!SWIG_IsOK(ecode2)) { | |
24656 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'"); | |
24657 | } | |
24658 | arg2 = static_cast< int >(val2); | |
24659 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24660 | if (!SWIG_IsOK(ecode3)) { | |
24661 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'"); | |
24662 | } | |
24663 | arg3 = static_cast< bool >(val3); | |
24664 | { | |
24665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24666 | (arg1)->ToggleTool(arg2,arg3); | |
24667 | wxPyEndAllowThreads(__tstate); | |
24668 | if (PyErr_Occurred()) SWIG_fail; | |
24669 | } | |
24670 | resultobj = SWIG_Py_Void(); | |
24671 | return resultobj; | |
24672 | fail: | |
24673 | return NULL; | |
24674 | } | |
24675 | ||
24676 | ||
24677 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24678 | PyObject *resultobj = 0; | |
24679 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24680 | int arg2 ; | |
24681 | bool arg3 ; | |
24682 | void *argp1 = 0 ; | |
24683 | int res1 = 0 ; | |
24684 | int val2 ; | |
24685 | int ecode2 = 0 ; | |
24686 | bool val3 ; | |
24687 | int ecode3 = 0 ; | |
24688 | PyObject * obj0 = 0 ; | |
24689 | PyObject * obj1 = 0 ; | |
24690 | PyObject * obj2 = 0 ; | |
24691 | char * kwnames[] = { | |
24692 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
24693 | }; | |
24694 | ||
24695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24696 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24697 | if (!SWIG_IsOK(res1)) { | |
24698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24699 | } | |
24700 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24701 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24702 | if (!SWIG_IsOK(ecode2)) { | |
24703 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'"); | |
24704 | } | |
24705 | arg2 = static_cast< int >(val2); | |
24706 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24707 | if (!SWIG_IsOK(ecode3)) { | |
24708 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'"); | |
24709 | } | |
24710 | arg3 = static_cast< bool >(val3); | |
24711 | { | |
24712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24713 | (arg1)->SetToggle(arg2,arg3); | |
24714 | wxPyEndAllowThreads(__tstate); | |
24715 | if (PyErr_Occurred()) SWIG_fail; | |
24716 | } | |
24717 | resultobj = SWIG_Py_Void(); | |
24718 | return resultobj; | |
24719 | fail: | |
24720 | return NULL; | |
24721 | } | |
24722 | ||
24723 | ||
24724 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24725 | PyObject *resultobj = 0; | |
24726 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24727 | int arg2 ; | |
24728 | PyObject *result = 0 ; | |
24729 | void *argp1 = 0 ; | |
24730 | int res1 = 0 ; | |
24731 | int val2 ; | |
24732 | int ecode2 = 0 ; | |
24733 | PyObject * obj0 = 0 ; | |
24734 | PyObject * obj1 = 0 ; | |
24735 | char * kwnames[] = { | |
24736 | (char *) "self",(char *) "id", NULL | |
24737 | }; | |
24738 | ||
24739 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24740 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24741 | if (!SWIG_IsOK(res1)) { | |
24742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24743 | } | |
24744 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24745 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24746 | if (!SWIG_IsOK(ecode2)) { | |
24747 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'"); | |
24748 | } | |
24749 | arg2 = static_cast< int >(val2); | |
24750 | { | |
24751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24752 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
24753 | wxPyEndAllowThreads(__tstate); | |
24754 | if (PyErr_Occurred()) SWIG_fail; | |
24755 | } | |
24756 | resultobj = result; | |
24757 | return resultobj; | |
24758 | fail: | |
24759 | return NULL; | |
24760 | } | |
24761 | ||
24762 | ||
24763 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24764 | PyObject *resultobj = 0; | |
24765 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24766 | int arg2 ; | |
24767 | PyObject *arg3 = (PyObject *) 0 ; | |
24768 | void *argp1 = 0 ; | |
24769 | int res1 = 0 ; | |
24770 | int val2 ; | |
24771 | int ecode2 = 0 ; | |
24772 | PyObject * obj0 = 0 ; | |
24773 | PyObject * obj1 = 0 ; | |
24774 | PyObject * obj2 = 0 ; | |
24775 | char * kwnames[] = { | |
24776 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
24777 | }; | |
24778 | ||
24779 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24780 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24781 | if (!SWIG_IsOK(res1)) { | |
24782 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24783 | } | |
24784 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24785 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24786 | if (!SWIG_IsOK(ecode2)) { | |
24787 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'"); | |
24788 | } | |
24789 | arg2 = static_cast< int >(val2); | |
24790 | arg3 = obj2; | |
24791 | { | |
24792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24793 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
24794 | wxPyEndAllowThreads(__tstate); | |
24795 | if (PyErr_Occurred()) SWIG_fail; | |
24796 | } | |
24797 | resultobj = SWIG_Py_Void(); | |
24798 | return resultobj; | |
24799 | fail: | |
24800 | return NULL; | |
24801 | } | |
24802 | ||
24803 | ||
24804 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24805 | PyObject *resultobj = 0; | |
24806 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24807 | int arg2 ; | |
24808 | int result; | |
24809 | void *argp1 = 0 ; | |
24810 | int res1 = 0 ; | |
24811 | int val2 ; | |
24812 | int ecode2 = 0 ; | |
24813 | PyObject * obj0 = 0 ; | |
24814 | PyObject * obj1 = 0 ; | |
24815 | char * kwnames[] = { | |
24816 | (char *) "self",(char *) "id", NULL | |
24817 | }; | |
24818 | ||
24819 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail; | |
24820 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24821 | if (!SWIG_IsOK(res1)) { | |
24822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
24823 | } | |
24824 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24825 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24826 | if (!SWIG_IsOK(ecode2)) { | |
24827 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'"); | |
24828 | } | |
24829 | arg2 = static_cast< int >(val2); | |
24830 | { | |
24831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24832 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
24833 | wxPyEndAllowThreads(__tstate); | |
24834 | if (PyErr_Occurred()) SWIG_fail; | |
24835 | } | |
24836 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24837 | return resultobj; | |
24838 | fail: | |
24839 | return NULL; | |
24840 | } | |
24841 | ||
24842 | ||
24843 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24844 | PyObject *resultobj = 0; | |
24845 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24846 | int arg2 ; | |
24847 | bool result; | |
24848 | void *argp1 = 0 ; | |
24849 | int res1 = 0 ; | |
24850 | int val2 ; | |
24851 | int ecode2 = 0 ; | |
24852 | PyObject * obj0 = 0 ; | |
24853 | PyObject * obj1 = 0 ; | |
24854 | char * kwnames[] = { | |
24855 | (char *) "self",(char *) "id", NULL | |
24856 | }; | |
24857 | ||
24858 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail; | |
24859 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24860 | if (!SWIG_IsOK(res1)) { | |
24861 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24862 | } | |
24863 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24864 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24865 | if (!SWIG_IsOK(ecode2)) { | |
24866 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'"); | |
24867 | } | |
24868 | arg2 = static_cast< int >(val2); | |
24869 | { | |
24870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24871 | result = (bool)(arg1)->GetToolState(arg2); | |
24872 | wxPyEndAllowThreads(__tstate); | |
24873 | if (PyErr_Occurred()) SWIG_fail; | |
24874 | } | |
24875 | { | |
24876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24877 | } | |
24878 | return resultobj; | |
24879 | fail: | |
24880 | return NULL; | |
24881 | } | |
24882 | ||
24883 | ||
24884 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24885 | PyObject *resultobj = 0; | |
24886 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24887 | int arg2 ; | |
24888 | bool result; | |
24889 | void *argp1 = 0 ; | |
24890 | int res1 = 0 ; | |
24891 | int val2 ; | |
24892 | int ecode2 = 0 ; | |
24893 | PyObject * obj0 = 0 ; | |
24894 | PyObject * obj1 = 0 ; | |
24895 | char * kwnames[] = { | |
24896 | (char *) "self",(char *) "id", NULL | |
24897 | }; | |
24898 | ||
24899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail; | |
24900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24901 | if (!SWIG_IsOK(res1)) { | |
24902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24903 | } | |
24904 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24905 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24906 | if (!SWIG_IsOK(ecode2)) { | |
24907 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'"); | |
24908 | } | |
24909 | arg2 = static_cast< int >(val2); | |
24910 | { | |
24911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24912 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
24913 | wxPyEndAllowThreads(__tstate); | |
24914 | if (PyErr_Occurred()) SWIG_fail; | |
24915 | } | |
24916 | { | |
24917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24918 | } | |
24919 | return resultobj; | |
24920 | fail: | |
24921 | return NULL; | |
24922 | } | |
24923 | ||
24924 | ||
24925 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24926 | PyObject *resultobj = 0; | |
24927 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24928 | int arg2 ; | |
24929 | wxString *arg3 = 0 ; | |
24930 | void *argp1 = 0 ; | |
24931 | int res1 = 0 ; | |
24932 | int val2 ; | |
24933 | int ecode2 = 0 ; | |
24934 | bool temp3 = false ; | |
24935 | PyObject * obj0 = 0 ; | |
24936 | PyObject * obj1 = 0 ; | |
24937 | PyObject * obj2 = 0 ; | |
24938 | char * kwnames[] = { | |
24939 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
24940 | }; | |
24941 | ||
24942 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24944 | if (!SWIG_IsOK(res1)) { | |
24945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24946 | } | |
24947 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
24948 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24949 | if (!SWIG_IsOK(ecode2)) { | |
24950 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'"); | |
24951 | } | |
24952 | arg2 = static_cast< int >(val2); | |
24953 | { | |
24954 | arg3 = wxString_in_helper(obj2); | |
24955 | if (arg3 == NULL) SWIG_fail; | |
24956 | temp3 = true; | |
24957 | } | |
24958 | { | |
24959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24960 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
24961 | wxPyEndAllowThreads(__tstate); | |
24962 | if (PyErr_Occurred()) SWIG_fail; | |
24963 | } | |
24964 | resultobj = SWIG_Py_Void(); | |
24965 | { | |
24966 | if (temp3) | |
24967 | delete arg3; | |
24968 | } | |
24969 | return resultobj; | |
24970 | fail: | |
24971 | { | |
24972 | if (temp3) | |
24973 | delete arg3; | |
24974 | } | |
24975 | return NULL; | |
24976 | } | |
24977 | ||
24978 | ||
24979 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24980 | PyObject *resultobj = 0; | |
24981 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
24982 | int arg2 ; | |
24983 | wxString result; | |
24984 | void *argp1 = 0 ; | |
24985 | int res1 = 0 ; | |
24986 | int val2 ; | |
24987 | int ecode2 = 0 ; | |
24988 | PyObject * obj0 = 0 ; | |
24989 | PyObject * obj1 = 0 ; | |
24990 | char * kwnames[] = { | |
24991 | (char *) "self",(char *) "id", NULL | |
24992 | }; | |
24993 | ||
24994 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
24995 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
24996 | if (!SWIG_IsOK(res1)) { | |
24997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
24998 | } | |
24999 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25000 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25001 | if (!SWIG_IsOK(ecode2)) { | |
25002 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'"); | |
25003 | } | |
25004 | arg2 = static_cast< int >(val2); | |
25005 | { | |
25006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25007 | result = (arg1)->GetToolShortHelp(arg2); | |
25008 | wxPyEndAllowThreads(__tstate); | |
25009 | if (PyErr_Occurred()) SWIG_fail; | |
25010 | } | |
25011 | { | |
25012 | #if wxUSE_UNICODE | |
25013 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25014 | #else | |
25015 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25016 | #endif | |
25017 | } | |
25018 | return resultobj; | |
25019 | fail: | |
25020 | return NULL; | |
25021 | } | |
25022 | ||
25023 | ||
25024 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25025 | PyObject *resultobj = 0; | |
25026 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25027 | int arg2 ; | |
25028 | wxString *arg3 = 0 ; | |
25029 | void *argp1 = 0 ; | |
25030 | int res1 = 0 ; | |
25031 | int val2 ; | |
25032 | int ecode2 = 0 ; | |
25033 | bool temp3 = false ; | |
25034 | PyObject * obj0 = 0 ; | |
25035 | PyObject * obj1 = 0 ; | |
25036 | PyObject * obj2 = 0 ; | |
25037 | char * kwnames[] = { | |
25038 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
25039 | }; | |
25040 | ||
25041 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25042 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25043 | if (!SWIG_IsOK(res1)) { | |
25044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25045 | } | |
25046 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25047 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25048 | if (!SWIG_IsOK(ecode2)) { | |
25049 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'"); | |
25050 | } | |
25051 | arg2 = static_cast< int >(val2); | |
25052 | { | |
25053 | arg3 = wxString_in_helper(obj2); | |
25054 | if (arg3 == NULL) SWIG_fail; | |
25055 | temp3 = true; | |
25056 | } | |
25057 | { | |
25058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25059 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
25060 | wxPyEndAllowThreads(__tstate); | |
25061 | if (PyErr_Occurred()) SWIG_fail; | |
25062 | } | |
25063 | resultobj = SWIG_Py_Void(); | |
25064 | { | |
25065 | if (temp3) | |
25066 | delete arg3; | |
25067 | } | |
25068 | return resultobj; | |
25069 | fail: | |
25070 | { | |
25071 | if (temp3) | |
25072 | delete arg3; | |
25073 | } | |
25074 | return NULL; | |
25075 | } | |
25076 | ||
25077 | ||
25078 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25079 | PyObject *resultobj = 0; | |
25080 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25081 | int arg2 ; | |
25082 | wxString result; | |
25083 | void *argp1 = 0 ; | |
25084 | int res1 = 0 ; | |
25085 | int val2 ; | |
25086 | int ecode2 = 0 ; | |
25087 | PyObject * obj0 = 0 ; | |
25088 | PyObject * obj1 = 0 ; | |
25089 | char * kwnames[] = { | |
25090 | (char *) "self",(char *) "id", NULL | |
25091 | }; | |
25092 | ||
25093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
25094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25095 | if (!SWIG_IsOK(res1)) { | |
25096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25097 | } | |
25098 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25099 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25100 | if (!SWIG_IsOK(ecode2)) { | |
25101 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'"); | |
25102 | } | |
25103 | arg2 = static_cast< int >(val2); | |
25104 | { | |
25105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25106 | result = (arg1)->GetToolLongHelp(arg2); | |
25107 | wxPyEndAllowThreads(__tstate); | |
25108 | if (PyErr_Occurred()) SWIG_fail; | |
25109 | } | |
25110 | { | |
25111 | #if wxUSE_UNICODE | |
25112 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25113 | #else | |
25114 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25115 | #endif | |
25116 | } | |
25117 | return resultobj; | |
25118 | fail: | |
25119 | return NULL; | |
25120 | } | |
25121 | ||
25122 | ||
25123 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25124 | PyObject *resultobj = 0; | |
25125 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25126 | int arg2 ; | |
25127 | int arg3 ; | |
25128 | void *argp1 = 0 ; | |
25129 | int res1 = 0 ; | |
25130 | int val2 ; | |
25131 | int ecode2 = 0 ; | |
25132 | int val3 ; | |
25133 | int ecode3 = 0 ; | |
25134 | PyObject * obj0 = 0 ; | |
25135 | PyObject * obj1 = 0 ; | |
25136 | PyObject * obj2 = 0 ; | |
25137 | char * kwnames[] = { | |
25138 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25139 | }; | |
25140 | ||
25141 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25142 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25143 | if (!SWIG_IsOK(res1)) { | |
25144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25145 | } | |
25146 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25147 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25148 | if (!SWIG_IsOK(ecode2)) { | |
25149 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'"); | |
25150 | } | |
25151 | arg2 = static_cast< int >(val2); | |
25152 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25153 | if (!SWIG_IsOK(ecode3)) { | |
25154 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'"); | |
25155 | } | |
25156 | arg3 = static_cast< int >(val3); | |
25157 | { | |
25158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25159 | (arg1)->SetMargins(arg2,arg3); | |
25160 | wxPyEndAllowThreads(__tstate); | |
25161 | if (PyErr_Occurred()) SWIG_fail; | |
25162 | } | |
25163 | resultobj = SWIG_Py_Void(); | |
25164 | return resultobj; | |
25165 | fail: | |
25166 | return NULL; | |
25167 | } | |
25168 | ||
25169 | ||
25170 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25171 | PyObject *resultobj = 0; | |
25172 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25173 | wxSize *arg2 = 0 ; | |
25174 | void *argp1 = 0 ; | |
25175 | int res1 = 0 ; | |
25176 | wxSize temp2 ; | |
25177 | PyObject * obj0 = 0 ; | |
25178 | PyObject * obj1 = 0 ; | |
25179 | char * kwnames[] = { | |
25180 | (char *) "self",(char *) "size", NULL | |
25181 | }; | |
25182 | ||
25183 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
25184 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25185 | if (!SWIG_IsOK(res1)) { | |
25186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25187 | } | |
25188 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25189 | { | |
25190 | arg2 = &temp2; | |
25191 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25192 | } | |
25193 | { | |
25194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25195 | (arg1)->SetMargins((wxSize const &)*arg2); | |
25196 | wxPyEndAllowThreads(__tstate); | |
25197 | if (PyErr_Occurred()) SWIG_fail; | |
25198 | } | |
25199 | resultobj = SWIG_Py_Void(); | |
25200 | return resultobj; | |
25201 | fail: | |
25202 | return NULL; | |
25203 | } | |
25204 | ||
25205 | ||
25206 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25207 | PyObject *resultobj = 0; | |
25208 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25209 | int arg2 ; | |
25210 | void *argp1 = 0 ; | |
25211 | int res1 = 0 ; | |
25212 | int val2 ; | |
25213 | int ecode2 = 0 ; | |
25214 | PyObject * obj0 = 0 ; | |
25215 | PyObject * obj1 = 0 ; | |
25216 | char * kwnames[] = { | |
25217 | (char *) "self",(char *) "packing", NULL | |
25218 | }; | |
25219 | ||
25220 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail; | |
25221 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25222 | if (!SWIG_IsOK(res1)) { | |
25223 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25224 | } | |
25225 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25226 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25227 | if (!SWIG_IsOK(ecode2)) { | |
25228 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'"); | |
25229 | } | |
25230 | arg2 = static_cast< int >(val2); | |
25231 | { | |
25232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25233 | (arg1)->SetToolPacking(arg2); | |
25234 | wxPyEndAllowThreads(__tstate); | |
25235 | if (PyErr_Occurred()) SWIG_fail; | |
25236 | } | |
25237 | resultobj = SWIG_Py_Void(); | |
25238 | return resultobj; | |
25239 | fail: | |
25240 | return NULL; | |
25241 | } | |
25242 | ||
25243 | ||
25244 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25245 | PyObject *resultobj = 0; | |
25246 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25247 | int arg2 ; | |
25248 | void *argp1 = 0 ; | |
25249 | int res1 = 0 ; | |
25250 | int val2 ; | |
25251 | int ecode2 = 0 ; | |
25252 | PyObject * obj0 = 0 ; | |
25253 | PyObject * obj1 = 0 ; | |
25254 | char * kwnames[] = { | |
25255 | (char *) "self",(char *) "separation", NULL | |
25256 | }; | |
25257 | ||
25258 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail; | |
25259 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25260 | if (!SWIG_IsOK(res1)) { | |
25261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25262 | } | |
25263 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25264 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25265 | if (!SWIG_IsOK(ecode2)) { | |
25266 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'"); | |
25267 | } | |
25268 | arg2 = static_cast< int >(val2); | |
25269 | { | |
25270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25271 | (arg1)->SetToolSeparation(arg2); | |
25272 | wxPyEndAllowThreads(__tstate); | |
25273 | if (PyErr_Occurred()) SWIG_fail; | |
25274 | } | |
25275 | resultobj = SWIG_Py_Void(); | |
25276 | return resultobj; | |
25277 | fail: | |
25278 | return NULL; | |
d14a1e28 RD |
25279 | } |
25280 | ||
25281 | ||
0085ce49 RD |
25282 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25283 | PyObject *resultobj = 0; | |
25284 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25285 | wxSize result; | |
25286 | void *argp1 = 0 ; | |
25287 | int res1 = 0 ; | |
25288 | PyObject *swig_obj[1] ; | |
25289 | ||
25290 | if (!args) SWIG_fail; | |
25291 | swig_obj[0] = args; | |
25292 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25293 | if (!SWIG_IsOK(res1)) { | |
25294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25295 | } | |
25296 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25297 | { | |
25298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25299 | result = (arg1)->GetToolMargins(); | |
25300 | wxPyEndAllowThreads(__tstate); | |
25301 | if (PyErr_Occurred()) SWIG_fail; | |
25302 | } | |
25303 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25304 | return resultobj; | |
25305 | fail: | |
25306 | return NULL; | |
d14a1e28 RD |
25307 | } |
25308 | ||
25309 | ||
0085ce49 RD |
25310 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25311 | PyObject *resultobj = 0; | |
25312 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25313 | wxSize result; | |
25314 | void *argp1 = 0 ; | |
25315 | int res1 = 0 ; | |
25316 | PyObject *swig_obj[1] ; | |
25317 | ||
25318 | if (!args) SWIG_fail; | |
25319 | swig_obj[0] = args; | |
25320 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25321 | if (!SWIG_IsOK(res1)) { | |
25322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25323 | } | |
25324 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25325 | { | |
25326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25327 | result = (arg1)->GetMargins(); | |
25328 | wxPyEndAllowThreads(__tstate); | |
25329 | if (PyErr_Occurred()) SWIG_fail; | |
25330 | } | |
25331 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25332 | return resultobj; | |
25333 | fail: | |
25334 | return NULL; | |
d14a1e28 RD |
25335 | } |
25336 | ||
25337 | ||
0085ce49 RD |
25338 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25339 | PyObject *resultobj = 0; | |
25340 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25341 | int result; | |
25342 | void *argp1 = 0 ; | |
25343 | int res1 = 0 ; | |
25344 | PyObject *swig_obj[1] ; | |
25345 | ||
25346 | if (!args) SWIG_fail; | |
25347 | swig_obj[0] = args; | |
25348 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25349 | if (!SWIG_IsOK(res1)) { | |
25350 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25351 | } | |
25352 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25353 | { | |
25354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25355 | result = (int)(arg1)->GetToolPacking(); | |
25356 | wxPyEndAllowThreads(__tstate); | |
25357 | if (PyErr_Occurred()) SWIG_fail; | |
25358 | } | |
25359 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25360 | return resultobj; | |
25361 | fail: | |
25362 | return NULL; | |
d14a1e28 RD |
25363 | } |
25364 | ||
25365 | ||
0085ce49 RD |
25366 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25367 | PyObject *resultobj = 0; | |
25368 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25369 | int result; | |
25370 | void *argp1 = 0 ; | |
25371 | int res1 = 0 ; | |
25372 | PyObject *swig_obj[1] ; | |
25373 | ||
25374 | if (!args) SWIG_fail; | |
25375 | swig_obj[0] = args; | |
25376 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25377 | if (!SWIG_IsOK(res1)) { | |
25378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25379 | } | |
25380 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25381 | { | |
25382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25383 | result = (int)(arg1)->GetToolSeparation(); | |
25384 | wxPyEndAllowThreads(__tstate); | |
25385 | if (PyErr_Occurred()) SWIG_fail; | |
25386 | } | |
25387 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25388 | return resultobj; | |
25389 | fail: | |
25390 | return NULL; | |
25391 | } | |
25392 | ||
25393 | ||
25394 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25395 | PyObject *resultobj = 0; | |
25396 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25397 | int arg2 ; | |
25398 | void *argp1 = 0 ; | |
25399 | int res1 = 0 ; | |
25400 | int val2 ; | |
25401 | int ecode2 = 0 ; | |
25402 | PyObject * obj0 = 0 ; | |
25403 | PyObject * obj1 = 0 ; | |
25404 | char * kwnames[] = { | |
25405 | (char *) "self",(char *) "nRows", NULL | |
25406 | }; | |
25407 | ||
25408 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail; | |
25409 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25410 | if (!SWIG_IsOK(res1)) { | |
25411 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25412 | } | |
25413 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25414 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25415 | if (!SWIG_IsOK(ecode2)) { | |
25416 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'"); | |
25417 | } | |
25418 | arg2 = static_cast< int >(val2); | |
25419 | { | |
25420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25421 | (arg1)->SetRows(arg2); | |
25422 | wxPyEndAllowThreads(__tstate); | |
25423 | if (PyErr_Occurred()) SWIG_fail; | |
25424 | } | |
25425 | resultobj = SWIG_Py_Void(); | |
25426 | return resultobj; | |
25427 | fail: | |
25428 | return NULL; | |
25429 | } | |
25430 | ||
25431 | ||
25432 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25433 | PyObject *resultobj = 0; | |
25434 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25435 | int arg2 ; | |
25436 | int arg3 ; | |
25437 | void *argp1 = 0 ; | |
25438 | int res1 = 0 ; | |
25439 | int val2 ; | |
25440 | int ecode2 = 0 ; | |
25441 | int val3 ; | |
25442 | int ecode3 = 0 ; | |
25443 | PyObject * obj0 = 0 ; | |
25444 | PyObject * obj1 = 0 ; | |
25445 | PyObject * obj2 = 0 ; | |
25446 | char * kwnames[] = { | |
25447 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
25448 | }; | |
25449 | ||
25450 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25451 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25452 | if (!SWIG_IsOK(res1)) { | |
25453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25454 | } | |
25455 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25456 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25457 | if (!SWIG_IsOK(ecode2)) { | |
25458 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'"); | |
25459 | } | |
25460 | arg2 = static_cast< int >(val2); | |
25461 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25462 | if (!SWIG_IsOK(ecode3)) { | |
25463 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'"); | |
25464 | } | |
25465 | arg3 = static_cast< int >(val3); | |
25466 | { | |
25467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25468 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
25469 | wxPyEndAllowThreads(__tstate); | |
25470 | if (PyErr_Occurred()) SWIG_fail; | |
25471 | } | |
25472 | resultobj = SWIG_Py_Void(); | |
25473 | return resultobj; | |
25474 | fail: | |
25475 | return NULL; | |
22bfe96c RD |
25476 | } |
25477 | ||
25478 | ||
0085ce49 RD |
25479 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25480 | PyObject *resultobj = 0; | |
25481 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25482 | int result; | |
25483 | void *argp1 = 0 ; | |
25484 | int res1 = 0 ; | |
25485 | PyObject *swig_obj[1] ; | |
25486 | ||
25487 | if (!args) SWIG_fail; | |
25488 | swig_obj[0] = args; | |
25489 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25490 | if (!SWIG_IsOK(res1)) { | |
25491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25492 | } | |
25493 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25494 | { | |
25495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25496 | result = (int)(arg1)->GetMaxRows(); | |
25497 | wxPyEndAllowThreads(__tstate); | |
25498 | if (PyErr_Occurred()) SWIG_fail; | |
25499 | } | |
25500 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25501 | return resultobj; | |
25502 | fail: | |
25503 | return NULL; | |
d14a1e28 RD |
25504 | } |
25505 | ||
25506 | ||
0085ce49 RD |
25507 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25508 | PyObject *resultobj = 0; | |
25509 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25510 | int result; | |
25511 | void *argp1 = 0 ; | |
25512 | int res1 = 0 ; | |
25513 | PyObject *swig_obj[1] ; | |
25514 | ||
25515 | if (!args) SWIG_fail; | |
25516 | swig_obj[0] = args; | |
25517 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25518 | if (!SWIG_IsOK(res1)) { | |
25519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25520 | } | |
25521 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25522 | { | |
25523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25524 | result = (int)(arg1)->GetMaxCols(); | |
25525 | wxPyEndAllowThreads(__tstate); | |
25526 | if (PyErr_Occurred()) SWIG_fail; | |
25527 | } | |
25528 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25529 | return resultobj; | |
25530 | fail: | |
25531 | return NULL; | |
25532 | } | |
25533 | ||
25534 | ||
25535 | SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25536 | PyObject *resultobj = 0; | |
25537 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25538 | wxSize *arg2 = 0 ; | |
25539 | void *argp1 = 0 ; | |
25540 | int res1 = 0 ; | |
25541 | wxSize temp2 ; | |
25542 | PyObject * obj0 = 0 ; | |
25543 | PyObject * obj1 = 0 ; | |
25544 | char * kwnames[] = { | |
25545 | (char *) "self",(char *) "size", NULL | |
25546 | }; | |
25547 | ||
25548 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
25549 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25550 | if (!SWIG_IsOK(res1)) { | |
25551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25552 | } | |
25553 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25554 | { | |
25555 | arg2 = &temp2; | |
25556 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25557 | } | |
25558 | { | |
25559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25560 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
25561 | wxPyEndAllowThreads(__tstate); | |
25562 | if (PyErr_Occurred()) SWIG_fail; | |
25563 | } | |
25564 | resultobj = SWIG_Py_Void(); | |
25565 | return resultobj; | |
25566 | fail: | |
25567 | return NULL; | |
d14a1e28 RD |
25568 | } |
25569 | ||
25570 | ||
0085ce49 RD |
25571 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25572 | PyObject *resultobj = 0; | |
25573 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25574 | wxSize result; | |
25575 | void *argp1 = 0 ; | |
25576 | int res1 = 0 ; | |
25577 | PyObject *swig_obj[1] ; | |
25578 | ||
25579 | if (!args) SWIG_fail; | |
25580 | swig_obj[0] = args; | |
25581 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25582 | if (!SWIG_IsOK(res1)) { | |
25583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25584 | } | |
25585 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25586 | { | |
25587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25588 | result = (arg1)->GetToolBitmapSize(); | |
25589 | wxPyEndAllowThreads(__tstate); | |
25590 | if (PyErr_Occurred()) SWIG_fail; | |
25591 | } | |
25592 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25593 | return resultobj; | |
25594 | fail: | |
25595 | return NULL; | |
d14a1e28 RD |
25596 | } |
25597 | ||
25598 | ||
0085ce49 RD |
25599 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25600 | PyObject *resultobj = 0; | |
25601 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25602 | wxSize result; | |
25603 | void *argp1 = 0 ; | |
25604 | int res1 = 0 ; | |
25605 | PyObject *swig_obj[1] ; | |
25606 | ||
25607 | if (!args) SWIG_fail; | |
25608 | swig_obj[0] = args; | |
25609 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25610 | if (!SWIG_IsOK(res1)) { | |
25611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25612 | } | |
25613 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25614 | { | |
25615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25616 | result = (arg1)->GetToolSize(); | |
25617 | wxPyEndAllowThreads(__tstate); | |
25618 | if (PyErr_Occurred()) SWIG_fail; | |
25619 | } | |
25620 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25621 | return resultobj; | |
25622 | fail: | |
25623 | return NULL; | |
25624 | } | |
25625 | ||
25626 | ||
25627 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25628 | PyObject *resultobj = 0; | |
25629 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25630 | int arg2 ; | |
25631 | int arg3 ; | |
25632 | wxToolBarToolBase *result = 0 ; | |
25633 | void *argp1 = 0 ; | |
25634 | int res1 = 0 ; | |
25635 | int val2 ; | |
25636 | int ecode2 = 0 ; | |
25637 | int val3 ; | |
25638 | int ecode3 = 0 ; | |
25639 | PyObject * obj0 = 0 ; | |
25640 | PyObject * obj1 = 0 ; | |
25641 | PyObject * obj2 = 0 ; | |
25642 | char * kwnames[] = { | |
25643 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25644 | }; | |
25645 | ||
25646 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25647 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25648 | if (!SWIG_IsOK(res1)) { | |
25649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25650 | } | |
25651 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25652 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25653 | if (!SWIG_IsOK(ecode2)) { | |
25654 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'"); | |
25655 | } | |
25656 | arg2 = static_cast< int >(val2); | |
25657 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25658 | if (!SWIG_IsOK(ecode3)) { | |
25659 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'"); | |
25660 | } | |
25661 | arg3 = static_cast< int >(val3); | |
25662 | { | |
25663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25664 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
25665 | wxPyEndAllowThreads(__tstate); | |
25666 | if (PyErr_Occurred()) SWIG_fail; | |
25667 | } | |
25668 | { | |
25669 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
25670 | } | |
25671 | return resultobj; | |
25672 | fail: | |
25673 | return NULL; | |
25674 | } | |
25675 | ||
25676 | ||
25677 | SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25678 | PyObject *resultobj = 0; | |
25679 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25680 | int arg2 ; | |
25681 | wxToolBarToolBase *result = 0 ; | |
25682 | void *argp1 = 0 ; | |
25683 | int res1 = 0 ; | |
25684 | int val2 ; | |
25685 | int ecode2 = 0 ; | |
25686 | PyObject * obj0 = 0 ; | |
25687 | PyObject * obj1 = 0 ; | |
25688 | char * kwnames[] = { | |
25689 | (char *) "self",(char *) "toolid", NULL | |
25690 | }; | |
25691 | ||
25692 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail; | |
25693 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25694 | if (!SWIG_IsOK(res1)) { | |
25695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
25696 | } | |
25697 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25698 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25699 | if (!SWIG_IsOK(ecode2)) { | |
25700 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'"); | |
25701 | } | |
25702 | arg2 = static_cast< int >(val2); | |
25703 | { | |
25704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25705 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
25706 | wxPyEndAllowThreads(__tstate); | |
25707 | if (PyErr_Occurred()) SWIG_fail; | |
25708 | } | |
25709 | { | |
25710 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
25711 | } | |
25712 | return resultobj; | |
25713 | fail: | |
25714 | return NULL; | |
d14a1e28 RD |
25715 | } |
25716 | ||
25717 | ||
0085ce49 RD |
25718 | SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25719 | PyObject *resultobj = 0; | |
25720 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25721 | bool result; | |
25722 | void *argp1 = 0 ; | |
25723 | int res1 = 0 ; | |
25724 | PyObject *swig_obj[1] ; | |
25725 | ||
25726 | if (!args) SWIG_fail; | |
25727 | swig_obj[0] = args; | |
25728 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25729 | if (!SWIG_IsOK(res1)) { | |
25730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'"); | |
25731 | } | |
25732 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25733 | { | |
25734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25735 | result = (bool)(arg1)->IsVertical(); | |
25736 | wxPyEndAllowThreads(__tstate); | |
25737 | if (PyErr_Occurred()) SWIG_fail; | |
25738 | } | |
25739 | { | |
25740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25741 | } | |
25742 | return resultobj; | |
25743 | fail: | |
25744 | return NULL; | |
25745 | } | |
25746 | ||
25747 | ||
25748 | SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25749 | PyObject *resultobj = 0; | |
25750 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
25751 | size_t result; | |
25752 | void *argp1 = 0 ; | |
25753 | int res1 = 0 ; | |
25754 | PyObject *swig_obj[1] ; | |
25755 | ||
25756 | if (!args) SWIG_fail; | |
25757 | swig_obj[0] = args; | |
25758 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 ); | |
25759 | if (!SWIG_IsOK(res1)) { | |
25760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'"); | |
25761 | } | |
25762 | arg1 = reinterpret_cast< wxToolBarBase * >(argp1); | |
25763 | { | |
25764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25765 | result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount(); | |
25766 | wxPyEndAllowThreads(__tstate); | |
25767 | if (PyErr_Occurred()) SWIG_fail; | |
25768 | } | |
25769 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
25770 | return resultobj; | |
25771 | fail: | |
25772 | return NULL; | |
25773 | } | |
25774 | ||
25775 | ||
25776 | SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25777 | PyObject *obj; | |
25778 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25779 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj)); | |
25780 | return SWIG_Py_Void(); | |
25781 | } | |
25782 | ||
25783 | SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25784 | PyObject *resultobj = 0; | |
25785 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25786 | int arg2 = (int) -1 ; | |
25787 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
25788 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25789 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25790 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25791 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
25792 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
25793 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
25794 | wxToolBar *result = 0 ; | |
25795 | void *argp1 = 0 ; | |
25796 | int res1 = 0 ; | |
25797 | int val2 ; | |
25798 | int ecode2 = 0 ; | |
25799 | wxPoint temp3 ; | |
25800 | wxSize temp4 ; | |
25801 | long val5 ; | |
25802 | int ecode5 = 0 ; | |
25803 | bool temp6 = false ; | |
25804 | PyObject * obj0 = 0 ; | |
25805 | PyObject * obj1 = 0 ; | |
25806 | PyObject * obj2 = 0 ; | |
25807 | PyObject * obj3 = 0 ; | |
25808 | PyObject * obj4 = 0 ; | |
25809 | PyObject * obj5 = 0 ; | |
25810 | char * kwnames[] = { | |
25811 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
25812 | }; | |
25813 | ||
25814 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
25815 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25816 | if (!SWIG_IsOK(res1)) { | |
25817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25818 | } | |
25819 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25820 | if (obj1) { | |
25821 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25822 | if (!SWIG_IsOK(ecode2)) { | |
25823 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'"); | |
25824 | } | |
25825 | arg2 = static_cast< int >(val2); | |
25826 | } | |
25827 | if (obj2) { | |
25828 | { | |
25829 | arg3 = &temp3; | |
25830 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25831 | } | |
25832 | } | |
25833 | if (obj3) { | |
093d3ff1 | 25834 | { |
0085ce49 RD |
25835 | arg4 = &temp4; |
25836 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 25837 | } |
0085ce49 RD |
25838 | } |
25839 | if (obj4) { | |
25840 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
25841 | if (!SWIG_IsOK(ecode5)) { | |
25842 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'"); | |
25843 | } | |
25844 | arg5 = static_cast< long >(val5); | |
25845 | } | |
25846 | if (obj5) { | |
d14a1e28 | 25847 | { |
0085ce49 RD |
25848 | arg6 = wxString_in_helper(obj5); |
25849 | if (arg6 == NULL) SWIG_fail; | |
25850 | temp6 = true; | |
d14a1e28 | 25851 | } |
0085ce49 RD |
25852 | } |
25853 | { | |
25854 | if (!wxPyCheckForApp()) SWIG_fail; | |
25855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25856 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
25857 | wxPyEndAllowThreads(__tstate); | |
25858 | if (PyErr_Occurred()) SWIG_fail; | |
25859 | } | |
25860 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 ); | |
25861 | { | |
25862 | if (temp6) | |
25863 | delete arg6; | |
25864 | } | |
25865 | return resultobj; | |
25866 | fail: | |
25867 | { | |
25868 | if (temp6) | |
25869 | delete arg6; | |
25870 | } | |
25871 | return NULL; | |
d14a1e28 RD |
25872 | } |
25873 | ||
25874 | ||
0085ce49 RD |
25875 | SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25876 | PyObject *resultobj = 0; | |
25877 | wxToolBar *result = 0 ; | |
25878 | ||
25879 | if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail; | |
25880 | { | |
25881 | if (!wxPyCheckForApp()) SWIG_fail; | |
25882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25883 | result = (wxToolBar *)new wxToolBar(); | |
25884 | wxPyEndAllowThreads(__tstate); | |
25885 | if (PyErr_Occurred()) SWIG_fail; | |
25886 | } | |
25887 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 ); | |
25888 | return resultobj; | |
25889 | fail: | |
25890 | return NULL; | |
25891 | } | |
25892 | ||
25893 | ||
25894 | SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25895 | PyObject *resultobj = 0; | |
25896 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
25897 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25898 | int arg3 = (int) -1 ; | |
25899 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
25900 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25901 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25902 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25903 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
25904 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
25905 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
25906 | bool result; | |
25907 | void *argp1 = 0 ; | |
25908 | int res1 = 0 ; | |
25909 | void *argp2 = 0 ; | |
25910 | int res2 = 0 ; | |
25911 | int val3 ; | |
25912 | int ecode3 = 0 ; | |
25913 | wxPoint temp4 ; | |
25914 | wxSize temp5 ; | |
25915 | long val6 ; | |
25916 | int ecode6 = 0 ; | |
25917 | bool temp7 = false ; | |
25918 | PyObject * obj0 = 0 ; | |
25919 | PyObject * obj1 = 0 ; | |
25920 | PyObject * obj2 = 0 ; | |
25921 | PyObject * obj3 = 0 ; | |
25922 | PyObject * obj4 = 0 ; | |
25923 | PyObject * obj5 = 0 ; | |
25924 | PyObject * obj6 = 0 ; | |
25925 | char * kwnames[] = { | |
25926 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
25927 | }; | |
25928 | ||
25929 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
25930 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
25931 | if (!SWIG_IsOK(res1)) { | |
25932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'"); | |
25933 | } | |
25934 | arg1 = reinterpret_cast< wxToolBar * >(argp1); | |
25935 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25936 | if (!SWIG_IsOK(res2)) { | |
25937 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25938 | } | |
25939 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25940 | if (obj2) { | |
25941 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25942 | if (!SWIG_IsOK(ecode3)) { | |
25943 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
25944 | } | |
25945 | arg3 = static_cast< int >(val3); | |
25946 | } | |
25947 | if (obj3) { | |
25948 | { | |
25949 | arg4 = &temp4; | |
25950 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22bfe96c | 25951 | } |
0085ce49 RD |
25952 | } |
25953 | if (obj4) { | |
22bfe96c | 25954 | { |
0085ce49 RD |
25955 | arg5 = &temp5; |
25956 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22bfe96c | 25957 | } |
0085ce49 RD |
25958 | } |
25959 | if (obj5) { | |
25960 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
25961 | if (!SWIG_IsOK(ecode6)) { | |
25962 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'"); | |
25963 | } | |
25964 | arg6 = static_cast< long >(val6); | |
25965 | } | |
25966 | if (obj6) { | |
22bfe96c | 25967 | { |
0085ce49 RD |
25968 | arg7 = wxString_in_helper(obj6); |
25969 | if (arg7 == NULL) SWIG_fail; | |
25970 | temp7 = true; | |
22bfe96c | 25971 | } |
0085ce49 RD |
25972 | } |
25973 | { | |
25974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25975 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
25976 | wxPyEndAllowThreads(__tstate); | |
25977 | if (PyErr_Occurred()) SWIG_fail; | |
25978 | } | |
25979 | { | |
25980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25981 | } | |
25982 | { | |
25983 | if (temp7) | |
25984 | delete arg7; | |
25985 | } | |
25986 | return resultobj; | |
25987 | fail: | |
25988 | { | |
25989 | if (temp7) | |
25990 | delete arg7; | |
25991 | } | |
25992 | return NULL; | |
25993 | } | |
25994 | ||
25995 | ||
0085ce49 RD |
25996 | SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25997 | PyObject *resultobj = 0; | |
25998 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
25999 | SwigValueWrapper<wxVisualAttributes > result; | |
26000 | int val1 ; | |
26001 | int ecode1 = 0 ; | |
26002 | PyObject * obj0 = 0 ; | |
26003 | char * kwnames[] = { | |
26004 | (char *) "variant", NULL | |
26005 | }; | |
26006 | ||
26007 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
26008 | if (obj0) { | |
26009 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
26010 | if (!SWIG_IsOK(ecode1)) { | |
26011 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
26012 | } | |
26013 | arg1 = static_cast< wxWindowVariant >(val1); | |
26014 | } | |
26015 | { | |
26016 | if (!wxPyCheckForApp()) SWIG_fail; | |
26017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26018 | result = wxToolBar::GetClassDefaultAttributes(arg1); | |
26019 | wxPyEndAllowThreads(__tstate); | |
26020 | if (PyErr_Occurred()) SWIG_fail; | |
26021 | } | |
26022 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
26023 | return resultobj; | |
26024 | fail: | |
26025 | return NULL; | |
22bfe96c RD |
26026 | } |
26027 | ||
26028 | ||
0085ce49 RD |
26029 | SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26030 | PyObject *obj; | |
26031 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26032 | SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj)); | |
26033 | return SWIG_Py_Void(); | |
d14a1e28 | 26034 | } |
0085ce49 RD |
26035 | |
26036 | SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26037 | return SWIG_Python_InitShadowInstance(args); | |
b2dc1044 RD |
26038 | } |
26039 | ||
0085ce49 RD |
26040 | SWIGINTERN int ListCtrlNameStr_set(PyObject *) { |
26041 | SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only."); | |
26042 | return 1; | |
26043 | } | |
b2dc1044 | 26044 | |
0085ce49 RD |
26045 | |
26046 | SWIGINTERN PyObject *ListCtrlNameStr_get(void) { | |
26047 | PyObject *pyobj = 0; | |
26048 | ||
26049 | { | |
b2dc1044 | 26050 | #if wxUSE_UNICODE |
0085ce49 | 26051 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); |
b2dc1044 | 26052 | #else |
0085ce49 | 26053 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); |
b2dc1044 | 26054 | #endif |
0085ce49 RD |
26055 | } |
26056 | return pyobj; | |
26057 | } | |
26058 | ||
26059 | ||
26060 | SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26061 | PyObject *resultobj = 0; | |
26062 | wxColour const &arg1_defvalue = wxNullColour ; | |
26063 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
26064 | wxColour const &arg2_defvalue = wxNullColour ; | |
26065 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
26066 | wxFont const &arg3_defvalue = wxNullFont ; | |
26067 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
26068 | wxListItemAttr *result = 0 ; | |
26069 | wxColour temp1 ; | |
26070 | wxColour temp2 ; | |
26071 | void *argp3 = 0 ; | |
26072 | int res3 = 0 ; | |
26073 | PyObject * obj0 = 0 ; | |
26074 | PyObject * obj1 = 0 ; | |
26075 | PyObject * obj2 = 0 ; | |
26076 | char * kwnames[] = { | |
26077 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
26078 | }; | |
26079 | ||
26080 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26081 | if (obj0) { | |
d14a1e28 | 26082 | { |
0085ce49 RD |
26083 | arg1 = &temp1; |
26084 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
d14a1e28 | 26085 | } |
0085ce49 RD |
26086 | } |
26087 | if (obj1) { | |
d14a1e28 | 26088 | { |
0085ce49 RD |
26089 | arg2 = &temp2; |
26090 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 26091 | } |
0085ce49 RD |
26092 | } |
26093 | if (obj2) { | |
26094 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
26095 | if (!SWIG_IsOK(res3)) { | |
26096 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d14a1e28 | 26097 | } |
0085ce49 RD |
26098 | if (!argp3) { |
26099 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
d14a1e28 | 26100 | } |
0085ce49 RD |
26101 | arg3 = reinterpret_cast< wxFont * >(argp3); |
26102 | } | |
26103 | { | |
26104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26105 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
26106 | wxPyEndAllowThreads(__tstate); | |
26107 | if (PyErr_Occurred()) SWIG_fail; | |
26108 | } | |
26109 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 ); | |
26110 | return resultobj; | |
26111 | fail: | |
26112 | return NULL; | |
d14a1e28 RD |
26113 | } |
26114 | ||
26115 | ||
0085ce49 RD |
26116 | SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26117 | PyObject *resultobj = 0; | |
26118 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26119 | void *argp1 = 0 ; | |
26120 | int res1 = 0 ; | |
26121 | PyObject *swig_obj[1] ; | |
26122 | ||
26123 | if (!args) SWIG_fail; | |
26124 | swig_obj[0] = args; | |
26125 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 ); | |
26126 | if (!SWIG_IsOK(res1)) { | |
26127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26128 | } | |
26129 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26130 | { | |
26131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26132 | delete arg1; | |
d14a1e28 | 26133 | |
0085ce49 RD |
26134 | wxPyEndAllowThreads(__tstate); |
26135 | if (PyErr_Occurred()) SWIG_fail; | |
26136 | } | |
26137 | resultobj = SWIG_Py_Void(); | |
26138 | return resultobj; | |
26139 | fail: | |
26140 | return NULL; | |
26141 | } | |
26142 | ||
26143 | ||
26144 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26145 | PyObject *resultobj = 0; | |
26146 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26147 | wxColour *arg2 = 0 ; | |
26148 | void *argp1 = 0 ; | |
26149 | int res1 = 0 ; | |
26150 | wxColour temp2 ; | |
26151 | PyObject * obj0 = 0 ; | |
26152 | PyObject * obj1 = 0 ; | |
26153 | char * kwnames[] = { | |
26154 | (char *) "self",(char *) "colText", NULL | |
26155 | }; | |
26156 | ||
26157 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
26158 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26159 | if (!SWIG_IsOK(res1)) { | |
26160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26161 | } | |
26162 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26163 | { | |
26164 | arg2 = &temp2; | |
26165 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26166 | } | |
26167 | { | |
26168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26169 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
26170 | wxPyEndAllowThreads(__tstate); | |
26171 | if (PyErr_Occurred()) SWIG_fail; | |
26172 | } | |
26173 | resultobj = SWIG_Py_Void(); | |
26174 | return resultobj; | |
26175 | fail: | |
26176 | return NULL; | |
26177 | } | |
26178 | ||
26179 | ||
26180 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26181 | PyObject *resultobj = 0; | |
26182 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26183 | wxColour *arg2 = 0 ; | |
26184 | void *argp1 = 0 ; | |
26185 | int res1 = 0 ; | |
26186 | wxColour temp2 ; | |
26187 | PyObject * obj0 = 0 ; | |
26188 | PyObject * obj1 = 0 ; | |
26189 | char * kwnames[] = { | |
26190 | (char *) "self",(char *) "colBack", NULL | |
26191 | }; | |
26192 | ||
26193 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
26194 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26195 | if (!SWIG_IsOK(res1)) { | |
26196 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26197 | } | |
26198 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26199 | { | |
26200 | arg2 = &temp2; | |
26201 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26202 | } | |
26203 | { | |
26204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26205 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26206 | wxPyEndAllowThreads(__tstate); | |
26207 | if (PyErr_Occurred()) SWIG_fail; | |
26208 | } | |
26209 | resultobj = SWIG_Py_Void(); | |
26210 | return resultobj; | |
26211 | fail: | |
26212 | return NULL; | |
26213 | } | |
26214 | ||
26215 | ||
26216 | SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26217 | PyObject *resultobj = 0; | |
26218 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26219 | wxFont *arg2 = 0 ; | |
26220 | void *argp1 = 0 ; | |
26221 | int res1 = 0 ; | |
26222 | void *argp2 = 0 ; | |
26223 | int res2 = 0 ; | |
26224 | PyObject * obj0 = 0 ; | |
26225 | PyObject * obj1 = 0 ; | |
26226 | char * kwnames[] = { | |
26227 | (char *) "self",(char *) "font", NULL | |
26228 | }; | |
26229 | ||
26230 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
26231 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26232 | if (!SWIG_IsOK(res1)) { | |
26233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26234 | } | |
26235 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26236 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
26237 | if (!SWIG_IsOK(res2)) { | |
26238 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
26239 | } | |
26240 | if (!argp2) { | |
26241 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
26242 | } | |
26243 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
26244 | { | |
26245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26246 | (arg1)->SetFont((wxFont const &)*arg2); | |
26247 | wxPyEndAllowThreads(__tstate); | |
26248 | if (PyErr_Occurred()) SWIG_fail; | |
26249 | } | |
26250 | resultobj = SWIG_Py_Void(); | |
26251 | return resultobj; | |
26252 | fail: | |
26253 | return NULL; | |
d14a1e28 RD |
26254 | } |
26255 | ||
26256 | ||
0085ce49 RD |
26257 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26258 | PyObject *resultobj = 0; | |
26259 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26260 | bool result; | |
26261 | void *argp1 = 0 ; | |
26262 | int res1 = 0 ; | |
26263 | PyObject *swig_obj[1] ; | |
26264 | ||
26265 | if (!args) SWIG_fail; | |
26266 | swig_obj[0] = args; | |
26267 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26268 | if (!SWIG_IsOK(res1)) { | |
26269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26270 | } | |
26271 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26272 | { | |
26273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26274 | result = (bool)(arg1)->HasTextColour(); | |
26275 | wxPyEndAllowThreads(__tstate); | |
26276 | if (PyErr_Occurred()) SWIG_fail; | |
26277 | } | |
26278 | { | |
26279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26280 | } | |
26281 | return resultobj; | |
26282 | fail: | |
26283 | return NULL; | |
d14a1e28 RD |
26284 | } |
26285 | ||
26286 | ||
0085ce49 RD |
26287 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26288 | PyObject *resultobj = 0; | |
26289 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26290 | bool result; | |
26291 | void *argp1 = 0 ; | |
26292 | int res1 = 0 ; | |
26293 | PyObject *swig_obj[1] ; | |
26294 | ||
26295 | if (!args) SWIG_fail; | |
26296 | swig_obj[0] = args; | |
26297 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26298 | if (!SWIG_IsOK(res1)) { | |
26299 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26300 | } | |
26301 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26302 | { | |
26303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26304 | result = (bool)(arg1)->HasBackgroundColour(); | |
26305 | wxPyEndAllowThreads(__tstate); | |
26306 | if (PyErr_Occurred()) SWIG_fail; | |
26307 | } | |
26308 | { | |
26309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26310 | } | |
26311 | return resultobj; | |
26312 | fail: | |
26313 | return NULL; | |
d14a1e28 RD |
26314 | } |
26315 | ||
26316 | ||
0085ce49 RD |
26317 | SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26318 | PyObject *resultobj = 0; | |
26319 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26320 | bool result; | |
26321 | void *argp1 = 0 ; | |
26322 | int res1 = 0 ; | |
26323 | PyObject *swig_obj[1] ; | |
26324 | ||
26325 | if (!args) SWIG_fail; | |
26326 | swig_obj[0] = args; | |
26327 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26328 | if (!SWIG_IsOK(res1)) { | |
26329 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26330 | } | |
26331 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26332 | { | |
26333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26334 | result = (bool)(arg1)->HasFont(); | |
26335 | wxPyEndAllowThreads(__tstate); | |
26336 | if (PyErr_Occurred()) SWIG_fail; | |
26337 | } | |
26338 | { | |
26339 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26340 | } | |
26341 | return resultobj; | |
26342 | fail: | |
26343 | return NULL; | |
d14a1e28 RD |
26344 | } |
26345 | ||
26346 | ||
0085ce49 RD |
26347 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26348 | PyObject *resultobj = 0; | |
26349 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26350 | wxColour result; | |
26351 | void *argp1 = 0 ; | |
26352 | int res1 = 0 ; | |
26353 | PyObject *swig_obj[1] ; | |
26354 | ||
26355 | if (!args) SWIG_fail; | |
26356 | swig_obj[0] = args; | |
26357 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26358 | if (!SWIG_IsOK(res1)) { | |
26359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26360 | } | |
26361 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26362 | { | |
26363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26364 | result = (arg1)->GetTextColour(); | |
26365 | wxPyEndAllowThreads(__tstate); | |
26366 | if (PyErr_Occurred()) SWIG_fail; | |
26367 | } | |
26368 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
26369 | return resultobj; | |
26370 | fail: | |
26371 | return NULL; | |
d14a1e28 RD |
26372 | } |
26373 | ||
26374 | ||
0085ce49 RD |
26375 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26376 | PyObject *resultobj = 0; | |
26377 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26378 | wxColour result; | |
26379 | void *argp1 = 0 ; | |
26380 | int res1 = 0 ; | |
26381 | PyObject *swig_obj[1] ; | |
26382 | ||
26383 | if (!args) SWIG_fail; | |
26384 | swig_obj[0] = args; | |
26385 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26386 | if (!SWIG_IsOK(res1)) { | |
26387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26388 | } | |
26389 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26390 | { | |
26391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26392 | result = (arg1)->GetBackgroundColour(); | |
26393 | wxPyEndAllowThreads(__tstate); | |
26394 | if (PyErr_Occurred()) SWIG_fail; | |
26395 | } | |
26396 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
26397 | return resultobj; | |
26398 | fail: | |
26399 | return NULL; | |
d14a1e28 RD |
26400 | } |
26401 | ||
26402 | ||
0085ce49 RD |
26403 | SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26404 | PyObject *resultobj = 0; | |
26405 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26406 | wxFont result; | |
26407 | void *argp1 = 0 ; | |
26408 | int res1 = 0 ; | |
26409 | PyObject *swig_obj[1] ; | |
26410 | ||
26411 | if (!args) SWIG_fail; | |
26412 | swig_obj[0] = args; | |
26413 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26414 | if (!SWIG_IsOK(res1)) { | |
26415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26416 | } | |
26417 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26418 | { | |
26419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26420 | result = (arg1)->GetFont(); | |
26421 | wxPyEndAllowThreads(__tstate); | |
26422 | if (PyErr_Occurred()) SWIG_fail; | |
26423 | } | |
26424 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
26425 | return resultobj; | |
26426 | fail: | |
26427 | return NULL; | |
26428 | } | |
26429 | ||
26430 | ||
26431 | SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26432 | PyObject *resultobj = 0; | |
26433 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26434 | wxListItemAttr *arg2 = 0 ; | |
26435 | void *argp1 = 0 ; | |
26436 | int res1 = 0 ; | |
26437 | void *argp2 = 0 ; | |
26438 | int res2 = 0 ; | |
26439 | PyObject * obj0 = 0 ; | |
26440 | PyObject * obj1 = 0 ; | |
26441 | char * kwnames[] = { | |
26442 | (char *) "self",(char *) "source", NULL | |
26443 | }; | |
26444 | ||
26445 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail; | |
26446 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26447 | if (!SWIG_IsOK(res1)) { | |
26448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26449 | } | |
26450 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26451 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0); | |
26452 | if (!SWIG_IsOK(res2)) { | |
26453 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'"); | |
26454 | } | |
26455 | if (!argp2) { | |
26456 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'"); | |
26457 | } | |
26458 | arg2 = reinterpret_cast< wxListItemAttr * >(argp2); | |
26459 | { | |
26460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26461 | (arg1)->AssignFrom((wxListItemAttr const &)*arg2); | |
26462 | wxPyEndAllowThreads(__tstate); | |
26463 | if (PyErr_Occurred()) SWIG_fail; | |
26464 | } | |
26465 | resultobj = SWIG_Py_Void(); | |
26466 | return resultobj; | |
26467 | fail: | |
26468 | return NULL; | |
d14a1e28 RD |
26469 | } |
26470 | ||
26471 | ||
0085ce49 RD |
26472 | SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26473 | PyObject *resultobj = 0; | |
26474 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
26475 | void *argp1 = 0 ; | |
26476 | int res1 = 0 ; | |
26477 | PyObject *swig_obj[1] ; | |
26478 | ||
26479 | if (!args) SWIG_fail; | |
26480 | swig_obj[0] = args; | |
26481 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
26482 | if (!SWIG_IsOK(res1)) { | |
26483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'"); | |
26484 | } | |
26485 | arg1 = reinterpret_cast< wxListItemAttr * >(argp1); | |
26486 | { | |
26487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26488 | wxListItemAttr_Destroy(arg1); | |
26489 | wxPyEndAllowThreads(__tstate); | |
26490 | if (PyErr_Occurred()) SWIG_fail; | |
26491 | } | |
26492 | resultobj = SWIG_Py_Void(); | |
26493 | return resultobj; | |
26494 | fail: | |
26495 | return NULL; | |
d14a1e28 RD |
26496 | } |
26497 | ||
26498 | ||
0085ce49 RD |
26499 | SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26500 | PyObject *obj; | |
26501 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26502 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj)); | |
26503 | return SWIG_Py_Void(); | |
d14a1e28 RD |
26504 | } |
26505 | ||
0085ce49 RD |
26506 | SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26507 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
26508 | } |
26509 | ||
0085ce49 RD |
26510 | SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26511 | PyObject *resultobj = 0; | |
26512 | wxListItem *result = 0 ; | |
26513 | ||
26514 | if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail; | |
26515 | { | |
26516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26517 | result = (wxListItem *)new wxListItem(); | |
26518 | wxPyEndAllowThreads(__tstate); | |
26519 | if (PyErr_Occurred()) SWIG_fail; | |
26520 | } | |
3ecece7e | 26521 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 ); |
0085ce49 RD |
26522 | return resultobj; |
26523 | fail: | |
26524 | return NULL; | |
d14a1e28 RD |
26525 | } |
26526 | ||
26527 | ||
0085ce49 RD |
26528 | SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26529 | PyObject *resultobj = 0; | |
26530 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26531 | void *argp1 = 0 ; | |
26532 | int res1 = 0 ; | |
26533 | PyObject *swig_obj[1] ; | |
26534 | ||
26535 | if (!args) SWIG_fail; | |
26536 | swig_obj[0] = args; | |
26537 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 ); | |
26538 | if (!SWIG_IsOK(res1)) { | |
26539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26540 | } | |
26541 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26542 | { | |
26543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26544 | delete arg1; | |
d14a1e28 | 26545 | |
0085ce49 RD |
26546 | wxPyEndAllowThreads(__tstate); |
26547 | if (PyErr_Occurred()) SWIG_fail; | |
26548 | } | |
26549 | resultobj = SWIG_Py_Void(); | |
26550 | return resultobj; | |
26551 | fail: | |
26552 | return NULL; | |
d14a1e28 RD |
26553 | } |
26554 | ||
26555 | ||
0085ce49 RD |
26556 | SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26557 | PyObject *resultobj = 0; | |
26558 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26559 | void *argp1 = 0 ; | |
26560 | int res1 = 0 ; | |
26561 | PyObject *swig_obj[1] ; | |
26562 | ||
26563 | if (!args) SWIG_fail; | |
26564 | swig_obj[0] = args; | |
26565 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26566 | if (!SWIG_IsOK(res1)) { | |
26567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26568 | } | |
26569 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26570 | { | |
26571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26572 | (arg1)->Clear(); | |
26573 | wxPyEndAllowThreads(__tstate); | |
26574 | if (PyErr_Occurred()) SWIG_fail; | |
26575 | } | |
26576 | resultobj = SWIG_Py_Void(); | |
26577 | return resultobj; | |
26578 | fail: | |
26579 | return NULL; | |
d14a1e28 RD |
26580 | } |
26581 | ||
26582 | ||
0085ce49 RD |
26583 | SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26584 | PyObject *resultobj = 0; | |
26585 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26586 | void *argp1 = 0 ; | |
26587 | int res1 = 0 ; | |
26588 | PyObject *swig_obj[1] ; | |
26589 | ||
26590 | if (!args) SWIG_fail; | |
26591 | swig_obj[0] = args; | |
26592 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26593 | if (!SWIG_IsOK(res1)) { | |
26594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26595 | } | |
26596 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26597 | { | |
26598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26599 | (arg1)->ClearAttributes(); | |
26600 | wxPyEndAllowThreads(__tstate); | |
26601 | if (PyErr_Occurred()) SWIG_fail; | |
26602 | } | |
26603 | resultobj = SWIG_Py_Void(); | |
26604 | return resultobj; | |
26605 | fail: | |
26606 | return NULL; | |
26607 | } | |
26608 | ||
26609 | ||
26610 | SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26611 | PyObject *resultobj = 0; | |
26612 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26613 | long arg2 ; | |
26614 | void *argp1 = 0 ; | |
26615 | int res1 = 0 ; | |
26616 | long val2 ; | |
26617 | int ecode2 = 0 ; | |
26618 | PyObject * obj0 = 0 ; | |
26619 | PyObject * obj1 = 0 ; | |
26620 | char * kwnames[] = { | |
26621 | (char *) "self",(char *) "mask", NULL | |
26622 | }; | |
26623 | ||
26624 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
26625 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26626 | if (!SWIG_IsOK(res1)) { | |
26627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26628 | } | |
26629 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26630 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26631 | if (!SWIG_IsOK(ecode2)) { | |
26632 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'"); | |
26633 | } | |
26634 | arg2 = static_cast< long >(val2); | |
26635 | { | |
26636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26637 | (arg1)->SetMask(arg2); | |
26638 | wxPyEndAllowThreads(__tstate); | |
26639 | if (PyErr_Occurred()) SWIG_fail; | |
26640 | } | |
26641 | resultobj = SWIG_Py_Void(); | |
26642 | return resultobj; | |
26643 | fail: | |
26644 | return NULL; | |
26645 | } | |
26646 | ||
26647 | ||
26648 | SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26649 | PyObject *resultobj = 0; | |
26650 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26651 | long arg2 ; | |
26652 | void *argp1 = 0 ; | |
26653 | int res1 = 0 ; | |
26654 | long val2 ; | |
26655 | int ecode2 = 0 ; | |
26656 | PyObject * obj0 = 0 ; | |
26657 | PyObject * obj1 = 0 ; | |
26658 | char * kwnames[] = { | |
26659 | (char *) "self",(char *) "id", NULL | |
26660 | }; | |
26661 | ||
26662 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
26663 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26664 | if (!SWIG_IsOK(res1)) { | |
26665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26666 | } | |
26667 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26668 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26669 | if (!SWIG_IsOK(ecode2)) { | |
26670 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'"); | |
26671 | } | |
26672 | arg2 = static_cast< long >(val2); | |
26673 | { | |
26674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26675 | (arg1)->SetId(arg2); | |
26676 | wxPyEndAllowThreads(__tstate); | |
26677 | if (PyErr_Occurred()) SWIG_fail; | |
26678 | } | |
26679 | resultobj = SWIG_Py_Void(); | |
26680 | return resultobj; | |
26681 | fail: | |
26682 | return NULL; | |
26683 | } | |
26684 | ||
26685 | ||
26686 | SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26687 | PyObject *resultobj = 0; | |
26688 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26689 | int arg2 ; | |
26690 | void *argp1 = 0 ; | |
26691 | int res1 = 0 ; | |
26692 | int val2 ; | |
26693 | int ecode2 = 0 ; | |
26694 | PyObject * obj0 = 0 ; | |
26695 | PyObject * obj1 = 0 ; | |
26696 | char * kwnames[] = { | |
26697 | (char *) "self",(char *) "col", NULL | |
26698 | }; | |
26699 | ||
26700 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
26701 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26702 | if (!SWIG_IsOK(res1)) { | |
26703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26704 | } | |
26705 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26706 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26707 | if (!SWIG_IsOK(ecode2)) { | |
26708 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'"); | |
26709 | } | |
26710 | arg2 = static_cast< int >(val2); | |
26711 | { | |
26712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26713 | (arg1)->SetColumn(arg2); | |
26714 | wxPyEndAllowThreads(__tstate); | |
26715 | if (PyErr_Occurred()) SWIG_fail; | |
26716 | } | |
26717 | resultobj = SWIG_Py_Void(); | |
26718 | return resultobj; | |
26719 | fail: | |
26720 | return NULL; | |
26721 | } | |
26722 | ||
26723 | ||
26724 | SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26725 | PyObject *resultobj = 0; | |
26726 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26727 | long arg2 ; | |
26728 | void *argp1 = 0 ; | |
26729 | int res1 = 0 ; | |
26730 | long val2 ; | |
26731 | int ecode2 = 0 ; | |
26732 | PyObject * obj0 = 0 ; | |
26733 | PyObject * obj1 = 0 ; | |
26734 | char * kwnames[] = { | |
26735 | (char *) "self",(char *) "state", NULL | |
26736 | }; | |
26737 | ||
26738 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail; | |
26739 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26740 | if (!SWIG_IsOK(res1)) { | |
26741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26742 | } | |
26743 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26744 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26745 | if (!SWIG_IsOK(ecode2)) { | |
26746 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'"); | |
26747 | } | |
26748 | arg2 = static_cast< long >(val2); | |
26749 | { | |
26750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26751 | (arg1)->SetState(arg2); | |
26752 | wxPyEndAllowThreads(__tstate); | |
26753 | if (PyErr_Occurred()) SWIG_fail; | |
26754 | } | |
26755 | resultobj = SWIG_Py_Void(); | |
26756 | return resultobj; | |
26757 | fail: | |
26758 | return NULL; | |
26759 | } | |
26760 | ||
26761 | ||
26762 | SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26763 | PyObject *resultobj = 0; | |
26764 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26765 | long arg2 ; | |
26766 | void *argp1 = 0 ; | |
26767 | int res1 = 0 ; | |
26768 | long val2 ; | |
26769 | int ecode2 = 0 ; | |
26770 | PyObject * obj0 = 0 ; | |
26771 | PyObject * obj1 = 0 ; | |
26772 | char * kwnames[] = { | |
26773 | (char *) "self",(char *) "stateMask", NULL | |
26774 | }; | |
26775 | ||
26776 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
26777 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26778 | if (!SWIG_IsOK(res1)) { | |
26779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26780 | } | |
26781 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26782 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26783 | if (!SWIG_IsOK(ecode2)) { | |
26784 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'"); | |
26785 | } | |
26786 | arg2 = static_cast< long >(val2); | |
26787 | { | |
26788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26789 | (arg1)->SetStateMask(arg2); | |
26790 | wxPyEndAllowThreads(__tstate); | |
26791 | if (PyErr_Occurred()) SWIG_fail; | |
26792 | } | |
26793 | resultobj = SWIG_Py_Void(); | |
26794 | return resultobj; | |
26795 | fail: | |
26796 | return NULL; | |
26797 | } | |
26798 | ||
26799 | ||
26800 | SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26801 | PyObject *resultobj = 0; | |
26802 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26803 | wxString *arg2 = 0 ; | |
26804 | void *argp1 = 0 ; | |
26805 | int res1 = 0 ; | |
26806 | bool temp2 = false ; | |
26807 | PyObject * obj0 = 0 ; | |
26808 | PyObject * obj1 = 0 ; | |
26809 | char * kwnames[] = { | |
26810 | (char *) "self",(char *) "text", NULL | |
26811 | }; | |
26812 | ||
26813 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail; | |
26814 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26815 | if (!SWIG_IsOK(res1)) { | |
26816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26817 | } | |
26818 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26819 | { | |
26820 | arg2 = wxString_in_helper(obj1); | |
26821 | if (arg2 == NULL) SWIG_fail; | |
26822 | temp2 = true; | |
26823 | } | |
26824 | { | |
26825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26826 | (arg1)->SetText((wxString const &)*arg2); | |
26827 | wxPyEndAllowThreads(__tstate); | |
26828 | if (PyErr_Occurred()) SWIG_fail; | |
26829 | } | |
26830 | resultobj = SWIG_Py_Void(); | |
26831 | { | |
26832 | if (temp2) | |
26833 | delete arg2; | |
26834 | } | |
26835 | return resultobj; | |
26836 | fail: | |
26837 | { | |
26838 | if (temp2) | |
26839 | delete arg2; | |
26840 | } | |
26841 | return NULL; | |
26842 | } | |
26843 | ||
26844 | ||
26845 | SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26846 | PyObject *resultobj = 0; | |
26847 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26848 | int arg2 ; | |
26849 | void *argp1 = 0 ; | |
26850 | int res1 = 0 ; | |
26851 | int val2 ; | |
26852 | int ecode2 = 0 ; | |
26853 | PyObject * obj0 = 0 ; | |
26854 | PyObject * obj1 = 0 ; | |
26855 | char * kwnames[] = { | |
26856 | (char *) "self",(char *) "image", NULL | |
26857 | }; | |
26858 | ||
26859 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26860 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26861 | if (!SWIG_IsOK(res1)) { | |
26862 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26863 | } | |
26864 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26865 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26866 | if (!SWIG_IsOK(ecode2)) { | |
26867 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'"); | |
26868 | } | |
26869 | arg2 = static_cast< int >(val2); | |
26870 | { | |
26871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26872 | (arg1)->SetImage(arg2); | |
26873 | wxPyEndAllowThreads(__tstate); | |
26874 | if (PyErr_Occurred()) SWIG_fail; | |
26875 | } | |
26876 | resultobj = SWIG_Py_Void(); | |
26877 | return resultobj; | |
26878 | fail: | |
26879 | return NULL; | |
26880 | } | |
26881 | ||
26882 | ||
26883 | SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26884 | PyObject *resultobj = 0; | |
26885 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26886 | long arg2 ; | |
26887 | void *argp1 = 0 ; | |
26888 | int res1 = 0 ; | |
26889 | long val2 ; | |
26890 | int ecode2 = 0 ; | |
26891 | PyObject * obj0 = 0 ; | |
26892 | PyObject * obj1 = 0 ; | |
26893 | char * kwnames[] = { | |
26894 | (char *) "self",(char *) "data", NULL | |
26895 | }; | |
26896 | ||
26897 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
26898 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26899 | if (!SWIG_IsOK(res1)) { | |
26900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26901 | } | |
26902 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26903 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
26904 | if (!SWIG_IsOK(ecode2)) { | |
26905 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'"); | |
26906 | } | |
26907 | arg2 = static_cast< long >(val2); | |
26908 | { | |
26909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26910 | (arg1)->SetData(arg2); | |
26911 | wxPyEndAllowThreads(__tstate); | |
26912 | if (PyErr_Occurred()) SWIG_fail; | |
26913 | } | |
26914 | resultobj = SWIG_Py_Void(); | |
26915 | return resultobj; | |
26916 | fail: | |
26917 | return NULL; | |
26918 | } | |
26919 | ||
26920 | ||
26921 | SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26922 | PyObject *resultobj = 0; | |
26923 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26924 | int arg2 ; | |
26925 | void *argp1 = 0 ; | |
26926 | int res1 = 0 ; | |
26927 | int val2 ; | |
26928 | int ecode2 = 0 ; | |
26929 | PyObject * obj0 = 0 ; | |
26930 | PyObject * obj1 = 0 ; | |
26931 | char * kwnames[] = { | |
26932 | (char *) "self",(char *) "width", NULL | |
26933 | }; | |
26934 | ||
26935 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
26936 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26937 | if (!SWIG_IsOK(res1)) { | |
26938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26939 | } | |
26940 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26941 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26942 | if (!SWIG_IsOK(ecode2)) { | |
26943 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
26944 | } | |
26945 | arg2 = static_cast< int >(val2); | |
26946 | { | |
26947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26948 | (arg1)->SetWidth(arg2); | |
26949 | wxPyEndAllowThreads(__tstate); | |
26950 | if (PyErr_Occurred()) SWIG_fail; | |
26951 | } | |
26952 | resultobj = SWIG_Py_Void(); | |
26953 | return resultobj; | |
26954 | fail: | |
26955 | return NULL; | |
26956 | } | |
26957 | ||
26958 | ||
26959 | SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26960 | PyObject *resultobj = 0; | |
26961 | wxListItem *arg1 = (wxListItem *) 0 ; | |
26962 | wxListColumnFormat arg2 ; | |
26963 | void *argp1 = 0 ; | |
26964 | int res1 = 0 ; | |
26965 | int val2 ; | |
26966 | int ecode2 = 0 ; | |
26967 | PyObject * obj0 = 0 ; | |
26968 | PyObject * obj1 = 0 ; | |
26969 | char * kwnames[] = { | |
26970 | (char *) "self",(char *) "align", NULL | |
26971 | }; | |
26972 | ||
26973 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail; | |
26974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
26975 | if (!SWIG_IsOK(res1)) { | |
26976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
26977 | } | |
26978 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
26979 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26980 | if (!SWIG_IsOK(ecode2)) { | |
26981 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'"); | |
26982 | } | |
26983 | arg2 = static_cast< wxListColumnFormat >(val2); | |
26984 | { | |
26985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26986 | (arg1)->SetAlign(arg2); | |
26987 | wxPyEndAllowThreads(__tstate); | |
26988 | if (PyErr_Occurred()) SWIG_fail; | |
26989 | } | |
26990 | resultobj = SWIG_Py_Void(); | |
26991 | return resultobj; | |
26992 | fail: | |
26993 | return NULL; | |
26994 | } | |
26995 | ||
26996 | ||
26997 | SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26998 | PyObject *resultobj = 0; | |
26999 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27000 | wxColour *arg2 = 0 ; | |
27001 | void *argp1 = 0 ; | |
27002 | int res1 = 0 ; | |
27003 | wxColour temp2 ; | |
27004 | PyObject * obj0 = 0 ; | |
27005 | PyObject * obj1 = 0 ; | |
27006 | char * kwnames[] = { | |
27007 | (char *) "self",(char *) "colText", NULL | |
27008 | }; | |
27009 | ||
27010 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
27011 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27012 | if (!SWIG_IsOK(res1)) { | |
27013 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27014 | } | |
27015 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27016 | { | |
27017 | arg2 = &temp2; | |
27018 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
27019 | } | |
27020 | { | |
27021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27022 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
27023 | wxPyEndAllowThreads(__tstate); | |
27024 | if (PyErr_Occurred()) SWIG_fail; | |
27025 | } | |
27026 | resultobj = SWIG_Py_Void(); | |
27027 | return resultobj; | |
27028 | fail: | |
27029 | return NULL; | |
27030 | } | |
27031 | ||
27032 | ||
27033 | SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27034 | PyObject *resultobj = 0; | |
27035 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27036 | wxColour *arg2 = 0 ; | |
27037 | void *argp1 = 0 ; | |
27038 | int res1 = 0 ; | |
27039 | wxColour temp2 ; | |
27040 | PyObject * obj0 = 0 ; | |
27041 | PyObject * obj1 = 0 ; | |
27042 | char * kwnames[] = { | |
27043 | (char *) "self",(char *) "colBack", NULL | |
27044 | }; | |
27045 | ||
27046 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
27047 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27048 | if (!SWIG_IsOK(res1)) { | |
27049 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27050 | } | |
27051 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27052 | { | |
27053 | arg2 = &temp2; | |
27054 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
27055 | } | |
27056 | { | |
27057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27058 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
27059 | wxPyEndAllowThreads(__tstate); | |
27060 | if (PyErr_Occurred()) SWIG_fail; | |
27061 | } | |
27062 | resultobj = SWIG_Py_Void(); | |
27063 | return resultobj; | |
27064 | fail: | |
27065 | return NULL; | |
27066 | } | |
27067 | ||
27068 | ||
27069 | SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27070 | PyObject *resultobj = 0; | |
27071 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27072 | wxFont *arg2 = 0 ; | |
27073 | void *argp1 = 0 ; | |
27074 | int res1 = 0 ; | |
27075 | void *argp2 = 0 ; | |
27076 | int res2 = 0 ; | |
27077 | PyObject * obj0 = 0 ; | |
27078 | PyObject * obj1 = 0 ; | |
27079 | char * kwnames[] = { | |
27080 | (char *) "self",(char *) "font", NULL | |
27081 | }; | |
27082 | ||
27083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
27084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27085 | if (!SWIG_IsOK(res1)) { | |
27086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27087 | } | |
27088 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27089 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
27090 | if (!SWIG_IsOK(res2)) { | |
27091 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
27092 | } | |
27093 | if (!argp2) { | |
27094 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
27095 | } | |
27096 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
27097 | { | |
27098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27099 | (arg1)->SetFont((wxFont const &)*arg2); | |
27100 | wxPyEndAllowThreads(__tstate); | |
27101 | if (PyErr_Occurred()) SWIG_fail; | |
27102 | } | |
27103 | resultobj = SWIG_Py_Void(); | |
27104 | return resultobj; | |
27105 | fail: | |
27106 | return NULL; | |
d14a1e28 RD |
27107 | } |
27108 | ||
27109 | ||
0085ce49 RD |
27110 | SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27111 | PyObject *resultobj = 0; | |
27112 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27113 | long result; | |
27114 | void *argp1 = 0 ; | |
27115 | int res1 = 0 ; | |
27116 | PyObject *swig_obj[1] ; | |
27117 | ||
27118 | if (!args) SWIG_fail; | |
27119 | swig_obj[0] = args; | |
27120 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27121 | if (!SWIG_IsOK(res1)) { | |
27122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27123 | } | |
27124 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27125 | { | |
27126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27127 | result = (long)(arg1)->GetMask(); | |
27128 | wxPyEndAllowThreads(__tstate); | |
27129 | if (PyErr_Occurred()) SWIG_fail; | |
27130 | } | |
27131 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27132 | return resultobj; | |
27133 | fail: | |
27134 | return NULL; | |
d14a1e28 RD |
27135 | } |
27136 | ||
27137 | ||
0085ce49 RD |
27138 | SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27139 | PyObject *resultobj = 0; | |
27140 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27141 | long result; | |
27142 | void *argp1 = 0 ; | |
27143 | int res1 = 0 ; | |
27144 | PyObject *swig_obj[1] ; | |
27145 | ||
27146 | if (!args) SWIG_fail; | |
27147 | swig_obj[0] = args; | |
27148 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27149 | if (!SWIG_IsOK(res1)) { | |
27150 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27151 | } | |
27152 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27153 | { | |
27154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27155 | result = (long)(arg1)->GetId(); | |
27156 | wxPyEndAllowThreads(__tstate); | |
27157 | if (PyErr_Occurred()) SWIG_fail; | |
27158 | } | |
27159 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27160 | return resultobj; | |
27161 | fail: | |
27162 | return NULL; | |
d14a1e28 RD |
27163 | } |
27164 | ||
27165 | ||
0085ce49 RD |
27166 | SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27167 | PyObject *resultobj = 0; | |
27168 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27169 | int result; | |
27170 | void *argp1 = 0 ; | |
27171 | int res1 = 0 ; | |
27172 | PyObject *swig_obj[1] ; | |
27173 | ||
27174 | if (!args) SWIG_fail; | |
27175 | swig_obj[0] = args; | |
27176 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27177 | if (!SWIG_IsOK(res1)) { | |
27178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27179 | } | |
27180 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27181 | { | |
27182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27183 | result = (int)(arg1)->GetColumn(); | |
27184 | wxPyEndAllowThreads(__tstate); | |
27185 | if (PyErr_Occurred()) SWIG_fail; | |
27186 | } | |
27187 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27188 | return resultobj; | |
27189 | fail: | |
27190 | return NULL; | |
22bfe96c RD |
27191 | } |
27192 | ||
27193 | ||
0085ce49 RD |
27194 | SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27195 | PyObject *resultobj = 0; | |
27196 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27197 | long result; | |
27198 | void *argp1 = 0 ; | |
27199 | int res1 = 0 ; | |
27200 | PyObject *swig_obj[1] ; | |
27201 | ||
27202 | if (!args) SWIG_fail; | |
27203 | swig_obj[0] = args; | |
27204 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27205 | if (!SWIG_IsOK(res1)) { | |
27206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27207 | } | |
27208 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27209 | { | |
27210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27211 | result = (long)(arg1)->GetState(); | |
27212 | wxPyEndAllowThreads(__tstate); | |
27213 | if (PyErr_Occurred()) SWIG_fail; | |
27214 | } | |
27215 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27216 | return resultobj; | |
27217 | fail: | |
27218 | return NULL; | |
b2dc1044 RD |
27219 | } |
27220 | ||
27221 | ||
0085ce49 RD |
27222 | SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27223 | PyObject *resultobj = 0; | |
27224 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27225 | wxString *result = 0 ; | |
27226 | void *argp1 = 0 ; | |
27227 | int res1 = 0 ; | |
27228 | PyObject *swig_obj[1] ; | |
27229 | ||
27230 | if (!args) SWIG_fail; | |
27231 | swig_obj[0] = args; | |
27232 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27233 | if (!SWIG_IsOK(res1)) { | |
27234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27235 | } | |
27236 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27237 | { | |
27238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 27239 | { |
0085ce49 RD |
27240 | wxString const &_result_ref = (arg1)->GetText(); |
27241 | result = (wxString *) &_result_ref; | |
27242 | } | |
27243 | wxPyEndAllowThreads(__tstate); | |
27244 | if (PyErr_Occurred()) SWIG_fail; | |
27245 | } | |
27246 | { | |
b2dc1044 | 27247 | #if wxUSE_UNICODE |
0085ce49 | 27248 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
b2dc1044 | 27249 | #else |
0085ce49 | 27250 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
b2dc1044 | 27251 | #endif |
0085ce49 RD |
27252 | } |
27253 | return resultobj; | |
27254 | fail: | |
27255 | return NULL; | |
d14a1e28 RD |
27256 | } |
27257 | ||
27258 | ||
0085ce49 RD |
27259 | SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27260 | PyObject *resultobj = 0; | |
27261 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27262 | int result; | |
27263 | void *argp1 = 0 ; | |
27264 | int res1 = 0 ; | |
27265 | PyObject *swig_obj[1] ; | |
27266 | ||
27267 | if (!args) SWIG_fail; | |
27268 | swig_obj[0] = args; | |
27269 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27270 | if (!SWIG_IsOK(res1)) { | |
27271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27272 | } | |
27273 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27274 | { | |
27275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27276 | result = (int)(arg1)->GetImage(); | |
27277 | wxPyEndAllowThreads(__tstate); | |
27278 | if (PyErr_Occurred()) SWIG_fail; | |
27279 | } | |
27280 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27281 | return resultobj; | |
27282 | fail: | |
27283 | return NULL; | |
d14a1e28 RD |
27284 | } |
27285 | ||
27286 | ||
0085ce49 RD |
27287 | SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27288 | PyObject *resultobj = 0; | |
27289 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27290 | long result; | |
27291 | void *argp1 = 0 ; | |
27292 | int res1 = 0 ; | |
27293 | PyObject *swig_obj[1] ; | |
27294 | ||
27295 | if (!args) SWIG_fail; | |
27296 | swig_obj[0] = args; | |
27297 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27298 | if (!SWIG_IsOK(res1)) { | |
27299 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27300 | } | |
27301 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27302 | { | |
27303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27304 | result = (long)(arg1)->GetData(); | |
27305 | wxPyEndAllowThreads(__tstate); | |
27306 | if (PyErr_Occurred()) SWIG_fail; | |
27307 | } | |
27308 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27309 | return resultobj; | |
27310 | fail: | |
27311 | return NULL; | |
d14a1e28 RD |
27312 | } |
27313 | ||
27314 | ||
0085ce49 RD |
27315 | SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27316 | PyObject *resultobj = 0; | |
27317 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27318 | int result; | |
27319 | void *argp1 = 0 ; | |
27320 | int res1 = 0 ; | |
27321 | PyObject *swig_obj[1] ; | |
27322 | ||
27323 | if (!args) SWIG_fail; | |
27324 | swig_obj[0] = args; | |
27325 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27326 | if (!SWIG_IsOK(res1)) { | |
27327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27328 | } | |
27329 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27330 | { | |
27331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27332 | result = (int)(arg1)->GetWidth(); | |
27333 | wxPyEndAllowThreads(__tstate); | |
27334 | if (PyErr_Occurred()) SWIG_fail; | |
27335 | } | |
27336 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27337 | return resultobj; | |
27338 | fail: | |
27339 | return NULL; | |
d14a1e28 RD |
27340 | } |
27341 | ||
27342 | ||
0085ce49 RD |
27343 | SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27344 | PyObject *resultobj = 0; | |
27345 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27346 | wxListColumnFormat result; | |
27347 | void *argp1 = 0 ; | |
27348 | int res1 = 0 ; | |
27349 | PyObject *swig_obj[1] ; | |
27350 | ||
27351 | if (!args) SWIG_fail; | |
27352 | swig_obj[0] = args; | |
27353 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27354 | if (!SWIG_IsOK(res1)) { | |
27355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27356 | } | |
27357 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27358 | { | |
27359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27360 | result = (wxListColumnFormat)(arg1)->GetAlign(); | |
27361 | wxPyEndAllowThreads(__tstate); | |
27362 | if (PyErr_Occurred()) SWIG_fail; | |
27363 | } | |
27364 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27365 | return resultobj; | |
27366 | fail: | |
27367 | return NULL; | |
d14a1e28 RD |
27368 | } |
27369 | ||
27370 | ||
0085ce49 RD |
27371 | SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27372 | PyObject *resultobj = 0; | |
27373 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27374 | wxListItemAttr *result = 0 ; | |
27375 | void *argp1 = 0 ; | |
27376 | int res1 = 0 ; | |
27377 | PyObject *swig_obj[1] ; | |
27378 | ||
27379 | if (!args) SWIG_fail; | |
27380 | swig_obj[0] = args; | |
27381 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27382 | if (!SWIG_IsOK(res1)) { | |
27383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27384 | } | |
27385 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27386 | { | |
27387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27388 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
27389 | wxPyEndAllowThreads(__tstate); | |
27390 | if (PyErr_Occurred()) SWIG_fail; | |
27391 | } | |
27392 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 ); | |
27393 | return resultobj; | |
27394 | fail: | |
27395 | return NULL; | |
d14a1e28 RD |
27396 | } |
27397 | ||
27398 | ||
0085ce49 RD |
27399 | SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27400 | PyObject *resultobj = 0; | |
27401 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27402 | bool result; | |
27403 | void *argp1 = 0 ; | |
27404 | int res1 = 0 ; | |
27405 | PyObject *swig_obj[1] ; | |
27406 | ||
27407 | if (!args) SWIG_fail; | |
27408 | swig_obj[0] = args; | |
27409 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27410 | if (!SWIG_IsOK(res1)) { | |
27411 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27412 | } | |
27413 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27414 | { | |
27415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27416 | result = (bool)(arg1)->HasAttributes(); | |
27417 | wxPyEndAllowThreads(__tstate); | |
27418 | if (PyErr_Occurred()) SWIG_fail; | |
27419 | } | |
27420 | { | |
27421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27422 | } | |
27423 | return resultobj; | |
27424 | fail: | |
27425 | return NULL; | |
22bfe96c RD |
27426 | } |
27427 | ||
27428 | ||
0085ce49 RD |
27429 | SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27430 | PyObject *resultobj = 0; | |
27431 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27432 | wxColour result; | |
27433 | void *argp1 = 0 ; | |
27434 | int res1 = 0 ; | |
27435 | PyObject *swig_obj[1] ; | |
27436 | ||
27437 | if (!args) SWIG_fail; | |
27438 | swig_obj[0] = args; | |
27439 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27440 | if (!SWIG_IsOK(res1)) { | |
27441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
27442 | } | |
27443 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27444 | { | |
27445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27446 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
27447 | wxPyEndAllowThreads(__tstate); | |
27448 | if (PyErr_Occurred()) SWIG_fail; | |
27449 | } | |
27450 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
27451 | return resultobj; | |
27452 | fail: | |
27453 | return NULL; | |
d14a1e28 | 27454 | } |
0085ce49 RD |
27455 | |
27456 | ||
27457 | SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27458 | PyObject *resultobj = 0; | |
27459 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27460 | wxColour result; | |
27461 | void *argp1 = 0 ; | |
27462 | int res1 = 0 ; | |
27463 | PyObject *swig_obj[1] ; | |
27464 | ||
27465 | if (!args) SWIG_fail; | |
27466 | swig_obj[0] = args; | |
27467 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27468 | if (!SWIG_IsOK(res1)) { | |
27469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
27470 | } | |
27471 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27472 | { | |
27473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27474 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
27475 | wxPyEndAllowThreads(__tstate); | |
27476 | if (PyErr_Occurred()) SWIG_fail; | |
27477 | } | |
27478 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
27479 | return resultobj; | |
27480 | fail: | |
27481 | return NULL; | |
b2dc1044 RD |
27482 | } |
27483 | ||
27484 | ||
0085ce49 RD |
27485 | SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27486 | PyObject *resultobj = 0; | |
27487 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27488 | wxFont result; | |
27489 | void *argp1 = 0 ; | |
27490 | int res1 = 0 ; | |
27491 | PyObject *swig_obj[1] ; | |
27492 | ||
27493 | if (!args) SWIG_fail; | |
27494 | swig_obj[0] = args; | |
27495 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27496 | if (!SWIG_IsOK(res1)) { | |
27497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'"); | |
27498 | } | |
27499 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27500 | { | |
27501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27502 | result = ((wxListItem const *)arg1)->GetFont(); | |
27503 | wxPyEndAllowThreads(__tstate); | |
27504 | if (PyErr_Occurred()) SWIG_fail; | |
27505 | } | |
27506 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
27507 | return resultobj; | |
27508 | fail: | |
27509 | return NULL; | |
27510 | } | |
27511 | ||
27512 | ||
27513 | SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27514 | PyObject *resultobj = 0; | |
27515 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27516 | long arg2 ; | |
27517 | void *argp1 = 0 ; | |
27518 | int res1 = 0 ; | |
27519 | long val2 ; | |
27520 | int ecode2 = 0 ; | |
27521 | PyObject *swig_obj[2] ; | |
27522 | ||
27523 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail; | |
27524 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27525 | if (!SWIG_IsOK(res1)) { | |
27526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27527 | } | |
27528 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27529 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27530 | if (!SWIG_IsOK(ecode2)) { | |
27531 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'"); | |
27532 | } | |
27533 | arg2 = static_cast< long >(val2); | |
27534 | if (arg1) (arg1)->m_mask = arg2; | |
27535 | ||
27536 | resultobj = SWIG_Py_Void(); | |
27537 | return resultobj; | |
27538 | fail: | |
27539 | return NULL; | |
b2dc1044 RD |
27540 | } |
27541 | ||
27542 | ||
0085ce49 RD |
27543 | SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27544 | PyObject *resultobj = 0; | |
27545 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27546 | long result; | |
27547 | void *argp1 = 0 ; | |
27548 | int res1 = 0 ; | |
27549 | PyObject *swig_obj[1] ; | |
27550 | ||
27551 | if (!args) SWIG_fail; | |
27552 | swig_obj[0] = args; | |
27553 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27554 | if (!SWIG_IsOK(res1)) { | |
27555 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27556 | } | |
27557 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27558 | result = (long) ((arg1)->m_mask); | |
27559 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27560 | return resultobj; | |
27561 | fail: | |
27562 | return NULL; | |
27563 | } | |
27564 | ||
27565 | ||
27566 | SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27567 | PyObject *resultobj = 0; | |
27568 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27569 | long arg2 ; | |
27570 | void *argp1 = 0 ; | |
27571 | int res1 = 0 ; | |
27572 | long val2 ; | |
27573 | int ecode2 = 0 ; | |
27574 | PyObject *swig_obj[2] ; | |
27575 | ||
27576 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail; | |
27577 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27578 | if (!SWIG_IsOK(res1)) { | |
27579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27580 | } | |
27581 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27582 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27583 | if (!SWIG_IsOK(ecode2)) { | |
27584 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'"); | |
27585 | } | |
27586 | arg2 = static_cast< long >(val2); | |
27587 | if (arg1) (arg1)->m_itemId = arg2; | |
27588 | ||
27589 | resultobj = SWIG_Py_Void(); | |
27590 | return resultobj; | |
27591 | fail: | |
27592 | return NULL; | |
d14a1e28 RD |
27593 | } |
27594 | ||
27595 | ||
0085ce49 RD |
27596 | SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27597 | PyObject *resultobj = 0; | |
27598 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27599 | long result; | |
27600 | void *argp1 = 0 ; | |
27601 | int res1 = 0 ; | |
27602 | PyObject *swig_obj[1] ; | |
27603 | ||
27604 | if (!args) SWIG_fail; | |
27605 | swig_obj[0] = args; | |
27606 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27607 | if (!SWIG_IsOK(res1)) { | |
27608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27609 | } | |
27610 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27611 | result = (long) ((arg1)->m_itemId); | |
27612 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27613 | return resultobj; | |
27614 | fail: | |
27615 | return NULL; | |
27616 | } | |
27617 | ||
27618 | ||
27619 | SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27620 | PyObject *resultobj = 0; | |
27621 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27622 | int arg2 ; | |
27623 | void *argp1 = 0 ; | |
27624 | int res1 = 0 ; | |
27625 | int val2 ; | |
27626 | int ecode2 = 0 ; | |
27627 | PyObject *swig_obj[2] ; | |
27628 | ||
27629 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail; | |
27630 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27631 | if (!SWIG_IsOK(res1)) { | |
27632 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27633 | } | |
27634 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27635 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27636 | if (!SWIG_IsOK(ecode2)) { | |
27637 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'"); | |
27638 | } | |
27639 | arg2 = static_cast< int >(val2); | |
27640 | if (arg1) (arg1)->m_col = arg2; | |
27641 | ||
27642 | resultobj = SWIG_Py_Void(); | |
27643 | return resultobj; | |
27644 | fail: | |
27645 | return NULL; | |
d14a1e28 RD |
27646 | } |
27647 | ||
27648 | ||
0085ce49 RD |
27649 | SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27650 | PyObject *resultobj = 0; | |
27651 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27652 | int result; | |
27653 | void *argp1 = 0 ; | |
27654 | int res1 = 0 ; | |
27655 | PyObject *swig_obj[1] ; | |
27656 | ||
27657 | if (!args) SWIG_fail; | |
27658 | swig_obj[0] = args; | |
27659 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27660 | if (!SWIG_IsOK(res1)) { | |
27661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27662 | } | |
27663 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27664 | result = (int) ((arg1)->m_col); | |
27665 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27666 | return resultobj; | |
27667 | fail: | |
27668 | return NULL; | |
27669 | } | |
27670 | ||
27671 | ||
27672 | SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27673 | PyObject *resultobj = 0; | |
27674 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27675 | long arg2 ; | |
27676 | void *argp1 = 0 ; | |
27677 | int res1 = 0 ; | |
27678 | long val2 ; | |
27679 | int ecode2 = 0 ; | |
27680 | PyObject *swig_obj[2] ; | |
27681 | ||
27682 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail; | |
27683 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27684 | if (!SWIG_IsOK(res1)) { | |
27685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27686 | } | |
27687 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27688 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27689 | if (!SWIG_IsOK(ecode2)) { | |
27690 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'"); | |
27691 | } | |
27692 | arg2 = static_cast< long >(val2); | |
27693 | if (arg1) (arg1)->m_state = arg2; | |
27694 | ||
27695 | resultobj = SWIG_Py_Void(); | |
27696 | return resultobj; | |
27697 | fail: | |
27698 | return NULL; | |
8fb0e70a RD |
27699 | } |
27700 | ||
27701 | ||
0085ce49 RD |
27702 | SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27703 | PyObject *resultobj = 0; | |
27704 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27705 | long result; | |
27706 | void *argp1 = 0 ; | |
27707 | int res1 = 0 ; | |
27708 | PyObject *swig_obj[1] ; | |
27709 | ||
27710 | if (!args) SWIG_fail; | |
27711 | swig_obj[0] = args; | |
27712 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27713 | if (!SWIG_IsOK(res1)) { | |
27714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27715 | } | |
27716 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27717 | result = (long) ((arg1)->m_state); | |
27718 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27719 | return resultobj; | |
27720 | fail: | |
27721 | return NULL; | |
27722 | } | |
27723 | ||
27724 | ||
27725 | SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27726 | PyObject *resultobj = 0; | |
27727 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27728 | long arg2 ; | |
27729 | void *argp1 = 0 ; | |
27730 | int res1 = 0 ; | |
27731 | long val2 ; | |
27732 | int ecode2 = 0 ; | |
27733 | PyObject *swig_obj[2] ; | |
27734 | ||
27735 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail; | |
27736 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27737 | if (!SWIG_IsOK(res1)) { | |
27738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27739 | } | |
27740 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27741 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27742 | if (!SWIG_IsOK(ecode2)) { | |
27743 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'"); | |
27744 | } | |
27745 | arg2 = static_cast< long >(val2); | |
27746 | if (arg1) (arg1)->m_stateMask = arg2; | |
27747 | ||
27748 | resultobj = SWIG_Py_Void(); | |
27749 | return resultobj; | |
27750 | fail: | |
27751 | return NULL; | |
d14a1e28 RD |
27752 | } |
27753 | ||
27754 | ||
0085ce49 RD |
27755 | SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27756 | PyObject *resultobj = 0; | |
27757 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27758 | long result; | |
27759 | void *argp1 = 0 ; | |
27760 | int res1 = 0 ; | |
27761 | PyObject *swig_obj[1] ; | |
27762 | ||
27763 | if (!args) SWIG_fail; | |
27764 | swig_obj[0] = args; | |
27765 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27766 | if (!SWIG_IsOK(res1)) { | |
27767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27768 | } | |
27769 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27770 | result = (long) ((arg1)->m_stateMask); | |
27771 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27772 | return resultobj; | |
27773 | fail: | |
27774 | return NULL; | |
27775 | } | |
27776 | ||
27777 | ||
27778 | SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27779 | PyObject *resultobj = 0; | |
27780 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27781 | wxString *arg2 = (wxString *) 0 ; | |
27782 | void *argp1 = 0 ; | |
27783 | int res1 = 0 ; | |
27784 | bool temp2 = false ; | |
27785 | PyObject *swig_obj[2] ; | |
27786 | ||
27787 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail; | |
27788 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27789 | if (!SWIG_IsOK(res1)) { | |
27790 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27791 | } | |
27792 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27793 | { | |
27794 | arg2 = wxString_in_helper(swig_obj[1]); | |
27795 | if (arg2 == NULL) SWIG_fail; | |
27796 | temp2 = true; | |
27797 | } | |
27798 | if (arg1) (arg1)->m_text = *arg2; | |
27799 | ||
27800 | resultobj = SWIG_Py_Void(); | |
27801 | { | |
27802 | if (temp2) | |
27803 | delete arg2; | |
27804 | } | |
27805 | return resultobj; | |
27806 | fail: | |
27807 | { | |
27808 | if (temp2) | |
27809 | delete arg2; | |
27810 | } | |
27811 | return NULL; | |
d14a1e28 RD |
27812 | } |
27813 | ||
27814 | ||
0085ce49 RD |
27815 | SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27816 | PyObject *resultobj = 0; | |
27817 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27818 | wxString *result = 0 ; | |
27819 | void *argp1 = 0 ; | |
27820 | int res1 = 0 ; | |
27821 | PyObject *swig_obj[1] ; | |
27822 | ||
27823 | if (!args) SWIG_fail; | |
27824 | swig_obj[0] = args; | |
27825 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27826 | if (!SWIG_IsOK(res1)) { | |
27827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27828 | } | |
27829 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27830 | result = (wxString *)& ((arg1)->m_text); | |
27831 | { | |
d14a1e28 | 27832 | #if wxUSE_UNICODE |
0085ce49 | 27833 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 27834 | #else |
0085ce49 | 27835 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 | 27836 | #endif |
0085ce49 RD |
27837 | } |
27838 | return resultobj; | |
27839 | fail: | |
27840 | return NULL; | |
d14a1e28 RD |
27841 | } |
27842 | ||
27843 | ||
0085ce49 RD |
27844 | SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27845 | PyObject *resultobj = 0; | |
27846 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27847 | int arg2 ; | |
27848 | void *argp1 = 0 ; | |
27849 | int res1 = 0 ; | |
27850 | int val2 ; | |
27851 | int ecode2 = 0 ; | |
27852 | PyObject *swig_obj[2] ; | |
27853 | ||
27854 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail; | |
27855 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27856 | if (!SWIG_IsOK(res1)) { | |
27857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27858 | } | |
27859 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27860 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27861 | if (!SWIG_IsOK(ecode2)) { | |
27862 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'"); | |
27863 | } | |
27864 | arg2 = static_cast< int >(val2); | |
27865 | if (arg1) (arg1)->m_image = arg2; | |
27866 | ||
27867 | resultobj = SWIG_Py_Void(); | |
27868 | return resultobj; | |
27869 | fail: | |
27870 | return NULL; | |
d14a1e28 RD |
27871 | } |
27872 | ||
27873 | ||
0085ce49 RD |
27874 | SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27875 | PyObject *resultobj = 0; | |
27876 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27877 | int result; | |
27878 | void *argp1 = 0 ; | |
27879 | int res1 = 0 ; | |
27880 | PyObject *swig_obj[1] ; | |
27881 | ||
27882 | if (!args) SWIG_fail; | |
27883 | swig_obj[0] = args; | |
27884 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27885 | if (!SWIG_IsOK(res1)) { | |
27886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27887 | } | |
27888 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27889 | result = (int) ((arg1)->m_image); | |
27890 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27891 | return resultobj; | |
27892 | fail: | |
27893 | return NULL; | |
27894 | } | |
27895 | ||
27896 | ||
27897 | SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27898 | PyObject *resultobj = 0; | |
27899 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27900 | long arg2 ; | |
27901 | void *argp1 = 0 ; | |
27902 | int res1 = 0 ; | |
27903 | long val2 ; | |
27904 | int ecode2 = 0 ; | |
27905 | PyObject *swig_obj[2] ; | |
27906 | ||
27907 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail; | |
27908 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27909 | if (!SWIG_IsOK(res1)) { | |
27910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27911 | } | |
27912 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27913 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
27914 | if (!SWIG_IsOK(ecode2)) { | |
27915 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'"); | |
27916 | } | |
27917 | arg2 = static_cast< long >(val2); | |
27918 | if (arg1) (arg1)->m_data = arg2; | |
27919 | ||
27920 | resultobj = SWIG_Py_Void(); | |
27921 | return resultobj; | |
27922 | fail: | |
27923 | return NULL; | |
d14a1e28 RD |
27924 | } |
27925 | ||
27926 | ||
0085ce49 RD |
27927 | SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27928 | PyObject *resultobj = 0; | |
27929 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27930 | long result; | |
27931 | void *argp1 = 0 ; | |
27932 | int res1 = 0 ; | |
27933 | PyObject *swig_obj[1] ; | |
27934 | ||
27935 | if (!args) SWIG_fail; | |
27936 | swig_obj[0] = args; | |
27937 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27938 | if (!SWIG_IsOK(res1)) { | |
27939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27940 | } | |
27941 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27942 | result = (long) ((arg1)->m_data); | |
27943 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
27944 | return resultobj; | |
27945 | fail: | |
27946 | return NULL; | |
27947 | } | |
27948 | ||
27949 | ||
27950 | SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27951 | PyObject *resultobj = 0; | |
27952 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27953 | int arg2 ; | |
27954 | void *argp1 = 0 ; | |
27955 | int res1 = 0 ; | |
27956 | int val2 ; | |
27957 | int ecode2 = 0 ; | |
27958 | PyObject *swig_obj[2] ; | |
27959 | ||
27960 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail; | |
27961 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27962 | if (!SWIG_IsOK(res1)) { | |
27963 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27964 | } | |
27965 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27966 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
27967 | if (!SWIG_IsOK(ecode2)) { | |
27968 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'"); | |
27969 | } | |
27970 | arg2 = static_cast< int >(val2); | |
27971 | if (arg1) (arg1)->m_format = arg2; | |
27972 | ||
27973 | resultobj = SWIG_Py_Void(); | |
27974 | return resultobj; | |
27975 | fail: | |
27976 | return NULL; | |
d14a1e28 RD |
27977 | } |
27978 | ||
27979 | ||
0085ce49 RD |
27980 | SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27981 | PyObject *resultobj = 0; | |
27982 | wxListItem *arg1 = (wxListItem *) 0 ; | |
27983 | int result; | |
27984 | void *argp1 = 0 ; | |
27985 | int res1 = 0 ; | |
27986 | PyObject *swig_obj[1] ; | |
27987 | ||
27988 | if (!args) SWIG_fail; | |
27989 | swig_obj[0] = args; | |
27990 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
27991 | if (!SWIG_IsOK(res1)) { | |
27992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
27993 | } | |
27994 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
27995 | result = (int) ((arg1)->m_format); | |
27996 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27997 | return resultobj; | |
27998 | fail: | |
27999 | return NULL; | |
28000 | } | |
28001 | ||
28002 | ||
28003 | SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28004 | PyObject *resultobj = 0; | |
28005 | wxListItem *arg1 = (wxListItem *) 0 ; | |
28006 | int arg2 ; | |
28007 | void *argp1 = 0 ; | |
28008 | int res1 = 0 ; | |
28009 | int val2 ; | |
28010 | int ecode2 = 0 ; | |
28011 | PyObject *swig_obj[2] ; | |
28012 | ||
28013 | if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail; | |
28014 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28015 | if (!SWIG_IsOK(res1)) { | |
28016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
28017 | } | |
28018 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
28019 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
28020 | if (!SWIG_IsOK(ecode2)) { | |
28021 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'"); | |
28022 | } | |
28023 | arg2 = static_cast< int >(val2); | |
28024 | if (arg1) (arg1)->m_width = arg2; | |
28025 | ||
28026 | resultobj = SWIG_Py_Void(); | |
28027 | return resultobj; | |
28028 | fail: | |
28029 | return NULL; | |
d14a1e28 RD |
28030 | } |
28031 | ||
28032 | ||
0085ce49 RD |
28033 | SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28034 | PyObject *resultobj = 0; | |
28035 | wxListItem *arg1 = (wxListItem *) 0 ; | |
28036 | int result; | |
28037 | void *argp1 = 0 ; | |
28038 | int res1 = 0 ; | |
28039 | PyObject *swig_obj[1] ; | |
28040 | ||
28041 | if (!args) SWIG_fail; | |
28042 | swig_obj[0] = args; | |
28043 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28044 | if (!SWIG_IsOK(res1)) { | |
28045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'"); | |
28046 | } | |
28047 | arg1 = reinterpret_cast< wxListItem * >(argp1); | |
28048 | result = (int) ((arg1)->m_width); | |
28049 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28050 | return resultobj; | |
28051 | fail: | |
28052 | return NULL; | |
28053 | } | |
28054 | ||
28055 | ||
28056 | SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28057 | PyObject *obj; | |
28058 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28059 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj)); | |
28060 | return SWIG_Py_Void(); | |
28061 | } | |
28062 | ||
28063 | SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28064 | return SWIG_Python_InitShadowInstance(args); | |
28065 | } | |
28066 | ||
28067 | SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28068 | PyObject *resultobj = 0; | |
28069 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
28070 | int arg2 = (int) 0 ; | |
28071 | wxListEvent *result = 0 ; | |
28072 | int val1 ; | |
28073 | int ecode1 = 0 ; | |
28074 | int val2 ; | |
28075 | int ecode2 = 0 ; | |
28076 | PyObject * obj0 = 0 ; | |
28077 | PyObject * obj1 = 0 ; | |
28078 | char * kwnames[] = { | |
28079 | (char *) "commandType",(char *) "id", NULL | |
28080 | }; | |
28081 | ||
28082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
28083 | if (obj0) { | |
28084 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
28085 | if (!SWIG_IsOK(ecode1)) { | |
28086 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
28087 | } | |
28088 | arg1 = static_cast< wxEventType >(val1); | |
28089 | } | |
28090 | if (obj1) { | |
28091 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28092 | if (!SWIG_IsOK(ecode2)) { | |
28093 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'"); | |
28094 | } | |
28095 | arg2 = static_cast< int >(val2); | |
28096 | } | |
28097 | { | |
28098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28099 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
28100 | wxPyEndAllowThreads(__tstate); | |
28101 | if (PyErr_Occurred()) SWIG_fail; | |
28102 | } | |
28103 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 ); | |
28104 | return resultobj; | |
28105 | fail: | |
28106 | return NULL; | |
28107 | } | |
28108 | ||
28109 | ||
28110 | SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28111 | PyObject *resultobj = 0; | |
28112 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28113 | int arg2 ; | |
28114 | void *argp1 = 0 ; | |
28115 | int res1 = 0 ; | |
28116 | int val2 ; | |
28117 | int ecode2 = 0 ; | |
28118 | PyObject *swig_obj[2] ; | |
28119 | ||
28120 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail; | |
28121 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28122 | if (!SWIG_IsOK(res1)) { | |
28123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28124 | } | |
28125 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28126 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
28127 | if (!SWIG_IsOK(ecode2)) { | |
28128 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'"); | |
28129 | } | |
28130 | arg2 = static_cast< int >(val2); | |
28131 | if (arg1) (arg1)->m_code = arg2; | |
28132 | ||
28133 | resultobj = SWIG_Py_Void(); | |
28134 | return resultobj; | |
28135 | fail: | |
28136 | return NULL; | |
d14a1e28 RD |
28137 | } |
28138 | ||
28139 | ||
0085ce49 RD |
28140 | SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28141 | PyObject *resultobj = 0; | |
28142 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28143 | int result; | |
28144 | void *argp1 = 0 ; | |
28145 | int res1 = 0 ; | |
28146 | PyObject *swig_obj[1] ; | |
28147 | ||
28148 | if (!args) SWIG_fail; | |
28149 | swig_obj[0] = args; | |
28150 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28151 | if (!SWIG_IsOK(res1)) { | |
28152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28153 | } | |
28154 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28155 | result = (int) ((arg1)->m_code); | |
28156 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28157 | return resultobj; | |
28158 | fail: | |
28159 | return NULL; | |
28160 | } | |
28161 | ||
28162 | ||
28163 | SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28164 | PyObject *resultobj = 0; | |
28165 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28166 | long arg2 ; | |
28167 | void *argp1 = 0 ; | |
28168 | int res1 = 0 ; | |
28169 | long val2 ; | |
28170 | int ecode2 = 0 ; | |
28171 | PyObject *swig_obj[2] ; | |
28172 | ||
28173 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail; | |
28174 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28175 | if (!SWIG_IsOK(res1)) { | |
28176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28177 | } | |
28178 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28179 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
28180 | if (!SWIG_IsOK(ecode2)) { | |
28181 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'"); | |
28182 | } | |
28183 | arg2 = static_cast< long >(val2); | |
28184 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
28185 | ||
28186 | resultobj = SWIG_Py_Void(); | |
28187 | return resultobj; | |
28188 | fail: | |
28189 | return NULL; | |
d14a1e28 RD |
28190 | } |
28191 | ||
28192 | ||
0085ce49 RD |
28193 | SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28194 | PyObject *resultobj = 0; | |
28195 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28196 | long result; | |
28197 | void *argp1 = 0 ; | |
28198 | int res1 = 0 ; | |
28199 | PyObject *swig_obj[1] ; | |
28200 | ||
28201 | if (!args) SWIG_fail; | |
28202 | swig_obj[0] = args; | |
28203 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28204 | if (!SWIG_IsOK(res1)) { | |
28205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28206 | } | |
28207 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28208 | result = (long) ((arg1)->m_oldItemIndex); | |
28209 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28210 | return resultobj; | |
28211 | fail: | |
28212 | return NULL; | |
28213 | } | |
28214 | ||
28215 | ||
28216 | SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28217 | PyObject *resultobj = 0; | |
28218 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28219 | long arg2 ; | |
28220 | void *argp1 = 0 ; | |
28221 | int res1 = 0 ; | |
28222 | long val2 ; | |
28223 | int ecode2 = 0 ; | |
28224 | PyObject *swig_obj[2] ; | |
28225 | ||
28226 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail; | |
28227 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28228 | if (!SWIG_IsOK(res1)) { | |
28229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28230 | } | |
28231 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28232 | ecode2 = SWIG_AsVal_long(swig_obj[1], &val2); | |
28233 | if (!SWIG_IsOK(ecode2)) { | |
28234 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'"); | |
28235 | } | |
28236 | arg2 = static_cast< long >(val2); | |
28237 | if (arg1) (arg1)->m_itemIndex = arg2; | |
28238 | ||
28239 | resultobj = SWIG_Py_Void(); | |
28240 | return resultobj; | |
28241 | fail: | |
28242 | return NULL; | |
d14a1e28 RD |
28243 | } |
28244 | ||
28245 | ||
0085ce49 RD |
28246 | SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28247 | PyObject *resultobj = 0; | |
28248 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28249 | long result; | |
28250 | void *argp1 = 0 ; | |
28251 | int res1 = 0 ; | |
28252 | PyObject *swig_obj[1] ; | |
28253 | ||
28254 | if (!args) SWIG_fail; | |
28255 | swig_obj[0] = args; | |
28256 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28257 | if (!SWIG_IsOK(res1)) { | |
28258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28259 | } | |
28260 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28261 | result = (long) ((arg1)->m_itemIndex); | |
28262 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28263 | return resultobj; | |
28264 | fail: | |
28265 | return NULL; | |
28266 | } | |
28267 | ||
28268 | ||
28269 | SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28270 | PyObject *resultobj = 0; | |
28271 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28272 | int arg2 ; | |
28273 | void *argp1 = 0 ; | |
28274 | int res1 = 0 ; | |
28275 | int val2 ; | |
28276 | int ecode2 = 0 ; | |
28277 | PyObject *swig_obj[2] ; | |
28278 | ||
28279 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail; | |
28280 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28281 | if (!SWIG_IsOK(res1)) { | |
28282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28283 | } | |
28284 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28285 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
28286 | if (!SWIG_IsOK(ecode2)) { | |
28287 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'"); | |
28288 | } | |
28289 | arg2 = static_cast< int >(val2); | |
28290 | if (arg1) (arg1)->m_col = arg2; | |
28291 | ||
28292 | resultobj = SWIG_Py_Void(); | |
28293 | return resultobj; | |
28294 | fail: | |
28295 | return NULL; | |
7e08d4ef RD |
28296 | } |
28297 | ||
28298 | ||
0085ce49 RD |
28299 | SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28300 | PyObject *resultobj = 0; | |
28301 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28302 | int result; | |
28303 | void *argp1 = 0 ; | |
28304 | int res1 = 0 ; | |
28305 | PyObject *swig_obj[1] ; | |
28306 | ||
28307 | if (!args) SWIG_fail; | |
28308 | swig_obj[0] = args; | |
28309 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28310 | if (!SWIG_IsOK(res1)) { | |
28311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28312 | } | |
28313 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28314 | result = (int) ((arg1)->m_col); | |
28315 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28316 | return resultobj; | |
28317 | fail: | |
28318 | return NULL; | |
28319 | } | |
28320 | ||
28321 | ||
28322 | SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28323 | PyObject *resultobj = 0; | |
28324 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28325 | wxPoint *arg2 = (wxPoint *) 0 ; | |
28326 | void *argp1 = 0 ; | |
28327 | int res1 = 0 ; | |
28328 | void *argp2 = 0 ; | |
28329 | int res2 = 0 ; | |
28330 | PyObject *swig_obj[2] ; | |
28331 | ||
28332 | if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail; | |
28333 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28334 | if (!SWIG_IsOK(res1)) { | |
28335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28336 | } | |
28337 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28338 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 ); | |
28339 | if (!SWIG_IsOK(res2)) { | |
28340 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'"); | |
28341 | } | |
28342 | arg2 = reinterpret_cast< wxPoint * >(argp2); | |
28343 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
28344 | ||
28345 | resultobj = SWIG_Py_Void(); | |
28346 | return resultobj; | |
28347 | fail: | |
28348 | return NULL; | |
7e08d4ef RD |
28349 | } |
28350 | ||
28351 | ||
0085ce49 RD |
28352 | SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28353 | PyObject *resultobj = 0; | |
28354 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28355 | wxPoint *result = 0 ; | |
28356 | void *argp1 = 0 ; | |
28357 | int res1 = 0 ; | |
28358 | PyObject *swig_obj[1] ; | |
28359 | ||
28360 | if (!args) SWIG_fail; | |
28361 | swig_obj[0] = args; | |
28362 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28363 | if (!SWIG_IsOK(res1)) { | |
28364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28365 | } | |
28366 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28367 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
28368 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 ); | |
28369 | return resultobj; | |
28370 | fail: | |
28371 | return NULL; | |
28372 | } | |
28373 | ||
28374 | ||
28375 | SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28376 | PyObject *resultobj = 0; | |
28377 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28378 | wxListItem *result = 0 ; | |
28379 | void *argp1 = 0 ; | |
28380 | int res1 = 0 ; | |
28381 | PyObject *swig_obj[1] ; | |
28382 | ||
28383 | if (!args) SWIG_fail; | |
28384 | swig_obj[0] = args; | |
28385 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28386 | if (!SWIG_IsOK(res1)) { | |
28387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28388 | } | |
28389 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28390 | result = (wxListItem *)& ((arg1)->m_item); | |
28391 | { | |
3ecece7e | 28392 | resultobj = wxPyMake_wxObject(result, 0); |
0085ce49 RD |
28393 | } |
28394 | return resultobj; | |
28395 | fail: | |
28396 | return NULL; | |
7e08d4ef RD |
28397 | } |
28398 | ||
28399 | ||
0085ce49 RD |
28400 | SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28401 | PyObject *resultobj = 0; | |
28402 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28403 | int result; | |
28404 | void *argp1 = 0 ; | |
28405 | int res1 = 0 ; | |
28406 | PyObject *swig_obj[1] ; | |
28407 | ||
28408 | if (!args) SWIG_fail; | |
28409 | swig_obj[0] = args; | |
28410 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28411 | if (!SWIG_IsOK(res1)) { | |
28412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28413 | } | |
28414 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28415 | { | |
28416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28417 | result = (int)(arg1)->GetKeyCode(); | |
28418 | wxPyEndAllowThreads(__tstate); | |
28419 | if (PyErr_Occurred()) SWIG_fail; | |
28420 | } | |
28421 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28422 | return resultobj; | |
28423 | fail: | |
28424 | return NULL; | |
7e08d4ef RD |
28425 | } |
28426 | ||
28427 | ||
0085ce49 RD |
28428 | SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28429 | PyObject *resultobj = 0; | |
28430 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28431 | long result; | |
28432 | void *argp1 = 0 ; | |
28433 | int res1 = 0 ; | |
28434 | PyObject *swig_obj[1] ; | |
28435 | ||
28436 | if (!args) SWIG_fail; | |
28437 | swig_obj[0] = args; | |
28438 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28439 | if (!SWIG_IsOK(res1)) { | |
28440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28441 | } | |
28442 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28443 | { | |
28444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28445 | result = (long)(arg1)->GetIndex(); | |
28446 | wxPyEndAllowThreads(__tstate); | |
28447 | if (PyErr_Occurred()) SWIG_fail; | |
28448 | } | |
28449 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28450 | return resultobj; | |
28451 | fail: | |
28452 | return NULL; | |
7e08d4ef RD |
28453 | } |
28454 | ||
28455 | ||
0085ce49 RD |
28456 | SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28457 | PyObject *resultobj = 0; | |
28458 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28459 | int result; | |
28460 | void *argp1 = 0 ; | |
28461 | int res1 = 0 ; | |
28462 | PyObject *swig_obj[1] ; | |
28463 | ||
28464 | if (!args) SWIG_fail; | |
28465 | swig_obj[0] = args; | |
28466 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28467 | if (!SWIG_IsOK(res1)) { | |
28468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28469 | } | |
28470 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28471 | { | |
28472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28473 | result = (int)(arg1)->GetColumn(); | |
28474 | wxPyEndAllowThreads(__tstate); | |
28475 | if (PyErr_Occurred()) SWIG_fail; | |
28476 | } | |
28477 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28478 | return resultobj; | |
28479 | fail: | |
28480 | return NULL; | |
d14a1e28 RD |
28481 | } |
28482 | ||
28483 | ||
0085ce49 RD |
28484 | SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28485 | PyObject *resultobj = 0; | |
28486 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28487 | wxPoint result; | |
28488 | void *argp1 = 0 ; | |
28489 | int res1 = 0 ; | |
28490 | PyObject *swig_obj[1] ; | |
28491 | ||
28492 | if (!args) SWIG_fail; | |
28493 | swig_obj[0] = args; | |
28494 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28495 | if (!SWIG_IsOK(res1)) { | |
28496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28497 | } | |
28498 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28499 | { | |
28500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28501 | result = (arg1)->GetPoint(); | |
28502 | wxPyEndAllowThreads(__tstate); | |
28503 | if (PyErr_Occurred()) SWIG_fail; | |
28504 | } | |
28505 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
28506 | return resultobj; | |
28507 | fail: | |
28508 | return NULL; | |
d14a1e28 RD |
28509 | } |
28510 | ||
28511 | ||
0085ce49 RD |
28512 | SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28513 | PyObject *resultobj = 0; | |
28514 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28515 | wxString *result = 0 ; | |
28516 | void *argp1 = 0 ; | |
28517 | int res1 = 0 ; | |
28518 | PyObject *swig_obj[1] ; | |
28519 | ||
28520 | if (!args) SWIG_fail; | |
28521 | swig_obj[0] = args; | |
28522 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28523 | if (!SWIG_IsOK(res1)) { | |
28524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28525 | } | |
28526 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28527 | { | |
28528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 28529 | { |
0085ce49 RD |
28530 | wxString const &_result_ref = (arg1)->GetLabel(); |
28531 | result = (wxString *) &_result_ref; | |
4f89f6a3 | 28532 | } |
0085ce49 RD |
28533 | wxPyEndAllowThreads(__tstate); |
28534 | if (PyErr_Occurred()) SWIG_fail; | |
28535 | } | |
28536 | { | |
28537 | #if wxUSE_UNICODE | |
28538 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28539 | #else | |
28540 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28541 | #endif | |
28542 | } | |
28543 | return resultobj; | |
28544 | fail: | |
28545 | return NULL; | |
d14a1e28 RD |
28546 | } |
28547 | ||
28548 | ||
0085ce49 RD |
28549 | SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28550 | PyObject *resultobj = 0; | |
28551 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28552 | wxString *result = 0 ; | |
28553 | void *argp1 = 0 ; | |
28554 | int res1 = 0 ; | |
28555 | PyObject *swig_obj[1] ; | |
28556 | ||
28557 | if (!args) SWIG_fail; | |
28558 | swig_obj[0] = args; | |
28559 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28560 | if (!SWIG_IsOK(res1)) { | |
28561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28562 | } | |
28563 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28564 | { | |
28565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 28566 | { |
0085ce49 RD |
28567 | wxString const &_result_ref = (arg1)->GetText(); |
28568 | result = (wxString *) &_result_ref; | |
d14a1e28 | 28569 | } |
0085ce49 RD |
28570 | wxPyEndAllowThreads(__tstate); |
28571 | if (PyErr_Occurred()) SWIG_fail; | |
28572 | } | |
28573 | { | |
28574 | #if wxUSE_UNICODE | |
28575 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28576 | #else | |
28577 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28578 | #endif | |
28579 | } | |
28580 | return resultobj; | |
28581 | fail: | |
28582 | return NULL; | |
d14a1e28 RD |
28583 | } |
28584 | ||
28585 | ||
0085ce49 RD |
28586 | SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28587 | PyObject *resultobj = 0; | |
28588 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28589 | int result; | |
28590 | void *argp1 = 0 ; | |
28591 | int res1 = 0 ; | |
28592 | PyObject *swig_obj[1] ; | |
28593 | ||
28594 | if (!args) SWIG_fail; | |
28595 | swig_obj[0] = args; | |
28596 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28597 | if (!SWIG_IsOK(res1)) { | |
28598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28599 | } | |
28600 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28601 | { | |
28602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28603 | result = (int)(arg1)->GetImage(); | |
28604 | wxPyEndAllowThreads(__tstate); | |
28605 | if (PyErr_Occurred()) SWIG_fail; | |
28606 | } | |
28607 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28608 | return resultobj; | |
28609 | fail: | |
28610 | return NULL; | |
d14a1e28 RD |
28611 | } |
28612 | ||
28613 | ||
0085ce49 RD |
28614 | SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28615 | PyObject *resultobj = 0; | |
28616 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28617 | long result; | |
28618 | void *argp1 = 0 ; | |
28619 | int res1 = 0 ; | |
28620 | PyObject *swig_obj[1] ; | |
28621 | ||
28622 | if (!args) SWIG_fail; | |
28623 | swig_obj[0] = args; | |
28624 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28625 | if (!SWIG_IsOK(res1)) { | |
28626 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28627 | } | |
28628 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28629 | { | |
28630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28631 | result = (long)(arg1)->GetData(); | |
28632 | wxPyEndAllowThreads(__tstate); | |
28633 | if (PyErr_Occurred()) SWIG_fail; | |
28634 | } | |
28635 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28636 | return resultobj; | |
28637 | fail: | |
28638 | return NULL; | |
d14a1e28 RD |
28639 | } |
28640 | ||
28641 | ||
0085ce49 RD |
28642 | SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28643 | PyObject *resultobj = 0; | |
28644 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28645 | long result; | |
28646 | void *argp1 = 0 ; | |
28647 | int res1 = 0 ; | |
28648 | PyObject *swig_obj[1] ; | |
28649 | ||
28650 | if (!args) SWIG_fail; | |
28651 | swig_obj[0] = args; | |
28652 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28653 | if (!SWIG_IsOK(res1)) { | |
28654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28655 | } | |
28656 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28657 | { | |
28658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28659 | result = (long)(arg1)->GetMask(); | |
28660 | wxPyEndAllowThreads(__tstate); | |
28661 | if (PyErr_Occurred()) SWIG_fail; | |
28662 | } | |
28663 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28664 | return resultobj; | |
28665 | fail: | |
28666 | return NULL; | |
d14a1e28 RD |
28667 | } |
28668 | ||
28669 | ||
0085ce49 RD |
28670 | SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28671 | PyObject *resultobj = 0; | |
28672 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28673 | wxListItem *result = 0 ; | |
28674 | void *argp1 = 0 ; | |
28675 | int res1 = 0 ; | |
28676 | PyObject *swig_obj[1] ; | |
28677 | ||
28678 | if (!args) SWIG_fail; | |
28679 | swig_obj[0] = args; | |
28680 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28681 | if (!SWIG_IsOK(res1)) { | |
28682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28683 | } | |
28684 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28685 | { | |
28686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22bfe96c | 28687 | { |
0085ce49 RD |
28688 | wxListItem const &_result_ref = (arg1)->GetItem(); |
28689 | result = (wxListItem *) &_result_ref; | |
22bfe96c | 28690 | } |
0085ce49 RD |
28691 | wxPyEndAllowThreads(__tstate); |
28692 | if (PyErr_Occurred()) SWIG_fail; | |
28693 | } | |
28694 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 ); | |
28695 | return resultobj; | |
28696 | fail: | |
28697 | return NULL; | |
22bfe96c RD |
28698 | } |
28699 | ||
28700 | ||
0085ce49 RD |
28701 | SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28702 | PyObject *resultobj = 0; | |
28703 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28704 | long result; | |
28705 | void *argp1 = 0 ; | |
28706 | int res1 = 0 ; | |
28707 | PyObject *swig_obj[1] ; | |
28708 | ||
28709 | if (!args) SWIG_fail; | |
28710 | swig_obj[0] = args; | |
28711 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28712 | if (!SWIG_IsOK(res1)) { | |
28713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28714 | } | |
28715 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28716 | { | |
28717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28718 | result = (long)(arg1)->GetCacheFrom(); | |
28719 | wxPyEndAllowThreads(__tstate); | |
28720 | if (PyErr_Occurred()) SWIG_fail; | |
28721 | } | |
28722 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28723 | return resultobj; | |
28724 | fail: | |
28725 | return NULL; | |
d14a1e28 RD |
28726 | } |
28727 | ||
28728 | ||
0085ce49 RD |
28729 | SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28730 | PyObject *resultobj = 0; | |
28731 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28732 | long result; | |
28733 | void *argp1 = 0 ; | |
28734 | int res1 = 0 ; | |
28735 | PyObject *swig_obj[1] ; | |
28736 | ||
28737 | if (!args) SWIG_fail; | |
28738 | swig_obj[0] = args; | |
28739 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28740 | if (!SWIG_IsOK(res1)) { | |
28741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28742 | } | |
28743 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28744 | { | |
28745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28746 | result = (long)(arg1)->GetCacheTo(); | |
28747 | wxPyEndAllowThreads(__tstate); | |
28748 | if (PyErr_Occurred()) SWIG_fail; | |
28749 | } | |
28750 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
28751 | return resultobj; | |
28752 | fail: | |
28753 | return NULL; | |
d14a1e28 RD |
28754 | } |
28755 | ||
28756 | ||
0085ce49 RD |
28757 | SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28758 | PyObject *resultobj = 0; | |
28759 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28760 | bool result; | |
28761 | void *argp1 = 0 ; | |
28762 | int res1 = 0 ; | |
28763 | PyObject *swig_obj[1] ; | |
28764 | ||
28765 | if (!args) SWIG_fail; | |
28766 | swig_obj[0] = args; | |
28767 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28768 | if (!SWIG_IsOK(res1)) { | |
28769 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'"); | |
28770 | } | |
28771 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28772 | { | |
28773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28774 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
28775 | wxPyEndAllowThreads(__tstate); | |
28776 | if (PyErr_Occurred()) SWIG_fail; | |
28777 | } | |
28778 | { | |
28779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28780 | } | |
28781 | return resultobj; | |
28782 | fail: | |
28783 | return NULL; | |
28784 | } | |
28785 | ||
28786 | ||
28787 | SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28788 | PyObject *resultobj = 0; | |
28789 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
28790 | bool arg2 ; | |
28791 | void *argp1 = 0 ; | |
28792 | int res1 = 0 ; | |
28793 | bool val2 ; | |
28794 | int ecode2 = 0 ; | |
28795 | PyObject * obj0 = 0 ; | |
28796 | PyObject * obj1 = 0 ; | |
28797 | char * kwnames[] = { | |
28798 | (char *) "self",(char *) "editCancelled", NULL | |
28799 | }; | |
28800 | ||
28801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail; | |
28802 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 ); | |
28803 | if (!SWIG_IsOK(res1)) { | |
28804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'"); | |
28805 | } | |
28806 | arg1 = reinterpret_cast< wxListEvent * >(argp1); | |
28807 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
28808 | if (!SWIG_IsOK(ecode2)) { | |
28809 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'"); | |
28810 | } | |
28811 | arg2 = static_cast< bool >(val2); | |
28812 | { | |
28813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28814 | (arg1)->SetEditCanceled(arg2); | |
28815 | wxPyEndAllowThreads(__tstate); | |
28816 | if (PyErr_Occurred()) SWIG_fail; | |
28817 | } | |
28818 | resultobj = SWIG_Py_Void(); | |
28819 | return resultobj; | |
28820 | fail: | |
28821 | return NULL; | |
28822 | } | |
28823 | ||
28824 | ||
28825 | SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28826 | PyObject *obj; | |
28827 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28828 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj)); | |
28829 | return SWIG_Py_Void(); | |
28830 | } | |
28831 | ||
28832 | SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28833 | return SWIG_Python_InitShadowInstance(args); | |
28834 | } | |
28835 | ||
28836 | SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28837 | PyObject *resultobj = 0; | |
28838 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28839 | int arg2 = (int) -1 ; | |
28840 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28841 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28842 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28843 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28844 | long arg5 = (long) wxLC_ICON ; | |
28845 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28846 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
28847 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
28848 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28849 | wxPyListCtrl *result = 0 ; | |
28850 | void *argp1 = 0 ; | |
28851 | int res1 = 0 ; | |
28852 | int val2 ; | |
28853 | int ecode2 = 0 ; | |
28854 | wxPoint temp3 ; | |
28855 | wxSize temp4 ; | |
28856 | long val5 ; | |
28857 | int ecode5 = 0 ; | |
28858 | void *argp6 = 0 ; | |
28859 | int res6 = 0 ; | |
28860 | bool temp7 = false ; | |
28861 | PyObject * obj0 = 0 ; | |
28862 | PyObject * obj1 = 0 ; | |
28863 | PyObject * obj2 = 0 ; | |
28864 | PyObject * obj3 = 0 ; | |
28865 | PyObject * obj4 = 0 ; | |
28866 | PyObject * obj5 = 0 ; | |
28867 | PyObject * obj6 = 0 ; | |
28868 | char * kwnames[] = { | |
28869 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28870 | }; | |
28871 | ||
28872 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
28873 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28874 | if (!SWIG_IsOK(res1)) { | |
28875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
28876 | } | |
28877 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
28878 | if (obj1) { | |
28879 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28880 | if (!SWIG_IsOK(ecode2)) { | |
28881 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'"); | |
28882 | } | |
28883 | arg2 = static_cast< int >(val2); | |
28884 | } | |
28885 | if (obj2) { | |
093d3ff1 | 28886 | { |
0085ce49 RD |
28887 | arg3 = &temp3; |
28888 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 28889 | } |
0085ce49 RD |
28890 | } |
28891 | if (obj3) { | |
d14a1e28 | 28892 | { |
0085ce49 RD |
28893 | arg4 = &temp4; |
28894 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 28895 | } |
0085ce49 RD |
28896 | } |
28897 | if (obj4) { | |
28898 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
28899 | if (!SWIG_IsOK(ecode5)) { | |
28900 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'"); | |
28901 | } | |
28902 | arg5 = static_cast< long >(val5); | |
28903 | } | |
28904 | if (obj5) { | |
28905 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
28906 | if (!SWIG_IsOK(res6)) { | |
28907 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 28908 | } |
0085ce49 RD |
28909 | if (!argp6) { |
28910 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
28911 | } | |
28912 | arg6 = reinterpret_cast< wxValidator * >(argp6); | |
28913 | } | |
28914 | if (obj6) { | |
093d3ff1 | 28915 | { |
0085ce49 RD |
28916 | arg7 = wxString_in_helper(obj6); |
28917 | if (arg7 == NULL) SWIG_fail; | |
28918 | temp7 = true; | |
093d3ff1 | 28919 | } |
0085ce49 RD |
28920 | } |
28921 | { | |
28922 | if (!wxPyCheckForApp()) SWIG_fail; | |
28923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28924 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28925 | wxPyEndAllowThreads(__tstate); | |
28926 | if (PyErr_Occurred()) SWIG_fail; | |
28927 | } | |
28928 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 ); | |
28929 | { | |
28930 | if (temp7) | |
28931 | delete arg7; | |
28932 | } | |
28933 | return resultobj; | |
28934 | fail: | |
28935 | { | |
28936 | if (temp7) | |
28937 | delete arg7; | |
28938 | } | |
28939 | return NULL; | |
d14a1e28 RD |
28940 | } |
28941 | ||
28942 | ||
0085ce49 RD |
28943 | SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28944 | PyObject *resultobj = 0; | |
28945 | wxPyListCtrl *result = 0 ; | |
28946 | ||
28947 | if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail; | |
28948 | { | |
28949 | if (!wxPyCheckForApp()) SWIG_fail; | |
28950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28951 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
28952 | wxPyEndAllowThreads(__tstate); | |
28953 | if (PyErr_Occurred()) SWIG_fail; | |
28954 | } | |
28955 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 ); | |
28956 | return resultobj; | |
28957 | fail: | |
28958 | return NULL; | |
28959 | } | |
28960 | ||
28961 | ||
28962 | SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28963 | PyObject *resultobj = 0; | |
28964 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
28965 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28966 | int arg3 = (int) -1 ; | |
28967 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28968 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28969 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28970 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28971 | long arg6 = (long) wxLC_ICON ; | |
28972 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
28973 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
28974 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
28975 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
28976 | bool result; | |
28977 | void *argp1 = 0 ; | |
28978 | int res1 = 0 ; | |
28979 | void *argp2 = 0 ; | |
28980 | int res2 = 0 ; | |
28981 | int val3 ; | |
28982 | int ecode3 = 0 ; | |
28983 | wxPoint temp4 ; | |
28984 | wxSize temp5 ; | |
28985 | long val6 ; | |
28986 | int ecode6 = 0 ; | |
28987 | void *argp7 = 0 ; | |
28988 | int res7 = 0 ; | |
28989 | bool temp8 = false ; | |
28990 | PyObject * obj0 = 0 ; | |
28991 | PyObject * obj1 = 0 ; | |
28992 | PyObject * obj2 = 0 ; | |
28993 | PyObject * obj3 = 0 ; | |
28994 | PyObject * obj4 = 0 ; | |
28995 | PyObject * obj5 = 0 ; | |
28996 | PyObject * obj6 = 0 ; | |
28997 | PyObject * obj7 = 0 ; | |
28998 | char * kwnames[] = { | |
28999 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29000 | }; | |
29001 | ||
29002 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
29003 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29004 | if (!SWIG_IsOK(res1)) { | |
29005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29006 | } | |
29007 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29008 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
29009 | if (!SWIG_IsOK(res2)) { | |
29010 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
29011 | } | |
29012 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
29013 | if (obj2) { | |
29014 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29015 | if (!SWIG_IsOK(ecode3)) { | |
29016 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
29017 | } | |
29018 | arg3 = static_cast< int >(val3); | |
29019 | } | |
29020 | if (obj3) { | |
093d3ff1 | 29021 | { |
0085ce49 RD |
29022 | arg4 = &temp4; |
29023 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 29024 | } |
0085ce49 RD |
29025 | } |
29026 | if (obj4) { | |
d14a1e28 | 29027 | { |
0085ce49 RD |
29028 | arg5 = &temp5; |
29029 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 29030 | } |
0085ce49 RD |
29031 | } |
29032 | if (obj5) { | |
29033 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
29034 | if (!SWIG_IsOK(ecode6)) { | |
29035 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
29036 | } | |
29037 | arg6 = static_cast< long >(val6); | |
29038 | } | |
29039 | if (obj6) { | |
29040 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
29041 | if (!SWIG_IsOK(res7)) { | |
29042 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 29043 | } |
0085ce49 RD |
29044 | if (!argp7) { |
29045 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 29046 | } |
0085ce49 RD |
29047 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
29048 | } | |
29049 | if (obj7) { | |
d14a1e28 | 29050 | { |
0085ce49 RD |
29051 | arg8 = wxString_in_helper(obj7); |
29052 | if (arg8 == NULL) SWIG_fail; | |
29053 | temp8 = true; | |
d14a1e28 | 29054 | } |
0085ce49 RD |
29055 | } |
29056 | { | |
29057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29058 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
29059 | wxPyEndAllowThreads(__tstate); | |
29060 | if (PyErr_Occurred()) SWIG_fail; | |
29061 | } | |
29062 | { | |
29063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29064 | } | |
29065 | { | |
29066 | if (temp8) | |
29067 | delete arg8; | |
29068 | } | |
29069 | return resultobj; | |
29070 | fail: | |
29071 | { | |
29072 | if (temp8) | |
29073 | delete arg8; | |
29074 | } | |
29075 | return NULL; | |
29076 | } | |
29077 | ||
29078 | ||
29079 | SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29080 | PyObject *resultobj = 0; | |
29081 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29082 | PyObject *arg2 = (PyObject *) 0 ; | |
29083 | PyObject *arg3 = (PyObject *) 0 ; | |
29084 | void *argp1 = 0 ; | |
29085 | int res1 = 0 ; | |
29086 | PyObject * obj0 = 0 ; | |
29087 | PyObject * obj1 = 0 ; | |
29088 | PyObject * obj2 = 0 ; | |
29089 | char * kwnames[] = { | |
29090 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29091 | }; | |
29092 | ||
29093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29095 | if (!SWIG_IsOK(res1)) { | |
29096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29097 | } | |
29098 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29099 | arg2 = obj1; | |
29100 | arg3 = obj2; | |
29101 | { | |
29102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29103 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29104 | wxPyEndAllowThreads(__tstate); | |
29105 | if (PyErr_Occurred()) SWIG_fail; | |
29106 | } | |
29107 | resultobj = SWIG_Py_Void(); | |
29108 | return resultobj; | |
29109 | fail: | |
29110 | return NULL; | |
29111 | } | |
29112 | ||
29113 | ||
29114 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29115 | PyObject *resultobj = 0; | |
29116 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29117 | int arg2 ; | |
29118 | wxListItem *result = 0 ; | |
29119 | void *argp1 = 0 ; | |
29120 | int res1 = 0 ; | |
29121 | int val2 ; | |
29122 | int ecode2 = 0 ; | |
29123 | PyObject * obj0 = 0 ; | |
29124 | PyObject * obj1 = 0 ; | |
29125 | char * kwnames[] = { | |
29126 | (char *) "self",(char *) "col", NULL | |
29127 | }; | |
29128 | ||
29129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
29130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29131 | if (!SWIG_IsOK(res1)) { | |
29132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29133 | } | |
29134 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29135 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29136 | if (!SWIG_IsOK(ecode2)) { | |
29137 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'"); | |
29138 | } | |
29139 | arg2 = static_cast< int >(val2); | |
29140 | { | |
29141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29142 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
29143 | wxPyEndAllowThreads(__tstate); | |
29144 | if (PyErr_Occurred()) SWIG_fail; | |
29145 | } | |
29146 | { | |
3ecece7e | 29147 | resultobj = wxPyMake_wxObject(result, 0); |
0085ce49 RD |
29148 | } |
29149 | return resultobj; | |
29150 | fail: | |
29151 | return NULL; | |
29152 | } | |
29153 | ||
29154 | ||
29155 | SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29156 | PyObject *resultobj = 0; | |
29157 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29158 | int arg2 ; | |
29159 | wxListItem *arg3 = 0 ; | |
29160 | bool result; | |
29161 | void *argp1 = 0 ; | |
29162 | int res1 = 0 ; | |
29163 | int val2 ; | |
29164 | int ecode2 = 0 ; | |
29165 | void *argp3 = 0 ; | |
29166 | int res3 = 0 ; | |
29167 | PyObject * obj0 = 0 ; | |
29168 | PyObject * obj1 = 0 ; | |
29169 | PyObject * obj2 = 0 ; | |
29170 | char * kwnames[] = { | |
29171 | (char *) "self",(char *) "col",(char *) "item", NULL | |
29172 | }; | |
29173 | ||
29174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29175 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29176 | if (!SWIG_IsOK(res1)) { | |
29177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29178 | } | |
29179 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29180 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29181 | if (!SWIG_IsOK(ecode2)) { | |
29182 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'"); | |
29183 | } | |
29184 | arg2 = static_cast< int >(val2); | |
29185 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 ); | |
29186 | if (!SWIG_IsOK(res3)) { | |
29187 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
29188 | } | |
29189 | if (!argp3) { | |
29190 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
29191 | } | |
29192 | arg3 = reinterpret_cast< wxListItem * >(argp3); | |
29193 | { | |
29194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29195 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
29196 | wxPyEndAllowThreads(__tstate); | |
29197 | if (PyErr_Occurred()) SWIG_fail; | |
29198 | } | |
29199 | { | |
29200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29201 | } | |
29202 | return resultobj; | |
29203 | fail: | |
29204 | return NULL; | |
29205 | } | |
29206 | ||
29207 | ||
29208 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29209 | PyObject *resultobj = 0; | |
29210 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29211 | int arg2 ; | |
29212 | int result; | |
29213 | void *argp1 = 0 ; | |
29214 | int res1 = 0 ; | |
29215 | int val2 ; | |
29216 | int ecode2 = 0 ; | |
29217 | PyObject * obj0 = 0 ; | |
29218 | PyObject * obj1 = 0 ; | |
29219 | char * kwnames[] = { | |
29220 | (char *) "self",(char *) "col", NULL | |
29221 | }; | |
29222 | ||
29223 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
29224 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29225 | if (!SWIG_IsOK(res1)) { | |
29226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29227 | } | |
29228 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29229 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29230 | if (!SWIG_IsOK(ecode2)) { | |
29231 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'"); | |
29232 | } | |
29233 | arg2 = static_cast< int >(val2); | |
29234 | { | |
29235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29236 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
29237 | wxPyEndAllowThreads(__tstate); | |
29238 | if (PyErr_Occurred()) SWIG_fail; | |
29239 | } | |
29240 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29241 | return resultobj; | |
29242 | fail: | |
29243 | return NULL; | |
29244 | } | |
29245 | ||
29246 | ||
29247 | SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29248 | PyObject *resultobj = 0; | |
29249 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29250 | int arg2 ; | |
29251 | int arg3 ; | |
29252 | bool result; | |
29253 | void *argp1 = 0 ; | |
29254 | int res1 = 0 ; | |
29255 | int val2 ; | |
29256 | int ecode2 = 0 ; | |
29257 | int val3 ; | |
29258 | int ecode3 = 0 ; | |
29259 | PyObject * obj0 = 0 ; | |
29260 | PyObject * obj1 = 0 ; | |
29261 | PyObject * obj2 = 0 ; | |
29262 | char * kwnames[] = { | |
29263 | (char *) "self",(char *) "col",(char *) "width", NULL | |
29264 | }; | |
29265 | ||
29266 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29267 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29268 | if (!SWIG_IsOK(res1)) { | |
29269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29270 | } | |
29271 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29272 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29273 | if (!SWIG_IsOK(ecode2)) { | |
29274 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'"); | |
29275 | } | |
29276 | arg2 = static_cast< int >(val2); | |
29277 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29278 | if (!SWIG_IsOK(ecode3)) { | |
29279 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'"); | |
29280 | } | |
29281 | arg3 = static_cast< int >(val3); | |
29282 | { | |
29283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29284 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
29285 | wxPyEndAllowThreads(__tstate); | |
29286 | if (PyErr_Occurred()) SWIG_fail; | |
29287 | } | |
29288 | { | |
29289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29290 | } | |
29291 | return resultobj; | |
29292 | fail: | |
29293 | return NULL; | |
d14a1e28 RD |
29294 | } |
29295 | ||
29296 | ||
0085ce49 RD |
29297 | SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29298 | PyObject *resultobj = 0; | |
29299 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29300 | int result; | |
29301 | void *argp1 = 0 ; | |
29302 | int res1 = 0 ; | |
29303 | PyObject *swig_obj[1] ; | |
29304 | ||
29305 | if (!args) SWIG_fail; | |
29306 | swig_obj[0] = args; | |
29307 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29308 | if (!SWIG_IsOK(res1)) { | |
29309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29310 | } | |
29311 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29312 | { | |
29313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29314 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
29315 | wxPyEndAllowThreads(__tstate); | |
29316 | if (PyErr_Occurred()) SWIG_fail; | |
29317 | } | |
29318 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29319 | return resultobj; | |
29320 | fail: | |
29321 | return NULL; | |
d14a1e28 RD |
29322 | } |
29323 | ||
29324 | ||
0085ce49 RD |
29325 | SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29326 | PyObject *resultobj = 0; | |
29327 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29328 | wxRect result; | |
29329 | void *argp1 = 0 ; | |
29330 | int res1 = 0 ; | |
29331 | PyObject *swig_obj[1] ; | |
29332 | ||
29333 | if (!args) SWIG_fail; | |
29334 | swig_obj[0] = args; | |
29335 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29336 | if (!SWIG_IsOK(res1)) { | |
29337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29338 | } | |
29339 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29340 | { | |
29341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29342 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
29343 | wxPyEndAllowThreads(__tstate); | |
29344 | if (PyErr_Occurred()) SWIG_fail; | |
29345 | } | |
29346 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
29347 | return resultobj; | |
29348 | fail: | |
29349 | return NULL; | |
d14a1e28 RD |
29350 | } |
29351 | ||
29352 | ||
0085ce49 RD |
29353 | SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29354 | PyObject *resultobj = 0; | |
29355 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29356 | wxTextCtrl *result = 0 ; | |
29357 | void *argp1 = 0 ; | |
29358 | int res1 = 0 ; | |
29359 | PyObject *swig_obj[1] ; | |
29360 | ||
29361 | if (!args) SWIG_fail; | |
29362 | swig_obj[0] = args; | |
29363 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29364 | if (!SWIG_IsOK(res1)) { | |
29365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29366 | } | |
29367 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29368 | { | |
29369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29370 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
29371 | wxPyEndAllowThreads(__tstate); | |
29372 | if (PyErr_Occurred()) SWIG_fail; | |
29373 | } | |
29374 | { | |
29375 | resultobj = wxPyMake_wxObject(result, 0); | |
29376 | } | |
29377 | return resultobj; | |
29378 | fail: | |
29379 | return NULL; | |
29380 | } | |
29381 | ||
29382 | ||
29383 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29384 | PyObject *resultobj = 0; | |
29385 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29386 | long arg2 ; | |
29387 | int arg3 = (int) 0 ; | |
29388 | wxListItem *result = 0 ; | |
29389 | void *argp1 = 0 ; | |
29390 | int res1 = 0 ; | |
29391 | long val2 ; | |
29392 | int ecode2 = 0 ; | |
29393 | int val3 ; | |
29394 | int ecode3 = 0 ; | |
29395 | PyObject * obj0 = 0 ; | |
29396 | PyObject * obj1 = 0 ; | |
29397 | PyObject * obj2 = 0 ; | |
29398 | char * kwnames[] = { | |
29399 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
29400 | }; | |
29401 | ||
29402 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29403 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29404 | if (!SWIG_IsOK(res1)) { | |
29405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29406 | } | |
29407 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29408 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29409 | if (!SWIG_IsOK(ecode2)) { | |
29410 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'"); | |
29411 | } | |
29412 | arg2 = static_cast< long >(val2); | |
29413 | if (obj2) { | |
29414 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29415 | if (!SWIG_IsOK(ecode3)) { | |
29416 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'"); | |
29417 | } | |
29418 | arg3 = static_cast< int >(val3); | |
29419 | } | |
29420 | { | |
29421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29422 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
29423 | wxPyEndAllowThreads(__tstate); | |
29424 | if (PyErr_Occurred()) SWIG_fail; | |
29425 | } | |
29426 | { | |
3ecece7e | 29427 | resultobj = wxPyMake_wxObject(result, 0); |
0085ce49 RD |
29428 | } |
29429 | return resultobj; | |
29430 | fail: | |
29431 | return NULL; | |
29432 | } | |
29433 | ||
29434 | ||
29435 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29436 | PyObject *resultobj = 0; | |
29437 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29438 | wxListItem *arg2 = 0 ; | |
29439 | bool result; | |
29440 | void *argp1 = 0 ; | |
29441 | int res1 = 0 ; | |
29442 | void *argp2 = 0 ; | |
29443 | int res2 = 0 ; | |
29444 | PyObject * obj0 = 0 ; | |
29445 | PyObject * obj1 = 0 ; | |
29446 | char * kwnames[] = { | |
29447 | (char *) "self",(char *) "info", NULL | |
29448 | }; | |
29449 | ||
29450 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
29451 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29452 | if (!SWIG_IsOK(res1)) { | |
29453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29454 | } | |
29455 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29456 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 ); | |
29457 | if (!SWIG_IsOK(res2)) { | |
29458 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
29459 | } | |
29460 | if (!argp2) { | |
29461 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
29462 | } | |
29463 | arg2 = reinterpret_cast< wxListItem * >(argp2); | |
29464 | { | |
29465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29466 | result = (bool)(arg1)->SetItem(*arg2); | |
29467 | wxPyEndAllowThreads(__tstate); | |
29468 | if (PyErr_Occurred()) SWIG_fail; | |
29469 | } | |
29470 | { | |
29471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29472 | } | |
29473 | return resultobj; | |
29474 | fail: | |
29475 | return NULL; | |
29476 | } | |
29477 | ||
29478 | ||
29479 | SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29480 | PyObject *resultobj = 0; | |
29481 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29482 | long arg2 ; | |
29483 | int arg3 ; | |
29484 | wxString *arg4 = 0 ; | |
29485 | int arg5 = (int) -1 ; | |
29486 | long result; | |
29487 | void *argp1 = 0 ; | |
29488 | int res1 = 0 ; | |
29489 | long val2 ; | |
29490 | int ecode2 = 0 ; | |
29491 | int val3 ; | |
29492 | int ecode3 = 0 ; | |
29493 | bool temp4 = false ; | |
29494 | int val5 ; | |
29495 | int ecode5 = 0 ; | |
29496 | PyObject * obj0 = 0 ; | |
29497 | PyObject * obj1 = 0 ; | |
29498 | PyObject * obj2 = 0 ; | |
29499 | PyObject * obj3 = 0 ; | |
29500 | PyObject * obj4 = 0 ; | |
29501 | char * kwnames[] = { | |
29502 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
29503 | }; | |
29504 | ||
29505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29507 | if (!SWIG_IsOK(res1)) { | |
29508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29509 | } | |
29510 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29511 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29512 | if (!SWIG_IsOK(ecode2)) { | |
29513 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'"); | |
29514 | } | |
29515 | arg2 = static_cast< long >(val2); | |
29516 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29517 | if (!SWIG_IsOK(ecode3)) { | |
29518 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'"); | |
29519 | } | |
29520 | arg3 = static_cast< int >(val3); | |
29521 | { | |
29522 | arg4 = wxString_in_helper(obj3); | |
29523 | if (arg4 == NULL) SWIG_fail; | |
29524 | temp4 = true; | |
29525 | } | |
29526 | if (obj4) { | |
29527 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
29528 | if (!SWIG_IsOK(ecode5)) { | |
29529 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'"); | |
29530 | } | |
29531 | arg5 = static_cast< int >(val5); | |
29532 | } | |
29533 | { | |
29534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29535 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
29536 | wxPyEndAllowThreads(__tstate); | |
29537 | if (PyErr_Occurred()) SWIG_fail; | |
29538 | } | |
29539 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
29540 | { | |
29541 | if (temp4) | |
29542 | delete arg4; | |
29543 | } | |
29544 | return resultobj; | |
29545 | fail: | |
29546 | { | |
29547 | if (temp4) | |
29548 | delete arg4; | |
29549 | } | |
29550 | return NULL; | |
29551 | } | |
29552 | ||
29553 | ||
29554 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29555 | PyObject *resultobj = 0; | |
29556 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29557 | long arg2 ; | |
29558 | long arg3 ; | |
29559 | int result; | |
29560 | void *argp1 = 0 ; | |
29561 | int res1 = 0 ; | |
29562 | long val2 ; | |
29563 | int ecode2 = 0 ; | |
29564 | long val3 ; | |
29565 | int ecode3 = 0 ; | |
29566 | PyObject * obj0 = 0 ; | |
29567 | PyObject * obj1 = 0 ; | |
29568 | PyObject * obj2 = 0 ; | |
29569 | char * kwnames[] = { | |
29570 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
29571 | }; | |
29572 | ||
29573 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29574 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29575 | if (!SWIG_IsOK(res1)) { | |
29576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29577 | } | |
29578 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29579 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29580 | if (!SWIG_IsOK(ecode2)) { | |
29581 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'"); | |
29582 | } | |
29583 | arg2 = static_cast< long >(val2); | |
29584 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29585 | if (!SWIG_IsOK(ecode3)) { | |
29586 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'"); | |
29587 | } | |
29588 | arg3 = static_cast< long >(val3); | |
29589 | { | |
29590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29591 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
29592 | wxPyEndAllowThreads(__tstate); | |
29593 | if (PyErr_Occurred()) SWIG_fail; | |
29594 | } | |
29595 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29596 | return resultobj; | |
29597 | fail: | |
29598 | return NULL; | |
29599 | } | |
29600 | ||
29601 | ||
29602 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29603 | PyObject *resultobj = 0; | |
29604 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29605 | long arg2 ; | |
29606 | long arg3 ; | |
29607 | long arg4 ; | |
29608 | bool result; | |
29609 | void *argp1 = 0 ; | |
29610 | int res1 = 0 ; | |
29611 | long val2 ; | |
29612 | int ecode2 = 0 ; | |
29613 | long val3 ; | |
29614 | int ecode3 = 0 ; | |
29615 | long val4 ; | |
29616 | int ecode4 = 0 ; | |
29617 | PyObject * obj0 = 0 ; | |
29618 | PyObject * obj1 = 0 ; | |
29619 | PyObject * obj2 = 0 ; | |
29620 | PyObject * obj3 = 0 ; | |
29621 | char * kwnames[] = { | |
29622 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
29623 | }; | |
29624 | ||
29625 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29626 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29627 | if (!SWIG_IsOK(res1)) { | |
29628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29629 | } | |
29630 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29631 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29632 | if (!SWIG_IsOK(ecode2)) { | |
29633 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'"); | |
29634 | } | |
29635 | arg2 = static_cast< long >(val2); | |
29636 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29637 | if (!SWIG_IsOK(ecode3)) { | |
29638 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'"); | |
29639 | } | |
29640 | arg3 = static_cast< long >(val3); | |
29641 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
29642 | if (!SWIG_IsOK(ecode4)) { | |
29643 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'"); | |
29644 | } | |
29645 | arg4 = static_cast< long >(val4); | |
29646 | { | |
29647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29648 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
29649 | wxPyEndAllowThreads(__tstate); | |
29650 | if (PyErr_Occurred()) SWIG_fail; | |
29651 | } | |
29652 | { | |
29653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29654 | } | |
29655 | return resultobj; | |
29656 | fail: | |
29657 | return NULL; | |
29658 | } | |
29659 | ||
29660 | ||
29661 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29662 | PyObject *resultobj = 0; | |
29663 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29664 | long arg2 ; | |
29665 | int arg3 ; | |
29666 | int arg4 = (int) -1 ; | |
29667 | bool result; | |
29668 | void *argp1 = 0 ; | |
29669 | int res1 = 0 ; | |
29670 | long val2 ; | |
29671 | int ecode2 = 0 ; | |
29672 | int val3 ; | |
29673 | int ecode3 = 0 ; | |
29674 | int val4 ; | |
29675 | int ecode4 = 0 ; | |
29676 | PyObject * obj0 = 0 ; | |
29677 | PyObject * obj1 = 0 ; | |
29678 | PyObject * obj2 = 0 ; | |
29679 | PyObject * obj3 = 0 ; | |
29680 | char * kwnames[] = { | |
29681 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
29682 | }; | |
29683 | ||
29684 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29685 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29686 | if (!SWIG_IsOK(res1)) { | |
29687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29688 | } | |
29689 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29690 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29691 | if (!SWIG_IsOK(ecode2)) { | |
29692 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'"); | |
29693 | } | |
29694 | arg2 = static_cast< long >(val2); | |
29695 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29696 | if (!SWIG_IsOK(ecode3)) { | |
29697 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'"); | |
29698 | } | |
29699 | arg3 = static_cast< int >(val3); | |
29700 | if (obj3) { | |
29701 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29702 | if (!SWIG_IsOK(ecode4)) { | |
29703 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'"); | |
29704 | } | |
29705 | arg4 = static_cast< int >(val4); | |
29706 | } | |
29707 | { | |
29708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29709 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
29710 | wxPyEndAllowThreads(__tstate); | |
29711 | if (PyErr_Occurred()) SWIG_fail; | |
29712 | } | |
29713 | { | |
29714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29715 | } | |
29716 | return resultobj; | |
29717 | fail: | |
29718 | return NULL; | |
29719 | } | |
29720 | ||
29721 | ||
29722 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29723 | PyObject *resultobj = 0; | |
29724 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29725 | long arg2 ; | |
29726 | long arg3 ; | |
29727 | int arg4 ; | |
29728 | bool result; | |
29729 | void *argp1 = 0 ; | |
29730 | int res1 = 0 ; | |
29731 | long val2 ; | |
29732 | int ecode2 = 0 ; | |
29733 | long val3 ; | |
29734 | int ecode3 = 0 ; | |
29735 | int val4 ; | |
29736 | int ecode4 = 0 ; | |
29737 | PyObject * obj0 = 0 ; | |
29738 | PyObject * obj1 = 0 ; | |
29739 | PyObject * obj2 = 0 ; | |
29740 | PyObject * obj3 = 0 ; | |
29741 | char * kwnames[] = { | |
29742 | (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL | |
29743 | }; | |
29744 | ||
29745 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29746 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29747 | if (!SWIG_IsOK(res1)) { | |
29748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29749 | } | |
29750 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29751 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29752 | if (!SWIG_IsOK(ecode2)) { | |
29753 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'"); | |
29754 | } | |
29755 | arg2 = static_cast< long >(val2); | |
29756 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29757 | if (!SWIG_IsOK(ecode3)) { | |
29758 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'"); | |
29759 | } | |
29760 | arg3 = static_cast< long >(val3); | |
29761 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29762 | if (!SWIG_IsOK(ecode4)) { | |
29763 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'"); | |
29764 | } | |
29765 | arg4 = static_cast< int >(val4); | |
29766 | { | |
29767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29768 | result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4); | |
29769 | wxPyEndAllowThreads(__tstate); | |
29770 | if (PyErr_Occurred()) SWIG_fail; | |
29771 | } | |
29772 | { | |
29773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29774 | } | |
29775 | return resultobj; | |
29776 | fail: | |
29777 | return NULL; | |
29778 | } | |
29779 | ||
29780 | ||
29781 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29782 | PyObject *resultobj = 0; | |
29783 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29784 | long arg2 ; | |
29785 | wxString result; | |
29786 | void *argp1 = 0 ; | |
29787 | int res1 = 0 ; | |
29788 | long val2 ; | |
29789 | int ecode2 = 0 ; | |
29790 | PyObject * obj0 = 0 ; | |
29791 | PyObject * obj1 = 0 ; | |
29792 | char * kwnames[] = { | |
29793 | (char *) "self",(char *) "item", NULL | |
29794 | }; | |
29795 | ||
29796 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail; | |
29797 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29798 | if (!SWIG_IsOK(res1)) { | |
29799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29800 | } | |
29801 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29802 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29803 | if (!SWIG_IsOK(ecode2)) { | |
29804 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'"); | |
29805 | } | |
29806 | arg2 = static_cast< long >(val2); | |
29807 | { | |
29808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29809 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
29810 | wxPyEndAllowThreads(__tstate); | |
29811 | if (PyErr_Occurred()) SWIG_fail; | |
29812 | } | |
29813 | { | |
29814 | #if wxUSE_UNICODE | |
29815 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29816 | #else | |
29817 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29818 | #endif | |
29819 | } | |
29820 | return resultobj; | |
29821 | fail: | |
29822 | return NULL; | |
29823 | } | |
29824 | ||
29825 | ||
29826 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29827 | PyObject *resultobj = 0; | |
29828 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29829 | long arg2 ; | |
29830 | wxString *arg3 = 0 ; | |
29831 | void *argp1 = 0 ; | |
29832 | int res1 = 0 ; | |
29833 | long val2 ; | |
29834 | int ecode2 = 0 ; | |
29835 | bool temp3 = false ; | |
29836 | PyObject * obj0 = 0 ; | |
29837 | PyObject * obj1 = 0 ; | |
29838 | PyObject * obj2 = 0 ; | |
29839 | char * kwnames[] = { | |
29840 | (char *) "self",(char *) "item",(char *) "str", NULL | |
29841 | }; | |
29842 | ||
29843 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29844 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29845 | if (!SWIG_IsOK(res1)) { | |
29846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29847 | } | |
29848 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29849 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29850 | if (!SWIG_IsOK(ecode2)) { | |
29851 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'"); | |
29852 | } | |
29853 | arg2 = static_cast< long >(val2); | |
29854 | { | |
29855 | arg3 = wxString_in_helper(obj2); | |
29856 | if (arg3 == NULL) SWIG_fail; | |
29857 | temp3 = true; | |
29858 | } | |
29859 | { | |
29860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29861 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
29862 | wxPyEndAllowThreads(__tstate); | |
29863 | if (PyErr_Occurred()) SWIG_fail; | |
29864 | } | |
29865 | resultobj = SWIG_Py_Void(); | |
29866 | { | |
29867 | if (temp3) | |
29868 | delete arg3; | |
29869 | } | |
29870 | return resultobj; | |
29871 | fail: | |
29872 | { | |
29873 | if (temp3) | |
29874 | delete arg3; | |
29875 | } | |
29876 | return NULL; | |
29877 | } | |
29878 | ||
29879 | ||
29880 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29881 | PyObject *resultobj = 0; | |
29882 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29883 | long arg2 ; | |
29884 | long result; | |
29885 | void *argp1 = 0 ; | |
29886 | int res1 = 0 ; | |
29887 | long val2 ; | |
29888 | int ecode2 = 0 ; | |
29889 | PyObject * obj0 = 0 ; | |
29890 | PyObject * obj1 = 0 ; | |
29891 | char * kwnames[] = { | |
29892 | (char *) "self",(char *) "item", NULL | |
29893 | }; | |
29894 | ||
29895 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail; | |
29896 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29897 | if (!SWIG_IsOK(res1)) { | |
29898 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
29899 | } | |
29900 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29901 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29902 | if (!SWIG_IsOK(ecode2)) { | |
29903 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'"); | |
29904 | } | |
29905 | arg2 = static_cast< long >(val2); | |
29906 | { | |
29907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29908 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
29909 | wxPyEndAllowThreads(__tstate); | |
29910 | if (PyErr_Occurred()) SWIG_fail; | |
29911 | } | |
29912 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
29913 | return resultobj; | |
29914 | fail: | |
29915 | return NULL; | |
29916 | } | |
29917 | ||
29918 | ||
29919 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29920 | PyObject *resultobj = 0; | |
29921 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29922 | long arg2 ; | |
29923 | long arg3 ; | |
29924 | bool result; | |
29925 | void *argp1 = 0 ; | |
29926 | int res1 = 0 ; | |
29927 | long val2 ; | |
29928 | int ecode2 = 0 ; | |
29929 | long val3 ; | |
29930 | int ecode3 = 0 ; | |
29931 | PyObject * obj0 = 0 ; | |
29932 | PyObject * obj1 = 0 ; | |
29933 | PyObject * obj2 = 0 ; | |
29934 | char * kwnames[] = { | |
29935 | (char *) "self",(char *) "item",(char *) "data", NULL | |
29936 | }; | |
29937 | ||
29938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29939 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29940 | if (!SWIG_IsOK(res1)) { | |
29941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29942 | } | |
29943 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29944 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29945 | if (!SWIG_IsOK(ecode2)) { | |
29946 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'"); | |
29947 | } | |
29948 | arg2 = static_cast< long >(val2); | |
29949 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
29950 | if (!SWIG_IsOK(ecode3)) { | |
29951 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'"); | |
29952 | } | |
29953 | arg3 = static_cast< long >(val3); | |
29954 | { | |
29955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29956 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
29957 | wxPyEndAllowThreads(__tstate); | |
29958 | if (PyErr_Occurred()) SWIG_fail; | |
29959 | } | |
29960 | { | |
29961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29962 | } | |
29963 | return resultobj; | |
29964 | fail: | |
29965 | return NULL; | |
29966 | } | |
29967 | ||
29968 | ||
29969 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29970 | PyObject *resultobj = 0; | |
29971 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
29972 | long arg2 ; | |
29973 | wxPoint result; | |
29974 | void *argp1 = 0 ; | |
29975 | int res1 = 0 ; | |
29976 | long val2 ; | |
29977 | int ecode2 = 0 ; | |
29978 | PyObject * obj0 = 0 ; | |
29979 | PyObject * obj1 = 0 ; | |
29980 | char * kwnames[] = { | |
29981 | (char *) "self",(char *) "item", NULL | |
29982 | }; | |
29983 | ||
29984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
29985 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
29986 | if (!SWIG_IsOK(res1)) { | |
29987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
29988 | } | |
29989 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
29990 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29991 | if (!SWIG_IsOK(ecode2)) { | |
29992 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'"); | |
29993 | } | |
29994 | arg2 = static_cast< long >(val2); | |
29995 | { | |
29996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29997 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
29998 | wxPyEndAllowThreads(__tstate); | |
29999 | if (PyErr_Occurred()) SWIG_fail; | |
30000 | } | |
30001 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
30002 | return resultobj; | |
30003 | fail: | |
30004 | return NULL; | |
30005 | } | |
30006 | ||
30007 | ||
30008 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30009 | PyObject *resultobj = 0; | |
30010 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30011 | long arg2 ; | |
30012 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
30013 | wxRect result; | |
30014 | void *argp1 = 0 ; | |
30015 | int res1 = 0 ; | |
30016 | long val2 ; | |
30017 | int ecode2 = 0 ; | |
30018 | int val3 ; | |
30019 | int ecode3 = 0 ; | |
30020 | PyObject * obj0 = 0 ; | |
30021 | PyObject * obj1 = 0 ; | |
30022 | PyObject * obj2 = 0 ; | |
30023 | char * kwnames[] = { | |
30024 | (char *) "self",(char *) "item",(char *) "code", NULL | |
30025 | }; | |
30026 | ||
30027 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30028 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30029 | if (!SWIG_IsOK(res1)) { | |
30030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30031 | } | |
30032 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30033 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30034 | if (!SWIG_IsOK(ecode2)) { | |
30035 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'"); | |
30036 | } | |
30037 | arg2 = static_cast< long >(val2); | |
30038 | if (obj2) { | |
30039 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30040 | if (!SWIG_IsOK(ecode3)) { | |
30041 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'"); | |
30042 | } | |
30043 | arg3 = static_cast< int >(val3); | |
30044 | } | |
30045 | { | |
30046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30047 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
30048 | wxPyEndAllowThreads(__tstate); | |
30049 | if (PyErr_Occurred()) SWIG_fail; | |
30050 | } | |
30051 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
30052 | return resultobj; | |
30053 | fail: | |
30054 | return NULL; | |
30055 | } | |
30056 | ||
30057 | ||
30058 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30059 | PyObject *resultobj = 0; | |
30060 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30061 | long arg2 ; | |
30062 | wxPoint *arg3 = 0 ; | |
30063 | bool result; | |
30064 | void *argp1 = 0 ; | |
30065 | int res1 = 0 ; | |
30066 | long val2 ; | |
30067 | int ecode2 = 0 ; | |
30068 | wxPoint temp3 ; | |
30069 | PyObject * obj0 = 0 ; | |
30070 | PyObject * obj1 = 0 ; | |
30071 | PyObject * obj2 = 0 ; | |
30072 | char * kwnames[] = { | |
30073 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
30074 | }; | |
30075 | ||
30076 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30077 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30078 | if (!SWIG_IsOK(res1)) { | |
30079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30080 | } | |
30081 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30082 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30083 | if (!SWIG_IsOK(ecode2)) { | |
30084 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'"); | |
30085 | } | |
30086 | arg2 = static_cast< long >(val2); | |
30087 | { | |
30088 | arg3 = &temp3; | |
30089 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30090 | } | |
30091 | { | |
30092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30093 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
30094 | wxPyEndAllowThreads(__tstate); | |
30095 | if (PyErr_Occurred()) SWIG_fail; | |
30096 | } | |
30097 | { | |
30098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30099 | } | |
30100 | return resultobj; | |
30101 | fail: | |
30102 | return NULL; | |
d14a1e28 RD |
30103 | } |
30104 | ||
30105 | ||
0085ce49 RD |
30106 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30107 | PyObject *resultobj = 0; | |
30108 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30109 | int result; | |
30110 | void *argp1 = 0 ; | |
30111 | int res1 = 0 ; | |
30112 | PyObject *swig_obj[1] ; | |
30113 | ||
30114 | if (!args) SWIG_fail; | |
30115 | swig_obj[0] = args; | |
30116 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30117 | if (!SWIG_IsOK(res1)) { | |
30118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30119 | } | |
30120 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30121 | { | |
30122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30123 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
30124 | wxPyEndAllowThreads(__tstate); | |
30125 | if (PyErr_Occurred()) SWIG_fail; | |
30126 | } | |
30127 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30128 | return resultobj; | |
30129 | fail: | |
30130 | return NULL; | |
d14a1e28 RD |
30131 | } |
30132 | ||
30133 | ||
0085ce49 RD |
30134 | SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30135 | PyObject *resultobj = 0; | |
30136 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30137 | int result; | |
30138 | void *argp1 = 0 ; | |
30139 | int res1 = 0 ; | |
30140 | PyObject *swig_obj[1] ; | |
30141 | ||
30142 | if (!args) SWIG_fail; | |
30143 | swig_obj[0] = args; | |
30144 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30145 | if (!SWIG_IsOK(res1)) { | |
30146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30147 | } | |
30148 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30149 | { | |
30150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30151 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
30152 | wxPyEndAllowThreads(__tstate); | |
30153 | if (PyErr_Occurred()) SWIG_fail; | |
30154 | } | |
30155 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30156 | return resultobj; | |
30157 | fail: | |
30158 | return NULL; | |
d14a1e28 RD |
30159 | } |
30160 | ||
30161 | ||
0085ce49 RD |
30162 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30163 | PyObject *resultobj = 0; | |
30164 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30165 | wxSize result; | |
30166 | void *argp1 = 0 ; | |
30167 | int res1 = 0 ; | |
30168 | PyObject *swig_obj[1] ; | |
30169 | ||
30170 | if (!args) SWIG_fail; | |
30171 | swig_obj[0] = args; | |
30172 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30173 | if (!SWIG_IsOK(res1)) { | |
30174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30175 | } | |
30176 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30177 | { | |
30178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30179 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
30180 | wxPyEndAllowThreads(__tstate); | |
30181 | if (PyErr_Occurred()) SWIG_fail; | |
30182 | } | |
30183 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
30184 | return resultobj; | |
30185 | fail: | |
30186 | return NULL; | |
30187 | } | |
30188 | ||
30189 | ||
30190 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30191 | PyObject *resultobj = 0; | |
30192 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30193 | int arg2 ; | |
30194 | bool arg3 = (bool) false ; | |
30195 | void *argp1 = 0 ; | |
30196 | int res1 = 0 ; | |
30197 | int val2 ; | |
30198 | int ecode2 = 0 ; | |
30199 | bool val3 ; | |
30200 | int ecode3 = 0 ; | |
30201 | PyObject * obj0 = 0 ; | |
30202 | PyObject * obj1 = 0 ; | |
30203 | PyObject * obj2 = 0 ; | |
30204 | char * kwnames[] = { | |
30205 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
30206 | }; | |
30207 | ||
30208 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30209 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30210 | if (!SWIG_IsOK(res1)) { | |
30211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30212 | } | |
30213 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30214 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30215 | if (!SWIG_IsOK(ecode2)) { | |
30216 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'"); | |
30217 | } | |
30218 | arg2 = static_cast< int >(val2); | |
30219 | if (obj2) { | |
30220 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
30221 | if (!SWIG_IsOK(ecode3)) { | |
30222 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'"); | |
30223 | } | |
30224 | arg3 = static_cast< bool >(val3); | |
30225 | } | |
30226 | { | |
30227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30228 | (arg1)->SetItemSpacing(arg2,arg3); | |
30229 | wxPyEndAllowThreads(__tstate); | |
30230 | if (PyErr_Occurred()) SWIG_fail; | |
30231 | } | |
30232 | resultobj = SWIG_Py_Void(); | |
30233 | return resultobj; | |
30234 | fail: | |
30235 | return NULL; | |
22bfe96c RD |
30236 | } |
30237 | ||
30238 | ||
0085ce49 RD |
30239 | SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30240 | PyObject *resultobj = 0; | |
30241 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30242 | int result; | |
30243 | void *argp1 = 0 ; | |
30244 | int res1 = 0 ; | |
30245 | PyObject *swig_obj[1] ; | |
30246 | ||
30247 | if (!args) SWIG_fail; | |
30248 | swig_obj[0] = args; | |
30249 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30250 | if (!SWIG_IsOK(res1)) { | |
30251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30252 | } | |
30253 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30254 | { | |
30255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30256 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
30257 | wxPyEndAllowThreads(__tstate); | |
30258 | if (PyErr_Occurred()) SWIG_fail; | |
30259 | } | |
30260 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30261 | return resultobj; | |
30262 | fail: | |
30263 | return NULL; | |
d14a1e28 RD |
30264 | } |
30265 | ||
30266 | ||
0085ce49 RD |
30267 | SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30268 | PyObject *resultobj = 0; | |
30269 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30270 | wxColour result; | |
30271 | void *argp1 = 0 ; | |
30272 | int res1 = 0 ; | |
30273 | PyObject *swig_obj[1] ; | |
30274 | ||
30275 | if (!args) SWIG_fail; | |
30276 | swig_obj[0] = args; | |
30277 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30278 | if (!SWIG_IsOK(res1)) { | |
30279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30280 | } | |
30281 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30282 | { | |
30283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30284 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
30285 | wxPyEndAllowThreads(__tstate); | |
30286 | if (PyErr_Occurred()) SWIG_fail; | |
30287 | } | |
30288 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
30289 | return resultobj; | |
30290 | fail: | |
30291 | return NULL; | |
30292 | } | |
30293 | ||
30294 | ||
30295 | SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30296 | PyObject *resultobj = 0; | |
30297 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30298 | wxColour *arg2 = 0 ; | |
30299 | void *argp1 = 0 ; | |
30300 | int res1 = 0 ; | |
30301 | wxColour temp2 ; | |
30302 | PyObject * obj0 = 0 ; | |
30303 | PyObject * obj1 = 0 ; | |
30304 | char * kwnames[] = { | |
30305 | (char *) "self",(char *) "col", NULL | |
30306 | }; | |
30307 | ||
30308 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
30309 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30310 | if (!SWIG_IsOK(res1)) { | |
30311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30312 | } | |
30313 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30314 | { | |
30315 | arg2 = &temp2; | |
30316 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
30317 | } | |
30318 | { | |
30319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30320 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
30321 | wxPyEndAllowThreads(__tstate); | |
30322 | if (PyErr_Occurred()) SWIG_fail; | |
30323 | } | |
30324 | resultobj = SWIG_Py_Void(); | |
30325 | return resultobj; | |
30326 | fail: | |
30327 | return NULL; | |
d14a1e28 RD |
30328 | } |
30329 | ||
30330 | ||
0085ce49 RD |
30331 | SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30332 | PyObject *resultobj = 0; | |
30333 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30334 | long result; | |
30335 | void *argp1 = 0 ; | |
30336 | int res1 = 0 ; | |
30337 | PyObject *swig_obj[1] ; | |
30338 | ||
30339 | if (!args) SWIG_fail; | |
30340 | swig_obj[0] = args; | |
30341 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30342 | if (!SWIG_IsOK(res1)) { | |
30343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30344 | } | |
30345 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30346 | { | |
30347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30348 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
30349 | wxPyEndAllowThreads(__tstate); | |
30350 | if (PyErr_Occurred()) SWIG_fail; | |
30351 | } | |
30352 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30353 | return resultobj; | |
30354 | fail: | |
30355 | return NULL; | |
30356 | } | |
30357 | ||
30358 | ||
30359 | SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30360 | PyObject *resultobj = 0; | |
30361 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30362 | long arg2 ; | |
30363 | bool arg3 = (bool) true ; | |
30364 | void *argp1 = 0 ; | |
30365 | int res1 = 0 ; | |
30366 | long val2 ; | |
30367 | int ecode2 = 0 ; | |
30368 | bool val3 ; | |
30369 | int ecode3 = 0 ; | |
30370 | PyObject * obj0 = 0 ; | |
30371 | PyObject * obj1 = 0 ; | |
30372 | PyObject * obj2 = 0 ; | |
30373 | char * kwnames[] = { | |
30374 | (char *) "self",(char *) "style",(char *) "add", NULL | |
30375 | }; | |
30376 | ||
30377 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30378 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30379 | if (!SWIG_IsOK(res1)) { | |
30380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30381 | } | |
30382 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30383 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30384 | if (!SWIG_IsOK(ecode2)) { | |
30385 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'"); | |
30386 | } | |
30387 | arg2 = static_cast< long >(val2); | |
30388 | if (obj2) { | |
30389 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
30390 | if (!SWIG_IsOK(ecode3)) { | |
30391 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'"); | |
30392 | } | |
30393 | arg3 = static_cast< bool >(val3); | |
30394 | } | |
30395 | { | |
30396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30397 | (arg1)->SetSingleStyle(arg2,arg3); | |
30398 | wxPyEndAllowThreads(__tstate); | |
30399 | if (PyErr_Occurred()) SWIG_fail; | |
30400 | } | |
30401 | resultobj = SWIG_Py_Void(); | |
30402 | return resultobj; | |
30403 | fail: | |
30404 | return NULL; | |
30405 | } | |
30406 | ||
30407 | ||
30408 | SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30409 | PyObject *resultobj = 0; | |
30410 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30411 | long arg2 ; | |
30412 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
30413 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
30414 | long result; | |
30415 | void *argp1 = 0 ; | |
30416 | int res1 = 0 ; | |
30417 | long val2 ; | |
30418 | int ecode2 = 0 ; | |
30419 | int val3 ; | |
30420 | int ecode3 = 0 ; | |
30421 | int val4 ; | |
30422 | int ecode4 = 0 ; | |
30423 | PyObject * obj0 = 0 ; | |
30424 | PyObject * obj1 = 0 ; | |
30425 | PyObject * obj2 = 0 ; | |
30426 | PyObject * obj3 = 0 ; | |
30427 | char * kwnames[] = { | |
30428 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
30429 | }; | |
30430 | ||
30431 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30432 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30433 | if (!SWIG_IsOK(res1)) { | |
30434 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30435 | } | |
30436 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30437 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30438 | if (!SWIG_IsOK(ecode2)) { | |
30439 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'"); | |
30440 | } | |
30441 | arg2 = static_cast< long >(val2); | |
30442 | if (obj2) { | |
30443 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30444 | if (!SWIG_IsOK(ecode3)) { | |
30445 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'"); | |
30446 | } | |
30447 | arg3 = static_cast< int >(val3); | |
30448 | } | |
30449 | if (obj3) { | |
30450 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30451 | if (!SWIG_IsOK(ecode4)) { | |
30452 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'"); | |
30453 | } | |
30454 | arg4 = static_cast< int >(val4); | |
30455 | } | |
30456 | { | |
30457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30458 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
30459 | wxPyEndAllowThreads(__tstate); | |
30460 | if (PyErr_Occurred()) SWIG_fail; | |
30461 | } | |
30462 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
30463 | return resultobj; | |
30464 | fail: | |
30465 | return NULL; | |
30466 | } | |
30467 | ||
30468 | ||
30469 | SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30470 | PyObject *resultobj = 0; | |
30471 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30472 | int arg2 ; | |
30473 | wxImageList *result = 0 ; | |
30474 | void *argp1 = 0 ; | |
30475 | int res1 = 0 ; | |
30476 | int val2 ; | |
30477 | int ecode2 = 0 ; | |
30478 | PyObject * obj0 = 0 ; | |
30479 | PyObject * obj1 = 0 ; | |
30480 | char * kwnames[] = { | |
30481 | (char *) "self",(char *) "which", NULL | |
30482 | }; | |
30483 | ||
30484 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
30485 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30486 | if (!SWIG_IsOK(res1)) { | |
30487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30488 | } | |
30489 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30490 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30491 | if (!SWIG_IsOK(ecode2)) { | |
30492 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'"); | |
30493 | } | |
30494 | arg2 = static_cast< int >(val2); | |
30495 | { | |
30496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30497 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
30498 | wxPyEndAllowThreads(__tstate); | |
30499 | if (PyErr_Occurred()) SWIG_fail; | |
30500 | } | |
3ecece7e RD |
30501 | { |
30502 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
30503 | } | |
0085ce49 RD |
30504 | return resultobj; |
30505 | fail: | |
30506 | return NULL; | |
30507 | } | |
30508 | ||
30509 | ||
30510 | SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30511 | PyObject *resultobj = 0; | |
30512 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30513 | wxImageList *arg2 = (wxImageList *) 0 ; | |
30514 | int arg3 ; | |
30515 | void *argp1 = 0 ; | |
30516 | int res1 = 0 ; | |
30517 | void *argp2 = 0 ; | |
30518 | int res2 = 0 ; | |
30519 | int val3 ; | |
30520 | int ecode3 = 0 ; | |
30521 | PyObject * obj0 = 0 ; | |
30522 | PyObject * obj1 = 0 ; | |
30523 | PyObject * obj2 = 0 ; | |
30524 | char * kwnames[] = { | |
30525 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
30526 | }; | |
30527 | ||
30528 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30529 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30530 | if (!SWIG_IsOK(res1)) { | |
30531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30532 | } | |
30533 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30534 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30535 | if (!SWIG_IsOK(res2)) { | |
30536 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
30537 | } | |
30538 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
30539 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30540 | if (!SWIG_IsOK(ecode3)) { | |
30541 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'"); | |
30542 | } | |
30543 | arg3 = static_cast< int >(val3); | |
30544 | { | |
30545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30546 | (arg1)->SetImageList(arg2,arg3); | |
30547 | wxPyEndAllowThreads(__tstate); | |
30548 | if (PyErr_Occurred()) SWIG_fail; | |
30549 | } | |
30550 | resultobj = SWIG_Py_Void(); | |
30551 | return resultobj; | |
30552 | fail: | |
30553 | return NULL; | |
30554 | } | |
30555 | ||
30556 | ||
30557 | SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30558 | PyObject *resultobj = 0; | |
30559 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30560 | wxImageList *arg2 = (wxImageList *) 0 ; | |
30561 | int arg3 ; | |
30562 | void *argp1 = 0 ; | |
30563 | int res1 = 0 ; | |
30564 | int res2 = 0 ; | |
30565 | int val3 ; | |
30566 | int ecode3 = 0 ; | |
30567 | PyObject * obj0 = 0 ; | |
30568 | PyObject * obj1 = 0 ; | |
30569 | PyObject * obj2 = 0 ; | |
30570 | char * kwnames[] = { | |
30571 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
30572 | }; | |
30573 | ||
30574 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30575 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30576 | if (!SWIG_IsOK(res1)) { | |
30577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30578 | } | |
30579 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30580 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
30581 | if (!SWIG_IsOK(res2)) { | |
30582 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
30583 | } | |
30584 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30585 | if (!SWIG_IsOK(ecode3)) { | |
30586 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'"); | |
30587 | } | |
30588 | arg3 = static_cast< int >(val3); | |
30589 | { | |
30590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30591 | (arg1)->AssignImageList(arg2,arg3); | |
30592 | wxPyEndAllowThreads(__tstate); | |
30593 | if (PyErr_Occurred()) SWIG_fail; | |
30594 | } | |
30595 | resultobj = SWIG_Py_Void(); | |
30596 | return resultobj; | |
30597 | fail: | |
30598 | return NULL; | |
d14a1e28 RD |
30599 | } |
30600 | ||
30601 | ||
0085ce49 RD |
30602 | SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30603 | PyObject *resultobj = 0; | |
30604 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30605 | bool result; | |
30606 | void *argp1 = 0 ; | |
30607 | int res1 = 0 ; | |
30608 | PyObject *swig_obj[1] ; | |
30609 | ||
30610 | if (!args) SWIG_fail; | |
30611 | swig_obj[0] = args; | |
30612 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30613 | if (!SWIG_IsOK(res1)) { | |
30614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30615 | } | |
30616 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30617 | { | |
30618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30619 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
30620 | wxPyEndAllowThreads(__tstate); | |
30621 | if (PyErr_Occurred()) SWIG_fail; | |
30622 | } | |
30623 | { | |
30624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30625 | } | |
30626 | return resultobj; | |
30627 | fail: | |
30628 | return NULL; | |
d14a1e28 RD |
30629 | } |
30630 | ||
30631 | ||
0085ce49 RD |
30632 | SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30633 | PyObject *resultobj = 0; | |
30634 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30635 | bool result; | |
30636 | void *argp1 = 0 ; | |
30637 | int res1 = 0 ; | |
30638 | PyObject *swig_obj[1] ; | |
30639 | ||
30640 | if (!args) SWIG_fail; | |
30641 | swig_obj[0] = args; | |
30642 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30643 | if (!SWIG_IsOK(res1)) { | |
30644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
30645 | } | |
30646 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30647 | { | |
30648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30649 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
30650 | wxPyEndAllowThreads(__tstate); | |
30651 | if (PyErr_Occurred()) SWIG_fail; | |
30652 | } | |
30653 | { | |
30654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30655 | } | |
30656 | return resultobj; | |
30657 | fail: | |
30658 | return NULL; | |
30659 | } | |
30660 | ||
30661 | ||
30662 | SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30663 | PyObject *resultobj = 0; | |
30664 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30665 | long arg2 ; | |
30666 | void *argp1 = 0 ; | |
30667 | int res1 = 0 ; | |
30668 | long val2 ; | |
30669 | int ecode2 = 0 ; | |
30670 | PyObject * obj0 = 0 ; | |
30671 | PyObject * obj1 = 0 ; | |
30672 | char * kwnames[] = { | |
30673 | (char *) "self",(char *) "item", NULL | |
30674 | }; | |
30675 | ||
30676 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
30677 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30678 | if (!SWIG_IsOK(res1)) { | |
30679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30680 | } | |
30681 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30682 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30683 | if (!SWIG_IsOK(ecode2)) { | |
30684 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'"); | |
30685 | } | |
30686 | arg2 = static_cast< long >(val2); | |
30687 | { | |
30688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30689 | (arg1)->RefreshItem(arg2); | |
30690 | wxPyEndAllowThreads(__tstate); | |
30691 | if (PyErr_Occurred()) SWIG_fail; | |
30692 | } | |
30693 | resultobj = SWIG_Py_Void(); | |
30694 | return resultobj; | |
30695 | fail: | |
30696 | return NULL; | |
30697 | } | |
30698 | ||
30699 | ||
30700 | SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30701 | PyObject *resultobj = 0; | |
30702 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30703 | long arg2 ; | |
30704 | long arg3 ; | |
30705 | void *argp1 = 0 ; | |
30706 | int res1 = 0 ; | |
30707 | long val2 ; | |
30708 | int ecode2 = 0 ; | |
30709 | long val3 ; | |
30710 | int ecode3 = 0 ; | |
30711 | PyObject * obj0 = 0 ; | |
30712 | PyObject * obj1 = 0 ; | |
30713 | PyObject * obj2 = 0 ; | |
30714 | char * kwnames[] = { | |
30715 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
30716 | }; | |
30717 | ||
30718 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30719 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30720 | if (!SWIG_IsOK(res1)) { | |
30721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30722 | } | |
30723 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30724 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30725 | if (!SWIG_IsOK(ecode2)) { | |
30726 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'"); | |
30727 | } | |
30728 | arg2 = static_cast< long >(val2); | |
30729 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
30730 | if (!SWIG_IsOK(ecode3)) { | |
30731 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'"); | |
30732 | } | |
30733 | arg3 = static_cast< long >(val3); | |
30734 | { | |
30735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30736 | (arg1)->RefreshItems(arg2,arg3); | |
30737 | wxPyEndAllowThreads(__tstate); | |
30738 | if (PyErr_Occurred()) SWIG_fail; | |
30739 | } | |
30740 | resultobj = SWIG_Py_Void(); | |
30741 | return resultobj; | |
30742 | fail: | |
30743 | return NULL; | |
30744 | } | |
30745 | ||
30746 | ||
30747 | SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30748 | PyObject *resultobj = 0; | |
30749 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30750 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
30751 | bool result; | |
30752 | void *argp1 = 0 ; | |
30753 | int res1 = 0 ; | |
30754 | int val2 ; | |
30755 | int ecode2 = 0 ; | |
30756 | PyObject * obj0 = 0 ; | |
30757 | PyObject * obj1 = 0 ; | |
30758 | char * kwnames[] = { | |
30759 | (char *) "self",(char *) "flag", NULL | |
30760 | }; | |
30761 | ||
30762 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail; | |
30763 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30764 | if (!SWIG_IsOK(res1)) { | |
30765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30766 | } | |
30767 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30768 | if (obj1) { | |
30769 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30770 | if (!SWIG_IsOK(ecode2)) { | |
30771 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'"); | |
30772 | } | |
30773 | arg2 = static_cast< int >(val2); | |
30774 | } | |
30775 | { | |
30776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30777 | result = (bool)(arg1)->Arrange(arg2); | |
30778 | wxPyEndAllowThreads(__tstate); | |
30779 | if (PyErr_Occurred()) SWIG_fail; | |
30780 | } | |
30781 | { | |
30782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30783 | } | |
30784 | return resultobj; | |
30785 | fail: | |
30786 | return NULL; | |
30787 | } | |
30788 | ||
30789 | ||
30790 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30791 | PyObject *resultobj = 0; | |
30792 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30793 | long arg2 ; | |
30794 | bool result; | |
30795 | void *argp1 = 0 ; | |
30796 | int res1 = 0 ; | |
30797 | long val2 ; | |
30798 | int ecode2 = 0 ; | |
30799 | PyObject * obj0 = 0 ; | |
30800 | PyObject * obj1 = 0 ; | |
30801 | char * kwnames[] = { | |
30802 | (char *) "self",(char *) "item", NULL | |
30803 | }; | |
30804 | ||
30805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
30806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30807 | if (!SWIG_IsOK(res1)) { | |
30808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30809 | } | |
30810 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30811 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30812 | if (!SWIG_IsOK(ecode2)) { | |
30813 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'"); | |
30814 | } | |
30815 | arg2 = static_cast< long >(val2); | |
30816 | { | |
30817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30818 | result = (bool)(arg1)->DeleteItem(arg2); | |
30819 | wxPyEndAllowThreads(__tstate); | |
30820 | if (PyErr_Occurred()) SWIG_fail; | |
30821 | } | |
30822 | { | |
30823 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30824 | } | |
30825 | return resultobj; | |
30826 | fail: | |
30827 | return NULL; | |
7e08d4ef RD |
30828 | } |
30829 | ||
30830 | ||
0085ce49 RD |
30831 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30832 | PyObject *resultobj = 0; | |
30833 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30834 | bool result; | |
30835 | void *argp1 = 0 ; | |
30836 | int res1 = 0 ; | |
30837 | PyObject *swig_obj[1] ; | |
30838 | ||
30839 | if (!args) SWIG_fail; | |
30840 | swig_obj[0] = args; | |
30841 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30842 | if (!SWIG_IsOK(res1)) { | |
30843 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30844 | } | |
30845 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30846 | { | |
30847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30848 | result = (bool)(arg1)->DeleteAllItems(); | |
30849 | wxPyEndAllowThreads(__tstate); | |
30850 | if (PyErr_Occurred()) SWIG_fail; | |
30851 | } | |
30852 | { | |
30853 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30854 | } | |
30855 | return resultobj; | |
30856 | fail: | |
30857 | return NULL; | |
30858 | } | |
30859 | ||
30860 | ||
30861 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30862 | PyObject *resultobj = 0; | |
30863 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30864 | int arg2 ; | |
30865 | bool result; | |
30866 | void *argp1 = 0 ; | |
30867 | int res1 = 0 ; | |
30868 | int val2 ; | |
30869 | int ecode2 = 0 ; | |
30870 | PyObject * obj0 = 0 ; | |
30871 | PyObject * obj1 = 0 ; | |
30872 | char * kwnames[] = { | |
30873 | (char *) "self",(char *) "col", NULL | |
30874 | }; | |
30875 | ||
30876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail; | |
30877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30878 | if (!SWIG_IsOK(res1)) { | |
30879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30880 | } | |
30881 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30882 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30883 | if (!SWIG_IsOK(ecode2)) { | |
30884 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'"); | |
30885 | } | |
30886 | arg2 = static_cast< int >(val2); | |
30887 | { | |
30888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30889 | result = (bool)(arg1)->DeleteColumn(arg2); | |
30890 | wxPyEndAllowThreads(__tstate); | |
30891 | if (PyErr_Occurred()) SWIG_fail; | |
30892 | } | |
30893 | { | |
30894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30895 | } | |
30896 | return resultobj; | |
30897 | fail: | |
30898 | return NULL; | |
7e08d4ef RD |
30899 | } |
30900 | ||
30901 | ||
0085ce49 RD |
30902 | SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30903 | PyObject *resultobj = 0; | |
30904 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30905 | bool result; | |
30906 | void *argp1 = 0 ; | |
30907 | int res1 = 0 ; | |
30908 | PyObject *swig_obj[1] ; | |
30909 | ||
30910 | if (!args) SWIG_fail; | |
30911 | swig_obj[0] = args; | |
30912 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30913 | if (!SWIG_IsOK(res1)) { | |
30914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30915 | } | |
30916 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30917 | { | |
30918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30919 | result = (bool)(arg1)->DeleteAllColumns(); | |
30920 | wxPyEndAllowThreads(__tstate); | |
30921 | if (PyErr_Occurred()) SWIG_fail; | |
30922 | } | |
30923 | { | |
30924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30925 | } | |
30926 | return resultobj; | |
30927 | fail: | |
30928 | return NULL; | |
7e08d4ef RD |
30929 | } |
30930 | ||
30931 | ||
0085ce49 RD |
30932 | SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30933 | PyObject *resultobj = 0; | |
30934 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30935 | void *argp1 = 0 ; | |
30936 | int res1 = 0 ; | |
30937 | PyObject *swig_obj[1] ; | |
30938 | ||
30939 | if (!args) SWIG_fail; | |
30940 | swig_obj[0] = args; | |
30941 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30942 | if (!SWIG_IsOK(res1)) { | |
30943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30944 | } | |
30945 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30946 | { | |
30947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30948 | (arg1)->ClearAll(); | |
30949 | wxPyEndAllowThreads(__tstate); | |
30950 | if (PyErr_Occurred()) SWIG_fail; | |
30951 | } | |
30952 | resultobj = SWIG_Py_Void(); | |
30953 | return resultobj; | |
30954 | fail: | |
30955 | return NULL; | |
30956 | } | |
30957 | ||
30958 | ||
30959 | SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30960 | PyObject *resultobj = 0; | |
30961 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
30962 | long arg2 ; | |
30963 | void *argp1 = 0 ; | |
30964 | int res1 = 0 ; | |
30965 | long val2 ; | |
30966 | int ecode2 = 0 ; | |
30967 | PyObject * obj0 = 0 ; | |
30968 | PyObject * obj1 = 0 ; | |
30969 | char * kwnames[] = { | |
30970 | (char *) "self",(char *) "item", NULL | |
30971 | }; | |
30972 | ||
30973 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
30974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
30975 | if (!SWIG_IsOK(res1)) { | |
30976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
30977 | } | |
30978 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
30979 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30980 | if (!SWIG_IsOK(ecode2)) { | |
30981 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'"); | |
30982 | } | |
30983 | arg2 = static_cast< long >(val2); | |
30984 | { | |
30985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30986 | (arg1)->EditLabel(arg2); | |
30987 | wxPyEndAllowThreads(__tstate); | |
30988 | if (PyErr_Occurred()) SWIG_fail; | |
30989 | } | |
30990 | resultobj = SWIG_Py_Void(); | |
30991 | return resultobj; | |
30992 | fail: | |
30993 | return NULL; | |
30994 | } | |
30995 | ||
30996 | ||
30997 | SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30998 | PyObject *resultobj = 0; | |
30999 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31000 | long arg2 ; | |
31001 | bool result; | |
31002 | void *argp1 = 0 ; | |
31003 | int res1 = 0 ; | |
31004 | long val2 ; | |
31005 | int ecode2 = 0 ; | |
31006 | PyObject * obj0 = 0 ; | |
31007 | PyObject * obj1 = 0 ; | |
31008 | char * kwnames[] = { | |
31009 | (char *) "self",(char *) "item", NULL | |
31010 | }; | |
31011 | ||
31012 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
31013 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31014 | if (!SWIG_IsOK(res1)) { | |
31015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31016 | } | |
31017 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31018 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31019 | if (!SWIG_IsOK(ecode2)) { | |
31020 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'"); | |
31021 | } | |
31022 | arg2 = static_cast< long >(val2); | |
31023 | { | |
31024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31025 | result = (bool)(arg1)->EnsureVisible(arg2); | |
31026 | wxPyEndAllowThreads(__tstate); | |
31027 | if (PyErr_Occurred()) SWIG_fail; | |
31028 | } | |
31029 | { | |
31030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31031 | } | |
31032 | return resultobj; | |
31033 | fail: | |
31034 | return NULL; | |
31035 | } | |
31036 | ||
31037 | ||
31038 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31039 | PyObject *resultobj = 0; | |
31040 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31041 | long arg2 ; | |
31042 | wxString *arg3 = 0 ; | |
31043 | bool arg4 = (bool) false ; | |
31044 | long result; | |
31045 | void *argp1 = 0 ; | |
31046 | int res1 = 0 ; | |
31047 | long val2 ; | |
31048 | int ecode2 = 0 ; | |
31049 | bool temp3 = false ; | |
31050 | bool val4 ; | |
31051 | int ecode4 = 0 ; | |
31052 | PyObject * obj0 = 0 ; | |
31053 | PyObject * obj1 = 0 ; | |
31054 | PyObject * obj2 = 0 ; | |
31055 | PyObject * obj3 = 0 ; | |
31056 | char * kwnames[] = { | |
31057 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
31058 | }; | |
31059 | ||
31060 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31061 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31062 | if (!SWIG_IsOK(res1)) { | |
31063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31064 | } | |
31065 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31066 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31067 | if (!SWIG_IsOK(ecode2)) { | |
31068 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'"); | |
31069 | } | |
31070 | arg2 = static_cast< long >(val2); | |
31071 | { | |
31072 | arg3 = wxString_in_helper(obj2); | |
31073 | if (arg3 == NULL) SWIG_fail; | |
31074 | temp3 = true; | |
31075 | } | |
31076 | if (obj3) { | |
31077 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
31078 | if (!SWIG_IsOK(ecode4)) { | |
31079 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'"); | |
31080 | } | |
31081 | arg4 = static_cast< bool >(val4); | |
31082 | } | |
31083 | { | |
31084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31085 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
31086 | wxPyEndAllowThreads(__tstate); | |
31087 | if (PyErr_Occurred()) SWIG_fail; | |
31088 | } | |
31089 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31090 | { | |
31091 | if (temp3) | |
31092 | delete arg3; | |
31093 | } | |
31094 | return resultobj; | |
31095 | fail: | |
31096 | { | |
31097 | if (temp3) | |
31098 | delete arg3; | |
31099 | } | |
31100 | return NULL; | |
31101 | } | |
31102 | ||
31103 | ||
31104 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31105 | PyObject *resultobj = 0; | |
31106 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31107 | long arg2 ; | |
31108 | long arg3 ; | |
31109 | long result; | |
31110 | void *argp1 = 0 ; | |
31111 | int res1 = 0 ; | |
31112 | long val2 ; | |
31113 | int ecode2 = 0 ; | |
31114 | long val3 ; | |
31115 | int ecode3 = 0 ; | |
31116 | PyObject * obj0 = 0 ; | |
31117 | PyObject * obj1 = 0 ; | |
31118 | PyObject * obj2 = 0 ; | |
31119 | char * kwnames[] = { | |
31120 | (char *) "self",(char *) "start",(char *) "data", NULL | |
31121 | }; | |
31122 | ||
31123 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31124 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31125 | if (!SWIG_IsOK(res1)) { | |
31126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31127 | } | |
31128 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31129 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31130 | if (!SWIG_IsOK(ecode2)) { | |
31131 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'"); | |
31132 | } | |
31133 | arg2 = static_cast< long >(val2); | |
31134 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
31135 | if (!SWIG_IsOK(ecode3)) { | |
31136 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'"); | |
31137 | } | |
31138 | arg3 = static_cast< long >(val3); | |
31139 | { | |
31140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31141 | result = (long)(arg1)->FindItem(arg2,arg3); | |
31142 | wxPyEndAllowThreads(__tstate); | |
31143 | if (PyErr_Occurred()) SWIG_fail; | |
31144 | } | |
31145 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31146 | return resultobj; | |
31147 | fail: | |
31148 | return NULL; | |
31149 | } | |
31150 | ||
31151 | ||
31152 | SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31153 | PyObject *resultobj = 0; | |
31154 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31155 | long arg2 ; | |
31156 | wxPoint *arg3 = 0 ; | |
31157 | int arg4 ; | |
31158 | long result; | |
31159 | void *argp1 = 0 ; | |
31160 | int res1 = 0 ; | |
31161 | long val2 ; | |
31162 | int ecode2 = 0 ; | |
31163 | wxPoint temp3 ; | |
31164 | int val4 ; | |
31165 | int ecode4 = 0 ; | |
31166 | PyObject * obj0 = 0 ; | |
31167 | PyObject * obj1 = 0 ; | |
31168 | PyObject * obj2 = 0 ; | |
31169 | PyObject * obj3 = 0 ; | |
31170 | char * kwnames[] = { | |
31171 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
31172 | }; | |
31173 | ||
31174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_FindItemAtPos" "', 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_FindItemAtPos" "', expected argument " "2"" of type '" "long""'"); | |
31183 | } | |
31184 | arg2 = static_cast< long >(val2); | |
31185 | { | |
31186 | arg3 = &temp3; | |
31187 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31188 | } | |
31189 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31190 | if (!SWIG_IsOK(ecode4)) { | |
31191 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'"); | |
31192 | } | |
31193 | arg4 = static_cast< int >(val4); | |
31194 | { | |
31195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31196 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
31197 | wxPyEndAllowThreads(__tstate); | |
31198 | if (PyErr_Occurred()) SWIG_fail; | |
31199 | } | |
31200 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31201 | return resultobj; | |
31202 | fail: | |
31203 | return NULL; | |
31204 | } | |
31205 | ||
31206 | ||
31207 | SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31208 | PyObject *resultobj = 0; | |
31209 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31210 | wxPoint *arg2 = 0 ; | |
31211 | int *arg3 = 0 ; | |
31212 | long result; | |
31213 | void *argp1 = 0 ; | |
31214 | int res1 = 0 ; | |
31215 | wxPoint temp2 ; | |
31216 | int temp3 ; | |
31217 | int res3 = SWIG_TMPOBJ ; | |
31218 | PyObject * obj0 = 0 ; | |
31219 | PyObject * obj1 = 0 ; | |
31220 | char * kwnames[] = { | |
31221 | (char *) "self",(char *) "point", NULL | |
31222 | }; | |
31223 | ||
31224 | arg3 = &temp3; | |
31225 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
31226 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31227 | if (!SWIG_IsOK(res1)) { | |
31228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31229 | } | |
31230 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31231 | { | |
31232 | arg2 = &temp2; | |
31233 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31234 | } | |
31235 | { | |
31236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31237 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
31238 | wxPyEndAllowThreads(__tstate); | |
31239 | if (PyErr_Occurred()) SWIG_fail; | |
31240 | } | |
31241 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31242 | if (SWIG_IsTmpObj(res3)) { | |
31243 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
31244 | } else { | |
31245 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31246 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
31247 | } | |
31248 | return resultobj; | |
31249 | fail: | |
31250 | return NULL; | |
31251 | } | |
31252 | ||
31253 | ||
704eda0c RD |
31254 | SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31255 | PyObject *resultobj = 0; | |
31256 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31257 | wxPoint *arg2 = 0 ; | |
31258 | int *arg3 = 0 ; | |
31259 | long *arg4 = (long *) 0 ; | |
31260 | long result; | |
31261 | void *argp1 = 0 ; | |
31262 | int res1 = 0 ; | |
31263 | wxPoint temp2 ; | |
31264 | int temp3 ; | |
31265 | int res3 = SWIG_TMPOBJ ; | |
31266 | long temp4 ; | |
31267 | int res4 = SWIG_TMPOBJ ; | |
31268 | PyObject * obj0 = 0 ; | |
31269 | PyObject * obj1 = 0 ; | |
31270 | char * kwnames[] = { | |
31271 | (char *) "self",(char *) "point", NULL | |
31272 | }; | |
31273 | ||
31274 | arg3 = &temp3; | |
31275 | arg4 = &temp4; | |
31276 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
31277 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31278 | if (!SWIG_IsOK(res1)) { | |
31279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31280 | } | |
31281 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31282 | { | |
31283 | arg2 = &temp2; | |
31284 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31285 | } | |
31286 | { | |
31287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31288 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4); | |
31289 | wxPyEndAllowThreads(__tstate); | |
31290 | if (PyErr_Occurred()) SWIG_fail; | |
31291 | } | |
31292 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31293 | if (SWIG_IsTmpObj(res3)) { | |
31294 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
31295 | } else { | |
31296 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31297 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
31298 | } | |
31299 | if (SWIG_IsTmpObj(res4)) { | |
31300 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
31301 | } else { | |
31302 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31303 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
31304 | } | |
31305 | return resultobj; | |
31306 | fail: | |
31307 | return NULL; | |
31308 | } | |
31309 | ||
31310 | ||
0085ce49 RD |
31311 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31312 | PyObject *resultobj = 0; | |
31313 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31314 | wxListItem *arg2 = 0 ; | |
31315 | long result; | |
31316 | void *argp1 = 0 ; | |
31317 | int res1 = 0 ; | |
31318 | void *argp2 = 0 ; | |
31319 | int res2 = 0 ; | |
31320 | PyObject * obj0 = 0 ; | |
31321 | PyObject * obj1 = 0 ; | |
31322 | char * kwnames[] = { | |
31323 | (char *) "self",(char *) "info", NULL | |
31324 | }; | |
31325 | ||
31326 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
31327 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31328 | if (!SWIG_IsOK(res1)) { | |
31329 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31330 | } | |
31331 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31332 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 ); | |
31333 | if (!SWIG_IsOK(res2)) { | |
31334 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
31335 | } | |
31336 | if (!argp2) { | |
31337 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'"); | |
31338 | } | |
31339 | arg2 = reinterpret_cast< wxListItem * >(argp2); | |
31340 | { | |
31341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31342 | result = (long)(arg1)->InsertItem(*arg2); | |
31343 | wxPyEndAllowThreads(__tstate); | |
31344 | if (PyErr_Occurred()) SWIG_fail; | |
31345 | } | |
31346 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31347 | return resultobj; | |
31348 | fail: | |
31349 | return NULL; | |
31350 | } | |
31351 | ||
31352 | ||
31353 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31354 | PyObject *resultobj = 0; | |
31355 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31356 | long arg2 ; | |
31357 | wxString *arg3 = 0 ; | |
31358 | int arg4 = (int) -1 ; | |
31359 | long result; | |
31360 | void *argp1 = 0 ; | |
31361 | int res1 = 0 ; | |
31362 | long val2 ; | |
31363 | int ecode2 = 0 ; | |
31364 | bool temp3 = false ; | |
31365 | int val4 ; | |
31366 | int ecode4 = 0 ; | |
31367 | PyObject * obj0 = 0 ; | |
31368 | PyObject * obj1 = 0 ; | |
31369 | PyObject * obj2 = 0 ; | |
31370 | PyObject * obj3 = 0 ; | |
31371 | char * kwnames[] = { | |
31372 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
31373 | }; | |
31374 | ||
31375 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31376 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31377 | if (!SWIG_IsOK(res1)) { | |
31378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31379 | } | |
31380 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31381 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31382 | if (!SWIG_IsOK(ecode2)) { | |
31383 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'"); | |
31384 | } | |
31385 | arg2 = static_cast< long >(val2); | |
31386 | { | |
31387 | arg3 = wxString_in_helper(obj2); | |
31388 | if (arg3 == NULL) SWIG_fail; | |
31389 | temp3 = true; | |
31390 | } | |
31391 | if (obj3) { | |
31392 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31393 | if (!SWIG_IsOK(ecode4)) { | |
31394 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'"); | |
31395 | } | |
31396 | arg4 = static_cast< int >(val4); | |
31397 | } | |
31398 | { | |
31399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31400 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
31401 | wxPyEndAllowThreads(__tstate); | |
31402 | if (PyErr_Occurred()) SWIG_fail; | |
31403 | } | |
31404 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31405 | { | |
31406 | if (temp3) | |
31407 | delete arg3; | |
31408 | } | |
31409 | return resultobj; | |
31410 | fail: | |
31411 | { | |
31412 | if (temp3) | |
31413 | delete arg3; | |
31414 | } | |
31415 | return NULL; | |
31416 | } | |
31417 | ||
31418 | ||
31419 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31420 | PyObject *resultobj = 0; | |
31421 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31422 | long arg2 ; | |
31423 | int arg3 ; | |
31424 | long result; | |
31425 | void *argp1 = 0 ; | |
31426 | int res1 = 0 ; | |
31427 | long val2 ; | |
31428 | int ecode2 = 0 ; | |
31429 | int val3 ; | |
31430 | int ecode3 = 0 ; | |
31431 | PyObject * obj0 = 0 ; | |
31432 | PyObject * obj1 = 0 ; | |
31433 | PyObject * obj2 = 0 ; | |
31434 | char * kwnames[] = { | |
31435 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
31436 | }; | |
31437 | ||
31438 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) 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_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31442 | } | |
31443 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31444 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31445 | if (!SWIG_IsOK(ecode2)) { | |
31446 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'"); | |
31447 | } | |
31448 | arg2 = static_cast< long >(val2); | |
31449 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31450 | if (!SWIG_IsOK(ecode3)) { | |
31451 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'"); | |
31452 | } | |
31453 | arg3 = static_cast< int >(val3); | |
31454 | { | |
31455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31456 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
31457 | wxPyEndAllowThreads(__tstate); | |
31458 | if (PyErr_Occurred()) SWIG_fail; | |
31459 | } | |
31460 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31461 | return resultobj; | |
31462 | fail: | |
31463 | return NULL; | |
31464 | } | |
31465 | ||
31466 | ||
31467 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31468 | PyObject *resultobj = 0; | |
31469 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31470 | long arg2 ; | |
31471 | wxString *arg3 = 0 ; | |
31472 | int arg4 ; | |
31473 | long result; | |
31474 | void *argp1 = 0 ; | |
31475 | int res1 = 0 ; | |
31476 | long val2 ; | |
31477 | int ecode2 = 0 ; | |
31478 | bool temp3 = false ; | |
31479 | int val4 ; | |
31480 | int ecode4 = 0 ; | |
31481 | PyObject * obj0 = 0 ; | |
31482 | PyObject * obj1 = 0 ; | |
31483 | PyObject * obj2 = 0 ; | |
31484 | PyObject * obj3 = 0 ; | |
31485 | char * kwnames[] = { | |
31486 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
31487 | }; | |
31488 | ||
31489 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31490 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31491 | if (!SWIG_IsOK(res1)) { | |
31492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31493 | } | |
31494 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31495 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31496 | if (!SWIG_IsOK(ecode2)) { | |
31497 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'"); | |
31498 | } | |
31499 | arg2 = static_cast< long >(val2); | |
31500 | { | |
31501 | arg3 = wxString_in_helper(obj2); | |
31502 | if (arg3 == NULL) SWIG_fail; | |
31503 | temp3 = true; | |
31504 | } | |
31505 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31506 | if (!SWIG_IsOK(ecode4)) { | |
31507 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'"); | |
31508 | } | |
31509 | arg4 = static_cast< int >(val4); | |
31510 | { | |
31511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31512 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
31513 | wxPyEndAllowThreads(__tstate); | |
31514 | if (PyErr_Occurred()) SWIG_fail; | |
31515 | } | |
31516 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31517 | { | |
31518 | if (temp3) | |
31519 | delete arg3; | |
31520 | } | |
31521 | return resultobj; | |
31522 | fail: | |
31523 | { | |
31524 | if (temp3) | |
31525 | delete arg3; | |
31526 | } | |
31527 | return NULL; | |
31528 | } | |
31529 | ||
31530 | ||
31531 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31532 | PyObject *resultobj = 0; | |
31533 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31534 | long arg2 ; | |
31535 | wxListItem *arg3 = 0 ; | |
31536 | long result; | |
31537 | void *argp1 = 0 ; | |
31538 | int res1 = 0 ; | |
31539 | long val2 ; | |
31540 | int ecode2 = 0 ; | |
31541 | void *argp3 = 0 ; | |
31542 | int res3 = 0 ; | |
31543 | PyObject * obj0 = 0 ; | |
31544 | PyObject * obj1 = 0 ; | |
31545 | PyObject * obj2 = 0 ; | |
31546 | char * kwnames[] = { | |
31547 | (char *) "self",(char *) "col",(char *) "info", NULL | |
31548 | }; | |
31549 | ||
31550 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31551 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31552 | if (!SWIG_IsOK(res1)) { | |
31553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31554 | } | |
31555 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31556 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31557 | if (!SWIG_IsOK(ecode2)) { | |
31558 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'"); | |
31559 | } | |
31560 | arg2 = static_cast< long >(val2); | |
31561 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 ); | |
31562 | if (!SWIG_IsOK(res3)) { | |
31563 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
31564 | } | |
31565 | if (!argp3) { | |
31566 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'"); | |
31567 | } | |
31568 | arg3 = reinterpret_cast< wxListItem * >(argp3); | |
31569 | { | |
31570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31571 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
31572 | wxPyEndAllowThreads(__tstate); | |
31573 | if (PyErr_Occurred()) SWIG_fail; | |
31574 | } | |
31575 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31576 | return resultobj; | |
31577 | fail: | |
31578 | return NULL; | |
31579 | } | |
31580 | ||
31581 | ||
31582 | SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31583 | PyObject *resultobj = 0; | |
31584 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31585 | long arg2 ; | |
31586 | wxString *arg3 = 0 ; | |
31587 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
31588 | int arg5 = (int) -1 ; | |
31589 | long result; | |
31590 | void *argp1 = 0 ; | |
31591 | int res1 = 0 ; | |
31592 | long val2 ; | |
31593 | int ecode2 = 0 ; | |
31594 | bool temp3 = false ; | |
31595 | int val4 ; | |
31596 | int ecode4 = 0 ; | |
31597 | int val5 ; | |
31598 | int ecode5 = 0 ; | |
31599 | PyObject * obj0 = 0 ; | |
31600 | PyObject * obj1 = 0 ; | |
31601 | PyObject * obj2 = 0 ; | |
31602 | PyObject * obj3 = 0 ; | |
31603 | PyObject * obj4 = 0 ; | |
31604 | char * kwnames[] = { | |
31605 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
31606 | }; | |
31607 | ||
31608 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
31609 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31610 | if (!SWIG_IsOK(res1)) { | |
31611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31612 | } | |
31613 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31614 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31615 | if (!SWIG_IsOK(ecode2)) { | |
31616 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'"); | |
31617 | } | |
31618 | arg2 = static_cast< long >(val2); | |
31619 | { | |
31620 | arg3 = wxString_in_helper(obj2); | |
31621 | if (arg3 == NULL) SWIG_fail; | |
31622 | temp3 = true; | |
31623 | } | |
31624 | if (obj3) { | |
31625 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31626 | if (!SWIG_IsOK(ecode4)) { | |
31627 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'"); | |
31628 | } | |
31629 | arg4 = static_cast< int >(val4); | |
31630 | } | |
31631 | if (obj4) { | |
31632 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31633 | if (!SWIG_IsOK(ecode5)) { | |
31634 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'"); | |
31635 | } | |
31636 | arg5 = static_cast< int >(val5); | |
31637 | } | |
31638 | { | |
31639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31640 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
31641 | wxPyEndAllowThreads(__tstate); | |
31642 | if (PyErr_Occurred()) SWIG_fail; | |
31643 | } | |
31644 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
31645 | { | |
31646 | if (temp3) | |
31647 | delete arg3; | |
31648 | } | |
31649 | return resultobj; | |
31650 | fail: | |
31651 | { | |
31652 | if (temp3) | |
31653 | delete arg3; | |
31654 | } | |
31655 | return NULL; | |
31656 | } | |
31657 | ||
31658 | ||
31659 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31660 | PyObject *resultobj = 0; | |
31661 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31662 | long arg2 ; | |
31663 | void *argp1 = 0 ; | |
31664 | int res1 = 0 ; | |
31665 | long val2 ; | |
31666 | int ecode2 = 0 ; | |
31667 | PyObject * obj0 = 0 ; | |
31668 | PyObject * obj1 = 0 ; | |
31669 | char * kwnames[] = { | |
31670 | (char *) "self",(char *) "count", NULL | |
31671 | }; | |
31672 | ||
31673 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
31674 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31675 | if (!SWIG_IsOK(res1)) { | |
31676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31677 | } | |
31678 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31679 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31680 | if (!SWIG_IsOK(ecode2)) { | |
31681 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'"); | |
31682 | } | |
31683 | arg2 = static_cast< long >(val2); | |
31684 | { | |
31685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31686 | (arg1)->SetItemCount(arg2); | |
31687 | wxPyEndAllowThreads(__tstate); | |
31688 | if (PyErr_Occurred()) SWIG_fail; | |
31689 | } | |
31690 | resultobj = SWIG_Py_Void(); | |
31691 | return resultobj; | |
31692 | fail: | |
31693 | return NULL; | |
31694 | } | |
31695 | ||
31696 | ||
31697 | SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31698 | PyObject *resultobj = 0; | |
31699 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31700 | int arg2 ; | |
31701 | int arg3 ; | |
31702 | bool result; | |
31703 | void *argp1 = 0 ; | |
31704 | int res1 = 0 ; | |
31705 | int val2 ; | |
31706 | int ecode2 = 0 ; | |
31707 | int val3 ; | |
31708 | int ecode3 = 0 ; | |
31709 | PyObject * obj0 = 0 ; | |
31710 | PyObject * obj1 = 0 ; | |
31711 | PyObject * obj2 = 0 ; | |
31712 | char * kwnames[] = { | |
31713 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
31714 | }; | |
31715 | ||
31716 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31717 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31718 | if (!SWIG_IsOK(res1)) { | |
31719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31720 | } | |
31721 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31722 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31723 | if (!SWIG_IsOK(ecode2)) { | |
31724 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'"); | |
31725 | } | |
31726 | arg2 = static_cast< int >(val2); | |
31727 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31728 | if (!SWIG_IsOK(ecode3)) { | |
31729 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'"); | |
31730 | } | |
31731 | arg3 = static_cast< int >(val3); | |
31732 | { | |
31733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31734 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
31735 | wxPyEndAllowThreads(__tstate); | |
31736 | if (PyErr_Occurred()) SWIG_fail; | |
31737 | } | |
31738 | { | |
31739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31740 | } | |
31741 | return resultobj; | |
31742 | fail: | |
31743 | return NULL; | |
31744 | } | |
31745 | ||
31746 | ||
31747 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31748 | PyObject *resultobj = 0; | |
31749 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31750 | long arg2 ; | |
31751 | wxColour *arg3 = 0 ; | |
31752 | void *argp1 = 0 ; | |
31753 | int res1 = 0 ; | |
31754 | long val2 ; | |
31755 | int ecode2 = 0 ; | |
31756 | wxColour temp3 ; | |
31757 | PyObject * obj0 = 0 ; | |
31758 | PyObject * obj1 = 0 ; | |
31759 | PyObject * obj2 = 0 ; | |
31760 | char * kwnames[] = { | |
31761 | (char *) "self",(char *) "item",(char *) "col", NULL | |
31762 | }; | |
31763 | ||
31764 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31765 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31766 | if (!SWIG_IsOK(res1)) { | |
31767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31768 | } | |
31769 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31770 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31771 | if (!SWIG_IsOK(ecode2)) { | |
31772 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'"); | |
31773 | } | |
31774 | arg2 = static_cast< long >(val2); | |
31775 | { | |
31776 | arg3 = &temp3; | |
31777 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31778 | } | |
31779 | { | |
31780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31781 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
31782 | wxPyEndAllowThreads(__tstate); | |
31783 | if (PyErr_Occurred()) SWIG_fail; | |
31784 | } | |
31785 | resultobj = SWIG_Py_Void(); | |
31786 | return resultobj; | |
31787 | fail: | |
31788 | return NULL; | |
31789 | } | |
31790 | ||
31791 | ||
31792 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31793 | PyObject *resultobj = 0; | |
31794 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31795 | long arg2 ; | |
31796 | wxColour result; | |
31797 | void *argp1 = 0 ; | |
31798 | int res1 = 0 ; | |
31799 | long val2 ; | |
31800 | int ecode2 = 0 ; | |
31801 | PyObject * obj0 = 0 ; | |
31802 | PyObject * obj1 = 0 ; | |
31803 | char * kwnames[] = { | |
31804 | (char *) "self",(char *) "item", NULL | |
31805 | }; | |
31806 | ||
31807 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
31808 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31809 | if (!SWIG_IsOK(res1)) { | |
31810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
31811 | } | |
31812 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31813 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31814 | if (!SWIG_IsOK(ecode2)) { | |
31815 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'"); | |
31816 | } | |
31817 | arg2 = static_cast< long >(val2); | |
31818 | { | |
31819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31820 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
31821 | wxPyEndAllowThreads(__tstate); | |
31822 | if (PyErr_Occurred()) SWIG_fail; | |
31823 | } | |
31824 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
31825 | return resultobj; | |
31826 | fail: | |
31827 | return NULL; | |
31828 | } | |
31829 | ||
31830 | ||
31831 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31832 | PyObject *resultobj = 0; | |
31833 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31834 | long arg2 ; | |
31835 | wxColour *arg3 = 0 ; | |
31836 | void *argp1 = 0 ; | |
31837 | int res1 = 0 ; | |
31838 | long val2 ; | |
31839 | int ecode2 = 0 ; | |
31840 | wxColour temp3 ; | |
31841 | PyObject * obj0 = 0 ; | |
31842 | PyObject * obj1 = 0 ; | |
31843 | PyObject * obj2 = 0 ; | |
31844 | char * kwnames[] = { | |
31845 | (char *) "self",(char *) "item",(char *) "col", NULL | |
31846 | }; | |
31847 | ||
31848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31849 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31850 | if (!SWIG_IsOK(res1)) { | |
31851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31852 | } | |
31853 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31854 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31855 | if (!SWIG_IsOK(ecode2)) { | |
31856 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'"); | |
31857 | } | |
31858 | arg2 = static_cast< long >(val2); | |
31859 | { | |
31860 | arg3 = &temp3; | |
31861 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31862 | } | |
31863 | { | |
31864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31865 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
31866 | wxPyEndAllowThreads(__tstate); | |
31867 | if (PyErr_Occurred()) SWIG_fail; | |
31868 | } | |
31869 | resultobj = SWIG_Py_Void(); | |
31870 | return resultobj; | |
31871 | fail: | |
31872 | return NULL; | |
31873 | } | |
31874 | ||
31875 | ||
31876 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31877 | PyObject *resultobj = 0; | |
31878 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31879 | long arg2 ; | |
31880 | wxColour result; | |
31881 | void *argp1 = 0 ; | |
31882 | int res1 = 0 ; | |
31883 | long val2 ; | |
31884 | int ecode2 = 0 ; | |
31885 | PyObject * obj0 = 0 ; | |
31886 | PyObject * obj1 = 0 ; | |
31887 | char * kwnames[] = { | |
31888 | (char *) "self",(char *) "item", NULL | |
31889 | }; | |
31890 | ||
31891 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
31892 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31893 | if (!SWIG_IsOK(res1)) { | |
31894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
31895 | } | |
31896 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31897 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31898 | if (!SWIG_IsOK(ecode2)) { | |
31899 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'"); | |
31900 | } | |
31901 | arg2 = static_cast< long >(val2); | |
31902 | { | |
31903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31904 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
31905 | wxPyEndAllowThreads(__tstate); | |
31906 | if (PyErr_Occurred()) SWIG_fail; | |
31907 | } | |
31908 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
31909 | return resultobj; | |
31910 | fail: | |
31911 | return NULL; | |
31912 | } | |
31913 | ||
31914 | ||
31915 | SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31916 | PyObject *resultobj = 0; | |
31917 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31918 | long arg2 ; | |
31919 | wxFont *arg3 = 0 ; | |
31920 | void *argp1 = 0 ; | |
31921 | int res1 = 0 ; | |
31922 | long val2 ; | |
31923 | int ecode2 = 0 ; | |
31924 | void *argp3 = 0 ; | |
31925 | int res3 = 0 ; | |
31926 | PyObject * obj0 = 0 ; | |
31927 | PyObject * obj1 = 0 ; | |
31928 | PyObject * obj2 = 0 ; | |
31929 | char * kwnames[] = { | |
31930 | (char *) "self",(char *) "item",(char *) "f", NULL | |
31931 | }; | |
31932 | ||
31933 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31934 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31935 | if (!SWIG_IsOK(res1)) { | |
31936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
31937 | } | |
31938 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31939 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31940 | if (!SWIG_IsOK(ecode2)) { | |
31941 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'"); | |
31942 | } | |
31943 | arg2 = static_cast< long >(val2); | |
31944 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
31945 | if (!SWIG_IsOK(res3)) { | |
31946 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
31947 | } | |
31948 | if (!argp3) { | |
31949 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
31950 | } | |
31951 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
31952 | { | |
31953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31954 | (arg1)->SetItemFont(arg2,(wxFont const &)*arg3); | |
31955 | wxPyEndAllowThreads(__tstate); | |
31956 | if (PyErr_Occurred()) SWIG_fail; | |
31957 | } | |
31958 | resultobj = SWIG_Py_Void(); | |
31959 | return resultobj; | |
31960 | fail: | |
31961 | return NULL; | |
31962 | } | |
31963 | ||
31964 | ||
31965 | SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31966 | PyObject *resultobj = 0; | |
31967 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
31968 | long arg2 ; | |
31969 | wxFont result; | |
31970 | void *argp1 = 0 ; | |
31971 | int res1 = 0 ; | |
31972 | long val2 ; | |
31973 | int ecode2 = 0 ; | |
31974 | PyObject * obj0 = 0 ; | |
31975 | PyObject * obj1 = 0 ; | |
31976 | char * kwnames[] = { | |
31977 | (char *) "self",(char *) "item", NULL | |
31978 | }; | |
31979 | ||
31980 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
31981 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
31982 | if (!SWIG_IsOK(res1)) { | |
31983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'"); | |
31984 | } | |
31985 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
31986 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31987 | if (!SWIG_IsOK(ecode2)) { | |
31988 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'"); | |
31989 | } | |
31990 | arg2 = static_cast< long >(val2); | |
31991 | { | |
31992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31993 | result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2); | |
31994 | wxPyEndAllowThreads(__tstate); | |
31995 | if (PyErr_Occurred()) SWIG_fail; | |
31996 | } | |
31997 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
31998 | return resultobj; | |
31999 | fail: | |
32000 | return NULL; | |
32001 | } | |
32002 | ||
32003 | ||
32004 | SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32005 | PyObject *resultobj = 0; | |
32006 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
32007 | PyObject *arg2 = (PyObject *) 0 ; | |
32008 | bool result; | |
32009 | void *argp1 = 0 ; | |
32010 | int res1 = 0 ; | |
32011 | PyObject * obj0 = 0 ; | |
32012 | PyObject * obj1 = 0 ; | |
32013 | char * kwnames[] = { | |
32014 | (char *) "self",(char *) "func", NULL | |
32015 | }; | |
32016 | ||
32017 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail; | |
32018 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
32019 | if (!SWIG_IsOK(res1)) { | |
32020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
32021 | } | |
32022 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
32023 | arg2 = obj1; | |
32024 | { | |
32025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32026 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
32027 | wxPyEndAllowThreads(__tstate); | |
32028 | if (PyErr_Occurred()) SWIG_fail; | |
32029 | } | |
32030 | { | |
32031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32032 | } | |
32033 | return resultobj; | |
32034 | fail: | |
32035 | return NULL; | |
7e08d4ef RD |
32036 | } |
32037 | ||
32038 | ||
0085ce49 RD |
32039 | SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32040 | PyObject *resultobj = 0; | |
32041 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
32042 | wxWindow *result = 0 ; | |
32043 | void *argp1 = 0 ; | |
32044 | int res1 = 0 ; | |
32045 | PyObject *swig_obj[1] ; | |
32046 | ||
32047 | if (!args) SWIG_fail; | |
32048 | swig_obj[0] = args; | |
32049 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 ); | |
32050 | if (!SWIG_IsOK(res1)) { | |
32051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'"); | |
32052 | } | |
32053 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
32054 | { | |
32055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32056 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
32057 | wxPyEndAllowThreads(__tstate); | |
32058 | if (PyErr_Occurred()) SWIG_fail; | |
32059 | } | |
32060 | { | |
32061 | resultobj = wxPyMake_wxObject(result, 0); | |
32062 | } | |
32063 | return resultobj; | |
32064 | fail: | |
32065 | return NULL; | |
32066 | } | |
32067 | ||
32068 | ||
32069 | SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32070 | PyObject *resultobj = 0; | |
32071 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
32072 | SwigValueWrapper<wxVisualAttributes > result; | |
32073 | int val1 ; | |
32074 | int ecode1 = 0 ; | |
32075 | PyObject * obj0 = 0 ; | |
32076 | char * kwnames[] = { | |
32077 | (char *) "variant", NULL | |
32078 | }; | |
32079 | ||
32080 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
32081 | if (obj0) { | |
32082 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32083 | if (!SWIG_IsOK(ecode1)) { | |
32084 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
32085 | } | |
32086 | arg1 = static_cast< wxWindowVariant >(val1); | |
32087 | } | |
32088 | { | |
32089 | if (!wxPyCheckForApp()) SWIG_fail; | |
32090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32091 | result = wxPyListCtrl::GetClassDefaultAttributes(arg1); | |
32092 | wxPyEndAllowThreads(__tstate); | |
32093 | if (PyErr_Occurred()) SWIG_fail; | |
32094 | } | |
32095 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
32096 | return resultobj; | |
32097 | fail: | |
32098 | return NULL; | |
32099 | } | |
32100 | ||
32101 | ||
32102 | SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32103 | PyObject *obj; | |
32104 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32105 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj)); | |
32106 | return SWIG_Py_Void(); | |
32107 | } | |
32108 | ||
32109 | SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32110 | return SWIG_Python_InitShadowInstance(args); | |
32111 | } | |
32112 | ||
32113 | SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32114 | PyObject *resultobj = 0; | |
32115 | wxWindow *arg1 = (wxWindow *) 0 ; | |
32116 | int arg2 = (int) -1 ; | |
32117 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
32118 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32119 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32120 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32121 | long arg5 = (long) wxLC_REPORT ; | |
32122 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32123 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32124 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
32125 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32126 | wxListView *result = 0 ; | |
32127 | void *argp1 = 0 ; | |
32128 | int res1 = 0 ; | |
32129 | int val2 ; | |
32130 | int ecode2 = 0 ; | |
32131 | wxPoint temp3 ; | |
32132 | wxSize temp4 ; | |
32133 | long val5 ; | |
32134 | int ecode5 = 0 ; | |
32135 | void *argp6 = 0 ; | |
32136 | int res6 = 0 ; | |
32137 | bool temp7 = false ; | |
32138 | PyObject * obj0 = 0 ; | |
32139 | PyObject * obj1 = 0 ; | |
32140 | PyObject * obj2 = 0 ; | |
32141 | PyObject * obj3 = 0 ; | |
32142 | PyObject * obj4 = 0 ; | |
32143 | PyObject * obj5 = 0 ; | |
32144 | PyObject * obj6 = 0 ; | |
32145 | char * kwnames[] = { | |
32146 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32147 | }; | |
32148 | ||
32149 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
32150 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
32151 | if (!SWIG_IsOK(res1)) { | |
32152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
32153 | } | |
32154 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
32155 | if (obj1) { | |
32156 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32157 | if (!SWIG_IsOK(ecode2)) { | |
32158 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'"); | |
32159 | } | |
32160 | arg2 = static_cast< int >(val2); | |
32161 | } | |
32162 | if (obj2) { | |
7e08d4ef | 32163 | { |
0085ce49 RD |
32164 | arg3 = &temp3; |
32165 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7e08d4ef | 32166 | } |
0085ce49 RD |
32167 | } |
32168 | if (obj3) { | |
7e08d4ef | 32169 | { |
0085ce49 RD |
32170 | arg4 = &temp4; |
32171 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7e08d4ef | 32172 | } |
0085ce49 RD |
32173 | } |
32174 | if (obj4) { | |
32175 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
32176 | if (!SWIG_IsOK(ecode5)) { | |
32177 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'"); | |
32178 | } | |
32179 | arg5 = static_cast< long >(val5); | |
32180 | } | |
32181 | if (obj5) { | |
32182 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
32183 | if (!SWIG_IsOK(res6)) { | |
32184 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 32185 | } |
0085ce49 RD |
32186 | if (!argp6) { |
32187 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 32188 | } |
0085ce49 RD |
32189 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
32190 | } | |
32191 | if (obj6) { | |
7e08d4ef | 32192 | { |
0085ce49 RD |
32193 | arg7 = wxString_in_helper(obj6); |
32194 | if (arg7 == NULL) SWIG_fail; | |
32195 | temp7 = true; | |
7e08d4ef | 32196 | } |
0085ce49 RD |
32197 | } |
32198 | { | |
32199 | if (!wxPyCheckForApp()) SWIG_fail; | |
32200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32201 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
32202 | wxPyEndAllowThreads(__tstate); | |
32203 | if (PyErr_Occurred()) SWIG_fail; | |
32204 | } | |
32205 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 ); | |
32206 | { | |
32207 | if (temp7) | |
32208 | delete arg7; | |
32209 | } | |
32210 | return resultobj; | |
32211 | fail: | |
32212 | { | |
32213 | if (temp7) | |
32214 | delete arg7; | |
32215 | } | |
32216 | return NULL; | |
7e08d4ef RD |
32217 | } |
32218 | ||
32219 | ||
0085ce49 RD |
32220 | SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32221 | PyObject *resultobj = 0; | |
32222 | wxListView *result = 0 ; | |
32223 | ||
32224 | if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail; | |
32225 | { | |
32226 | if (!wxPyCheckForApp()) SWIG_fail; | |
32227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32228 | result = (wxListView *)new wxListView(); | |
32229 | wxPyEndAllowThreads(__tstate); | |
32230 | if (PyErr_Occurred()) SWIG_fail; | |
32231 | } | |
32232 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 ); | |
32233 | return resultobj; | |
32234 | fail: | |
32235 | return NULL; | |
32236 | } | |
32237 | ||
32238 | ||
32239 | SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32240 | PyObject *resultobj = 0; | |
32241 | wxListView *arg1 = (wxListView *) 0 ; | |
32242 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32243 | int arg3 = (int) -1 ; | |
32244 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
32245 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
32246 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
32247 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
32248 | long arg6 = (long) wxLC_REPORT ; | |
32249 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
32250 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
32251 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
32252 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
32253 | bool result; | |
32254 | void *argp1 = 0 ; | |
32255 | int res1 = 0 ; | |
32256 | void *argp2 = 0 ; | |
32257 | int res2 = 0 ; | |
32258 | int val3 ; | |
32259 | int ecode3 = 0 ; | |
32260 | wxPoint temp4 ; | |
32261 | wxSize temp5 ; | |
32262 | long val6 ; | |
32263 | int ecode6 = 0 ; | |
32264 | void *argp7 = 0 ; | |
32265 | int res7 = 0 ; | |
32266 | bool temp8 = false ; | |
32267 | PyObject * obj0 = 0 ; | |
32268 | PyObject * obj1 = 0 ; | |
32269 | PyObject * obj2 = 0 ; | |
32270 | PyObject * obj3 = 0 ; | |
32271 | PyObject * obj4 = 0 ; | |
32272 | PyObject * obj5 = 0 ; | |
32273 | PyObject * obj6 = 0 ; | |
32274 | PyObject * obj7 = 0 ; | |
32275 | char * kwnames[] = { | |
32276 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32277 | }; | |
32278 | ||
32279 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
32280 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32281 | if (!SWIG_IsOK(res1)) { | |
32282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32283 | } | |
32284 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32285 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
32286 | if (!SWIG_IsOK(res2)) { | |
32287 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
32288 | } | |
32289 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
32290 | if (obj2) { | |
32291 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32292 | if (!SWIG_IsOK(ecode3)) { | |
32293 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'"); | |
32294 | } | |
32295 | arg3 = static_cast< int >(val3); | |
32296 | } | |
32297 | if (obj3) { | |
7e08d4ef | 32298 | { |
0085ce49 RD |
32299 | arg4 = &temp4; |
32300 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7e08d4ef | 32301 | } |
0085ce49 RD |
32302 | } |
32303 | if (obj4) { | |
7e08d4ef | 32304 | { |
0085ce49 RD |
32305 | arg5 = &temp5; |
32306 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7e08d4ef | 32307 | } |
0085ce49 RD |
32308 | } |
32309 | if (obj5) { | |
32310 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
32311 | if (!SWIG_IsOK(ecode6)) { | |
32312 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'"); | |
32313 | } | |
32314 | arg6 = static_cast< long >(val6); | |
32315 | } | |
32316 | if (obj6) { | |
32317 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
32318 | if (!SWIG_IsOK(res7)) { | |
32319 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 32320 | } |
0085ce49 RD |
32321 | if (!argp7) { |
32322 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
7e08d4ef | 32323 | } |
0085ce49 RD |
32324 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
32325 | } | |
32326 | if (obj7) { | |
7e08d4ef | 32327 | { |
0085ce49 RD |
32328 | arg8 = wxString_in_helper(obj7); |
32329 | if (arg8 == NULL) SWIG_fail; | |
32330 | temp8 = true; | |
7e08d4ef | 32331 | } |
0085ce49 RD |
32332 | } |
32333 | { | |
32334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32335 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
32336 | wxPyEndAllowThreads(__tstate); | |
32337 | if (PyErr_Occurred()) SWIG_fail; | |
32338 | } | |
32339 | { | |
32340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32341 | } | |
32342 | { | |
32343 | if (temp8) | |
32344 | delete arg8; | |
32345 | } | |
32346 | return resultobj; | |
32347 | fail: | |
32348 | { | |
32349 | if (temp8) | |
32350 | delete arg8; | |
32351 | } | |
32352 | return NULL; | |
32353 | } | |
32354 | ||
32355 | ||
32356 | SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32357 | PyObject *resultobj = 0; | |
32358 | wxListView *arg1 = (wxListView *) 0 ; | |
32359 | long arg2 ; | |
32360 | bool arg3 = (bool) true ; | |
32361 | void *argp1 = 0 ; | |
32362 | int res1 = 0 ; | |
32363 | long val2 ; | |
32364 | int ecode2 = 0 ; | |
32365 | bool val3 ; | |
32366 | int ecode3 = 0 ; | |
32367 | PyObject * obj0 = 0 ; | |
32368 | PyObject * obj1 = 0 ; | |
32369 | PyObject * obj2 = 0 ; | |
32370 | char * kwnames[] = { | |
32371 | (char *) "self",(char *) "n",(char *) "on", NULL | |
32372 | }; | |
32373 | ||
32374 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32375 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32376 | if (!SWIG_IsOK(res1)) { | |
32377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32378 | } | |
32379 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32380 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32381 | if (!SWIG_IsOK(ecode2)) { | |
32382 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'"); | |
32383 | } | |
32384 | arg2 = static_cast< long >(val2); | |
32385 | if (obj2) { | |
32386 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
32387 | if (!SWIG_IsOK(ecode3)) { | |
32388 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'"); | |
32389 | } | |
32390 | arg3 = static_cast< bool >(val3); | |
32391 | } | |
32392 | { | |
32393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32394 | (arg1)->Select(arg2,arg3); | |
32395 | wxPyEndAllowThreads(__tstate); | |
32396 | if (PyErr_Occurred()) SWIG_fail; | |
32397 | } | |
32398 | resultobj = SWIG_Py_Void(); | |
32399 | return resultobj; | |
32400 | fail: | |
32401 | return NULL; | |
32402 | } | |
32403 | ||
32404 | ||
32405 | SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32406 | PyObject *resultobj = 0; | |
32407 | wxListView *arg1 = (wxListView *) 0 ; | |
32408 | long arg2 ; | |
32409 | void *argp1 = 0 ; | |
32410 | int res1 = 0 ; | |
32411 | long val2 ; | |
32412 | int ecode2 = 0 ; | |
32413 | PyObject * obj0 = 0 ; | |
32414 | PyObject * obj1 = 0 ; | |
32415 | char * kwnames[] = { | |
32416 | (char *) "self",(char *) "index", NULL | |
32417 | }; | |
32418 | ||
32419 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail; | |
32420 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32421 | if (!SWIG_IsOK(res1)) { | |
32422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32423 | } | |
32424 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32425 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32426 | if (!SWIG_IsOK(ecode2)) { | |
32427 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'"); | |
32428 | } | |
32429 | arg2 = static_cast< long >(val2); | |
32430 | { | |
32431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32432 | (arg1)->Focus(arg2); | |
32433 | wxPyEndAllowThreads(__tstate); | |
32434 | if (PyErr_Occurred()) SWIG_fail; | |
32435 | } | |
32436 | resultobj = SWIG_Py_Void(); | |
32437 | return resultobj; | |
32438 | fail: | |
32439 | return NULL; | |
7e08d4ef RD |
32440 | } |
32441 | ||
32442 | ||
0085ce49 RD |
32443 | SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32444 | PyObject *resultobj = 0; | |
32445 | wxListView *arg1 = (wxListView *) 0 ; | |
32446 | long result; | |
32447 | void *argp1 = 0 ; | |
32448 | int res1 = 0 ; | |
32449 | PyObject *swig_obj[1] ; | |
32450 | ||
32451 | if (!args) SWIG_fail; | |
32452 | swig_obj[0] = args; | |
32453 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32454 | if (!SWIG_IsOK(res1)) { | |
32455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
32456 | } | |
32457 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32458 | { | |
32459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32460 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
32461 | wxPyEndAllowThreads(__tstate); | |
32462 | if (PyErr_Occurred()) SWIG_fail; | |
32463 | } | |
32464 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
32465 | return resultobj; | |
32466 | fail: | |
32467 | return NULL; | |
32468 | } | |
32469 | ||
32470 | ||
32471 | SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32472 | PyObject *resultobj = 0; | |
32473 | wxListView *arg1 = (wxListView *) 0 ; | |
32474 | long arg2 ; | |
32475 | long result; | |
32476 | void *argp1 = 0 ; | |
32477 | int res1 = 0 ; | |
32478 | long val2 ; | |
32479 | int ecode2 = 0 ; | |
32480 | PyObject * obj0 = 0 ; | |
32481 | PyObject * obj1 = 0 ; | |
32482 | char * kwnames[] = { | |
32483 | (char *) "self",(char *) "item", NULL | |
32484 | }; | |
32485 | ||
32486 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
32487 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32488 | if (!SWIG_IsOK(res1)) { | |
32489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
32490 | } | |
32491 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32492 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32493 | if (!SWIG_IsOK(ecode2)) { | |
32494 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'"); | |
32495 | } | |
32496 | arg2 = static_cast< long >(val2); | |
32497 | { | |
32498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32499 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
32500 | wxPyEndAllowThreads(__tstate); | |
32501 | if (PyErr_Occurred()) SWIG_fail; | |
32502 | } | |
32503 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
32504 | return resultobj; | |
32505 | fail: | |
32506 | return NULL; | |
7e08d4ef RD |
32507 | } |
32508 | ||
32509 | ||
0085ce49 RD |
32510 | SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32511 | PyObject *resultobj = 0; | |
32512 | wxListView *arg1 = (wxListView *) 0 ; | |
32513 | long result; | |
32514 | void *argp1 = 0 ; | |
32515 | int res1 = 0 ; | |
32516 | PyObject *swig_obj[1] ; | |
32517 | ||
32518 | if (!args) SWIG_fail; | |
32519 | swig_obj[0] = args; | |
32520 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32521 | if (!SWIG_IsOK(res1)) { | |
32522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'"); | |
32523 | } | |
32524 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32525 | { | |
32526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32527 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
32528 | wxPyEndAllowThreads(__tstate); | |
32529 | if (PyErr_Occurred()) SWIG_fail; | |
32530 | } | |
32531 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
32532 | return resultobj; | |
32533 | fail: | |
32534 | return NULL; | |
32535 | } | |
32536 | ||
32537 | ||
32538 | SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32539 | PyObject *resultobj = 0; | |
32540 | wxListView *arg1 = (wxListView *) 0 ; | |
32541 | long arg2 ; | |
32542 | bool result; | |
32543 | void *argp1 = 0 ; | |
32544 | int res1 = 0 ; | |
32545 | long val2 ; | |
32546 | int ecode2 = 0 ; | |
32547 | PyObject * obj0 = 0 ; | |
32548 | PyObject * obj1 = 0 ; | |
32549 | char * kwnames[] = { | |
32550 | (char *) "self",(char *) "index", NULL | |
32551 | }; | |
32552 | ||
32553 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
32554 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32555 | if (!SWIG_IsOK(res1)) { | |
32556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32557 | } | |
32558 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32559 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
32560 | if (!SWIG_IsOK(ecode2)) { | |
32561 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'"); | |
32562 | } | |
32563 | arg2 = static_cast< long >(val2); | |
32564 | { | |
32565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32566 | result = (bool)(arg1)->IsSelected(arg2); | |
32567 | wxPyEndAllowThreads(__tstate); | |
32568 | if (PyErr_Occurred()) SWIG_fail; | |
32569 | } | |
32570 | { | |
32571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32572 | } | |
32573 | return resultobj; | |
32574 | fail: | |
32575 | return NULL; | |
32576 | } | |
32577 | ||
32578 | ||
32579 | SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32580 | PyObject *resultobj = 0; | |
32581 | wxListView *arg1 = (wxListView *) 0 ; | |
32582 | int arg2 ; | |
32583 | int arg3 ; | |
32584 | void *argp1 = 0 ; | |
32585 | int res1 = 0 ; | |
32586 | int val2 ; | |
32587 | int ecode2 = 0 ; | |
32588 | int val3 ; | |
32589 | int ecode3 = 0 ; | |
32590 | PyObject * obj0 = 0 ; | |
32591 | PyObject * obj1 = 0 ; | |
32592 | PyObject * obj2 = 0 ; | |
32593 | char * kwnames[] = { | |
32594 | (char *) "self",(char *) "col",(char *) "image", NULL | |
32595 | }; | |
32596 | ||
32597 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32598 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32599 | if (!SWIG_IsOK(res1)) { | |
32600 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32601 | } | |
32602 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32603 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32604 | if (!SWIG_IsOK(ecode2)) { | |
32605 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'"); | |
32606 | } | |
32607 | arg2 = static_cast< int >(val2); | |
32608 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32609 | if (!SWIG_IsOK(ecode3)) { | |
32610 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'"); | |
32611 | } | |
32612 | arg3 = static_cast< int >(val3); | |
32613 | { | |
32614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32615 | (arg1)->SetColumnImage(arg2,arg3); | |
32616 | wxPyEndAllowThreads(__tstate); | |
32617 | if (PyErr_Occurred()) SWIG_fail; | |
32618 | } | |
32619 | resultobj = SWIG_Py_Void(); | |
32620 | return resultobj; | |
32621 | fail: | |
32622 | return NULL; | |
32623 | } | |
32624 | ||
32625 | ||
32626 | SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32627 | PyObject *resultobj = 0; | |
32628 | wxListView *arg1 = (wxListView *) 0 ; | |
32629 | int arg2 ; | |
32630 | void *argp1 = 0 ; | |
32631 | int res1 = 0 ; | |
32632 | int val2 ; | |
32633 | int ecode2 = 0 ; | |
32634 | PyObject * obj0 = 0 ; | |
32635 | PyObject * obj1 = 0 ; | |
32636 | char * kwnames[] = { | |
32637 | (char *) "self",(char *) "col", NULL | |
32638 | }; | |
32639 | ||
32640 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
32641 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 ); | |
32642 | if (!SWIG_IsOK(res1)) { | |
32643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'"); | |
32644 | } | |
32645 | arg1 = reinterpret_cast< wxListView * >(argp1); | |
32646 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32647 | if (!SWIG_IsOK(ecode2)) { | |
32648 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'"); | |
32649 | } | |
32650 | arg2 = static_cast< int >(val2); | |
32651 | { | |
32652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32653 | (arg1)->ClearColumnImage(arg2); | |
32654 | wxPyEndAllowThreads(__tstate); | |
32655 | if (PyErr_Occurred()) SWIG_fail; | |
32656 | } | |
32657 | resultobj = SWIG_Py_Void(); | |
32658 | return resultobj; | |
32659 | fail: | |
32660 | return NULL; | |
7e08d4ef RD |
32661 | } |
32662 | ||
32663 | ||
0085ce49 RD |
32664 | SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32665 | PyObject *obj; | |
32666 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32667 | SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj)); | |
32668 | return SWIG_Py_Void(); | |
7e08d4ef RD |
32669 | } |
32670 | ||
0085ce49 RD |
32671 | SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32672 | return SWIG_Python_InitShadowInstance(args); | |
32673 | } | |
7e08d4ef | 32674 | |
0085ce49 RD |
32675 | SWIGINTERN int TreeCtrlNameStr_set(PyObject *) { |
32676 | SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only."); | |
32677 | return 1; | |
7e08d4ef RD |
32678 | } |
32679 | ||
32680 | ||
0085ce49 RD |
32681 | SWIGINTERN PyObject *TreeCtrlNameStr_get(void) { |
32682 | PyObject *pyobj = 0; | |
32683 | ||
32684 | { | |
32685 | #if wxUSE_UNICODE | |
32686 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
32687 | #else | |
32688 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
32689 | #endif | |
32690 | } | |
32691 | return pyobj; | |
7e08d4ef RD |
32692 | } |
32693 | ||
32694 | ||
0085ce49 RD |
32695 | SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32696 | PyObject *resultobj = 0; | |
32697 | wxTreeItemId *result = 0 ; | |
32698 | ||
32699 | if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail; | |
32700 | { | |
32701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32702 | result = (wxTreeItemId *)new wxTreeItemId(); | |
32703 | wxPyEndAllowThreads(__tstate); | |
32704 | if (PyErr_Occurred()) SWIG_fail; | |
32705 | } | |
32706 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 ); | |
32707 | return resultobj; | |
32708 | fail: | |
32709 | return NULL; | |
d14a1e28 RD |
32710 | } |
32711 | ||
32712 | ||
0085ce49 RD |
32713 | SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32714 | PyObject *resultobj = 0; | |
32715 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32716 | void *argp1 = 0 ; | |
32717 | int res1 = 0 ; | |
32718 | PyObject *swig_obj[1] ; | |
32719 | ||
32720 | if (!args) SWIG_fail; | |
32721 | swig_obj[0] = args; | |
32722 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 ); | |
32723 | if (!SWIG_IsOK(res1)) { | |
32724 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32725 | } | |
32726 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32727 | { | |
32728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32729 | delete arg1; | |
7e08d4ef | 32730 | |
0085ce49 RD |
32731 | wxPyEndAllowThreads(__tstate); |
32732 | if (PyErr_Occurred()) SWIG_fail; | |
32733 | } | |
32734 | resultobj = SWIG_Py_Void(); | |
32735 | return resultobj; | |
32736 | fail: | |
32737 | return NULL; | |
7e08d4ef RD |
32738 | } |
32739 | ||
32740 | ||
0085ce49 RD |
32741 | SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32742 | PyObject *resultobj = 0; | |
32743 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32744 | bool result; | |
32745 | void *argp1 = 0 ; | |
32746 | int res1 = 0 ; | |
32747 | PyObject *swig_obj[1] ; | |
32748 | ||
32749 | if (!args) SWIG_fail; | |
32750 | swig_obj[0] = args; | |
32751 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32752 | if (!SWIG_IsOK(res1)) { | |
32753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'"); | |
32754 | } | |
32755 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32756 | { | |
32757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32758 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
32759 | wxPyEndAllowThreads(__tstate); | |
32760 | if (PyErr_Occurred()) SWIG_fail; | |
32761 | } | |
32762 | { | |
32763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32764 | } | |
32765 | return resultobj; | |
32766 | fail: | |
32767 | return NULL; | |
32768 | } | |
32769 | ||
32770 | ||
32771 | SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32772 | PyObject *resultobj = 0; | |
32773 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32774 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
32775 | bool result; | |
32776 | void *argp1 = 0 ; | |
32777 | int res1 = 0 ; | |
32778 | void *argp2 = 0 ; | |
32779 | int res2 = 0 ; | |
32780 | PyObject * obj0 = 0 ; | |
32781 | PyObject * obj1 = 0 ; | |
32782 | char * kwnames[] = { | |
32783 | (char *) "self",(char *) "other", NULL | |
32784 | }; | |
32785 | ||
32786 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
32787 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32788 | if (!SWIG_IsOK(res1)) { | |
32789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32790 | } | |
32791 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32792 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32793 | if (!SWIG_IsOK(res2)) { | |
32794 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'"); | |
32795 | } | |
32796 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32797 | { | |
32798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32799 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); | |
32800 | wxPyEndAllowThreads(__tstate); | |
32801 | if (PyErr_Occurred()) SWIG_fail; | |
32802 | } | |
32803 | { | |
32804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32805 | } | |
32806 | return resultobj; | |
32807 | fail: | |
32808 | return NULL; | |
32809 | } | |
32810 | ||
32811 | ||
32812 | SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32813 | PyObject *resultobj = 0; | |
32814 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32815 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
32816 | bool result; | |
32817 | void *argp1 = 0 ; | |
32818 | int res1 = 0 ; | |
32819 | void *argp2 = 0 ; | |
32820 | int res2 = 0 ; | |
32821 | PyObject * obj0 = 0 ; | |
32822 | PyObject * obj1 = 0 ; | |
32823 | char * kwnames[] = { | |
32824 | (char *) "self",(char *) "other", NULL | |
32825 | }; | |
32826 | ||
32827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
32828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32829 | if (!SWIG_IsOK(res1)) { | |
32830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32831 | } | |
32832 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32833 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32834 | if (!SWIG_IsOK(res2)) { | |
32835 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'"); | |
32836 | } | |
32837 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
32838 | { | |
32839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32840 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); | |
32841 | wxPyEndAllowThreads(__tstate); | |
32842 | if (PyErr_Occurred()) SWIG_fail; | |
32843 | } | |
32844 | { | |
32845 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32846 | } | |
32847 | return resultobj; | |
32848 | fail: | |
32849 | return NULL; | |
7e08d4ef RD |
32850 | } |
32851 | ||
32852 | ||
0085ce49 RD |
32853 | SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32854 | PyObject *resultobj = 0; | |
32855 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32856 | void *arg2 = (void *) 0 ; | |
32857 | void *argp1 = 0 ; | |
32858 | int res1 = 0 ; | |
32859 | int res2 ; | |
32860 | PyObject *swig_obj[2] ; | |
32861 | ||
32862 | if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail; | |
32863 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32864 | if (!SWIG_IsOK(res1)) { | |
32865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32866 | } | |
32867 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32868 | res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); | |
32869 | if (!SWIG_IsOK(res2)) { | |
32870 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'"); | |
32871 | } | |
32872 | if (arg1) (arg1)->m_pItem = arg2; | |
32873 | ||
32874 | resultobj = SWIG_Py_Void(); | |
32875 | return resultobj; | |
32876 | fail: | |
32877 | return NULL; | |
7e08d4ef RD |
32878 | } |
32879 | ||
32880 | ||
0085ce49 RD |
32881 | SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32882 | PyObject *resultobj = 0; | |
32883 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
32884 | void *result = 0 ; | |
32885 | void *argp1 = 0 ; | |
32886 | int res1 = 0 ; | |
32887 | PyObject *swig_obj[1] ; | |
32888 | ||
32889 | if (!args) SWIG_fail; | |
32890 | swig_obj[0] = args; | |
32891 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
32892 | if (!SWIG_IsOK(res1)) { | |
32893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'"); | |
32894 | } | |
32895 | arg1 = reinterpret_cast< wxTreeItemId * >(argp1); | |
32896 | result = (void *) ((arg1)->m_pItem); | |
32897 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
32898 | return resultobj; | |
32899 | fail: | |
32900 | return NULL; | |
7e08d4ef RD |
32901 | } |
32902 | ||
32903 | ||
0085ce49 RD |
32904 | SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32905 | PyObject *obj; | |
32906 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32907 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj)); | |
32908 | return SWIG_Py_Void(); | |
7e08d4ef RD |
32909 | } |
32910 | ||
0085ce49 RD |
32911 | SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32912 | return SWIG_Python_InitShadowInstance(args); | |
32913 | } | |
7e08d4ef | 32914 | |
0085ce49 RD |
32915 | SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32916 | PyObject *resultobj = 0; | |
32917 | PyObject *arg1 = (PyObject *) NULL ; | |
32918 | wxPyTreeItemData *result = 0 ; | |
32919 | PyObject * obj0 = 0 ; | |
32920 | char * kwnames[] = { | |
32921 | (char *) "obj", NULL | |
32922 | }; | |
32923 | ||
32924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail; | |
32925 | if (obj0) { | |
32926 | arg1 = obj0; | |
32927 | } | |
32928 | { | |
32929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32930 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
32931 | wxPyEndAllowThreads(__tstate); | |
32932 | if (PyErr_Occurred()) SWIG_fail; | |
32933 | } | |
32934 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 ); | |
32935 | return resultobj; | |
32936 | fail: | |
32937 | return NULL; | |
7e08d4ef RD |
32938 | } |
32939 | ||
32940 | ||
0085ce49 RD |
32941 | SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32942 | PyObject *resultobj = 0; | |
32943 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32944 | void *argp1 = 0 ; | |
32945 | int res1 = 0 ; | |
32946 | PyObject *swig_obj[1] ; | |
32947 | ||
32948 | if (!args) SWIG_fail; | |
32949 | swig_obj[0] = args; | |
32950 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
32951 | if (!SWIG_IsOK(res1)) { | |
32952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32953 | } | |
32954 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32955 | { | |
32956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32957 | delete arg1; | |
1fbf26be | 32958 | |
0085ce49 RD |
32959 | wxPyEndAllowThreads(__tstate); |
32960 | if (PyErr_Occurred()) SWIG_fail; | |
32961 | } | |
32962 | resultobj = SWIG_Py_Void(); | |
32963 | return resultobj; | |
32964 | fail: | |
32965 | return NULL; | |
1fbf26be RD |
32966 | } |
32967 | ||
32968 | ||
0085ce49 RD |
32969 | SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32970 | PyObject *resultobj = 0; | |
32971 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
32972 | PyObject *result = 0 ; | |
32973 | void *argp1 = 0 ; | |
32974 | int res1 = 0 ; | |
32975 | PyObject *swig_obj[1] ; | |
32976 | ||
32977 | if (!args) SWIG_fail; | |
32978 | swig_obj[0] = args; | |
32979 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
32980 | if (!SWIG_IsOK(res1)) { | |
32981 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
32982 | } | |
32983 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
32984 | { | |
32985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32986 | result = (PyObject *)(arg1)->GetData(); | |
32987 | wxPyEndAllowThreads(__tstate); | |
32988 | if (PyErr_Occurred()) SWIG_fail; | |
32989 | } | |
32990 | resultobj = result; | |
32991 | return resultobj; | |
32992 | fail: | |
32993 | return NULL; | |
32994 | } | |
32995 | ||
32996 | ||
32997 | SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32998 | PyObject *resultobj = 0; | |
32999 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33000 | PyObject *arg2 = (PyObject *) 0 ; | |
33001 | void *argp1 = 0 ; | |
33002 | int res1 = 0 ; | |
33003 | PyObject * obj0 = 0 ; | |
33004 | PyObject * obj1 = 0 ; | |
33005 | char * kwnames[] = { | |
33006 | (char *) "self",(char *) "obj", NULL | |
33007 | }; | |
33008 | ||
33009 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
33010 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33011 | if (!SWIG_IsOK(res1)) { | |
33012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33013 | } | |
33014 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33015 | arg2 = obj1; | |
33016 | { | |
33017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33018 | (arg1)->SetData(arg2); | |
33019 | wxPyEndAllowThreads(__tstate); | |
33020 | if (PyErr_Occurred()) SWIG_fail; | |
33021 | } | |
33022 | resultobj = SWIG_Py_Void(); | |
33023 | return resultobj; | |
33024 | fail: | |
33025 | return NULL; | |
d14a1e28 RD |
33026 | } |
33027 | ||
33028 | ||
0085ce49 RD |
33029 | SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33030 | PyObject *resultobj = 0; | |
33031 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33032 | wxTreeItemId *result = 0 ; | |
33033 | void *argp1 = 0 ; | |
33034 | int res1 = 0 ; | |
33035 | PyObject *swig_obj[1] ; | |
33036 | ||
33037 | if (!args) SWIG_fail; | |
33038 | swig_obj[0] = args; | |
33039 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33040 | if (!SWIG_IsOK(res1)) { | |
33041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33042 | } | |
33043 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33044 | { | |
33045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2ef75293 | 33046 | { |
0085ce49 RD |
33047 | wxTreeItemId const &_result_ref = (arg1)->GetId(); |
33048 | result = (wxTreeItemId *) &_result_ref; | |
2ef75293 | 33049 | } |
0085ce49 RD |
33050 | wxPyEndAllowThreads(__tstate); |
33051 | if (PyErr_Occurred()) SWIG_fail; | |
33052 | } | |
33053 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 ); | |
33054 | return resultobj; | |
33055 | fail: | |
33056 | return NULL; | |
33057 | } | |
33058 | ||
33059 | ||
33060 | SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33061 | PyObject *resultobj = 0; | |
33062 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33063 | wxTreeItemId *arg2 = 0 ; | |
33064 | void *argp1 = 0 ; | |
33065 | int res1 = 0 ; | |
33066 | void *argp2 = 0 ; | |
33067 | int res2 = 0 ; | |
33068 | PyObject * obj0 = 0 ; | |
33069 | PyObject * obj1 = 0 ; | |
33070 | char * kwnames[] = { | |
33071 | (char *) "self",(char *) "id", NULL | |
33072 | }; | |
33073 | ||
33074 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
33075 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33076 | if (!SWIG_IsOK(res1)) { | |
33077 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33078 | } | |
33079 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33080 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33081 | if (!SWIG_IsOK(res2)) { | |
33082 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33083 | } | |
33084 | if (!argp2) { | |
33085 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33086 | } | |
33087 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33088 | { | |
33089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33090 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
33091 | wxPyEndAllowThreads(__tstate); | |
33092 | if (PyErr_Occurred()) SWIG_fail; | |
33093 | } | |
33094 | resultobj = SWIG_Py_Void(); | |
33095 | return resultobj; | |
33096 | fail: | |
33097 | return NULL; | |
2ef75293 RD |
33098 | } |
33099 | ||
33100 | ||
0085ce49 RD |
33101 | SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33102 | PyObject *resultobj = 0; | |
33103 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
33104 | void *argp1 = 0 ; | |
33105 | int res1 = 0 ; | |
33106 | PyObject *swig_obj[1] ; | |
33107 | ||
33108 | if (!args) SWIG_fail; | |
33109 | swig_obj[0] = args; | |
33110 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
33111 | if (!SWIG_IsOK(res1)) { | |
33112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'"); | |
33113 | } | |
33114 | arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1); | |
33115 | { | |
33116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33117 | wxPyTreeItemData_Destroy(arg1); | |
33118 | wxPyEndAllowThreads(__tstate); | |
33119 | if (PyErr_Occurred()) SWIG_fail; | |
33120 | } | |
33121 | resultobj = SWIG_Py_Void(); | |
33122 | return resultobj; | |
33123 | fail: | |
33124 | return NULL; | |
2ef75293 RD |
33125 | } |
33126 | ||
33127 | ||
0085ce49 RD |
33128 | SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33129 | PyObject *obj; | |
33130 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33131 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj)); | |
33132 | return SWIG_Py_Void(); | |
2ef75293 RD |
33133 | } |
33134 | ||
0085ce49 RD |
33135 | SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33136 | return SWIG_Python_InitShadowInstance(args); | |
33137 | } | |
2ef75293 | 33138 | |
b02396e8 RD |
33139 | SWIGINTERN int NullTreeItemId_set(PyObject *_val) { |
33140 | { | |
33141 | void *argp = 0; | |
33142 | int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33143 | if (!SWIG_IsOK(res)) { | |
33144 | SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'"); | |
33145 | } | |
33146 | if (!argp) { | |
33147 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'"); | |
33148 | } else { | |
33149 | wxTreeItemId * temp; | |
33150 | temp = reinterpret_cast< wxTreeItemId * >(argp); | |
33151 | wxNullTreeItemId = *temp; | |
33152 | if (SWIG_IsNewObj(res)) delete temp; | |
33153 | } | |
33154 | } | |
33155 | return 0; | |
33156 | fail: | |
33157 | return 1; | |
33158 | } | |
33159 | ||
33160 | ||
33161 | SWIGINTERN PyObject *NullTreeItemId_get(void) { | |
33162 | PyObject *pyobj = 0; | |
33163 | ||
33164 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 ); | |
33165 | return pyobj; | |
33166 | } | |
33167 | ||
33168 | ||
33169 | SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
0085ce49 RD |
33170 | PyObject *resultobj = 0; |
33171 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
33172 | int arg2 = (int) 0 ; | |
33173 | wxTreeEvent *result = 0 ; | |
33174 | int val1 ; | |
33175 | int ecode1 = 0 ; | |
33176 | int val2 ; | |
33177 | int ecode2 = 0 ; | |
0085ce49 | 33178 | |
b02396e8 RD |
33179 | if ((nobjs < 0) || (nobjs > 2)) SWIG_fail; |
33180 | if (swig_obj[0]) { | |
33181 | ecode1 = SWIG_AsVal_int(swig_obj[0], &val1); | |
0085ce49 RD |
33182 | if (!SWIG_IsOK(ecode1)) { |
33183 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
33184 | } | |
33185 | arg1 = static_cast< wxEventType >(val1); | |
33186 | } | |
b02396e8 RD |
33187 | if (swig_obj[1]) { |
33188 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
0085ce49 RD |
33189 | if (!SWIG_IsOK(ecode2)) { |
33190 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'"); | |
33191 | } | |
33192 | arg2 = static_cast< int >(val2); | |
33193 | } | |
33194 | { | |
33195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33196 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
33197 | wxPyEndAllowThreads(__tstate); | |
33198 | if (PyErr_Occurred()) SWIG_fail; | |
33199 | } | |
33200 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 ); | |
33201 | return resultobj; | |
33202 | fail: | |
33203 | return NULL; | |
70b7a5fe RD |
33204 | } |
33205 | ||
33206 | ||
b02396e8 RD |
33207 | SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
33208 | PyObject *resultobj = 0; | |
33209 | wxEventType arg1 ; | |
33210 | wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ; | |
33211 | wxTreeItemId &arg3_defvalue = wxNullTreeItemId ; | |
33212 | wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ; | |
33213 | wxTreeEvent *result = 0 ; | |
33214 | int val1 ; | |
33215 | int ecode1 = 0 ; | |
33216 | void *argp2 = 0 ; | |
33217 | int res2 = 0 ; | |
33218 | void *argp3 = 0 ; | |
33219 | int res3 = 0 ; | |
33220 | ||
33221 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
33222 | ecode1 = SWIG_AsVal_int(swig_obj[0], &val1); | |
33223 | if (!SWIG_IsOK(ecode1)) { | |
33224 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
33225 | } | |
33226 | arg1 = static_cast< wxEventType >(val1); | |
33227 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33228 | if (!SWIG_IsOK(res2)) { | |
33229 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'"); | |
33230 | } | |
33231 | arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2); | |
33232 | if (swig_obj[2]) { | |
33233 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 ); | |
33234 | if (!SWIG_IsOK(res3)) { | |
33235 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'"); | |
33236 | } | |
33237 | if (!argp3) { | |
33238 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'"); | |
33239 | } | |
33240 | arg3 = reinterpret_cast< wxTreeItemId * >(argp3); | |
33241 | } | |
33242 | { | |
33243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33244 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3); | |
33245 | wxPyEndAllowThreads(__tstate); | |
33246 | if (PyErr_Occurred()) SWIG_fail; | |
33247 | } | |
33248 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 ); | |
33249 | return resultobj; | |
33250 | fail: | |
33251 | return NULL; | |
33252 | } | |
33253 | ||
33254 | ||
33255 | SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) { | |
33256 | int argc; | |
33257 | PyObject *argv[4]; | |
33258 | ||
33259 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail; | |
33260 | --argc; | |
33261 | if ((argc >= 0) && (argc <= 2)) { | |
33262 | int _v = 0; | |
33263 | if (argc > 1) { | |
33264 | { | |
33265 | { | |
33266 | int res = SWIG_AsVal_int(argv[1], NULL); | |
33267 | _v = SWIG_CheckState(res); | |
33268 | } | |
33269 | } | |
33270 | if (!_v) goto check_1; | |
33271 | } | |
33272 | return _wrap_new_TreeEvent__SWIG_0(self, argc, argv); | |
33273 | } | |
33274 | check_1: | |
33275 | ||
33276 | if ((argc >= 2) && (argc <= 3)) { | |
33277 | return _wrap_new_TreeEvent__SWIG_1(self, argc, argv); | |
33278 | } | |
33279 | ||
33280 | fail: | |
33281 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'"); | |
33282 | return NULL; | |
33283 | } | |
33284 | ||
33285 | ||
0085ce49 RD |
33286 | SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33287 | PyObject *resultobj = 0; | |
33288 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33289 | wxTreeItemId result; | |
33290 | void *argp1 = 0 ; | |
33291 | int res1 = 0 ; | |
33292 | PyObject *swig_obj[1] ; | |
33293 | ||
33294 | if (!args) SWIG_fail; | |
33295 | swig_obj[0] = args; | |
33296 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33297 | if (!SWIG_IsOK(res1)) { | |
33298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33299 | } | |
33300 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33301 | { | |
33302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33303 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
33304 | wxPyEndAllowThreads(__tstate); | |
33305 | if (PyErr_Occurred()) SWIG_fail; | |
33306 | } | |
33307 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
33308 | return resultobj; | |
33309 | fail: | |
33310 | return NULL; | |
33311 | } | |
33312 | ||
33313 | ||
33314 | SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33315 | PyObject *resultobj = 0; | |
33316 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33317 | wxTreeItemId *arg2 = 0 ; | |
33318 | void *argp1 = 0 ; | |
33319 | int res1 = 0 ; | |
33320 | void *argp2 = 0 ; | |
33321 | int res2 = 0 ; | |
33322 | PyObject * obj0 = 0 ; | |
33323 | PyObject * obj1 = 0 ; | |
33324 | char * kwnames[] = { | |
33325 | (char *) "self",(char *) "item", NULL | |
33326 | }; | |
33327 | ||
33328 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
33329 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33330 | if (!SWIG_IsOK(res1)) { | |
33331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33332 | } | |
33333 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33334 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33335 | if (!SWIG_IsOK(res2)) { | |
33336 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33337 | } | |
33338 | if (!argp2) { | |
33339 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33340 | } | |
33341 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33342 | { | |
33343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33344 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
33345 | wxPyEndAllowThreads(__tstate); | |
33346 | if (PyErr_Occurred()) SWIG_fail; | |
33347 | } | |
33348 | resultobj = SWIG_Py_Void(); | |
33349 | return resultobj; | |
33350 | fail: | |
33351 | return NULL; | |
2ef75293 RD |
33352 | } |
33353 | ||
33354 | ||
0085ce49 RD |
33355 | SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33356 | PyObject *resultobj = 0; | |
33357 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33358 | wxTreeItemId result; | |
33359 | void *argp1 = 0 ; | |
33360 | int res1 = 0 ; | |
33361 | PyObject *swig_obj[1] ; | |
33362 | ||
33363 | if (!args) SWIG_fail; | |
33364 | swig_obj[0] = args; | |
33365 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33366 | if (!SWIG_IsOK(res1)) { | |
33367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33368 | } | |
33369 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33370 | { | |
33371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33372 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
33373 | wxPyEndAllowThreads(__tstate); | |
33374 | if (PyErr_Occurred()) SWIG_fail; | |
33375 | } | |
33376 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
33377 | return resultobj; | |
33378 | fail: | |
33379 | return NULL; | |
33380 | } | |
33381 | ||
33382 | ||
33383 | SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33384 | PyObject *resultobj = 0; | |
33385 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33386 | wxTreeItemId *arg2 = 0 ; | |
33387 | void *argp1 = 0 ; | |
33388 | int res1 = 0 ; | |
33389 | void *argp2 = 0 ; | |
33390 | int res2 = 0 ; | |
33391 | PyObject * obj0 = 0 ; | |
33392 | PyObject * obj1 = 0 ; | |
33393 | char * kwnames[] = { | |
33394 | (char *) "self",(char *) "item", NULL | |
33395 | }; | |
33396 | ||
33397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
33398 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33399 | if (!SWIG_IsOK(res1)) { | |
33400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33401 | } | |
33402 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33403 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
33404 | if (!SWIG_IsOK(res2)) { | |
33405 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33406 | } | |
33407 | if (!argp2) { | |
33408 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
33409 | } | |
33410 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
33411 | { | |
33412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33413 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
33414 | wxPyEndAllowThreads(__tstate); | |
33415 | if (PyErr_Occurred()) SWIG_fail; | |
33416 | } | |
33417 | resultobj = SWIG_Py_Void(); | |
33418 | return resultobj; | |
33419 | fail: | |
33420 | return NULL; | |
2ef75293 RD |
33421 | } |
33422 | ||
33423 | ||
0085ce49 RD |
33424 | SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33425 | PyObject *resultobj = 0; | |
33426 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33427 | wxPoint result; | |
33428 | void *argp1 = 0 ; | |
33429 | int res1 = 0 ; | |
33430 | PyObject *swig_obj[1] ; | |
33431 | ||
33432 | if (!args) SWIG_fail; | |
33433 | swig_obj[0] = args; | |
33434 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33435 | if (!SWIG_IsOK(res1)) { | |
33436 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33437 | } | |
33438 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33439 | { | |
33440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33441 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
33442 | wxPyEndAllowThreads(__tstate); | |
33443 | if (PyErr_Occurred()) SWIG_fail; | |
33444 | } | |
33445 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
33446 | return resultobj; | |
33447 | fail: | |
33448 | return NULL; | |
33449 | } | |
33450 | ||
33451 | ||
33452 | SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33453 | PyObject *resultobj = 0; | |
33454 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33455 | wxPoint *arg2 = 0 ; | |
33456 | void *argp1 = 0 ; | |
33457 | int res1 = 0 ; | |
33458 | wxPoint temp2 ; | |
33459 | PyObject * obj0 = 0 ; | |
33460 | PyObject * obj1 = 0 ; | |
33461 | char * kwnames[] = { | |
33462 | (char *) "self",(char *) "pt", NULL | |
33463 | }; | |
33464 | ||
33465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
33466 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33467 | if (!SWIG_IsOK(res1)) { | |
33468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33469 | } | |
33470 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33471 | { | |
33472 | arg2 = &temp2; | |
33473 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33474 | } | |
33475 | { | |
33476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33477 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
33478 | wxPyEndAllowThreads(__tstate); | |
33479 | if (PyErr_Occurred()) SWIG_fail; | |
33480 | } | |
33481 | resultobj = SWIG_Py_Void(); | |
33482 | return resultobj; | |
33483 | fail: | |
33484 | return NULL; | |
d14a1e28 RD |
33485 | } |
33486 | ||
33487 | ||
0085ce49 RD |
33488 | SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33489 | PyObject *resultobj = 0; | |
33490 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33491 | wxKeyEvent *result = 0 ; | |
33492 | void *argp1 = 0 ; | |
33493 | int res1 = 0 ; | |
33494 | PyObject *swig_obj[1] ; | |
33495 | ||
33496 | if (!args) SWIG_fail; | |
33497 | swig_obj[0] = args; | |
33498 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33499 | if (!SWIG_IsOK(res1)) { | |
33500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33501 | } | |
33502 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33503 | { | |
33504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 33505 | { |
0085ce49 RD |
33506 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); |
33507 | result = (wxKeyEvent *) &_result_ref; | |
d14a1e28 | 33508 | } |
0085ce49 RD |
33509 | wxPyEndAllowThreads(__tstate); |
33510 | if (PyErr_Occurred()) SWIG_fail; | |
33511 | } | |
33512 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 ); | |
33513 | return resultobj; | |
33514 | fail: | |
33515 | return NULL; | |
d14a1e28 RD |
33516 | } |
33517 | ||
33518 | ||
0085ce49 RD |
33519 | SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33520 | PyObject *resultobj = 0; | |
33521 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33522 | int result; | |
33523 | void *argp1 = 0 ; | |
33524 | int res1 = 0 ; | |
33525 | PyObject *swig_obj[1] ; | |
33526 | ||
33527 | if (!args) SWIG_fail; | |
33528 | swig_obj[0] = args; | |
33529 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33530 | if (!SWIG_IsOK(res1)) { | |
33531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33532 | } | |
33533 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33534 | { | |
33535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33536 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
33537 | wxPyEndAllowThreads(__tstate); | |
33538 | if (PyErr_Occurred()) SWIG_fail; | |
33539 | } | |
33540 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33541 | return resultobj; | |
33542 | fail: | |
33543 | return NULL; | |
33544 | } | |
33545 | ||
33546 | ||
33547 | SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33548 | PyObject *resultobj = 0; | |
33549 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33550 | wxKeyEvent *arg2 = 0 ; | |
33551 | void *argp1 = 0 ; | |
33552 | int res1 = 0 ; | |
33553 | void *argp2 = 0 ; | |
33554 | int res2 = 0 ; | |
33555 | PyObject * obj0 = 0 ; | |
33556 | PyObject * obj1 = 0 ; | |
33557 | char * kwnames[] = { | |
33558 | (char *) "self",(char *) "evt", NULL | |
33559 | }; | |
33560 | ||
33561 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
33562 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33563 | if (!SWIG_IsOK(res1)) { | |
33564 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33565 | } | |
33566 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33567 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0); | |
33568 | if (!SWIG_IsOK(res2)) { | |
33569 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
33570 | } | |
33571 | if (!argp2) { | |
33572 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'"); | |
33573 | } | |
33574 | arg2 = reinterpret_cast< wxKeyEvent * >(argp2); | |
33575 | { | |
33576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33577 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
33578 | wxPyEndAllowThreads(__tstate); | |
33579 | if (PyErr_Occurred()) SWIG_fail; | |
33580 | } | |
33581 | resultobj = SWIG_Py_Void(); | |
33582 | return resultobj; | |
33583 | fail: | |
33584 | return NULL; | |
d14a1e28 RD |
33585 | } |
33586 | ||
33587 | ||
0085ce49 RD |
33588 | SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33589 | PyObject *resultobj = 0; | |
33590 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33591 | wxString *result = 0 ; | |
33592 | void *argp1 = 0 ; | |
33593 | int res1 = 0 ; | |
33594 | PyObject *swig_obj[1] ; | |
33595 | ||
33596 | if (!args) SWIG_fail; | |
33597 | swig_obj[0] = args; | |
33598 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33599 | if (!SWIG_IsOK(res1)) { | |
33600 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33601 | } | |
33602 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33603 | { | |
33604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 33605 | { |
0085ce49 RD |
33606 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); |
33607 | result = (wxString *) &_result_ref; | |
093d3ff1 | 33608 | } |
0085ce49 RD |
33609 | wxPyEndAllowThreads(__tstate); |
33610 | if (PyErr_Occurred()) SWIG_fail; | |
33611 | } | |
33612 | { | |
33613 | #if wxUSE_UNICODE | |
33614 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33615 | #else | |
33616 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33617 | #endif | |
33618 | } | |
33619 | return resultobj; | |
33620 | fail: | |
33621 | return NULL; | |
33622 | } | |
33623 | ||
33624 | ||
33625 | SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33626 | PyObject *resultobj = 0; | |
33627 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33628 | wxString *arg2 = 0 ; | |
33629 | void *argp1 = 0 ; | |
33630 | int res1 = 0 ; | |
33631 | bool temp2 = false ; | |
33632 | PyObject * obj0 = 0 ; | |
33633 | PyObject * obj1 = 0 ; | |
33634 | char * kwnames[] = { | |
33635 | (char *) "self",(char *) "label", NULL | |
33636 | }; | |
33637 | ||
33638 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
33639 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33640 | if (!SWIG_IsOK(res1)) { | |
33641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33642 | } | |
33643 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33644 | { | |
33645 | arg2 = wxString_in_helper(obj1); | |
33646 | if (arg2 == NULL) SWIG_fail; | |
33647 | temp2 = true; | |
33648 | } | |
33649 | { | |
33650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33651 | (arg1)->SetLabel((wxString const &)*arg2); | |
33652 | wxPyEndAllowThreads(__tstate); | |
33653 | if (PyErr_Occurred()) SWIG_fail; | |
33654 | } | |
33655 | resultobj = SWIG_Py_Void(); | |
33656 | { | |
33657 | if (temp2) | |
33658 | delete arg2; | |
33659 | } | |
33660 | return resultobj; | |
33661 | fail: | |
33662 | { | |
33663 | if (temp2) | |
33664 | delete arg2; | |
33665 | } | |
33666 | return NULL; | |
d14a1e28 RD |
33667 | } |
33668 | ||
33669 | ||
0085ce49 RD |
33670 | SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33671 | PyObject *resultobj = 0; | |
33672 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33673 | bool result; | |
33674 | void *argp1 = 0 ; | |
33675 | int res1 = 0 ; | |
33676 | PyObject *swig_obj[1] ; | |
33677 | ||
33678 | if (!args) SWIG_fail; | |
33679 | swig_obj[0] = args; | |
33680 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33681 | if (!SWIG_IsOK(res1)) { | |
33682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'"); | |
33683 | } | |
33684 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33685 | { | |
33686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33687 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
33688 | wxPyEndAllowThreads(__tstate); | |
33689 | if (PyErr_Occurred()) SWIG_fail; | |
33690 | } | |
33691 | { | |
33692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33693 | } | |
33694 | return resultobj; | |
33695 | fail: | |
33696 | return NULL; | |
33697 | } | |
33698 | ||
33699 | ||
33700 | SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33701 | PyObject *resultobj = 0; | |
33702 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33703 | bool arg2 ; | |
33704 | void *argp1 = 0 ; | |
33705 | int res1 = 0 ; | |
33706 | bool val2 ; | |
33707 | int ecode2 = 0 ; | |
33708 | PyObject * obj0 = 0 ; | |
33709 | PyObject * obj1 = 0 ; | |
33710 | char * kwnames[] = { | |
33711 | (char *) "self",(char *) "editCancelled", NULL | |
33712 | }; | |
33713 | ||
33714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail; | |
33715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33716 | if (!SWIG_IsOK(res1)) { | |
33717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33718 | } | |
33719 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33720 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
33721 | if (!SWIG_IsOK(ecode2)) { | |
33722 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'"); | |
33723 | } | |
33724 | arg2 = static_cast< bool >(val2); | |
33725 | { | |
33726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33727 | (arg1)->SetEditCanceled(arg2); | |
33728 | wxPyEndAllowThreads(__tstate); | |
33729 | if (PyErr_Occurred()) SWIG_fail; | |
33730 | } | |
33731 | resultobj = SWIG_Py_Void(); | |
33732 | return resultobj; | |
33733 | fail: | |
33734 | return NULL; | |
33735 | } | |
33736 | ||
33737 | ||
33738 | SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33739 | PyObject *resultobj = 0; | |
33740 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33741 | wxString *arg2 = 0 ; | |
33742 | void *argp1 = 0 ; | |
33743 | int res1 = 0 ; | |
33744 | bool temp2 = false ; | |
33745 | PyObject * obj0 = 0 ; | |
33746 | PyObject * obj1 = 0 ; | |
33747 | char * kwnames[] = { | |
33748 | (char *) "self",(char *) "toolTip", NULL | |
33749 | }; | |
33750 | ||
33751 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail; | |
33752 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33753 | if (!SWIG_IsOK(res1)) { | |
33754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33755 | } | |
33756 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33757 | { | |
33758 | arg2 = wxString_in_helper(obj1); | |
33759 | if (arg2 == NULL) SWIG_fail; | |
33760 | temp2 = true; | |
33761 | } | |
33762 | { | |
33763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33764 | (arg1)->SetToolTip((wxString const &)*arg2); | |
33765 | wxPyEndAllowThreads(__tstate); | |
33766 | if (PyErr_Occurred()) SWIG_fail; | |
33767 | } | |
33768 | resultobj = SWIG_Py_Void(); | |
33769 | { | |
33770 | if (temp2) | |
33771 | delete arg2; | |
33772 | } | |
33773 | return resultobj; | |
33774 | fail: | |
33775 | { | |
33776 | if (temp2) | |
33777 | delete arg2; | |
33778 | } | |
33779 | return NULL; | |
d14a1e28 RD |
33780 | } |
33781 | ||
33782 | ||
0085ce49 RD |
33783 | SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33784 | PyObject *resultobj = 0; | |
33785 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
33786 | wxString result; | |
33787 | void *argp1 = 0 ; | |
33788 | int res1 = 0 ; | |
33789 | PyObject *swig_obj[1] ; | |
33790 | ||
33791 | if (!args) SWIG_fail; | |
33792 | swig_obj[0] = args; | |
33793 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 ); | |
33794 | if (!SWIG_IsOK(res1)) { | |
33795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'"); | |
33796 | } | |
33797 | arg1 = reinterpret_cast< wxTreeEvent * >(argp1); | |
33798 | { | |
33799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33800 | result = (arg1)->GetToolTip(); | |
33801 | wxPyEndAllowThreads(__tstate); | |
33802 | if (PyErr_Occurred()) SWIG_fail; | |
33803 | } | |
33804 | { | |
33805 | #if wxUSE_UNICODE | |
33806 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33807 | #else | |
33808 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33809 | #endif | |
33810 | } | |
33811 | return resultobj; | |
33812 | fail: | |
33813 | return NULL; | |
33814 | } | |
33815 | ||
33816 | ||
33817 | SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33818 | PyObject *obj; | |
33819 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33820 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj)); | |
33821 | return SWIG_Py_Void(); | |
33822 | } | |
33823 | ||
33824 | SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33825 | return SWIG_Python_InitShadowInstance(args); | |
33826 | } | |
33827 | ||
33828 | SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33829 | PyObject *resultobj = 0; | |
33830 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33831 | int arg2 = (int) -1 ; | |
33832 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
33833 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33834 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33835 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33836 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
33837 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
33838 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
33839 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
33840 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33841 | wxPyTreeCtrl *result = 0 ; | |
33842 | void *argp1 = 0 ; | |
33843 | int res1 = 0 ; | |
33844 | int val2 ; | |
33845 | int ecode2 = 0 ; | |
33846 | wxPoint temp3 ; | |
33847 | wxSize temp4 ; | |
33848 | long val5 ; | |
33849 | int ecode5 = 0 ; | |
33850 | void *argp6 = 0 ; | |
33851 | int res6 = 0 ; | |
33852 | bool temp7 = false ; | |
33853 | PyObject * obj0 = 0 ; | |
33854 | PyObject * obj1 = 0 ; | |
33855 | PyObject * obj2 = 0 ; | |
33856 | PyObject * obj3 = 0 ; | |
33857 | PyObject * obj4 = 0 ; | |
33858 | PyObject * obj5 = 0 ; | |
33859 | PyObject * obj6 = 0 ; | |
33860 | char * kwnames[] = { | |
33861 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33862 | }; | |
33863 | ||
33864 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
33865 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33866 | if (!SWIG_IsOK(res1)) { | |
33867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
33868 | } | |
33869 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
33870 | if (obj1) { | |
33871 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33872 | if (!SWIG_IsOK(ecode2)) { | |
33873 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'"); | |
33874 | } | |
33875 | arg2 = static_cast< int >(val2); | |
33876 | } | |
33877 | if (obj2) { | |
d14a1e28 | 33878 | { |
0085ce49 RD |
33879 | arg3 = &temp3; |
33880 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 33881 | } |
0085ce49 RD |
33882 | } |
33883 | if (obj3) { | |
093d3ff1 | 33884 | { |
0085ce49 RD |
33885 | arg4 = &temp4; |
33886 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 33887 | } |
0085ce49 RD |
33888 | } |
33889 | if (obj4) { | |
33890 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
33891 | if (!SWIG_IsOK(ecode5)) { | |
33892 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'"); | |
33893 | } | |
33894 | arg5 = static_cast< long >(val5); | |
33895 | } | |
33896 | if (obj5) { | |
33897 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
33898 | if (!SWIG_IsOK(res6)) { | |
33899 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 33900 | } |
0085ce49 RD |
33901 | if (!argp6) { |
33902 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 33903 | } |
0085ce49 RD |
33904 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
33905 | } | |
33906 | if (obj6) { | |
4f89f6a3 | 33907 | { |
0085ce49 RD |
33908 | arg7 = wxString_in_helper(obj6); |
33909 | if (arg7 == NULL) SWIG_fail; | |
33910 | temp7 = true; | |
4f89f6a3 | 33911 | } |
0085ce49 RD |
33912 | } |
33913 | { | |
33914 | if (!wxPyCheckForApp()) SWIG_fail; | |
33915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33916 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
33917 | wxPyEndAllowThreads(__tstate); | |
33918 | if (PyErr_Occurred()) SWIG_fail; | |
33919 | } | |
33920 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 ); | |
33921 | { | |
33922 | if (temp7) | |
33923 | delete arg7; | |
33924 | } | |
33925 | return resultobj; | |
33926 | fail: | |
33927 | { | |
33928 | if (temp7) | |
33929 | delete arg7; | |
33930 | } | |
33931 | return NULL; | |
d14a1e28 RD |
33932 | } |
33933 | ||
33934 | ||
0085ce49 RD |
33935 | SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33936 | PyObject *resultobj = 0; | |
33937 | wxPyTreeCtrl *result = 0 ; | |
33938 | ||
33939 | if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail; | |
33940 | { | |
33941 | if (!wxPyCheckForApp()) SWIG_fail; | |
33942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33943 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
33944 | wxPyEndAllowThreads(__tstate); | |
33945 | if (PyErr_Occurred()) SWIG_fail; | |
33946 | } | |
33947 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 ); | |
33948 | return resultobj; | |
33949 | fail: | |
33950 | return NULL; | |
33951 | } | |
33952 | ||
33953 | ||
33954 | SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33955 | PyObject *resultobj = 0; | |
33956 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
33957 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33958 | int arg3 = (int) -1 ; | |
33959 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
33960 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
33961 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
33962 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
33963 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
33964 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
33965 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
33966 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
33967 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
33968 | bool result; | |
33969 | void *argp1 = 0 ; | |
33970 | int res1 = 0 ; | |
33971 | void *argp2 = 0 ; | |
33972 | int res2 = 0 ; | |
33973 | int val3 ; | |
33974 | int ecode3 = 0 ; | |
33975 | wxPoint temp4 ; | |
33976 | wxSize temp5 ; | |
33977 | long val6 ; | |
33978 | int ecode6 = 0 ; | |
33979 | void *argp7 = 0 ; | |
33980 | int res7 = 0 ; | |
33981 | bool temp8 = false ; | |
33982 | PyObject * obj0 = 0 ; | |
33983 | PyObject * obj1 = 0 ; | |
33984 | PyObject * obj2 = 0 ; | |
33985 | PyObject * obj3 = 0 ; | |
33986 | PyObject * obj4 = 0 ; | |
33987 | PyObject * obj5 = 0 ; | |
33988 | PyObject * obj6 = 0 ; | |
33989 | PyObject * obj7 = 0 ; | |
33990 | char * kwnames[] = { | |
33991 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33992 | }; | |
33993 | ||
33994 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
33995 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
33996 | if (!SWIG_IsOK(res1)) { | |
33997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
33998 | } | |
33999 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34000 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34001 | if (!SWIG_IsOK(res2)) { | |
34002 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34003 | } | |
34004 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34005 | if (obj2) { | |
34006 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34007 | if (!SWIG_IsOK(ecode3)) { | |
34008 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
34009 | } | |
34010 | arg3 = static_cast< int >(val3); | |
34011 | } | |
34012 | if (obj3) { | |
4f89f6a3 | 34013 | { |
0085ce49 RD |
34014 | arg4 = &temp4; |
34015 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 34016 | } |
0085ce49 RD |
34017 | } |
34018 | if (obj4) { | |
d14a1e28 | 34019 | { |
0085ce49 RD |
34020 | arg5 = &temp5; |
34021 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 34022 | } |
0085ce49 RD |
34023 | } |
34024 | if (obj5) { | |
34025 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
34026 | if (!SWIG_IsOK(ecode6)) { | |
34027 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
34028 | } | |
34029 | arg6 = static_cast< long >(val6); | |
34030 | } | |
34031 | if (obj6) { | |
34032 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
34033 | if (!SWIG_IsOK(res7)) { | |
34034 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
4f89f6a3 | 34035 | } |
0085ce49 RD |
34036 | if (!argp7) { |
34037 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 34038 | } |
0085ce49 RD |
34039 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
34040 | } | |
34041 | if (obj7) { | |
4276dc52 | 34042 | { |
0085ce49 RD |
34043 | arg8 = wxString_in_helper(obj7); |
34044 | if (arg8 == NULL) SWIG_fail; | |
34045 | temp8 = true; | |
4276dc52 | 34046 | } |
0085ce49 RD |
34047 | } |
34048 | { | |
34049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34050 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
34051 | wxPyEndAllowThreads(__tstate); | |
34052 | if (PyErr_Occurred()) SWIG_fail; | |
34053 | } | |
34054 | { | |
34055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34056 | } | |
34057 | { | |
34058 | if (temp8) | |
34059 | delete arg8; | |
34060 | } | |
34061 | return resultobj; | |
34062 | fail: | |
34063 | { | |
34064 | if (temp8) | |
34065 | delete arg8; | |
34066 | } | |
34067 | return NULL; | |
34068 | } | |
34069 | ||
34070 | ||
34071 | SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34072 | PyObject *resultobj = 0; | |
34073 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34074 | PyObject *arg2 = (PyObject *) 0 ; | |
34075 | PyObject *arg3 = (PyObject *) 0 ; | |
34076 | void *argp1 = 0 ; | |
34077 | int res1 = 0 ; | |
34078 | PyObject * obj0 = 0 ; | |
34079 | PyObject * obj1 = 0 ; | |
34080 | PyObject * obj2 = 0 ; | |
34081 | char * kwnames[] = { | |
34082 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
34083 | }; | |
34084 | ||
34085 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34086 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34087 | if (!SWIG_IsOK(res1)) { | |
34088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34089 | } | |
34090 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34091 | arg2 = obj1; | |
34092 | arg3 = obj2; | |
34093 | { | |
34094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34095 | (arg1)->_setCallbackInfo(arg2,arg3); | |
34096 | wxPyEndAllowThreads(__tstate); | |
34097 | if (PyErr_Occurred()) SWIG_fail; | |
34098 | } | |
34099 | resultobj = SWIG_Py_Void(); | |
34100 | return resultobj; | |
34101 | fail: | |
34102 | return NULL; | |
d14a1e28 RD |
34103 | } |
34104 | ||
34105 | ||
0085ce49 RD |
34106 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34107 | PyObject *resultobj = 0; | |
34108 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
e9d6f3a4 | 34109 | unsigned int result; |
0085ce49 RD |
34110 | void *argp1 = 0 ; |
34111 | int res1 = 0 ; | |
34112 | PyObject *swig_obj[1] ; | |
34113 | ||
34114 | if (!args) SWIG_fail; | |
34115 | swig_obj[0] = args; | |
34116 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34117 | if (!SWIG_IsOK(res1)) { | |
34118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34119 | } | |
34120 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34121 | { | |
34122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e9d6f3a4 | 34123 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount(); |
0085ce49 RD |
34124 | wxPyEndAllowThreads(__tstate); |
34125 | if (PyErr_Occurred()) SWIG_fail; | |
34126 | } | |
e9d6f3a4 | 34127 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); |
0085ce49 RD |
34128 | return resultobj; |
34129 | fail: | |
34130 | return NULL; | |
d14a1e28 RD |
34131 | } |
34132 | ||
34133 | ||
0085ce49 RD |
34134 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34135 | PyObject *resultobj = 0; | |
34136 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34137 | unsigned int result; | |
34138 | void *argp1 = 0 ; | |
34139 | int res1 = 0 ; | |
34140 | PyObject *swig_obj[1] ; | |
34141 | ||
34142 | if (!args) SWIG_fail; | |
34143 | swig_obj[0] = args; | |
34144 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34145 | if (!SWIG_IsOK(res1)) { | |
34146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34147 | } | |
34148 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34149 | { | |
34150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34151 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
34152 | wxPyEndAllowThreads(__tstate); | |
34153 | if (PyErr_Occurred()) SWIG_fail; | |
34154 | } | |
34155 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); | |
34156 | return resultobj; | |
34157 | fail: | |
34158 | return NULL; | |
34159 | } | |
34160 | ||
34161 | ||
34162 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34163 | PyObject *resultobj = 0; | |
34164 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34165 | unsigned int arg2 ; | |
34166 | void *argp1 = 0 ; | |
34167 | int res1 = 0 ; | |
34168 | unsigned int val2 ; | |
34169 | int ecode2 = 0 ; | |
34170 | PyObject * obj0 = 0 ; | |
34171 | PyObject * obj1 = 0 ; | |
34172 | char * kwnames[] = { | |
34173 | (char *) "self",(char *) "indent", NULL | |
34174 | }; | |
34175 | ||
34176 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
34177 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34178 | if (!SWIG_IsOK(res1)) { | |
34179 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34180 | } | |
34181 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34182 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
34183 | if (!SWIG_IsOK(ecode2)) { | |
34184 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'"); | |
34185 | } | |
34186 | arg2 = static_cast< unsigned int >(val2); | |
34187 | { | |
34188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34189 | (arg1)->SetIndent(arg2); | |
34190 | wxPyEndAllowThreads(__tstate); | |
34191 | if (PyErr_Occurred()) SWIG_fail; | |
34192 | } | |
34193 | resultobj = SWIG_Py_Void(); | |
34194 | return resultobj; | |
34195 | fail: | |
34196 | return NULL; | |
d14a1e28 RD |
34197 | } |
34198 | ||
34199 | ||
0085ce49 RD |
34200 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34201 | PyObject *resultobj = 0; | |
34202 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34203 | unsigned int result; | |
34204 | void *argp1 = 0 ; | |
34205 | int res1 = 0 ; | |
34206 | PyObject *swig_obj[1] ; | |
34207 | ||
34208 | if (!args) SWIG_fail; | |
34209 | swig_obj[0] = args; | |
34210 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34211 | if (!SWIG_IsOK(res1)) { | |
34212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34213 | } | |
34214 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34215 | { | |
34216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34217 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
34218 | wxPyEndAllowThreads(__tstate); | |
34219 | if (PyErr_Occurred()) SWIG_fail; | |
34220 | } | |
34221 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); | |
34222 | return resultobj; | |
34223 | fail: | |
34224 | return NULL; | |
34225 | } | |
34226 | ||
34227 | ||
34228 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34229 | PyObject *resultobj = 0; | |
34230 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34231 | unsigned int arg2 ; | |
34232 | void *argp1 = 0 ; | |
34233 | int res1 = 0 ; | |
34234 | unsigned int val2 ; | |
34235 | int ecode2 = 0 ; | |
34236 | PyObject * obj0 = 0 ; | |
34237 | PyObject * obj1 = 0 ; | |
34238 | char * kwnames[] = { | |
34239 | (char *) "self",(char *) "spacing", NULL | |
34240 | }; | |
34241 | ||
34242 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail; | |
34243 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34244 | if (!SWIG_IsOK(res1)) { | |
34245 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34246 | } | |
34247 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34248 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
34249 | if (!SWIG_IsOK(ecode2)) { | |
34250 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'"); | |
34251 | } | |
34252 | arg2 = static_cast< unsigned int >(val2); | |
34253 | { | |
34254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34255 | (arg1)->SetSpacing(arg2); | |
34256 | wxPyEndAllowThreads(__tstate); | |
34257 | if (PyErr_Occurred()) SWIG_fail; | |
34258 | } | |
34259 | resultobj = SWIG_Py_Void(); | |
34260 | return resultobj; | |
34261 | fail: | |
34262 | return NULL; | |
d14a1e28 RD |
34263 | } |
34264 | ||
34265 | ||
0085ce49 RD |
34266 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34267 | PyObject *resultobj = 0; | |
34268 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34269 | wxImageList *result = 0 ; | |
34270 | void *argp1 = 0 ; | |
34271 | int res1 = 0 ; | |
34272 | PyObject *swig_obj[1] ; | |
34273 | ||
34274 | if (!args) SWIG_fail; | |
34275 | swig_obj[0] = args; | |
34276 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34277 | if (!SWIG_IsOK(res1)) { | |
34278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34279 | } | |
34280 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34281 | { | |
34282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34283 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
34284 | wxPyEndAllowThreads(__tstate); | |
34285 | if (PyErr_Occurred()) SWIG_fail; | |
34286 | } | |
3ecece7e RD |
34287 | { |
34288 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
34289 | } | |
0085ce49 RD |
34290 | return resultobj; |
34291 | fail: | |
34292 | return NULL; | |
d14a1e28 RD |
34293 | } |
34294 | ||
34295 | ||
0085ce49 RD |
34296 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34297 | PyObject *resultobj = 0; | |
34298 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34299 | wxImageList *result = 0 ; | |
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_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34309 | } | |
34310 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34311 | { | |
34312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34313 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
34314 | wxPyEndAllowThreads(__tstate); | |
34315 | if (PyErr_Occurred()) SWIG_fail; | |
34316 | } | |
3ecece7e RD |
34317 | { |
34318 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
34319 | } | |
0085ce49 RD |
34320 | return resultobj; |
34321 | fail: | |
34322 | return NULL; | |
34323 | } | |
34324 | ||
34325 | ||
34326 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34327 | PyObject *resultobj = 0; | |
34328 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34329 | wxImageList *arg2 = (wxImageList *) 0 ; | |
34330 | void *argp1 = 0 ; | |
34331 | int res1 = 0 ; | |
34332 | void *argp2 = 0 ; | |
34333 | int res2 = 0 ; | |
34334 | PyObject * obj0 = 0 ; | |
34335 | PyObject * obj1 = 0 ; | |
34336 | char * kwnames[] = { | |
34337 | (char *) "self",(char *) "imageList", NULL | |
34338 | }; | |
34339 | ||
34340 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
34341 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34342 | if (!SWIG_IsOK(res1)) { | |
34343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34344 | } | |
34345 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34346 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
34347 | if (!SWIG_IsOK(res2)) { | |
34348 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
34349 | } | |
34350 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
34351 | { | |
34352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34353 | (arg1)->SetImageList(arg2); | |
34354 | wxPyEndAllowThreads(__tstate); | |
34355 | if (PyErr_Occurred()) SWIG_fail; | |
34356 | } | |
34357 | resultobj = SWIG_Py_Void(); | |
34358 | return resultobj; | |
34359 | fail: | |
34360 | return NULL; | |
34361 | } | |
34362 | ||
34363 | ||
34364 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34365 | PyObject *resultobj = 0; | |
34366 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34367 | wxImageList *arg2 = (wxImageList *) 0 ; | |
34368 | void *argp1 = 0 ; | |
34369 | int res1 = 0 ; | |
34370 | void *argp2 = 0 ; | |
34371 | int res2 = 0 ; | |
34372 | PyObject * obj0 = 0 ; | |
34373 | PyObject * obj1 = 0 ; | |
34374 | char * kwnames[] = { | |
34375 | (char *) "self",(char *) "imageList", NULL | |
34376 | }; | |
34377 | ||
34378 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
34379 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34380 | if (!SWIG_IsOK(res1)) { | |
34381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34382 | } | |
34383 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34384 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
34385 | if (!SWIG_IsOK(res2)) { | |
34386 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
34387 | } | |
34388 | arg2 = reinterpret_cast< wxImageList * >(argp2); | |
34389 | { | |
34390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34391 | (arg1)->SetStateImageList(arg2); | |
34392 | wxPyEndAllowThreads(__tstate); | |
34393 | if (PyErr_Occurred()) SWIG_fail; | |
34394 | } | |
34395 | resultobj = SWIG_Py_Void(); | |
34396 | return resultobj; | |
34397 | fail: | |
34398 | return NULL; | |
34399 | } | |
34400 | ||
34401 | ||
34402 | SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34403 | PyObject *resultobj = 0; | |
34404 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34405 | wxImageList *arg2 = (wxImageList *) 0 ; | |
34406 | void *argp1 = 0 ; | |
34407 | int res1 = 0 ; | |
34408 | int res2 = 0 ; | |
34409 | PyObject * obj0 = 0 ; | |
34410 | PyObject * obj1 = 0 ; | |
34411 | char * kwnames[] = { | |
34412 | (char *) "self",(char *) "imageList", NULL | |
34413 | }; | |
34414 | ||
34415 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
34416 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34417 | if (!SWIG_IsOK(res1)) { | |
34418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34419 | } | |
34420 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34421 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
34422 | if (!SWIG_IsOK(res2)) { | |
34423 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
34424 | } | |
34425 | { | |
34426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34427 | (arg1)->AssignImageList(arg2); | |
34428 | wxPyEndAllowThreads(__tstate); | |
34429 | if (PyErr_Occurred()) SWIG_fail; | |
34430 | } | |
34431 | resultobj = SWIG_Py_Void(); | |
34432 | return resultobj; | |
34433 | fail: | |
34434 | return NULL; | |
34435 | } | |
34436 | ||
34437 | ||
34438 | SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34439 | PyObject *resultobj = 0; | |
34440 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34441 | wxImageList *arg2 = (wxImageList *) 0 ; | |
34442 | void *argp1 = 0 ; | |
34443 | int res1 = 0 ; | |
34444 | int res2 = 0 ; | |
34445 | PyObject * obj0 = 0 ; | |
34446 | PyObject * obj1 = 0 ; | |
34447 | char * kwnames[] = { | |
34448 | (char *) "self",(char *) "imageList", NULL | |
34449 | }; | |
34450 | ||
34451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail; | |
34452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34453 | if (!SWIG_IsOK(res1)) { | |
34454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34455 | } | |
34456 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34457 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
34458 | if (!SWIG_IsOK(res2)) { | |
34459 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'"); | |
34460 | } | |
34461 | { | |
34462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34463 | (arg1)->AssignStateImageList(arg2); | |
34464 | wxPyEndAllowThreads(__tstate); | |
34465 | if (PyErr_Occurred()) SWIG_fail; | |
34466 | } | |
34467 | resultobj = SWIG_Py_Void(); | |
34468 | return resultobj; | |
34469 | fail: | |
34470 | return NULL; | |
34471 | } | |
34472 | ||
34473 | ||
34474 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34475 | PyObject *resultobj = 0; | |
34476 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34477 | wxTreeItemId *arg2 = 0 ; | |
34478 | wxString result; | |
34479 | void *argp1 = 0 ; | |
34480 | int res1 = 0 ; | |
34481 | void *argp2 = 0 ; | |
34482 | int res2 = 0 ; | |
34483 | PyObject * obj0 = 0 ; | |
34484 | PyObject * obj1 = 0 ; | |
34485 | char * kwnames[] = { | |
34486 | (char *) "self",(char *) "item", NULL | |
34487 | }; | |
34488 | ||
34489 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail; | |
34490 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34491 | if (!SWIG_IsOK(res1)) { | |
34492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34493 | } | |
34494 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34495 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34496 | if (!SWIG_IsOK(res2)) { | |
34497 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34498 | } | |
34499 | if (!argp2) { | |
34500 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34501 | } | |
34502 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34503 | { | |
34504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34505 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
34506 | wxPyEndAllowThreads(__tstate); | |
34507 | if (PyErr_Occurred()) SWIG_fail; | |
34508 | } | |
34509 | { | |
d14a1e28 | 34510 | #if wxUSE_UNICODE |
0085ce49 | 34511 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 34512 | #else |
0085ce49 | 34513 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 34514 | #endif |
0085ce49 RD |
34515 | } |
34516 | return resultobj; | |
34517 | fail: | |
34518 | return NULL; | |
34519 | } | |
34520 | ||
34521 | ||
34522 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34523 | PyObject *resultobj = 0; | |
34524 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34525 | wxTreeItemId *arg2 = 0 ; | |
34526 | wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; | |
34527 | int result; | |
34528 | void *argp1 = 0 ; | |
34529 | int res1 = 0 ; | |
34530 | void *argp2 = 0 ; | |
34531 | int res2 = 0 ; | |
34532 | int val3 ; | |
34533 | int ecode3 = 0 ; | |
34534 | PyObject * obj0 = 0 ; | |
34535 | PyObject * obj1 = 0 ; | |
34536 | PyObject * obj2 = 0 ; | |
34537 | char * kwnames[] = { | |
34538 | (char *) "self",(char *) "item",(char *) "which", NULL | |
34539 | }; | |
34540 | ||
34541 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34542 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34543 | if (!SWIG_IsOK(res1)) { | |
34544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34545 | } | |
34546 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34547 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34548 | if (!SWIG_IsOK(res2)) { | |
34549 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34550 | } | |
34551 | if (!argp2) { | |
34552 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34553 | } | |
34554 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34555 | if (obj2) { | |
34556 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34557 | if (!SWIG_IsOK(ecode3)) { | |
34558 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'"); | |
34559 | } | |
34560 | arg3 = static_cast< wxTreeItemIcon >(val3); | |
34561 | } | |
34562 | { | |
34563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34564 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3); | |
34565 | wxPyEndAllowThreads(__tstate); | |
34566 | if (PyErr_Occurred()) SWIG_fail; | |
34567 | } | |
34568 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34569 | return resultobj; | |
34570 | fail: | |
34571 | return NULL; | |
34572 | } | |
34573 | ||
34574 | ||
34575 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34576 | PyObject *resultobj = 0; | |
34577 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34578 | wxTreeItemId *arg2 = 0 ; | |
34579 | wxPyTreeItemData *result = 0 ; | |
34580 | void *argp1 = 0 ; | |
34581 | int res1 = 0 ; | |
34582 | void *argp2 = 0 ; | |
34583 | int res2 = 0 ; | |
34584 | PyObject * obj0 = 0 ; | |
34585 | PyObject * obj1 = 0 ; | |
34586 | char * kwnames[] = { | |
34587 | (char *) "self",(char *) "item", NULL | |
34588 | }; | |
34589 | ||
34590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail; | |
34591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34592 | if (!SWIG_IsOK(res1)) { | |
34593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34594 | } | |
34595 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34596 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34597 | if (!SWIG_IsOK(res2)) { | |
34598 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34599 | } | |
34600 | if (!argp2) { | |
34601 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34602 | } | |
34603 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34604 | { | |
34605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34606 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
34607 | wxPyEndAllowThreads(__tstate); | |
34608 | if (PyErr_Occurred()) SWIG_fail; | |
34609 | } | |
34610 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 ); | |
34611 | return resultobj; | |
34612 | fail: | |
34613 | return NULL; | |
34614 | } | |
34615 | ||
34616 | ||
34617 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34618 | PyObject *resultobj = 0; | |
34619 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34620 | wxTreeItemId *arg2 = 0 ; | |
34621 | PyObject *result = 0 ; | |
34622 | void *argp1 = 0 ; | |
34623 | int res1 = 0 ; | |
34624 | void *argp2 = 0 ; | |
34625 | int res2 = 0 ; | |
34626 | PyObject * obj0 = 0 ; | |
34627 | PyObject * obj1 = 0 ; | |
34628 | char * kwnames[] = { | |
34629 | (char *) "self",(char *) "item", NULL | |
34630 | }; | |
34631 | ||
34632 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail; | |
34633 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34634 | if (!SWIG_IsOK(res1)) { | |
34635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34636 | } | |
34637 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34638 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34639 | if (!SWIG_IsOK(res2)) { | |
34640 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34641 | } | |
34642 | if (!argp2) { | |
34643 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34644 | } | |
34645 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34646 | { | |
34647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34648 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
34649 | wxPyEndAllowThreads(__tstate); | |
34650 | if (PyErr_Occurred()) SWIG_fail; | |
34651 | } | |
34652 | resultobj = result; | |
34653 | return resultobj; | |
34654 | fail: | |
34655 | return NULL; | |
34656 | } | |
34657 | ||
34658 | ||
34659 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34660 | PyObject *resultobj = 0; | |
34661 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34662 | wxTreeItemId *arg2 = 0 ; | |
34663 | wxColour result; | |
34664 | void *argp1 = 0 ; | |
34665 | int res1 = 0 ; | |
34666 | void *argp2 = 0 ; | |
34667 | int res2 = 0 ; | |
34668 | PyObject * obj0 = 0 ; | |
34669 | PyObject * obj1 = 0 ; | |
34670 | char * kwnames[] = { | |
34671 | (char *) "self",(char *) "item", NULL | |
34672 | }; | |
34673 | ||
34674 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
34675 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34676 | if (!SWIG_IsOK(res1)) { | |
34677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34678 | } | |
34679 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34680 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34681 | if (!SWIG_IsOK(res2)) { | |
34682 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34683 | } | |
34684 | if (!argp2) { | |
34685 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34686 | } | |
34687 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34688 | { | |
34689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34690 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
34691 | wxPyEndAllowThreads(__tstate); | |
34692 | if (PyErr_Occurred()) SWIG_fail; | |
34693 | } | |
34694 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
34695 | return resultobj; | |
34696 | fail: | |
34697 | return NULL; | |
34698 | } | |
34699 | ||
34700 | ||
34701 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34702 | PyObject *resultobj = 0; | |
34703 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34704 | wxTreeItemId *arg2 = 0 ; | |
34705 | wxColour result; | |
34706 | void *argp1 = 0 ; | |
34707 | int res1 = 0 ; | |
34708 | void *argp2 = 0 ; | |
34709 | int res2 = 0 ; | |
34710 | PyObject * obj0 = 0 ; | |
34711 | PyObject * obj1 = 0 ; | |
34712 | char * kwnames[] = { | |
34713 | (char *) "self",(char *) "item", NULL | |
34714 | }; | |
34715 | ||
34716 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
34717 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34718 | if (!SWIG_IsOK(res1)) { | |
34719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34720 | } | |
34721 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34722 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34723 | if (!SWIG_IsOK(res2)) { | |
34724 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34725 | } | |
34726 | if (!argp2) { | |
34727 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34728 | } | |
34729 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34730 | { | |
34731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34732 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
34733 | wxPyEndAllowThreads(__tstate); | |
34734 | if (PyErr_Occurred()) SWIG_fail; | |
34735 | } | |
34736 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
34737 | return resultobj; | |
34738 | fail: | |
34739 | return NULL; | |
34740 | } | |
34741 | ||
34742 | ||
34743 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34744 | PyObject *resultobj = 0; | |
34745 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34746 | wxTreeItemId *arg2 = 0 ; | |
34747 | wxFont result; | |
34748 | void *argp1 = 0 ; | |
34749 | int res1 = 0 ; | |
34750 | void *argp2 = 0 ; | |
34751 | int res2 = 0 ; | |
34752 | PyObject * obj0 = 0 ; | |
34753 | PyObject * obj1 = 0 ; | |
34754 | char * kwnames[] = { | |
34755 | (char *) "self",(char *) "item", NULL | |
34756 | }; | |
34757 | ||
34758 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
34759 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34760 | if (!SWIG_IsOK(res1)) { | |
34761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
34762 | } | |
34763 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34764 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34765 | if (!SWIG_IsOK(res2)) { | |
34766 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34767 | } | |
34768 | if (!argp2) { | |
34769 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34770 | } | |
34771 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34772 | { | |
34773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34774 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
34775 | wxPyEndAllowThreads(__tstate); | |
34776 | if (PyErr_Occurred()) SWIG_fail; | |
34777 | } | |
34778 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
34779 | return resultobj; | |
34780 | fail: | |
34781 | return NULL; | |
34782 | } | |
34783 | ||
34784 | ||
34785 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34786 | PyObject *resultobj = 0; | |
34787 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34788 | wxTreeItemId *arg2 = 0 ; | |
34789 | wxString *arg3 = 0 ; | |
34790 | void *argp1 = 0 ; | |
34791 | int res1 = 0 ; | |
34792 | void *argp2 = 0 ; | |
34793 | int res2 = 0 ; | |
34794 | bool temp3 = false ; | |
34795 | PyObject * obj0 = 0 ; | |
34796 | PyObject * obj1 = 0 ; | |
34797 | PyObject * obj2 = 0 ; | |
34798 | char * kwnames[] = { | |
34799 | (char *) "self",(char *) "item",(char *) "text", NULL | |
34800 | }; | |
34801 | ||
34802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34804 | if (!SWIG_IsOK(res1)) { | |
34805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34806 | } | |
34807 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34808 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34809 | if (!SWIG_IsOK(res2)) { | |
34810 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34811 | } | |
34812 | if (!argp2) { | |
34813 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34814 | } | |
34815 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34816 | { | |
34817 | arg3 = wxString_in_helper(obj2); | |
34818 | if (arg3 == NULL) SWIG_fail; | |
34819 | temp3 = true; | |
34820 | } | |
34821 | { | |
34822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34823 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
34824 | wxPyEndAllowThreads(__tstate); | |
34825 | if (PyErr_Occurred()) SWIG_fail; | |
34826 | } | |
34827 | resultobj = SWIG_Py_Void(); | |
34828 | { | |
34829 | if (temp3) | |
34830 | delete arg3; | |
34831 | } | |
34832 | return resultobj; | |
34833 | fail: | |
34834 | { | |
34835 | if (temp3) | |
34836 | delete arg3; | |
34837 | } | |
34838 | return NULL; | |
34839 | } | |
34840 | ||
34841 | ||
34842 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34843 | PyObject *resultobj = 0; | |
34844 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34845 | wxTreeItemId *arg2 = 0 ; | |
34846 | int arg3 ; | |
34847 | wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; | |
34848 | void *argp1 = 0 ; | |
34849 | int res1 = 0 ; | |
34850 | void *argp2 = 0 ; | |
34851 | int res2 = 0 ; | |
34852 | int val3 ; | |
34853 | int ecode3 = 0 ; | |
34854 | int val4 ; | |
34855 | int ecode4 = 0 ; | |
34856 | PyObject * obj0 = 0 ; | |
34857 | PyObject * obj1 = 0 ; | |
34858 | PyObject * obj2 = 0 ; | |
34859 | PyObject * obj3 = 0 ; | |
34860 | char * kwnames[] = { | |
34861 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
34862 | }; | |
34863 | ||
34864 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34865 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34866 | if (!SWIG_IsOK(res1)) { | |
34867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34868 | } | |
34869 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34870 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34871 | if (!SWIG_IsOK(res2)) { | |
34872 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34873 | } | |
34874 | if (!argp2) { | |
34875 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34876 | } | |
34877 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34878 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34879 | if (!SWIG_IsOK(ecode3)) { | |
34880 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'"); | |
34881 | } | |
34882 | arg3 = static_cast< int >(val3); | |
34883 | if (obj3) { | |
34884 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34885 | if (!SWIG_IsOK(ecode4)) { | |
34886 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'"); | |
34887 | } | |
34888 | arg4 = static_cast< wxTreeItemIcon >(val4); | |
34889 | } | |
34890 | { | |
34891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34892 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4); | |
34893 | wxPyEndAllowThreads(__tstate); | |
34894 | if (PyErr_Occurred()) SWIG_fail; | |
34895 | } | |
34896 | resultobj = SWIG_Py_Void(); | |
34897 | return resultobj; | |
34898 | fail: | |
34899 | return NULL; | |
34900 | } | |
34901 | ||
34902 | ||
34903 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34904 | PyObject *resultobj = 0; | |
34905 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34906 | wxTreeItemId *arg2 = 0 ; | |
34907 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
34908 | void *argp1 = 0 ; | |
34909 | int res1 = 0 ; | |
34910 | void *argp2 = 0 ; | |
34911 | int res2 = 0 ; | |
34912 | int res3 = 0 ; | |
34913 | PyObject * obj0 = 0 ; | |
34914 | PyObject * obj1 = 0 ; | |
34915 | PyObject * obj2 = 0 ; | |
34916 | char * kwnames[] = { | |
34917 | (char *) "self",(char *) "item",(char *) "data", NULL | |
34918 | }; | |
34919 | ||
34920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) 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_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
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_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34929 | } | |
34930 | if (!argp2) { | |
34931 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34932 | } | |
34933 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34934 | res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
34935 | if (!SWIG_IsOK(res3)) { | |
34936 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'"); | |
34937 | } | |
34938 | { | |
34939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34940 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
34941 | wxPyEndAllowThreads(__tstate); | |
34942 | if (PyErr_Occurred()) SWIG_fail; | |
34943 | } | |
34944 | resultobj = SWIG_Py_Void(); | |
34945 | return resultobj; | |
34946 | fail: | |
34947 | return NULL; | |
34948 | } | |
34949 | ||
34950 | ||
34951 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34952 | PyObject *resultobj = 0; | |
34953 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34954 | wxTreeItemId *arg2 = 0 ; | |
34955 | PyObject *arg3 = (PyObject *) 0 ; | |
34956 | void *argp1 = 0 ; | |
34957 | int res1 = 0 ; | |
34958 | void *argp2 = 0 ; | |
34959 | int res2 = 0 ; | |
34960 | PyObject * obj0 = 0 ; | |
34961 | PyObject * obj1 = 0 ; | |
34962 | PyObject * obj2 = 0 ; | |
34963 | char * kwnames[] = { | |
34964 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
34965 | }; | |
34966 | ||
34967 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34968 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
34969 | if (!SWIG_IsOK(res1)) { | |
34970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
34971 | } | |
34972 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
34973 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
34974 | if (!SWIG_IsOK(res2)) { | |
34975 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34976 | } | |
34977 | if (!argp2) { | |
34978 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
34979 | } | |
34980 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
34981 | arg3 = obj2; | |
34982 | { | |
34983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34984 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
34985 | wxPyEndAllowThreads(__tstate); | |
34986 | if (PyErr_Occurred()) SWIG_fail; | |
34987 | } | |
34988 | resultobj = SWIG_Py_Void(); | |
34989 | return resultobj; | |
34990 | fail: | |
34991 | return NULL; | |
34992 | } | |
34993 | ||
34994 | ||
34995 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34996 | PyObject *resultobj = 0; | |
34997 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
34998 | wxTreeItemId *arg2 = 0 ; | |
34999 | bool arg3 = (bool) true ; | |
35000 | void *argp1 = 0 ; | |
35001 | int res1 = 0 ; | |
35002 | void *argp2 = 0 ; | |
35003 | int res2 = 0 ; | |
35004 | bool val3 ; | |
35005 | int ecode3 = 0 ; | |
35006 | PyObject * obj0 = 0 ; | |
35007 | PyObject * obj1 = 0 ; | |
35008 | PyObject * obj2 = 0 ; | |
35009 | char * kwnames[] = { | |
35010 | (char *) "self",(char *) "item",(char *) "has", NULL | |
35011 | }; | |
35012 | ||
35013 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35014 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35015 | if (!SWIG_IsOK(res1)) { | |
35016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35017 | } | |
35018 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35019 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35020 | if (!SWIG_IsOK(res2)) { | |
35021 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35022 | } | |
35023 | if (!argp2) { | |
35024 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35025 | } | |
35026 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35027 | if (obj2) { | |
35028 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35029 | if (!SWIG_IsOK(ecode3)) { | |
35030 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'"); | |
35031 | } | |
35032 | arg3 = static_cast< bool >(val3); | |
35033 | } | |
35034 | { | |
35035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35036 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
35037 | wxPyEndAllowThreads(__tstate); | |
35038 | if (PyErr_Occurred()) SWIG_fail; | |
35039 | } | |
35040 | resultobj = SWIG_Py_Void(); | |
35041 | return resultobj; | |
35042 | fail: | |
35043 | return NULL; | |
35044 | } | |
35045 | ||
35046 | ||
35047 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35048 | PyObject *resultobj = 0; | |
35049 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35050 | wxTreeItemId *arg2 = 0 ; | |
35051 | bool arg3 = (bool) true ; | |
35052 | void *argp1 = 0 ; | |
35053 | int res1 = 0 ; | |
35054 | void *argp2 = 0 ; | |
35055 | int res2 = 0 ; | |
35056 | bool val3 ; | |
35057 | int ecode3 = 0 ; | |
35058 | PyObject * obj0 = 0 ; | |
35059 | PyObject * obj1 = 0 ; | |
35060 | PyObject * obj2 = 0 ; | |
35061 | char * kwnames[] = { | |
35062 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
35063 | }; | |
35064 | ||
35065 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35066 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35067 | if (!SWIG_IsOK(res1)) { | |
35068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35069 | } | |
35070 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35071 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35072 | if (!SWIG_IsOK(res2)) { | |
35073 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35074 | } | |
35075 | if (!argp2) { | |
35076 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35077 | } | |
35078 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35079 | if (obj2) { | |
35080 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35081 | if (!SWIG_IsOK(ecode3)) { | |
35082 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'"); | |
35083 | } | |
35084 | arg3 = static_cast< bool >(val3); | |
35085 | } | |
35086 | { | |
35087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35088 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
35089 | wxPyEndAllowThreads(__tstate); | |
35090 | if (PyErr_Occurred()) SWIG_fail; | |
35091 | } | |
35092 | resultobj = SWIG_Py_Void(); | |
35093 | return resultobj; | |
35094 | fail: | |
35095 | return NULL; | |
35096 | } | |
35097 | ||
35098 | ||
35099 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35100 | PyObject *resultobj = 0; | |
35101 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35102 | wxTreeItemId *arg2 = 0 ; | |
35103 | bool arg3 = (bool) true ; | |
35104 | void *argp1 = 0 ; | |
35105 | int res1 = 0 ; | |
35106 | void *argp2 = 0 ; | |
35107 | int res2 = 0 ; | |
35108 | bool val3 ; | |
35109 | int ecode3 = 0 ; | |
35110 | PyObject * obj0 = 0 ; | |
35111 | PyObject * obj1 = 0 ; | |
35112 | PyObject * obj2 = 0 ; | |
35113 | char * kwnames[] = { | |
35114 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
35115 | }; | |
35116 | ||
35117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35118 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35119 | if (!SWIG_IsOK(res1)) { | |
35120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35121 | } | |
35122 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35123 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35124 | if (!SWIG_IsOK(res2)) { | |
35125 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35126 | } | |
35127 | if (!argp2) { | |
35128 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35129 | } | |
35130 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35131 | if (obj2) { | |
35132 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35133 | if (!SWIG_IsOK(ecode3)) { | |
35134 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'"); | |
35135 | } | |
35136 | arg3 = static_cast< bool >(val3); | |
35137 | } | |
35138 | { | |
35139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35140 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
35141 | wxPyEndAllowThreads(__tstate); | |
35142 | if (PyErr_Occurred()) SWIG_fail; | |
35143 | } | |
35144 | resultobj = SWIG_Py_Void(); | |
35145 | return resultobj; | |
35146 | fail: | |
35147 | return NULL; | |
35148 | } | |
35149 | ||
35150 | ||
35151 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35152 | PyObject *resultobj = 0; | |
35153 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35154 | wxTreeItemId *arg2 = 0 ; | |
35155 | wxColour *arg3 = 0 ; | |
35156 | void *argp1 = 0 ; | |
35157 | int res1 = 0 ; | |
35158 | void *argp2 = 0 ; | |
35159 | int res2 = 0 ; | |
35160 | wxColour temp3 ; | |
35161 | PyObject * obj0 = 0 ; | |
35162 | PyObject * obj1 = 0 ; | |
35163 | PyObject * obj2 = 0 ; | |
35164 | char * kwnames[] = { | |
35165 | (char *) "self",(char *) "item",(char *) "col", NULL | |
35166 | }; | |
35167 | ||
35168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35170 | if (!SWIG_IsOK(res1)) { | |
35171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35172 | } | |
35173 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35174 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35175 | if (!SWIG_IsOK(res2)) { | |
35176 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35177 | } | |
35178 | if (!argp2) { | |
35179 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35180 | } | |
35181 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35182 | { | |
35183 | arg3 = &temp3; | |
35184 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
35185 | } | |
35186 | { | |
35187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35188 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
35189 | wxPyEndAllowThreads(__tstate); | |
35190 | if (PyErr_Occurred()) SWIG_fail; | |
35191 | } | |
35192 | resultobj = SWIG_Py_Void(); | |
35193 | return resultobj; | |
35194 | fail: | |
35195 | return NULL; | |
35196 | } | |
35197 | ||
35198 | ||
35199 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35200 | PyObject *resultobj = 0; | |
35201 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35202 | wxTreeItemId *arg2 = 0 ; | |
35203 | wxColour *arg3 = 0 ; | |
35204 | void *argp1 = 0 ; | |
35205 | int res1 = 0 ; | |
35206 | void *argp2 = 0 ; | |
35207 | int res2 = 0 ; | |
35208 | wxColour temp3 ; | |
35209 | PyObject * obj0 = 0 ; | |
35210 | PyObject * obj1 = 0 ; | |
35211 | PyObject * obj2 = 0 ; | |
35212 | char * kwnames[] = { | |
35213 | (char *) "self",(char *) "item",(char *) "col", NULL | |
35214 | }; | |
35215 | ||
35216 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35217 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35218 | if (!SWIG_IsOK(res1)) { | |
35219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35220 | } | |
35221 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35222 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35223 | if (!SWIG_IsOK(res2)) { | |
35224 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35225 | } | |
35226 | if (!argp2) { | |
35227 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35228 | } | |
35229 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35230 | { | |
35231 | arg3 = &temp3; | |
35232 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
35233 | } | |
35234 | { | |
35235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35236 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
35237 | wxPyEndAllowThreads(__tstate); | |
35238 | if (PyErr_Occurred()) SWIG_fail; | |
35239 | } | |
35240 | resultobj = SWIG_Py_Void(); | |
35241 | return resultobj; | |
35242 | fail: | |
35243 | return NULL; | |
35244 | } | |
35245 | ||
35246 | ||
35247 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35248 | PyObject *resultobj = 0; | |
35249 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35250 | wxTreeItemId *arg2 = 0 ; | |
35251 | wxFont *arg3 = 0 ; | |
35252 | void *argp1 = 0 ; | |
35253 | int res1 = 0 ; | |
35254 | void *argp2 = 0 ; | |
35255 | int res2 = 0 ; | |
35256 | void *argp3 = 0 ; | |
35257 | int res3 = 0 ; | |
35258 | PyObject * obj0 = 0 ; | |
35259 | PyObject * obj1 = 0 ; | |
35260 | PyObject * obj2 = 0 ; | |
35261 | char * kwnames[] = { | |
35262 | (char *) "self",(char *) "item",(char *) "font", NULL | |
35263 | }; | |
35264 | ||
35265 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35266 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35267 | if (!SWIG_IsOK(res1)) { | |
35268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35269 | } | |
35270 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35271 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35272 | if (!SWIG_IsOK(res2)) { | |
35273 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35274 | } | |
35275 | if (!argp2) { | |
35276 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35277 | } | |
35278 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35279 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
35280 | if (!SWIG_IsOK(res3)) { | |
35281 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
35282 | } | |
35283 | if (!argp3) { | |
35284 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
35285 | } | |
35286 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
35287 | { | |
35288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35289 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
35290 | wxPyEndAllowThreads(__tstate); | |
35291 | if (PyErr_Occurred()) SWIG_fail; | |
35292 | } | |
35293 | resultobj = SWIG_Py_Void(); | |
35294 | return resultobj; | |
35295 | fail: | |
35296 | return NULL; | |
35297 | } | |
35298 | ||
35299 | ||
35300 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35301 | PyObject *resultobj = 0; | |
35302 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35303 | wxTreeItemId *arg2 = 0 ; | |
35304 | bool result; | |
35305 | void *argp1 = 0 ; | |
35306 | int res1 = 0 ; | |
35307 | void *argp2 = 0 ; | |
35308 | int res2 = 0 ; | |
35309 | PyObject * obj0 = 0 ; | |
35310 | PyObject * obj1 = 0 ; | |
35311 | char * kwnames[] = { | |
35312 | (char *) "self",(char *) "item", NULL | |
35313 | }; | |
35314 | ||
35315 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
35316 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35317 | if (!SWIG_IsOK(res1)) { | |
35318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35319 | } | |
35320 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35321 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35322 | if (!SWIG_IsOK(res2)) { | |
35323 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35324 | } | |
35325 | if (!argp2) { | |
35326 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35327 | } | |
35328 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35329 | { | |
35330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35331 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
35332 | wxPyEndAllowThreads(__tstate); | |
35333 | if (PyErr_Occurred()) SWIG_fail; | |
35334 | } | |
35335 | { | |
35336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35337 | } | |
35338 | return resultobj; | |
35339 | fail: | |
35340 | return NULL; | |
35341 | } | |
35342 | ||
35343 | ||
35344 | SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35345 | PyObject *resultobj = 0; | |
35346 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35347 | wxTreeItemId *arg2 = 0 ; | |
35348 | bool result; | |
35349 | void *argp1 = 0 ; | |
35350 | int res1 = 0 ; | |
35351 | void *argp2 = 0 ; | |
35352 | int res2 = 0 ; | |
35353 | PyObject * obj0 = 0 ; | |
35354 | PyObject * obj1 = 0 ; | |
35355 | char * kwnames[] = { | |
35356 | (char *) "self",(char *) "item", NULL | |
35357 | }; | |
35358 | ||
35359 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
35360 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35361 | if (!SWIG_IsOK(res1)) { | |
35362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35363 | } | |
35364 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35365 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35366 | if (!SWIG_IsOK(res2)) { | |
35367 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35368 | } | |
35369 | if (!argp2) { | |
35370 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35371 | } | |
35372 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35373 | { | |
35374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35375 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
35376 | wxPyEndAllowThreads(__tstate); | |
35377 | if (PyErr_Occurred()) SWIG_fail; | |
35378 | } | |
35379 | { | |
35380 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35381 | } | |
35382 | return resultobj; | |
35383 | fail: | |
35384 | return NULL; | |
35385 | } | |
35386 | ||
35387 | ||
35388 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35389 | PyObject *resultobj = 0; | |
35390 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35391 | wxTreeItemId *arg2 = 0 ; | |
35392 | bool result; | |
35393 | void *argp1 = 0 ; | |
35394 | int res1 = 0 ; | |
35395 | void *argp2 = 0 ; | |
35396 | int res2 = 0 ; | |
35397 | PyObject * obj0 = 0 ; | |
35398 | PyObject * obj1 = 0 ; | |
35399 | char * kwnames[] = { | |
35400 | (char *) "self",(char *) "item", NULL | |
35401 | }; | |
35402 | ||
35403 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail; | |
35404 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35405 | if (!SWIG_IsOK(res1)) { | |
35406 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35407 | } | |
35408 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35409 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35410 | if (!SWIG_IsOK(res2)) { | |
35411 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35412 | } | |
35413 | if (!argp2) { | |
35414 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35415 | } | |
35416 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35417 | { | |
35418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35419 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
35420 | wxPyEndAllowThreads(__tstate); | |
35421 | if (PyErr_Occurred()) SWIG_fail; | |
35422 | } | |
35423 | { | |
35424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35425 | } | |
35426 | return resultobj; | |
35427 | fail: | |
35428 | return NULL; | |
35429 | } | |
35430 | ||
35431 | ||
35432 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35433 | PyObject *resultobj = 0; | |
35434 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35435 | wxTreeItemId *arg2 = 0 ; | |
35436 | bool result; | |
35437 | void *argp1 = 0 ; | |
35438 | int res1 = 0 ; | |
35439 | void *argp2 = 0 ; | |
35440 | int res2 = 0 ; | |
35441 | PyObject * obj0 = 0 ; | |
35442 | PyObject * obj1 = 0 ; | |
35443 | char * kwnames[] = { | |
35444 | (char *) "self",(char *) "item", NULL | |
35445 | }; | |
35446 | ||
35447 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
35448 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35449 | if (!SWIG_IsOK(res1)) { | |
35450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35451 | } | |
35452 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35453 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35454 | if (!SWIG_IsOK(res2)) { | |
35455 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35456 | } | |
35457 | if (!argp2) { | |
35458 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35459 | } | |
35460 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35461 | { | |
35462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35463 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
35464 | wxPyEndAllowThreads(__tstate); | |
35465 | if (PyErr_Occurred()) SWIG_fail; | |
35466 | } | |
35467 | { | |
35468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35469 | } | |
35470 | return resultobj; | |
35471 | fail: | |
35472 | return NULL; | |
35473 | } | |
35474 | ||
35475 | ||
35476 | SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35477 | PyObject *resultobj = 0; | |
35478 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35479 | wxTreeItemId *arg2 = 0 ; | |
35480 | bool result; | |
35481 | void *argp1 = 0 ; | |
35482 | int res1 = 0 ; | |
35483 | void *argp2 = 0 ; | |
35484 | int res2 = 0 ; | |
35485 | PyObject * obj0 = 0 ; | |
35486 | PyObject * obj1 = 0 ; | |
35487 | char * kwnames[] = { | |
35488 | (char *) "self",(char *) "item", NULL | |
35489 | }; | |
35490 | ||
35491 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail; | |
35492 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35493 | if (!SWIG_IsOK(res1)) { | |
35494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35495 | } | |
35496 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35497 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35498 | if (!SWIG_IsOK(res2)) { | |
35499 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35500 | } | |
35501 | if (!argp2) { | |
35502 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35503 | } | |
35504 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35505 | { | |
35506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35507 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
35508 | wxPyEndAllowThreads(__tstate); | |
35509 | if (PyErr_Occurred()) SWIG_fail; | |
35510 | } | |
35511 | { | |
35512 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35513 | } | |
35514 | return resultobj; | |
35515 | fail: | |
35516 | return NULL; | |
35517 | } | |
35518 | ||
35519 | ||
35520 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35521 | PyObject *resultobj = 0; | |
35522 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35523 | wxTreeItemId *arg2 = 0 ; | |
35524 | bool arg3 = (bool) true ; | |
35525 | size_t result; | |
35526 | void *argp1 = 0 ; | |
35527 | int res1 = 0 ; | |
35528 | void *argp2 = 0 ; | |
35529 | int res2 = 0 ; | |
35530 | bool val3 ; | |
35531 | int ecode3 = 0 ; | |
35532 | PyObject * obj0 = 0 ; | |
35533 | PyObject * obj1 = 0 ; | |
35534 | PyObject * obj2 = 0 ; | |
35535 | char * kwnames[] = { | |
35536 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
35537 | }; | |
35538 | ||
35539 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35540 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35541 | if (!SWIG_IsOK(res1)) { | |
35542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35543 | } | |
35544 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35545 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35546 | if (!SWIG_IsOK(res2)) { | |
35547 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35548 | } | |
35549 | if (!argp2) { | |
35550 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35551 | } | |
35552 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35553 | if (obj2) { | |
35554 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35555 | if (!SWIG_IsOK(ecode3)) { | |
35556 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'"); | |
35557 | } | |
35558 | arg3 = static_cast< bool >(val3); | |
35559 | } | |
35560 | { | |
35561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35562 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
35563 | wxPyEndAllowThreads(__tstate); | |
35564 | if (PyErr_Occurred()) SWIG_fail; | |
35565 | } | |
35566 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
35567 | return resultobj; | |
35568 | fail: | |
35569 | return NULL; | |
d14a1e28 RD |
35570 | } |
35571 | ||
35572 | ||
0085ce49 RD |
35573 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35574 | PyObject *resultobj = 0; | |
35575 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35576 | wxTreeItemId result; | |
35577 | void *argp1 = 0 ; | |
35578 | int res1 = 0 ; | |
35579 | PyObject *swig_obj[1] ; | |
35580 | ||
35581 | if (!args) SWIG_fail; | |
35582 | swig_obj[0] = args; | |
35583 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35584 | if (!SWIG_IsOK(res1)) { | |
35585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35586 | } | |
35587 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35588 | { | |
35589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35590 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
35591 | wxPyEndAllowThreads(__tstate); | |
35592 | if (PyErr_Occurred()) SWIG_fail; | |
35593 | } | |
35594 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35595 | return resultobj; | |
35596 | fail: | |
35597 | return NULL; | |
d14a1e28 RD |
35598 | } |
35599 | ||
35600 | ||
0085ce49 RD |
35601 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35602 | PyObject *resultobj = 0; | |
35603 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35604 | wxTreeItemId result; | |
35605 | void *argp1 = 0 ; | |
35606 | int res1 = 0 ; | |
35607 | PyObject *swig_obj[1] ; | |
35608 | ||
35609 | if (!args) SWIG_fail; | |
35610 | swig_obj[0] = args; | |
35611 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35612 | if (!SWIG_IsOK(res1)) { | |
35613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35614 | } | |
35615 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35616 | { | |
35617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35618 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
35619 | wxPyEndAllowThreads(__tstate); | |
35620 | if (PyErr_Occurred()) SWIG_fail; | |
35621 | } | |
35622 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35623 | return resultobj; | |
35624 | fail: | |
35625 | return NULL; | |
d14a1e28 RD |
35626 | } |
35627 | ||
35628 | ||
0085ce49 RD |
35629 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35630 | PyObject *resultobj = 0; | |
35631 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35632 | PyObject *result = 0 ; | |
35633 | void *argp1 = 0 ; | |
35634 | int res1 = 0 ; | |
35635 | PyObject *swig_obj[1] ; | |
35636 | ||
35637 | if (!args) SWIG_fail; | |
35638 | swig_obj[0] = args; | |
35639 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35640 | if (!SWIG_IsOK(res1)) { | |
35641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35642 | } | |
35643 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35644 | { | |
35645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35646 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
35647 | wxPyEndAllowThreads(__tstate); | |
35648 | if (PyErr_Occurred()) SWIG_fail; | |
35649 | } | |
35650 | resultobj = result; | |
35651 | return resultobj; | |
35652 | fail: | |
35653 | return NULL; | |
35654 | } | |
35655 | ||
35656 | ||
35657 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35658 | PyObject *resultobj = 0; | |
35659 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35660 | wxTreeItemId *arg2 = 0 ; | |
35661 | wxTreeItemId result; | |
35662 | void *argp1 = 0 ; | |
35663 | int res1 = 0 ; | |
35664 | void *argp2 = 0 ; | |
35665 | int res2 = 0 ; | |
35666 | PyObject * obj0 = 0 ; | |
35667 | PyObject * obj1 = 0 ; | |
35668 | char * kwnames[] = { | |
35669 | (char *) "self",(char *) "item", NULL | |
35670 | }; | |
35671 | ||
35672 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
35673 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35674 | if (!SWIG_IsOK(res1)) { | |
35675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35676 | } | |
35677 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35678 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35679 | if (!SWIG_IsOK(res2)) { | |
35680 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35681 | } | |
35682 | if (!argp2) { | |
35683 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35684 | } | |
35685 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35686 | { | |
35687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35688 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
35689 | wxPyEndAllowThreads(__tstate); | |
35690 | if (PyErr_Occurred()) SWIG_fail; | |
35691 | } | |
35692 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35693 | return resultobj; | |
35694 | fail: | |
35695 | return NULL; | |
35696 | } | |
35697 | ||
35698 | ||
35699 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35700 | PyObject *resultobj = 0; | |
35701 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35702 | wxTreeItemId *arg2 = 0 ; | |
35703 | PyObject *result = 0 ; | |
35704 | void *argp1 = 0 ; | |
35705 | int res1 = 0 ; | |
35706 | void *argp2 = 0 ; | |
35707 | int res2 = 0 ; | |
35708 | PyObject * obj0 = 0 ; | |
35709 | PyObject * obj1 = 0 ; | |
35710 | char * kwnames[] = { | |
35711 | (char *) "self",(char *) "item", NULL | |
35712 | }; | |
35713 | ||
35714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
35715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35716 | if (!SWIG_IsOK(res1)) { | |
35717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35718 | } | |
35719 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35720 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35721 | if (!SWIG_IsOK(res2)) { | |
35722 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35723 | } | |
35724 | if (!argp2) { | |
35725 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35726 | } | |
35727 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35728 | { | |
35729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35730 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
35731 | wxPyEndAllowThreads(__tstate); | |
35732 | if (PyErr_Occurred()) SWIG_fail; | |
35733 | } | |
35734 | resultobj = result; | |
35735 | return resultobj; | |
35736 | fail: | |
35737 | return NULL; | |
35738 | } | |
35739 | ||
35740 | ||
35741 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35742 | PyObject *resultobj = 0; | |
35743 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35744 | wxTreeItemId *arg2 = 0 ; | |
35745 | void *arg3 = (void *) 0 ; | |
35746 | PyObject *result = 0 ; | |
35747 | void *argp1 = 0 ; | |
35748 | int res1 = 0 ; | |
35749 | void *argp2 = 0 ; | |
35750 | int res2 = 0 ; | |
35751 | int res3 ; | |
35752 | PyObject * obj0 = 0 ; | |
35753 | PyObject * obj1 = 0 ; | |
35754 | PyObject * obj2 = 0 ; | |
35755 | char * kwnames[] = { | |
35756 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
35757 | }; | |
35758 | ||
35759 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35760 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35761 | if (!SWIG_IsOK(res1)) { | |
35762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
35763 | } | |
35764 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35765 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35766 | if (!SWIG_IsOK(res2)) { | |
35767 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35768 | } | |
35769 | if (!argp2) { | |
35770 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35771 | } | |
35772 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35773 | res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); | |
35774 | if (!SWIG_IsOK(res3)) { | |
35775 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'"); | |
35776 | } | |
35777 | { | |
35778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35779 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
35780 | wxPyEndAllowThreads(__tstate); | |
35781 | if (PyErr_Occurred()) SWIG_fail; | |
35782 | } | |
35783 | resultobj = result; | |
35784 | return resultobj; | |
35785 | fail: | |
35786 | return NULL; | |
35787 | } | |
35788 | ||
35789 | ||
35790 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35791 | PyObject *resultobj = 0; | |
35792 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35793 | wxTreeItemId *arg2 = 0 ; | |
35794 | wxTreeItemId result; | |
35795 | void *argp1 = 0 ; | |
35796 | int res1 = 0 ; | |
35797 | void *argp2 = 0 ; | |
35798 | int res2 = 0 ; | |
35799 | PyObject * obj0 = 0 ; | |
35800 | PyObject * obj1 = 0 ; | |
35801 | char * kwnames[] = { | |
35802 | (char *) "self",(char *) "item", NULL | |
35803 | }; | |
35804 | ||
35805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
35806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35807 | if (!SWIG_IsOK(res1)) { | |
35808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35809 | } | |
35810 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35811 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35812 | if (!SWIG_IsOK(res2)) { | |
35813 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35814 | } | |
35815 | if (!argp2) { | |
35816 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35817 | } | |
35818 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35819 | { | |
35820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35821 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
35822 | wxPyEndAllowThreads(__tstate); | |
35823 | if (PyErr_Occurred()) SWIG_fail; | |
35824 | } | |
35825 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35826 | return resultobj; | |
35827 | fail: | |
35828 | return NULL; | |
35829 | } | |
35830 | ||
35831 | ||
35832 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35833 | PyObject *resultobj = 0; | |
35834 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35835 | wxTreeItemId *arg2 = 0 ; | |
35836 | wxTreeItemId result; | |
35837 | void *argp1 = 0 ; | |
35838 | int res1 = 0 ; | |
35839 | void *argp2 = 0 ; | |
35840 | int res2 = 0 ; | |
35841 | PyObject * obj0 = 0 ; | |
35842 | PyObject * obj1 = 0 ; | |
35843 | char * kwnames[] = { | |
35844 | (char *) "self",(char *) "item", NULL | |
35845 | }; | |
35846 | ||
35847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail; | |
35848 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35849 | if (!SWIG_IsOK(res1)) { | |
35850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35851 | } | |
35852 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35853 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35854 | if (!SWIG_IsOK(res2)) { | |
35855 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35856 | } | |
35857 | if (!argp2) { | |
35858 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35859 | } | |
35860 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35861 | { | |
35862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35863 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
35864 | wxPyEndAllowThreads(__tstate); | |
35865 | if (PyErr_Occurred()) SWIG_fail; | |
35866 | } | |
35867 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35868 | return resultobj; | |
35869 | fail: | |
35870 | return NULL; | |
35871 | } | |
35872 | ||
35873 | ||
35874 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35875 | PyObject *resultobj = 0; | |
35876 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35877 | wxTreeItemId *arg2 = 0 ; | |
35878 | wxTreeItemId result; | |
35879 | void *argp1 = 0 ; | |
35880 | int res1 = 0 ; | |
35881 | void *argp2 = 0 ; | |
35882 | int res2 = 0 ; | |
35883 | PyObject * obj0 = 0 ; | |
35884 | PyObject * obj1 = 0 ; | |
35885 | char * kwnames[] = { | |
35886 | (char *) "self",(char *) "item", NULL | |
35887 | }; | |
35888 | ||
35889 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail; | |
35890 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35891 | if (!SWIG_IsOK(res1)) { | |
35892 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35893 | } | |
35894 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35895 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35896 | if (!SWIG_IsOK(res2)) { | |
35897 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35898 | } | |
35899 | if (!argp2) { | |
35900 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35901 | } | |
35902 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35903 | { | |
35904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35905 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
35906 | wxPyEndAllowThreads(__tstate); | |
35907 | if (PyErr_Occurred()) SWIG_fail; | |
35908 | } | |
35909 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35910 | return resultobj; | |
35911 | fail: | |
35912 | return NULL; | |
d14a1e28 RD |
35913 | } |
35914 | ||
35915 | ||
0085ce49 RD |
35916 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35917 | PyObject *resultobj = 0; | |
35918 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35919 | wxTreeItemId result; | |
35920 | void *argp1 = 0 ; | |
35921 | int res1 = 0 ; | |
35922 | PyObject *swig_obj[1] ; | |
35923 | ||
35924 | if (!args) SWIG_fail; | |
35925 | swig_obj[0] = args; | |
35926 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35927 | if (!SWIG_IsOK(res1)) { | |
35928 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35929 | } | |
35930 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35931 | { | |
35932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35933 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
35934 | wxPyEndAllowThreads(__tstate); | |
35935 | if (PyErr_Occurred()) SWIG_fail; | |
35936 | } | |
35937 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35938 | return resultobj; | |
35939 | fail: | |
35940 | return NULL; | |
35941 | } | |
35942 | ||
35943 | ||
35944 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35945 | PyObject *resultobj = 0; | |
35946 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35947 | wxTreeItemId *arg2 = 0 ; | |
35948 | wxTreeItemId result; | |
35949 | void *argp1 = 0 ; | |
35950 | int res1 = 0 ; | |
35951 | void *argp2 = 0 ; | |
35952 | int res2 = 0 ; | |
35953 | PyObject * obj0 = 0 ; | |
35954 | PyObject * obj1 = 0 ; | |
35955 | char * kwnames[] = { | |
35956 | (char *) "self",(char *) "item", NULL | |
35957 | }; | |
35958 | ||
35959 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
35960 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
35961 | if (!SWIG_IsOK(res1)) { | |
35962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
35963 | } | |
35964 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
35965 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
35966 | if (!SWIG_IsOK(res2)) { | |
35967 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35968 | } | |
35969 | if (!argp2) { | |
35970 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
35971 | } | |
35972 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
35973 | { | |
35974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35975 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
35976 | wxPyEndAllowThreads(__tstate); | |
35977 | if (PyErr_Occurred()) SWIG_fail; | |
35978 | } | |
35979 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
35980 | return resultobj; | |
35981 | fail: | |
35982 | return NULL; | |
35983 | } | |
35984 | ||
35985 | ||
35986 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35987 | PyObject *resultobj = 0; | |
35988 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
35989 | wxTreeItemId *arg2 = 0 ; | |
35990 | wxTreeItemId result; | |
35991 | void *argp1 = 0 ; | |
35992 | int res1 = 0 ; | |
35993 | void *argp2 = 0 ; | |
35994 | int res2 = 0 ; | |
35995 | PyObject * obj0 = 0 ; | |
35996 | PyObject * obj1 = 0 ; | |
35997 | char * kwnames[] = { | |
35998 | (char *) "self",(char *) "item", NULL | |
35999 | }; | |
36000 | ||
36001 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
36002 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36003 | if (!SWIG_IsOK(res1)) { | |
36004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
36005 | } | |
36006 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36007 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36008 | if (!SWIG_IsOK(res2)) { | |
36009 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36010 | } | |
36011 | if (!argp2) { | |
36012 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36013 | } | |
36014 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36015 | { | |
36016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36017 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
36018 | wxPyEndAllowThreads(__tstate); | |
36019 | if (PyErr_Occurred()) SWIG_fail; | |
36020 | } | |
36021 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36022 | return resultobj; | |
36023 | fail: | |
36024 | return NULL; | |
36025 | } | |
36026 | ||
36027 | ||
36028 | SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36029 | PyObject *resultobj = 0; | |
36030 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36031 | wxString *arg2 = 0 ; | |
36032 | int arg3 = (int) -1 ; | |
36033 | int arg4 = (int) -1 ; | |
36034 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
36035 | wxTreeItemId result; | |
36036 | void *argp1 = 0 ; | |
36037 | int res1 = 0 ; | |
36038 | bool temp2 = false ; | |
36039 | int val3 ; | |
36040 | int ecode3 = 0 ; | |
36041 | int val4 ; | |
36042 | int ecode4 = 0 ; | |
36043 | int res5 = 0 ; | |
36044 | PyObject * obj0 = 0 ; | |
36045 | PyObject * obj1 = 0 ; | |
36046 | PyObject * obj2 = 0 ; | |
36047 | PyObject * obj3 = 0 ; | |
36048 | PyObject * obj4 = 0 ; | |
36049 | char * kwnames[] = { | |
36050 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36051 | }; | |
36052 | ||
36053 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36054 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36055 | if (!SWIG_IsOK(res1)) { | |
36056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36057 | } | |
36058 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36059 | { | |
36060 | arg2 = wxString_in_helper(obj1); | |
36061 | if (arg2 == NULL) SWIG_fail; | |
36062 | temp2 = true; | |
36063 | } | |
36064 | if (obj2) { | |
36065 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36066 | if (!SWIG_IsOK(ecode3)) { | |
36067 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'"); | |
36068 | } | |
36069 | arg3 = static_cast< int >(val3); | |
36070 | } | |
36071 | if (obj3) { | |
36072 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36073 | if (!SWIG_IsOK(ecode4)) { | |
36074 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'"); | |
36075 | } | |
36076 | arg4 = static_cast< int >(val4); | |
36077 | } | |
36078 | if (obj4) { | |
36079 | res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36080 | if (!SWIG_IsOK(res5)) { | |
36081 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'"); | |
3a04f143 | 36082 | } |
0085ce49 RD |
36083 | } |
36084 | { | |
36085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36086 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
36087 | wxPyEndAllowThreads(__tstate); | |
36088 | if (PyErr_Occurred()) SWIG_fail; | |
36089 | } | |
36090 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36091 | { | |
36092 | if (temp2) | |
36093 | delete arg2; | |
36094 | } | |
36095 | return resultobj; | |
36096 | fail: | |
36097 | { | |
36098 | if (temp2) | |
36099 | delete arg2; | |
36100 | } | |
36101 | return NULL; | |
36102 | } | |
36103 | ||
36104 | ||
36105 | SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36106 | PyObject *resultobj = 0; | |
36107 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36108 | wxTreeItemId *arg2 = 0 ; | |
36109 | wxString *arg3 = 0 ; | |
36110 | int arg4 = (int) -1 ; | |
36111 | int arg5 = (int) -1 ; | |
36112 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
36113 | wxTreeItemId result; | |
36114 | void *argp1 = 0 ; | |
36115 | int res1 = 0 ; | |
36116 | void *argp2 = 0 ; | |
36117 | int res2 = 0 ; | |
36118 | bool temp3 = false ; | |
36119 | int val4 ; | |
36120 | int ecode4 = 0 ; | |
36121 | int val5 ; | |
36122 | int ecode5 = 0 ; | |
36123 | int res6 = 0 ; | |
36124 | PyObject * obj0 = 0 ; | |
36125 | PyObject * obj1 = 0 ; | |
36126 | PyObject * obj2 = 0 ; | |
36127 | PyObject * obj3 = 0 ; | |
36128 | PyObject * obj4 = 0 ; | |
36129 | PyObject * obj5 = 0 ; | |
36130 | char * kwnames[] = { | |
36131 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36132 | }; | |
36133 | ||
36134 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
36135 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36136 | if (!SWIG_IsOK(res1)) { | |
36137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36138 | } | |
36139 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36140 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36141 | if (!SWIG_IsOK(res2)) { | |
36142 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36143 | } | |
36144 | if (!argp2) { | |
36145 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36146 | } | |
36147 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36148 | { | |
36149 | arg3 = wxString_in_helper(obj2); | |
36150 | if (arg3 == NULL) SWIG_fail; | |
36151 | temp3 = true; | |
36152 | } | |
36153 | if (obj3) { | |
36154 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36155 | if (!SWIG_IsOK(ecode4)) { | |
36156 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'"); | |
36157 | } | |
36158 | arg4 = static_cast< int >(val4); | |
36159 | } | |
36160 | if (obj4) { | |
36161 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36162 | if (!SWIG_IsOK(ecode5)) { | |
36163 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'"); | |
36164 | } | |
36165 | arg5 = static_cast< int >(val5); | |
36166 | } | |
36167 | if (obj5) { | |
36168 | res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36169 | if (!SWIG_IsOK(res6)) { | |
36170 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'"); | |
3a04f143 | 36171 | } |
0085ce49 RD |
36172 | } |
36173 | { | |
36174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36175 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
36176 | wxPyEndAllowThreads(__tstate); | |
36177 | if (PyErr_Occurred()) SWIG_fail; | |
36178 | } | |
36179 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36180 | { | |
36181 | if (temp3) | |
36182 | delete arg3; | |
36183 | } | |
36184 | return resultobj; | |
36185 | fail: | |
36186 | { | |
36187 | if (temp3) | |
36188 | delete arg3; | |
36189 | } | |
36190 | return NULL; | |
36191 | } | |
36192 | ||
36193 | ||
36194 | SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36195 | PyObject *resultobj = 0; | |
36196 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36197 | wxTreeItemId *arg2 = 0 ; | |
36198 | wxTreeItemId *arg3 = 0 ; | |
36199 | wxString *arg4 = 0 ; | |
36200 | int arg5 = (int) -1 ; | |
36201 | int arg6 = (int) -1 ; | |
36202 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
36203 | wxTreeItemId result; | |
36204 | void *argp1 = 0 ; | |
36205 | int res1 = 0 ; | |
36206 | void *argp2 = 0 ; | |
36207 | int res2 = 0 ; | |
36208 | void *argp3 = 0 ; | |
36209 | int res3 = 0 ; | |
36210 | bool temp4 = false ; | |
36211 | int val5 ; | |
36212 | int ecode5 = 0 ; | |
36213 | int val6 ; | |
36214 | int ecode6 = 0 ; | |
36215 | int res7 = 0 ; | |
36216 | PyObject * obj0 = 0 ; | |
36217 | PyObject * obj1 = 0 ; | |
36218 | PyObject * obj2 = 0 ; | |
36219 | PyObject * obj3 = 0 ; | |
36220 | PyObject * obj4 = 0 ; | |
36221 | PyObject * obj5 = 0 ; | |
36222 | PyObject * obj6 = 0 ; | |
36223 | char * kwnames[] = { | |
36224 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36225 | }; | |
36226 | ||
36227 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36228 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36229 | if (!SWIG_IsOK(res1)) { | |
36230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36231 | } | |
36232 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36233 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36234 | if (!SWIG_IsOK(res2)) { | |
36235 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36236 | } | |
36237 | if (!argp2) { | |
36238 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36239 | } | |
36240 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36241 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36242 | if (!SWIG_IsOK(res3)) { | |
36243 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'"); | |
36244 | } | |
36245 | if (!argp3) { | |
36246 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'"); | |
36247 | } | |
36248 | arg3 = reinterpret_cast< wxTreeItemId * >(argp3); | |
36249 | { | |
36250 | arg4 = wxString_in_helper(obj3); | |
36251 | if (arg4 == NULL) SWIG_fail; | |
36252 | temp4 = true; | |
36253 | } | |
36254 | if (obj4) { | |
36255 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36256 | if (!SWIG_IsOK(ecode5)) { | |
36257 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'"); | |
36258 | } | |
36259 | arg5 = static_cast< int >(val5); | |
36260 | } | |
36261 | if (obj5) { | |
36262 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
36263 | if (!SWIG_IsOK(ecode6)) { | |
36264 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'"); | |
36265 | } | |
36266 | arg6 = static_cast< int >(val6); | |
36267 | } | |
36268 | if (obj6) { | |
36269 | res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36270 | if (!SWIG_IsOK(res7)) { | |
36271 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'"); | |
093d3ff1 | 36272 | } |
0085ce49 RD |
36273 | } |
36274 | { | |
36275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36276 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
36277 | wxPyEndAllowThreads(__tstate); | |
36278 | if (PyErr_Occurred()) SWIG_fail; | |
36279 | } | |
36280 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36281 | { | |
36282 | if (temp4) | |
36283 | delete arg4; | |
36284 | } | |
36285 | return resultobj; | |
36286 | fail: | |
36287 | { | |
36288 | if (temp4) | |
36289 | delete arg4; | |
36290 | } | |
36291 | return NULL; | |
36292 | } | |
36293 | ||
36294 | ||
36295 | SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36296 | PyObject *resultobj = 0; | |
36297 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36298 | wxTreeItemId *arg2 = 0 ; | |
36299 | size_t arg3 ; | |
36300 | wxString *arg4 = 0 ; | |
36301 | int arg5 = (int) -1 ; | |
36302 | int arg6 = (int) -1 ; | |
36303 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
36304 | wxTreeItemId result; | |
36305 | void *argp1 = 0 ; | |
36306 | int res1 = 0 ; | |
36307 | void *argp2 = 0 ; | |
36308 | int res2 = 0 ; | |
36309 | size_t val3 ; | |
36310 | int ecode3 = 0 ; | |
36311 | bool temp4 = false ; | |
36312 | int val5 ; | |
36313 | int ecode5 = 0 ; | |
36314 | int val6 ; | |
36315 | int ecode6 = 0 ; | |
36316 | int res7 = 0 ; | |
36317 | PyObject * obj0 = 0 ; | |
36318 | PyObject * obj1 = 0 ; | |
36319 | PyObject * obj2 = 0 ; | |
36320 | PyObject * obj3 = 0 ; | |
36321 | PyObject * obj4 = 0 ; | |
36322 | PyObject * obj5 = 0 ; | |
36323 | PyObject * obj6 = 0 ; | |
36324 | char * kwnames[] = { | |
36325 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36326 | }; | |
36327 | ||
36328 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36329 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36330 | if (!SWIG_IsOK(res1)) { | |
36331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36332 | } | |
36333 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36334 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36335 | if (!SWIG_IsOK(res2)) { | |
36336 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36337 | } | |
36338 | if (!argp2) { | |
36339 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36340 | } | |
36341 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36342 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
36343 | if (!SWIG_IsOK(ecode3)) { | |
36344 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'"); | |
36345 | } | |
36346 | arg3 = static_cast< size_t >(val3); | |
36347 | { | |
36348 | arg4 = wxString_in_helper(obj3); | |
36349 | if (arg4 == NULL) SWIG_fail; | |
36350 | temp4 = true; | |
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_InsertItemBefore" "', expected argument " "5"" of type '" "int""'"); | |
36356 | } | |
36357 | arg5 = static_cast< int >(val5); | |
36358 | } | |
36359 | if (obj5) { | |
36360 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
36361 | if (!SWIG_IsOK(ecode6)) { | |
36362 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'"); | |
36363 | } | |
36364 | arg6 = static_cast< int >(val6); | |
36365 | } | |
36366 | if (obj6) { | |
36367 | res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36368 | if (!SWIG_IsOK(res7)) { | |
36369 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'"); | |
3a04f143 | 36370 | } |
0085ce49 RD |
36371 | } |
36372 | { | |
36373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36374 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
36375 | wxPyEndAllowThreads(__tstate); | |
36376 | if (PyErr_Occurred()) SWIG_fail; | |
36377 | } | |
36378 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36379 | { | |
36380 | if (temp4) | |
36381 | delete arg4; | |
36382 | } | |
36383 | return resultobj; | |
36384 | fail: | |
36385 | { | |
36386 | if (temp4) | |
36387 | delete arg4; | |
36388 | } | |
36389 | return NULL; | |
36390 | } | |
36391 | ||
36392 | ||
36393 | SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36394 | PyObject *resultobj = 0; | |
36395 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36396 | wxTreeItemId *arg2 = 0 ; | |
36397 | wxString *arg3 = 0 ; | |
36398 | int arg4 = (int) -1 ; | |
36399 | int arg5 = (int) -1 ; | |
36400 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
36401 | wxTreeItemId result; | |
36402 | void *argp1 = 0 ; | |
36403 | int res1 = 0 ; | |
36404 | void *argp2 = 0 ; | |
36405 | int res2 = 0 ; | |
36406 | bool temp3 = false ; | |
36407 | int val4 ; | |
36408 | int ecode4 = 0 ; | |
36409 | int val5 ; | |
36410 | int ecode5 = 0 ; | |
36411 | int res6 = 0 ; | |
36412 | PyObject * obj0 = 0 ; | |
36413 | PyObject * obj1 = 0 ; | |
36414 | PyObject * obj2 = 0 ; | |
36415 | PyObject * obj3 = 0 ; | |
36416 | PyObject * obj4 = 0 ; | |
36417 | PyObject * obj5 = 0 ; | |
36418 | char * kwnames[] = { | |
36419 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
36420 | }; | |
36421 | ||
36422 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
36423 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36424 | if (!SWIG_IsOK(res1)) { | |
36425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36426 | } | |
36427 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36428 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36429 | if (!SWIG_IsOK(res2)) { | |
36430 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36431 | } | |
36432 | if (!argp2) { | |
36433 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36434 | } | |
36435 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36436 | { | |
36437 | arg3 = wxString_in_helper(obj2); | |
36438 | if (arg3 == NULL) SWIG_fail; | |
36439 | temp3 = true; | |
36440 | } | |
36441 | if (obj3) { | |
36442 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36443 | if (!SWIG_IsOK(ecode4)) { | |
36444 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'"); | |
36445 | } | |
36446 | arg4 = static_cast< int >(val4); | |
36447 | } | |
36448 | if (obj4) { | |
36449 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36450 | if (!SWIG_IsOK(ecode5)) { | |
36451 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'"); | |
36452 | } | |
36453 | arg5 = static_cast< int >(val5); | |
36454 | } | |
36455 | if (obj5) { | |
36456 | res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 ); | |
36457 | if (!SWIG_IsOK(res6)) { | |
36458 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'"); | |
3a04f143 | 36459 | } |
0085ce49 RD |
36460 | } |
36461 | { | |
36462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36463 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
36464 | wxPyEndAllowThreads(__tstate); | |
36465 | if (PyErr_Occurred()) SWIG_fail; | |
36466 | } | |
36467 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
36468 | { | |
36469 | if (temp3) | |
36470 | delete arg3; | |
36471 | } | |
36472 | return resultobj; | |
36473 | fail: | |
36474 | { | |
36475 | if (temp3) | |
36476 | delete arg3; | |
36477 | } | |
36478 | return NULL; | |
36479 | } | |
36480 | ||
36481 | ||
36482 | SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36483 | PyObject *resultobj = 0; | |
36484 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36485 | wxTreeItemId *arg2 = 0 ; | |
36486 | void *argp1 = 0 ; | |
36487 | int res1 = 0 ; | |
36488 | void *argp2 = 0 ; | |
36489 | int res2 = 0 ; | |
36490 | PyObject * obj0 = 0 ; | |
36491 | PyObject * obj1 = 0 ; | |
36492 | char * kwnames[] = { | |
36493 | (char *) "self",(char *) "item", NULL | |
36494 | }; | |
36495 | ||
36496 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail; | |
36497 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36498 | if (!SWIG_IsOK(res1)) { | |
36499 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36500 | } | |
36501 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36502 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36503 | if (!SWIG_IsOK(res2)) { | |
36504 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36505 | } | |
36506 | if (!argp2) { | |
36507 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36508 | } | |
36509 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36510 | { | |
36511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36512 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
36513 | wxPyEndAllowThreads(__tstate); | |
36514 | if (PyErr_Occurred()) SWIG_fail; | |
36515 | } | |
36516 | resultobj = SWIG_Py_Void(); | |
36517 | return resultobj; | |
36518 | fail: | |
36519 | return NULL; | |
36520 | } | |
36521 | ||
36522 | ||
36523 | SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36524 | PyObject *resultobj = 0; | |
36525 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36526 | wxTreeItemId *arg2 = 0 ; | |
36527 | void *argp1 = 0 ; | |
36528 | int res1 = 0 ; | |
36529 | void *argp2 = 0 ; | |
36530 | int res2 = 0 ; | |
36531 | PyObject * obj0 = 0 ; | |
36532 | PyObject * obj1 = 0 ; | |
36533 | char * kwnames[] = { | |
36534 | (char *) "self",(char *) "item", NULL | |
36535 | }; | |
36536 | ||
36537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
36538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36539 | if (!SWIG_IsOK(res1)) { | |
36540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36541 | } | |
36542 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36543 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36544 | if (!SWIG_IsOK(res2)) { | |
36545 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36546 | } | |
36547 | if (!argp2) { | |
36548 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36549 | } | |
36550 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36551 | { | |
36552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36553 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
36554 | wxPyEndAllowThreads(__tstate); | |
36555 | if (PyErr_Occurred()) SWIG_fail; | |
36556 | } | |
36557 | resultobj = SWIG_Py_Void(); | |
36558 | return resultobj; | |
36559 | fail: | |
36560 | return NULL; | |
3a04f143 RD |
36561 | } |
36562 | ||
36563 | ||
0085ce49 RD |
36564 | SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36565 | PyObject *resultobj = 0; | |
36566 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36567 | void *argp1 = 0 ; | |
36568 | int res1 = 0 ; | |
36569 | PyObject *swig_obj[1] ; | |
36570 | ||
36571 | if (!args) SWIG_fail; | |
36572 | swig_obj[0] = args; | |
36573 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36574 | if (!SWIG_IsOK(res1)) { | |
36575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36576 | } | |
36577 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36578 | { | |
36579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36580 | (arg1)->DeleteAllItems(); | |
36581 | wxPyEndAllowThreads(__tstate); | |
36582 | if (PyErr_Occurred()) SWIG_fail; | |
36583 | } | |
36584 | resultobj = SWIG_Py_Void(); | |
36585 | return resultobj; | |
36586 | fail: | |
36587 | return NULL; | |
36588 | } | |
36589 | ||
36590 | ||
36591 | SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36592 | PyObject *resultobj = 0; | |
36593 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36594 | wxTreeItemId *arg2 = 0 ; | |
36595 | void *argp1 = 0 ; | |
36596 | int res1 = 0 ; | |
36597 | void *argp2 = 0 ; | |
36598 | int res2 = 0 ; | |
36599 | PyObject * obj0 = 0 ; | |
36600 | PyObject * obj1 = 0 ; | |
36601 | char * kwnames[] = { | |
36602 | (char *) "self",(char *) "item", NULL | |
36603 | }; | |
36604 | ||
36605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail; | |
36606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36607 | if (!SWIG_IsOK(res1)) { | |
36608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36609 | } | |
36610 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36611 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36612 | if (!SWIG_IsOK(res2)) { | |
36613 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36614 | } | |
36615 | if (!argp2) { | |
36616 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36617 | } | |
36618 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36619 | { | |
36620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36621 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
36622 | wxPyEndAllowThreads(__tstate); | |
36623 | if (PyErr_Occurred()) SWIG_fail; | |
36624 | } | |
36625 | resultobj = SWIG_Py_Void(); | |
36626 | return resultobj; | |
36627 | fail: | |
36628 | return NULL; | |
36629 | } | |
36630 | ||
36631 | ||
453fb36b RD |
36632 | SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36633 | PyObject *resultobj = 0; | |
36634 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36635 | wxTreeItemId *arg2 = 0 ; | |
36636 | void *argp1 = 0 ; | |
36637 | int res1 = 0 ; | |
36638 | void *argp2 = 0 ; | |
36639 | int res2 = 0 ; | |
36640 | PyObject * obj0 = 0 ; | |
36641 | PyObject * obj1 = 0 ; | |
36642 | char * kwnames[] = { | |
36643 | (char *) "self",(char *) "item", NULL | |
36644 | }; | |
36645 | ||
36646 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
36647 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36648 | if (!SWIG_IsOK(res1)) { | |
36649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36650 | } | |
36651 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36652 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36653 | if (!SWIG_IsOK(res2)) { | |
36654 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36655 | } | |
36656 | if (!argp2) { | |
36657 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36658 | } | |
36659 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36660 | { | |
36661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36662 | (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2); | |
36663 | wxPyEndAllowThreads(__tstate); | |
36664 | if (PyErr_Occurred()) SWIG_fail; | |
36665 | } | |
36666 | resultobj = SWIG_Py_Void(); | |
36667 | return resultobj; | |
36668 | fail: | |
36669 | return NULL; | |
36670 | } | |
36671 | ||
36672 | ||
36673 | SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36674 | PyObject *resultobj = 0; | |
36675 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36676 | void *argp1 = 0 ; | |
36677 | int res1 = 0 ; | |
36678 | PyObject *swig_obj[1] ; | |
36679 | ||
36680 | if (!args) SWIG_fail; | |
36681 | swig_obj[0] = args; | |
36682 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36683 | if (!SWIG_IsOK(res1)) { | |
36684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36685 | } | |
36686 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36687 | { | |
36688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36689 | (arg1)->ExpandAll(); | |
36690 | wxPyEndAllowThreads(__tstate); | |
36691 | if (PyErr_Occurred()) SWIG_fail; | |
36692 | } | |
36693 | resultobj = SWIG_Py_Void(); | |
36694 | return resultobj; | |
36695 | fail: | |
36696 | return NULL; | |
36697 | } | |
36698 | ||
36699 | ||
0085ce49 RD |
36700 | SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36701 | PyObject *resultobj = 0; | |
36702 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36703 | wxTreeItemId *arg2 = 0 ; | |
36704 | void *argp1 = 0 ; | |
36705 | int res1 = 0 ; | |
36706 | void *argp2 = 0 ; | |
36707 | int res2 = 0 ; | |
36708 | PyObject * obj0 = 0 ; | |
36709 | PyObject * obj1 = 0 ; | |
36710 | char * kwnames[] = { | |
36711 | (char *) "self",(char *) "item", NULL | |
36712 | }; | |
36713 | ||
36714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail; | |
36715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36716 | if (!SWIG_IsOK(res1)) { | |
36717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36718 | } | |
36719 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36720 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36721 | if (!SWIG_IsOK(res2)) { | |
36722 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36723 | } | |
36724 | if (!argp2) { | |
36725 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36726 | } | |
36727 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36728 | { | |
36729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36730 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
36731 | wxPyEndAllowThreads(__tstate); | |
36732 | if (PyErr_Occurred()) SWIG_fail; | |
36733 | } | |
36734 | resultobj = SWIG_Py_Void(); | |
36735 | return resultobj; | |
36736 | fail: | |
36737 | return NULL; | |
36738 | } | |
36739 | ||
36740 | ||
36741 | SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36742 | PyObject *resultobj = 0; | |
36743 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36744 | wxTreeItemId *arg2 = 0 ; | |
36745 | void *argp1 = 0 ; | |
36746 | int res1 = 0 ; | |
36747 | void *argp2 = 0 ; | |
36748 | int res2 = 0 ; | |
36749 | PyObject * obj0 = 0 ; | |
36750 | PyObject * obj1 = 0 ; | |
36751 | char * kwnames[] = { | |
36752 | (char *) "self",(char *) "item", NULL | |
36753 | }; | |
36754 | ||
36755 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail; | |
36756 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36757 | if (!SWIG_IsOK(res1)) { | |
36758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36759 | } | |
36760 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36761 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36762 | if (!SWIG_IsOK(res2)) { | |
36763 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36764 | } | |
36765 | if (!argp2) { | |
36766 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36767 | } | |
36768 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36769 | { | |
36770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36771 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
36772 | wxPyEndAllowThreads(__tstate); | |
36773 | if (PyErr_Occurred()) SWIG_fail; | |
36774 | } | |
36775 | resultobj = SWIG_Py_Void(); | |
36776 | return resultobj; | |
36777 | fail: | |
36778 | return NULL; | |
36779 | } | |
36780 | ||
36781 | ||
36782 | SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36783 | PyObject *resultobj = 0; | |
36784 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36785 | wxTreeItemId *arg2 = 0 ; | |
36786 | void *argp1 = 0 ; | |
36787 | int res1 = 0 ; | |
36788 | void *argp2 = 0 ; | |
36789 | int res2 = 0 ; | |
36790 | PyObject * obj0 = 0 ; | |
36791 | PyObject * obj1 = 0 ; | |
36792 | char * kwnames[] = { | |
36793 | (char *) "self",(char *) "item", NULL | |
36794 | }; | |
36795 | ||
36796 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
36797 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36798 | if (!SWIG_IsOK(res1)) { | |
36799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36800 | } | |
36801 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36802 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36803 | if (!SWIG_IsOK(res2)) { | |
36804 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36805 | } | |
36806 | if (!argp2) { | |
36807 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36808 | } | |
36809 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36810 | { | |
36811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36812 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
36813 | wxPyEndAllowThreads(__tstate); | |
36814 | if (PyErr_Occurred()) SWIG_fail; | |
36815 | } | |
36816 | resultobj = SWIG_Py_Void(); | |
36817 | return resultobj; | |
36818 | fail: | |
36819 | return NULL; | |
d14a1e28 RD |
36820 | } |
36821 | ||
36822 | ||
0085ce49 RD |
36823 | SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36824 | PyObject *resultobj = 0; | |
36825 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36826 | void *argp1 = 0 ; | |
36827 | int res1 = 0 ; | |
36828 | PyObject *swig_obj[1] ; | |
36829 | ||
36830 | if (!args) SWIG_fail; | |
36831 | swig_obj[0] = args; | |
36832 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36833 | if (!SWIG_IsOK(res1)) { | |
36834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36835 | } | |
36836 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36837 | { | |
36838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36839 | (arg1)->Unselect(); | |
36840 | wxPyEndAllowThreads(__tstate); | |
36841 | if (PyErr_Occurred()) SWIG_fail; | |
36842 | } | |
36843 | resultobj = SWIG_Py_Void(); | |
36844 | return resultobj; | |
36845 | fail: | |
36846 | return NULL; | |
36847 | } | |
36848 | ||
36849 | ||
36850 | SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36851 | PyObject *resultobj = 0; | |
36852 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36853 | wxTreeItemId *arg2 = 0 ; | |
36854 | void *argp1 = 0 ; | |
36855 | int res1 = 0 ; | |
36856 | void *argp2 = 0 ; | |
36857 | int res2 = 0 ; | |
36858 | PyObject * obj0 = 0 ; | |
36859 | PyObject * obj1 = 0 ; | |
36860 | char * kwnames[] = { | |
36861 | (char *) "self",(char *) "item", NULL | |
36862 | }; | |
36863 | ||
36864 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
36865 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36866 | if (!SWIG_IsOK(res1)) { | |
36867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36868 | } | |
36869 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36870 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36871 | if (!SWIG_IsOK(res2)) { | |
36872 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36873 | } | |
36874 | if (!argp2) { | |
36875 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36876 | } | |
36877 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36878 | { | |
36879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36880 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
36881 | wxPyEndAllowThreads(__tstate); | |
36882 | if (PyErr_Occurred()) SWIG_fail; | |
36883 | } | |
36884 | resultobj = SWIG_Py_Void(); | |
36885 | return resultobj; | |
36886 | fail: | |
36887 | return NULL; | |
d14a1e28 RD |
36888 | } |
36889 | ||
36890 | ||
0085ce49 RD |
36891 | SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36892 | PyObject *resultobj = 0; | |
36893 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36894 | void *argp1 = 0 ; | |
36895 | int res1 = 0 ; | |
36896 | PyObject *swig_obj[1] ; | |
36897 | ||
36898 | if (!args) SWIG_fail; | |
36899 | swig_obj[0] = args; | |
36900 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36901 | if (!SWIG_IsOK(res1)) { | |
36902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36903 | } | |
36904 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36905 | { | |
36906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36907 | (arg1)->UnselectAll(); | |
36908 | wxPyEndAllowThreads(__tstate); | |
36909 | if (PyErr_Occurred()) SWIG_fail; | |
36910 | } | |
36911 | resultobj = SWIG_Py_Void(); | |
36912 | return resultobj; | |
36913 | fail: | |
36914 | return NULL; | |
36915 | } | |
36916 | ||
36917 | ||
36918 | SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36919 | PyObject *resultobj = 0; | |
36920 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36921 | wxTreeItemId *arg2 = 0 ; | |
36922 | bool arg3 = (bool) true ; | |
36923 | void *argp1 = 0 ; | |
36924 | int res1 = 0 ; | |
36925 | void *argp2 = 0 ; | |
36926 | int res2 = 0 ; | |
36927 | bool val3 ; | |
36928 | int ecode3 = 0 ; | |
36929 | PyObject * obj0 = 0 ; | |
36930 | PyObject * obj1 = 0 ; | |
36931 | PyObject * obj2 = 0 ; | |
36932 | char * kwnames[] = { | |
36933 | (char *) "self",(char *) "item",(char *) "select", NULL | |
36934 | }; | |
36935 | ||
36936 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36937 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36938 | if (!SWIG_IsOK(res1)) { | |
36939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36940 | } | |
36941 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36942 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36943 | if (!SWIG_IsOK(res2)) { | |
36944 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36945 | } | |
36946 | if (!argp2) { | |
36947 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36948 | } | |
36949 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36950 | if (obj2) { | |
36951 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
36952 | if (!SWIG_IsOK(ecode3)) { | |
36953 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'"); | |
36954 | } | |
36955 | arg3 = static_cast< bool >(val3); | |
36956 | } | |
36957 | { | |
36958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36959 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
36960 | wxPyEndAllowThreads(__tstate); | |
36961 | if (PyErr_Occurred()) SWIG_fail; | |
36962 | } | |
36963 | resultobj = SWIG_Py_Void(); | |
36964 | return resultobj; | |
36965 | fail: | |
36966 | return NULL; | |
36967 | } | |
36968 | ||
36969 | ||
36970 | SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36971 | PyObject *resultobj = 0; | |
36972 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
36973 | wxTreeItemId *arg2 = 0 ; | |
36974 | void *argp1 = 0 ; | |
36975 | int res1 = 0 ; | |
36976 | void *argp2 = 0 ; | |
36977 | int res2 = 0 ; | |
36978 | PyObject * obj0 = 0 ; | |
36979 | PyObject * obj1 = 0 ; | |
36980 | char * kwnames[] = { | |
36981 | (char *) "self",(char *) "item", NULL | |
36982 | }; | |
36983 | ||
36984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
36985 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
36986 | if (!SWIG_IsOK(res1)) { | |
36987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
36988 | } | |
36989 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
36990 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
36991 | if (!SWIG_IsOK(res2)) { | |
36992 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36993 | } | |
36994 | if (!argp2) { | |
36995 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
36996 | } | |
36997 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
36998 | { | |
36999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37000 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); | |
37001 | wxPyEndAllowThreads(__tstate); | |
37002 | if (PyErr_Occurred()) SWIG_fail; | |
37003 | } | |
37004 | resultobj = SWIG_Py_Void(); | |
37005 | return resultobj; | |
37006 | fail: | |
37007 | return NULL; | |
37008 | } | |
37009 | ||
37010 | ||
37011 | SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37012 | PyObject *resultobj = 0; | |
37013 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37014 | wxTreeItemId *arg2 = 0 ; | |
37015 | void *argp1 = 0 ; | |
37016 | int res1 = 0 ; | |
37017 | void *argp2 = 0 ; | |
37018 | int res2 = 0 ; | |
37019 | PyObject * obj0 = 0 ; | |
37020 | PyObject * obj1 = 0 ; | |
37021 | char * kwnames[] = { | |
37022 | (char *) "self",(char *) "item", NULL | |
37023 | }; | |
37024 | ||
37025 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
37026 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37027 | if (!SWIG_IsOK(res1)) { | |
37028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37029 | } | |
37030 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37031 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37032 | if (!SWIG_IsOK(res2)) { | |
37033 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37034 | } | |
37035 | if (!argp2) { | |
37036 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37037 | } | |
37038 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37039 | { | |
37040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37041 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
37042 | wxPyEndAllowThreads(__tstate); | |
37043 | if (PyErr_Occurred()) SWIG_fail; | |
37044 | } | |
37045 | resultobj = SWIG_Py_Void(); | |
37046 | return resultobj; | |
37047 | fail: | |
37048 | return NULL; | |
37049 | } | |
37050 | ||
37051 | ||
37052 | SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37053 | PyObject *resultobj = 0; | |
37054 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37055 | wxTreeItemId *arg2 = 0 ; | |
37056 | void *argp1 = 0 ; | |
37057 | int res1 = 0 ; | |
37058 | void *argp2 = 0 ; | |
37059 | int res2 = 0 ; | |
37060 | PyObject * obj0 = 0 ; | |
37061 | PyObject * obj1 = 0 ; | |
37062 | char * kwnames[] = { | |
37063 | (char *) "self",(char *) "item", NULL | |
37064 | }; | |
37065 | ||
37066 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail; | |
37067 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37068 | if (!SWIG_IsOK(res1)) { | |
37069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37070 | } | |
37071 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37072 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37073 | if (!SWIG_IsOK(res2)) { | |
37074 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37075 | } | |
37076 | if (!argp2) { | |
37077 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37078 | } | |
37079 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37080 | { | |
37081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37082 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
37083 | wxPyEndAllowThreads(__tstate); | |
37084 | if (PyErr_Occurred()) SWIG_fail; | |
37085 | } | |
37086 | resultobj = SWIG_Py_Void(); | |
37087 | return resultobj; | |
37088 | fail: | |
37089 | return NULL; | |
37090 | } | |
37091 | ||
37092 | ||
37093 | SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37094 | PyObject *resultobj = 0; | |
37095 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37096 | wxTreeItemId *arg2 = 0 ; | |
37097 | void *argp1 = 0 ; | |
37098 | int res1 = 0 ; | |
37099 | void *argp2 = 0 ; | |
37100 | int res2 = 0 ; | |
37101 | PyObject * obj0 = 0 ; | |
37102 | PyObject * obj1 = 0 ; | |
37103 | char * kwnames[] = { | |
37104 | (char *) "self",(char *) "item", NULL | |
37105 | }; | |
37106 | ||
37107 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail; | |
37108 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37109 | if (!SWIG_IsOK(res1)) { | |
37110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37111 | } | |
37112 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37113 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37114 | if (!SWIG_IsOK(res2)) { | |
37115 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37116 | } | |
37117 | if (!argp2) { | |
37118 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37119 | } | |
37120 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37121 | { | |
37122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37123 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
37124 | wxPyEndAllowThreads(__tstate); | |
37125 | if (PyErr_Occurred()) SWIG_fail; | |
37126 | } | |
37127 | resultobj = SWIG_Py_Void(); | |
37128 | return resultobj; | |
37129 | fail: | |
37130 | return NULL; | |
d14a1e28 RD |
37131 | } |
37132 | ||
37133 | ||
0085ce49 RD |
37134 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37135 | PyObject *resultobj = 0; | |
37136 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37137 | wxTextCtrl *result = 0 ; | |
37138 | void *argp1 = 0 ; | |
37139 | int res1 = 0 ; | |
37140 | PyObject *swig_obj[1] ; | |
37141 | ||
37142 | if (!args) SWIG_fail; | |
37143 | swig_obj[0] = args; | |
37144 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37145 | if (!SWIG_IsOK(res1)) { | |
37146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
37147 | } | |
37148 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37149 | { | |
37150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37151 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
37152 | wxPyEndAllowThreads(__tstate); | |
37153 | if (PyErr_Occurred()) SWIG_fail; | |
37154 | } | |
37155 | { | |
37156 | resultobj = wxPyMake_wxObject(result, 0); | |
37157 | } | |
37158 | return resultobj; | |
37159 | fail: | |
37160 | return NULL; | |
37161 | } | |
37162 | ||
37163 | ||
37164 | SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37165 | PyObject *resultobj = 0; | |
37166 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37167 | wxTreeItemId *arg2 = 0 ; | |
37168 | void *argp1 = 0 ; | |
37169 | int res1 = 0 ; | |
37170 | void *argp2 = 0 ; | |
37171 | int res2 = 0 ; | |
37172 | PyObject * obj0 = 0 ; | |
37173 | PyObject * obj1 = 0 ; | |
37174 | char * kwnames[] = { | |
37175 | (char *) "self",(char *) "item", NULL | |
37176 | }; | |
37177 | ||
37178 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
37179 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37180 | if (!SWIG_IsOK(res1)) { | |
37181 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37182 | } | |
37183 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37184 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37185 | if (!SWIG_IsOK(res2)) { | |
37186 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37187 | } | |
37188 | if (!argp2) { | |
37189 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37190 | } | |
37191 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37192 | { | |
37193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37194 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
37195 | wxPyEndAllowThreads(__tstate); | |
37196 | if (PyErr_Occurred()) SWIG_fail; | |
37197 | } | |
37198 | resultobj = SWIG_Py_Void(); | |
37199 | return resultobj; | |
37200 | fail: | |
37201 | return NULL; | |
37202 | } | |
37203 | ||
37204 | ||
37205 | SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37206 | PyObject *resultobj = 0; | |
37207 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37208 | wxPoint *arg2 = 0 ; | |
37209 | int *arg3 = 0 ; | |
37210 | wxTreeItemId result; | |
37211 | void *argp1 = 0 ; | |
37212 | int res1 = 0 ; | |
37213 | wxPoint temp2 ; | |
37214 | int temp3 ; | |
37215 | int res3 = SWIG_TMPOBJ ; | |
37216 | PyObject * obj0 = 0 ; | |
37217 | PyObject * obj1 = 0 ; | |
37218 | char * kwnames[] = { | |
37219 | (char *) "self",(char *) "point", NULL | |
37220 | }; | |
37221 | ||
37222 | arg3 = &temp3; | |
37223 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
37224 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37225 | if (!SWIG_IsOK(res1)) { | |
37226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37227 | } | |
37228 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37229 | { | |
37230 | arg2 = &temp2; | |
37231 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37232 | } | |
37233 | { | |
37234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37235 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
37236 | wxPyEndAllowThreads(__tstate); | |
37237 | if (PyErr_Occurred()) SWIG_fail; | |
37238 | } | |
37239 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
37240 | if (SWIG_IsTmpObj(res3)) { | |
37241 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
37242 | } else { | |
37243 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
37244 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
37245 | } | |
37246 | return resultobj; | |
37247 | fail: | |
37248 | return NULL; | |
37249 | } | |
37250 | ||
37251 | ||
37252 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37253 | PyObject *resultobj = 0; | |
37254 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37255 | wxTreeItemId *arg2 = 0 ; | |
37256 | bool arg3 = (bool) false ; | |
37257 | PyObject *result = 0 ; | |
37258 | void *argp1 = 0 ; | |
37259 | int res1 = 0 ; | |
37260 | void *argp2 = 0 ; | |
37261 | int res2 = 0 ; | |
37262 | bool val3 ; | |
37263 | int ecode3 = 0 ; | |
37264 | PyObject * obj0 = 0 ; | |
37265 | PyObject * obj1 = 0 ; | |
37266 | PyObject * obj2 = 0 ; | |
37267 | char * kwnames[] = { | |
37268 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
37269 | }; | |
37270 | ||
37271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37273 | if (!SWIG_IsOK(res1)) { | |
37274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37275 | } | |
37276 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37277 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
37278 | if (!SWIG_IsOK(res2)) { | |
37279 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37280 | } | |
37281 | if (!argp2) { | |
37282 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'"); | |
37283 | } | |
37284 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
37285 | if (obj2) { | |
37286 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
37287 | if (!SWIG_IsOK(ecode3)) { | |
37288 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'"); | |
37289 | } | |
37290 | arg3 = static_cast< bool >(val3); | |
37291 | } | |
37292 | { | |
37293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37294 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
37295 | wxPyEndAllowThreads(__tstate); | |
37296 | if (PyErr_Occurred()) SWIG_fail; | |
37297 | } | |
37298 | resultobj = result; | |
37299 | return resultobj; | |
37300 | fail: | |
37301 | return NULL; | |
37302 | } | |
37303 | ||
37304 | ||
37305 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37306 | PyObject *resultobj = 0; | |
37307 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
37308 | SwigValueWrapper<wxVisualAttributes > result; | |
37309 | int val1 ; | |
37310 | int ecode1 = 0 ; | |
37311 | PyObject * obj0 = 0 ; | |
37312 | char * kwnames[] = { | |
37313 | (char *) "variant", NULL | |
37314 | }; | |
37315 | ||
37316 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
37317 | if (obj0) { | |
37318 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
37319 | if (!SWIG_IsOK(ecode1)) { | |
37320 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
37321 | } | |
37322 | arg1 = static_cast< wxWindowVariant >(val1); | |
37323 | } | |
37324 | { | |
37325 | if (!wxPyCheckForApp()) SWIG_fail; | |
37326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37327 | result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1); | |
37328 | wxPyEndAllowThreads(__tstate); | |
37329 | if (PyErr_Occurred()) SWIG_fail; | |
37330 | } | |
37331 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
37332 | return resultobj; | |
37333 | fail: | |
37334 | return NULL; | |
d14a1e28 RD |
37335 | } |
37336 | ||
37337 | ||
2131d850 RD |
37338 | SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
37339 | PyObject *resultobj = 0; | |
37340 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37341 | bool arg2 ; | |
37342 | void *argp1 = 0 ; | |
37343 | int res1 = 0 ; | |
37344 | bool val2 ; | |
37345 | int ecode2 = 0 ; | |
37346 | PyObject * obj0 = 0 ; | |
37347 | PyObject * obj1 = 0 ; | |
37348 | char * kwnames[] = { | |
37349 | (char *) "self",(char *) "q", NULL | |
37350 | }; | |
37351 | ||
37352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
37353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37354 | if (!SWIG_IsOK(res1)) { | |
37355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'"); | |
37356 | } | |
37357 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37358 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
37359 | if (!SWIG_IsOK(ecode2)) { | |
37360 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'"); | |
37361 | } | |
37362 | arg2 = static_cast< bool >(val2); | |
37363 | { | |
37364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37365 | (arg1)->SetQuickBestSize(arg2); | |
37366 | wxPyEndAllowThreads(__tstate); | |
37367 | if (PyErr_Occurred()) SWIG_fail; | |
37368 | } | |
37369 | resultobj = SWIG_Py_Void(); | |
37370 | return resultobj; | |
37371 | fail: | |
37372 | return NULL; | |
37373 | } | |
37374 | ||
37375 | ||
37376 | SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37377 | PyObject *resultobj = 0; | |
37378 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
37379 | bool result; | |
37380 | void *argp1 = 0 ; | |
37381 | int res1 = 0 ; | |
37382 | PyObject *swig_obj[1] ; | |
37383 | ||
37384 | if (!args) SWIG_fail; | |
37385 | swig_obj[0] = args; | |
37386 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 ); | |
37387 | if (!SWIG_IsOK(res1)) { | |
37388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'"); | |
37389 | } | |
37390 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
37391 | { | |
37392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37393 | result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize(); | |
37394 | wxPyEndAllowThreads(__tstate); | |
37395 | if (PyErr_Occurred()) SWIG_fail; | |
37396 | } | |
37397 | { | |
37398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37399 | } | |
37400 | return resultobj; | |
37401 | fail: | |
37402 | return NULL; | |
37403 | } | |
37404 | ||
37405 | ||
0085ce49 RD |
37406 | SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37407 | PyObject *obj; | |
37408 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
37409 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj)); | |
37410 | return SWIG_Py_Void(); | |
d14a1e28 RD |
37411 | } |
37412 | ||
0085ce49 RD |
37413 | SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37414 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
37415 | } |
37416 | ||
0085ce49 RD |
37417 | SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) { |
37418 | SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
37419 | return 1; | |
d14a1e28 RD |
37420 | } |
37421 | ||
37422 | ||
0085ce49 RD |
37423 | SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) { |
37424 | PyObject *pyobj = 0; | |
37425 | ||
37426 | { | |
37427 | #if wxUSE_UNICODE | |
37428 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
37429 | #else | |
37430 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
37431 | #endif | |
37432 | } | |
37433 | return pyobj; | |
37434 | } | |
37435 | ||
37436 | ||
37437 | SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37438 | PyObject *resultobj = 0; | |
37439 | wxWindow *arg1 = (wxWindow *) 0 ; | |
37440 | int arg2 = (int) (int)-1 ; | |
37441 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
37442 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
37443 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
37444 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
37445 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
37446 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
37447 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
37448 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
37449 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
37450 | int arg8 = (int) 0 ; | |
37451 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
37452 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
37453 | wxGenericDirCtrl *result = 0 ; | |
37454 | void *argp1 = 0 ; | |
37455 | int res1 = 0 ; | |
37456 | int val2 ; | |
37457 | int ecode2 = 0 ; | |
37458 | bool temp3 = false ; | |
37459 | wxPoint temp4 ; | |
37460 | wxSize temp5 ; | |
37461 | long val6 ; | |
37462 | int ecode6 = 0 ; | |
37463 | bool temp7 = false ; | |
37464 | int val8 ; | |
37465 | int ecode8 = 0 ; | |
37466 | bool temp9 = false ; | |
37467 | PyObject * obj0 = 0 ; | |
37468 | PyObject * obj1 = 0 ; | |
37469 | PyObject * obj2 = 0 ; | |
37470 | PyObject * obj3 = 0 ; | |
37471 | PyObject * obj4 = 0 ; | |
37472 | PyObject * obj5 = 0 ; | |
37473 | PyObject * obj6 = 0 ; | |
37474 | PyObject * obj7 = 0 ; | |
37475 | PyObject * obj8 = 0 ; | |
37476 | char * kwnames[] = { | |
37477 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
37478 | }; | |
37479 | ||
37480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
37481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
37482 | if (!SWIG_IsOK(res1)) { | |
37483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
37484 | } | |
37485 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
37486 | if (obj1) { | |
37487 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37488 | if (!SWIG_IsOK(ecode2)) { | |
37489 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'"); | |
37490 | } | |
37491 | arg2 = static_cast< int >(val2); | |
37492 | } | |
37493 | if (obj2) { | |
d14a1e28 | 37494 | { |
0085ce49 RD |
37495 | arg3 = wxString_in_helper(obj2); |
37496 | if (arg3 == NULL) SWIG_fail; | |
37497 | temp3 = true; | |
d14a1e28 | 37498 | } |
0085ce49 RD |
37499 | } |
37500 | if (obj3) { | |
4f89f6a3 | 37501 | { |
0085ce49 RD |
37502 | arg4 = &temp4; |
37503 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 37504 | } |
0085ce49 RD |
37505 | } |
37506 | if (obj4) { | |
093d3ff1 | 37507 | { |
0085ce49 RD |
37508 | arg5 = &temp5; |
37509 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 37510 | } |
0085ce49 RD |
37511 | } |
37512 | if (obj5) { | |
37513 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
37514 | if (!SWIG_IsOK(ecode6)) { | |
37515 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'"); | |
37516 | } | |
37517 | arg6 = static_cast< long >(val6); | |
37518 | } | |
37519 | if (obj6) { | |
093d3ff1 | 37520 | { |
0085ce49 RD |
37521 | arg7 = wxString_in_helper(obj6); |
37522 | if (arg7 == NULL) SWIG_fail; | |
37523 | temp7 = true; | |
093d3ff1 | 37524 | } |
0085ce49 RD |
37525 | } |
37526 | if (obj7) { | |
37527 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
37528 | if (!SWIG_IsOK(ecode8)) { | |
37529 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'"); | |
37530 | } | |
37531 | arg8 = static_cast< int >(val8); | |
37532 | } | |
37533 | if (obj8) { | |
d14a1e28 | 37534 | { |
0085ce49 RD |
37535 | arg9 = wxString_in_helper(obj8); |
37536 | if (arg9 == NULL) SWIG_fail; | |
37537 | temp9 = true; | |
d14a1e28 | 37538 | } |
0085ce49 RD |
37539 | } |
37540 | { | |
37541 | if (!wxPyCheckForApp()) SWIG_fail; | |
37542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37543 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
37544 | wxPyEndAllowThreads(__tstate); | |
37545 | if (PyErr_Occurred()) SWIG_fail; | |
37546 | } | |
37547 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 ); | |
37548 | { | |
37549 | if (temp3) | |
37550 | delete arg3; | |
37551 | } | |
37552 | { | |
37553 | if (temp7) | |
37554 | delete arg7; | |
37555 | } | |
37556 | { | |
37557 | if (temp9) | |
37558 | delete arg9; | |
37559 | } | |
37560 | return resultobj; | |
37561 | fail: | |
37562 | { | |
37563 | if (temp3) | |
37564 | delete arg3; | |
37565 | } | |
37566 | { | |
37567 | if (temp7) | |
37568 | delete arg7; | |
37569 | } | |
37570 | { | |
37571 | if (temp9) | |
37572 | delete arg9; | |
37573 | } | |
37574 | return NULL; | |
d14a1e28 RD |
37575 | } |
37576 | ||
37577 | ||
0085ce49 RD |
37578 | SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37579 | PyObject *resultobj = 0; | |
37580 | wxGenericDirCtrl *result = 0 ; | |
37581 | ||
37582 | if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail; | |
37583 | { | |
37584 | if (!wxPyCheckForApp()) SWIG_fail; | |
37585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37586 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
37587 | wxPyEndAllowThreads(__tstate); | |
37588 | if (PyErr_Occurred()) SWIG_fail; | |
37589 | } | |
37590 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 ); | |
37591 | return resultobj; | |
37592 | fail: | |
37593 | return NULL; | |
37594 | } | |
37595 | ||
37596 | ||
37597 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37598 | PyObject *resultobj = 0; | |
37599 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37600 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37601 | int arg3 = (int) (int)-1 ; | |
37602 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
37603 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
37604 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
37605 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
37606 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
37607 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
37608 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
37609 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
37610 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
37611 | int arg9 = (int) 0 ; | |
37612 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
37613 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
37614 | bool result; | |
37615 | void *argp1 = 0 ; | |
37616 | int res1 = 0 ; | |
37617 | void *argp2 = 0 ; | |
37618 | int res2 = 0 ; | |
37619 | int val3 ; | |
37620 | int ecode3 = 0 ; | |
37621 | bool temp4 = false ; | |
37622 | wxPoint temp5 ; | |
37623 | wxSize temp6 ; | |
37624 | long val7 ; | |
37625 | int ecode7 = 0 ; | |
37626 | bool temp8 = false ; | |
37627 | int val9 ; | |
37628 | int ecode9 = 0 ; | |
37629 | bool temp10 = false ; | |
37630 | PyObject * obj0 = 0 ; | |
37631 | PyObject * obj1 = 0 ; | |
37632 | PyObject * obj2 = 0 ; | |
37633 | PyObject * obj3 = 0 ; | |
37634 | PyObject * obj4 = 0 ; | |
37635 | PyObject * obj5 = 0 ; | |
37636 | PyObject * obj6 = 0 ; | |
37637 | PyObject * obj7 = 0 ; | |
37638 | PyObject * obj8 = 0 ; | |
37639 | PyObject * obj9 = 0 ; | |
37640 | char * kwnames[] = { | |
37641 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
37642 | }; | |
37643 | ||
37644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
37645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37646 | if (!SWIG_IsOK(res1)) { | |
37647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37648 | } | |
37649 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37650 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
37651 | if (!SWIG_IsOK(res2)) { | |
37652 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
37653 | } | |
37654 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
37655 | if (obj2) { | |
37656 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37657 | if (!SWIG_IsOK(ecode3)) { | |
37658 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
37659 | } | |
37660 | arg3 = static_cast< int >(val3); | |
37661 | } | |
37662 | if (obj3) { | |
093d3ff1 | 37663 | { |
0085ce49 RD |
37664 | arg4 = wxString_in_helper(obj3); |
37665 | if (arg4 == NULL) SWIG_fail; | |
37666 | temp4 = true; | |
093d3ff1 | 37667 | } |
0085ce49 RD |
37668 | } |
37669 | if (obj4) { | |
093d3ff1 | 37670 | { |
0085ce49 RD |
37671 | arg5 = &temp5; |
37672 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 37673 | } |
0085ce49 RD |
37674 | } |
37675 | if (obj5) { | |
d14a1e28 | 37676 | { |
0085ce49 RD |
37677 | arg6 = &temp6; |
37678 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 37679 | } |
0085ce49 RD |
37680 | } |
37681 | if (obj6) { | |
37682 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
37683 | if (!SWIG_IsOK(ecode7)) { | |
37684 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
37685 | } | |
37686 | arg7 = static_cast< long >(val7); | |
37687 | } | |
37688 | if (obj7) { | |
093d3ff1 | 37689 | { |
0085ce49 RD |
37690 | arg8 = wxString_in_helper(obj7); |
37691 | if (arg8 == NULL) SWIG_fail; | |
37692 | temp8 = true; | |
093d3ff1 | 37693 | } |
0085ce49 RD |
37694 | } |
37695 | if (obj8) { | |
37696 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
37697 | if (!SWIG_IsOK(ecode9)) { | |
37698 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'"); | |
37699 | } | |
37700 | arg9 = static_cast< int >(val9); | |
37701 | } | |
37702 | if (obj9) { | |
093d3ff1 | 37703 | { |
0085ce49 RD |
37704 | arg10 = wxString_in_helper(obj9); |
37705 | if (arg10 == NULL) SWIG_fail; | |
37706 | temp10 = true; | |
093d3ff1 | 37707 | } |
0085ce49 RD |
37708 | } |
37709 | { | |
37710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37711 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
37712 | wxPyEndAllowThreads(__tstate); | |
37713 | if (PyErr_Occurred()) SWIG_fail; | |
37714 | } | |
37715 | { | |
37716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37717 | } | |
37718 | { | |
37719 | if (temp4) | |
37720 | delete arg4; | |
37721 | } | |
37722 | { | |
37723 | if (temp8) | |
37724 | delete arg8; | |
37725 | } | |
37726 | { | |
37727 | if (temp10) | |
37728 | delete arg10; | |
37729 | } | |
37730 | return resultobj; | |
37731 | fail: | |
37732 | { | |
37733 | if (temp4) | |
37734 | delete arg4; | |
37735 | } | |
37736 | { | |
37737 | if (temp8) | |
37738 | delete arg8; | |
37739 | } | |
37740 | { | |
37741 | if (temp10) | |
37742 | delete arg10; | |
37743 | } | |
37744 | return NULL; | |
37745 | } | |
37746 | ||
37747 | ||
37748 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37749 | PyObject *resultobj = 0; | |
37750 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37751 | wxString *arg2 = 0 ; | |
37752 | bool result; | |
37753 | void *argp1 = 0 ; | |
37754 | int res1 = 0 ; | |
37755 | bool temp2 = false ; | |
37756 | PyObject * obj0 = 0 ; | |
37757 | PyObject * obj1 = 0 ; | |
37758 | char * kwnames[] = { | |
37759 | (char *) "self",(char *) "path", NULL | |
37760 | }; | |
37761 | ||
37762 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
37763 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37764 | if (!SWIG_IsOK(res1)) { | |
37765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37766 | } | |
37767 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37768 | { | |
37769 | arg2 = wxString_in_helper(obj1); | |
37770 | if (arg2 == NULL) SWIG_fail; | |
37771 | temp2 = true; | |
37772 | } | |
37773 | { | |
37774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37775 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
37776 | wxPyEndAllowThreads(__tstate); | |
37777 | if (PyErr_Occurred()) SWIG_fail; | |
37778 | } | |
37779 | { | |
37780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37781 | } | |
37782 | { | |
37783 | if (temp2) | |
37784 | delete arg2; | |
37785 | } | |
37786 | return resultobj; | |
37787 | fail: | |
37788 | { | |
37789 | if (temp2) | |
37790 | delete arg2; | |
37791 | } | |
37792 | return NULL; | |
d14a1e28 RD |
37793 | } |
37794 | ||
37795 | ||
704eda0c RD |
37796 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
37797 | PyObject *resultobj = 0; | |
37798 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37799 | wxString *arg2 = 0 ; | |
37800 | bool result; | |
37801 | void *argp1 = 0 ; | |
37802 | int res1 = 0 ; | |
37803 | bool temp2 = false ; | |
37804 | PyObject * obj0 = 0 ; | |
37805 | PyObject * obj1 = 0 ; | |
37806 | char * kwnames[] = { | |
37807 | (char *) "self",(char *) "path", NULL | |
37808 | }; | |
37809 | ||
37810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail; | |
37811 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37812 | if (!SWIG_IsOK(res1)) { | |
37813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37814 | } | |
37815 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37816 | { | |
37817 | arg2 = wxString_in_helper(obj1); | |
37818 | if (arg2 == NULL) SWIG_fail; | |
37819 | temp2 = true; | |
37820 | } | |
37821 | { | |
37822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37823 | result = (bool)(arg1)->CollapsePath((wxString const &)*arg2); | |
37824 | wxPyEndAllowThreads(__tstate); | |
37825 | if (PyErr_Occurred()) SWIG_fail; | |
37826 | } | |
37827 | { | |
37828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37829 | } | |
37830 | { | |
37831 | if (temp2) | |
37832 | delete arg2; | |
37833 | } | |
37834 | return resultobj; | |
37835 | fail: | |
37836 | { | |
37837 | if (temp2) | |
37838 | delete arg2; | |
37839 | } | |
37840 | return NULL; | |
37841 | } | |
37842 | ||
37843 | ||
0085ce49 RD |
37844 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37845 | PyObject *resultobj = 0; | |
37846 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37847 | wxString result; | |
37848 | void *argp1 = 0 ; | |
37849 | int res1 = 0 ; | |
37850 | PyObject *swig_obj[1] ; | |
37851 | ||
37852 | if (!args) SWIG_fail; | |
37853 | swig_obj[0] = args; | |
37854 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37855 | if (!SWIG_IsOK(res1)) { | |
37856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
37857 | } | |
37858 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37859 | { | |
37860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37861 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
37862 | wxPyEndAllowThreads(__tstate); | |
37863 | if (PyErr_Occurred()) SWIG_fail; | |
37864 | } | |
37865 | { | |
37866 | #if wxUSE_UNICODE | |
37867 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
37868 | #else | |
37869 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
37870 | #endif | |
37871 | } | |
37872 | return resultobj; | |
37873 | fail: | |
37874 | return NULL; | |
37875 | } | |
37876 | ||
37877 | ||
37878 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37879 | PyObject *resultobj = 0; | |
37880 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37881 | wxString *arg2 = 0 ; | |
37882 | void *argp1 = 0 ; | |
37883 | int res1 = 0 ; | |
37884 | bool temp2 = false ; | |
37885 | PyObject * obj0 = 0 ; | |
37886 | PyObject * obj1 = 0 ; | |
37887 | char * kwnames[] = { | |
37888 | (char *) "self",(char *) "path", NULL | |
37889 | }; | |
37890 | ||
37891 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
37892 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37893 | if (!SWIG_IsOK(res1)) { | |
37894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
37895 | } | |
37896 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37897 | { | |
37898 | arg2 = wxString_in_helper(obj1); | |
37899 | if (arg2 == NULL) SWIG_fail; | |
37900 | temp2 = true; | |
37901 | } | |
37902 | { | |
37903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37904 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
37905 | wxPyEndAllowThreads(__tstate); | |
37906 | if (PyErr_Occurred()) SWIG_fail; | |
37907 | } | |
37908 | resultobj = SWIG_Py_Void(); | |
37909 | { | |
37910 | if (temp2) | |
37911 | delete arg2; | |
37912 | } | |
37913 | return resultobj; | |
37914 | fail: | |
37915 | { | |
37916 | if (temp2) | |
37917 | delete arg2; | |
37918 | } | |
37919 | return NULL; | |
d14a1e28 RD |
37920 | } |
37921 | ||
37922 | ||
0085ce49 RD |
37923 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37924 | PyObject *resultobj = 0; | |
37925 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37926 | wxString result; | |
37927 | void *argp1 = 0 ; | |
37928 | int res1 = 0 ; | |
37929 | PyObject *swig_obj[1] ; | |
37930 | ||
37931 | if (!args) SWIG_fail; | |
37932 | swig_obj[0] = args; | |
37933 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37934 | if (!SWIG_IsOK(res1)) { | |
37935 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
37936 | } | |
37937 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37938 | { | |
37939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37940 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
37941 | wxPyEndAllowThreads(__tstate); | |
37942 | if (PyErr_Occurred()) SWIG_fail; | |
37943 | } | |
37944 | { | |
37945 | #if wxUSE_UNICODE | |
37946 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
37947 | #else | |
37948 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
37949 | #endif | |
37950 | } | |
37951 | return resultobj; | |
37952 | fail: | |
37953 | return NULL; | |
d14a1e28 RD |
37954 | } |
37955 | ||
37956 | ||
0085ce49 RD |
37957 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
37958 | PyObject *resultobj = 0; | |
37959 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37960 | wxString result; | |
37961 | void *argp1 = 0 ; | |
37962 | int res1 = 0 ; | |
37963 | PyObject *swig_obj[1] ; | |
37964 | ||
37965 | if (!args) SWIG_fail; | |
37966 | swig_obj[0] = args; | |
37967 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
37968 | if (!SWIG_IsOK(res1)) { | |
37969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
37970 | } | |
37971 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
37972 | { | |
37973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37974 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
37975 | wxPyEndAllowThreads(__tstate); | |
37976 | if (PyErr_Occurred()) SWIG_fail; | |
37977 | } | |
37978 | { | |
37979 | #if wxUSE_UNICODE | |
37980 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
37981 | #else | |
37982 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
37983 | #endif | |
37984 | } | |
37985 | return resultobj; | |
37986 | fail: | |
37987 | return NULL; | |
37988 | } | |
37989 | ||
37990 | ||
37991 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37992 | PyObject *resultobj = 0; | |
37993 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
37994 | wxString *arg2 = 0 ; | |
37995 | void *argp1 = 0 ; | |
37996 | int res1 = 0 ; | |
37997 | bool temp2 = false ; | |
37998 | PyObject * obj0 = 0 ; | |
37999 | PyObject * obj1 = 0 ; | |
38000 | char * kwnames[] = { | |
38001 | (char *) "self",(char *) "path", NULL | |
38002 | }; | |
38003 | ||
38004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
38005 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38006 | if (!SWIG_IsOK(res1)) { | |
38007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38008 | } | |
38009 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38010 | { | |
38011 | arg2 = wxString_in_helper(obj1); | |
38012 | if (arg2 == NULL) SWIG_fail; | |
38013 | temp2 = true; | |
38014 | } | |
38015 | { | |
38016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38017 | (arg1)->SetPath((wxString const &)*arg2); | |
38018 | wxPyEndAllowThreads(__tstate); | |
38019 | if (PyErr_Occurred()) SWIG_fail; | |
38020 | } | |
38021 | resultobj = SWIG_Py_Void(); | |
38022 | { | |
38023 | if (temp2) | |
38024 | delete arg2; | |
38025 | } | |
38026 | return resultobj; | |
38027 | fail: | |
38028 | { | |
38029 | if (temp2) | |
38030 | delete arg2; | |
38031 | } | |
38032 | return NULL; | |
38033 | } | |
38034 | ||
38035 | ||
38036 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38037 | PyObject *resultobj = 0; | |
38038 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38039 | bool arg2 ; | |
38040 | void *argp1 = 0 ; | |
38041 | int res1 = 0 ; | |
38042 | bool val2 ; | |
38043 | int ecode2 = 0 ; | |
38044 | PyObject * obj0 = 0 ; | |
38045 | PyObject * obj1 = 0 ; | |
38046 | char * kwnames[] = { | |
38047 | (char *) "self",(char *) "show", NULL | |
38048 | }; | |
38049 | ||
38050 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail; | |
38051 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38052 | if (!SWIG_IsOK(res1)) { | |
38053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38054 | } | |
38055 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38056 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
38057 | if (!SWIG_IsOK(ecode2)) { | |
38058 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'"); | |
38059 | } | |
38060 | arg2 = static_cast< bool >(val2); | |
38061 | { | |
38062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38063 | (arg1)->ShowHidden(arg2); | |
38064 | wxPyEndAllowThreads(__tstate); | |
38065 | if (PyErr_Occurred()) SWIG_fail; | |
38066 | } | |
38067 | resultobj = SWIG_Py_Void(); | |
38068 | return resultobj; | |
38069 | fail: | |
38070 | return NULL; | |
d14a1e28 RD |
38071 | } |
38072 | ||
38073 | ||
0085ce49 RD |
38074 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38075 | PyObject *resultobj = 0; | |
38076 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38077 | bool result; | |
38078 | void *argp1 = 0 ; | |
38079 | int res1 = 0 ; | |
38080 | PyObject *swig_obj[1] ; | |
38081 | ||
38082 | if (!args) SWIG_fail; | |
38083 | swig_obj[0] = args; | |
38084 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38085 | if (!SWIG_IsOK(res1)) { | |
38086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38087 | } | |
38088 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38089 | { | |
38090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38091 | result = (bool)(arg1)->GetShowHidden(); | |
38092 | wxPyEndAllowThreads(__tstate); | |
38093 | if (PyErr_Occurred()) SWIG_fail; | |
38094 | } | |
38095 | { | |
38096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38097 | } | |
38098 | return resultobj; | |
38099 | fail: | |
38100 | return NULL; | |
d14a1e28 RD |
38101 | } |
38102 | ||
38103 | ||
0085ce49 RD |
38104 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(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_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38117 | } | |
38118 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38119 | { | |
38120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38121 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
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_SetFilter(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 *) "filter", NULL | |
38149 | }; | |
38150 | ||
38151 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",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_SetFilter" "', 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)->SetFilter((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_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38184 | PyObject *resultobj = 0; | |
38185 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38186 | int 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_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38196 | } | |
38197 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38198 | { | |
38199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38200 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
38201 | wxPyEndAllowThreads(__tstate); | |
38202 | if (PyErr_Occurred()) SWIG_fail; | |
38203 | } | |
38204 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
38205 | return resultobj; | |
38206 | fail: | |
38207 | return NULL; | |
38208 | } | |
38209 | ||
38210 | ||
38211 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38212 | PyObject *resultobj = 0; | |
38213 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38214 | int arg2 ; | |
38215 | void *argp1 = 0 ; | |
38216 | int res1 = 0 ; | |
38217 | int val2 ; | |
38218 | int ecode2 = 0 ; | |
38219 | PyObject * obj0 = 0 ; | |
38220 | PyObject * obj1 = 0 ; | |
38221 | char * kwnames[] = { | |
38222 | (char *) "self",(char *) "n", NULL | |
38223 | }; | |
38224 | ||
38225 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
38226 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38227 | if (!SWIG_IsOK(res1)) { | |
38228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38229 | } | |
38230 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38231 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38232 | if (!SWIG_IsOK(ecode2)) { | |
38233 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'"); | |
38234 | } | |
38235 | arg2 = static_cast< int >(val2); | |
38236 | { | |
38237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38238 | (arg1)->SetFilterIndex(arg2); | |
38239 | wxPyEndAllowThreads(__tstate); | |
38240 | if (PyErr_Occurred()) SWIG_fail; | |
38241 | } | |
38242 | resultobj = SWIG_Py_Void(); | |
38243 | return resultobj; | |
38244 | fail: | |
38245 | return NULL; | |
d14a1e28 RD |
38246 | } |
38247 | ||
38248 | ||
0085ce49 RD |
38249 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38250 | PyObject *resultobj = 0; | |
38251 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38252 | wxTreeItemId result; | |
38253 | void *argp1 = 0 ; | |
38254 | int res1 = 0 ; | |
38255 | PyObject *swig_obj[1] ; | |
38256 | ||
38257 | if (!args) SWIG_fail; | |
38258 | swig_obj[0] = args; | |
38259 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38260 | if (!SWIG_IsOK(res1)) { | |
38261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38262 | } | |
38263 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38264 | { | |
38265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38266 | result = (arg1)->GetRootId(); | |
38267 | wxPyEndAllowThreads(__tstate); | |
38268 | if (PyErr_Occurred()) SWIG_fail; | |
38269 | } | |
38270 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
38271 | return resultobj; | |
38272 | fail: | |
38273 | return NULL; | |
d14a1e28 RD |
38274 | } |
38275 | ||
38276 | ||
0085ce49 RD |
38277 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38278 | PyObject *resultobj = 0; | |
38279 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38280 | wxPyTreeCtrl *result = 0 ; | |
38281 | void *argp1 = 0 ; | |
38282 | int res1 = 0 ; | |
38283 | PyObject *swig_obj[1] ; | |
38284 | ||
38285 | if (!args) SWIG_fail; | |
38286 | swig_obj[0] = args; | |
38287 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38288 | if (!SWIG_IsOK(res1)) { | |
38289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38290 | } | |
38291 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38292 | { | |
38293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38294 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
38295 | wxPyEndAllowThreads(__tstate); | |
38296 | if (PyErr_Occurred()) SWIG_fail; | |
38297 | } | |
38298 | { | |
38299 | resultobj = wxPyMake_wxObject(result, 0); | |
38300 | } | |
38301 | return resultobj; | |
38302 | fail: | |
38303 | return NULL; | |
d14a1e28 RD |
38304 | } |
38305 | ||
38306 | ||
0085ce49 RD |
38307 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38308 | PyObject *resultobj = 0; | |
38309 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38310 | wxDirFilterListCtrl *result = 0 ; | |
38311 | void *argp1 = 0 ; | |
38312 | int res1 = 0 ; | |
38313 | PyObject *swig_obj[1] ; | |
38314 | ||
38315 | if (!args) SWIG_fail; | |
38316 | swig_obj[0] = args; | |
38317 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38318 | if (!SWIG_IsOK(res1)) { | |
38319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'"); | |
38320 | } | |
38321 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38322 | { | |
38323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38324 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
38325 | wxPyEndAllowThreads(__tstate); | |
38326 | if (PyErr_Occurred()) SWIG_fail; | |
38327 | } | |
38328 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
38329 | return resultobj; | |
38330 | fail: | |
38331 | return NULL; | |
38332 | } | |
38333 | ||
38334 | ||
38335 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38336 | PyObject *resultobj = 0; | |
38337 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38338 | wxTreeItemId arg2 ; | |
38339 | wxString *arg3 = 0 ; | |
38340 | bool *arg4 = 0 ; | |
38341 | wxTreeItemId result; | |
38342 | void *argp1 = 0 ; | |
38343 | int res1 = 0 ; | |
38344 | void *argp2 ; | |
38345 | int res2 = 0 ; | |
38346 | bool temp3 = false ; | |
38347 | bool temp4 ; | |
38348 | int res4 = SWIG_TMPOBJ ; | |
38349 | PyObject * obj0 = 0 ; | |
38350 | PyObject * obj1 = 0 ; | |
38351 | PyObject * obj2 = 0 ; | |
38352 | char * kwnames[] = { | |
38353 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
38354 | }; | |
38355 | ||
38356 | arg4 = &temp4; | |
38357 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38358 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38359 | if (!SWIG_IsOK(res1)) { | |
38360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38361 | } | |
38362 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38363 | { | |
38364 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0); | |
38365 | if (!SWIG_IsOK(res2)) { | |
38366 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'"); | |
38367 | } | |
38368 | if (!argp2) { | |
38369 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'"); | |
38370 | } else { | |
38371 | wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2); | |
38372 | arg2 = *temp; | |
38373 | if (SWIG_IsNewObj(res2)) delete temp; | |
d14a1e28 | 38374 | } |
0085ce49 RD |
38375 | } |
38376 | { | |
38377 | arg3 = wxString_in_helper(obj2); | |
38378 | if (arg3 == NULL) SWIG_fail; | |
38379 | temp3 = true; | |
38380 | } | |
38381 | { | |
38382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38383 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
38384 | wxPyEndAllowThreads(__tstate); | |
38385 | if (PyErr_Occurred()) SWIG_fail; | |
38386 | } | |
38387 | resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 ); | |
38388 | if (SWIG_IsTmpObj(res4)) { | |
38389 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4))); | |
38390 | } else { | |
38391 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
38392 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags)); | |
38393 | } | |
38394 | { | |
38395 | if (temp3) | |
38396 | delete arg3; | |
38397 | } | |
38398 | return resultobj; | |
38399 | fail: | |
38400 | { | |
38401 | if (temp3) | |
38402 | delete arg3; | |
38403 | } | |
38404 | return NULL; | |
d14a1e28 RD |
38405 | } |
38406 | ||
38407 | ||
0085ce49 RD |
38408 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38409 | PyObject *resultobj = 0; | |
38410 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38411 | void *argp1 = 0 ; | |
38412 | int res1 = 0 ; | |
38413 | PyObject *swig_obj[1] ; | |
38414 | ||
38415 | if (!args) SWIG_fail; | |
38416 | swig_obj[0] = args; | |
38417 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38418 | if (!SWIG_IsOK(res1)) { | |
38419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38420 | } | |
38421 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38422 | { | |
38423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38424 | (arg1)->DoResize(); | |
38425 | wxPyEndAllowThreads(__tstate); | |
38426 | if (PyErr_Occurred()) SWIG_fail; | |
38427 | } | |
38428 | resultobj = SWIG_Py_Void(); | |
38429 | return resultobj; | |
38430 | fail: | |
38431 | return NULL; | |
d14a1e28 RD |
38432 | } |
38433 | ||
38434 | ||
0085ce49 RD |
38435 | SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38436 | PyObject *resultobj = 0; | |
38437 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38438 | void *argp1 = 0 ; | |
38439 | int res1 = 0 ; | |
38440 | PyObject *swig_obj[1] ; | |
38441 | ||
38442 | if (!args) SWIG_fail; | |
38443 | swig_obj[0] = args; | |
38444 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38445 | if (!SWIG_IsOK(res1)) { | |
38446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38447 | } | |
38448 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38449 | { | |
38450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38451 | (arg1)->ReCreateTree(); | |
38452 | wxPyEndAllowThreads(__tstate); | |
38453 | if (PyErr_Occurred()) SWIG_fail; | |
38454 | } | |
38455 | resultobj = SWIG_Py_Void(); | |
38456 | return resultobj; | |
38457 | fail: | |
38458 | return NULL; | |
38459 | } | |
38460 | ||
38461 | ||
38462 | SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38463 | PyObject *obj; | |
38464 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38465 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj)); | |
38466 | return SWIG_Py_Void(); | |
38467 | } | |
38468 | ||
38469 | SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38470 | return SWIG_Python_InitShadowInstance(args); | |
38471 | } | |
38472 | ||
38473 | SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38474 | PyObject *resultobj = 0; | |
38475 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
38476 | int arg2 = (int) (int)-1 ; | |
38477 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
38478 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
38479 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
38480 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
38481 | long arg5 = (long) 0 ; | |
38482 | wxDirFilterListCtrl *result = 0 ; | |
38483 | void *argp1 = 0 ; | |
38484 | int res1 = 0 ; | |
38485 | int val2 ; | |
38486 | int ecode2 = 0 ; | |
38487 | wxPoint temp3 ; | |
38488 | wxSize temp4 ; | |
38489 | long val5 ; | |
38490 | int ecode5 = 0 ; | |
38491 | PyObject * obj0 = 0 ; | |
38492 | PyObject * obj1 = 0 ; | |
38493 | PyObject * obj2 = 0 ; | |
38494 | PyObject * obj3 = 0 ; | |
38495 | PyObject * obj4 = 0 ; | |
38496 | char * kwnames[] = { | |
38497 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
38498 | }; | |
38499 | ||
38500 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38501 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38502 | if (!SWIG_IsOK(res1)) { | |
38503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'"); | |
38504 | } | |
38505 | arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1); | |
38506 | if (obj1) { | |
38507 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38508 | if (!SWIG_IsOK(ecode2)) { | |
38509 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'"); | |
38510 | } | |
38511 | arg2 = static_cast< int >(val2); | |
38512 | } | |
38513 | if (obj2) { | |
d14a1e28 | 38514 | { |
0085ce49 RD |
38515 | arg3 = &temp3; |
38516 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 38517 | } |
0085ce49 RD |
38518 | } |
38519 | if (obj3) { | |
d14a1e28 | 38520 | { |
0085ce49 RD |
38521 | arg4 = &temp4; |
38522 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 38523 | } |
0085ce49 RD |
38524 | } |
38525 | if (obj4) { | |
38526 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
38527 | if (!SWIG_IsOK(ecode5)) { | |
38528 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'"); | |
38529 | } | |
38530 | arg5 = static_cast< long >(val5); | |
38531 | } | |
38532 | { | |
38533 | if (!wxPyCheckForApp()) SWIG_fail; | |
38534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38535 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
38536 | wxPyEndAllowThreads(__tstate); | |
38537 | if (PyErr_Occurred()) SWIG_fail; | |
38538 | } | |
38539 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 ); | |
38540 | return resultobj; | |
38541 | fail: | |
38542 | return NULL; | |
d14a1e28 RD |
38543 | } |
38544 | ||
38545 | ||
0085ce49 RD |
38546 | SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38547 | PyObject *resultobj = 0; | |
38548 | wxDirFilterListCtrl *result = 0 ; | |
38549 | ||
38550 | if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail; | |
38551 | { | |
38552 | if (!wxPyCheckForApp()) SWIG_fail; | |
38553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38554 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
38555 | wxPyEndAllowThreads(__tstate); | |
38556 | if (PyErr_Occurred()) SWIG_fail; | |
38557 | } | |
38558 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 ); | |
38559 | return resultobj; | |
38560 | fail: | |
38561 | return NULL; | |
38562 | } | |
38563 | ||
38564 | ||
38565 | SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38566 | PyObject *resultobj = 0; | |
38567 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
38568 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
38569 | int arg3 = (int) (int)-1 ; | |
38570 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
38571 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
38572 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
38573 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
38574 | long arg6 = (long) 0 ; | |
38575 | bool result; | |
38576 | void *argp1 = 0 ; | |
38577 | int res1 = 0 ; | |
38578 | void *argp2 = 0 ; | |
38579 | int res2 = 0 ; | |
38580 | int val3 ; | |
38581 | int ecode3 = 0 ; | |
38582 | wxPoint temp4 ; | |
38583 | wxSize temp5 ; | |
38584 | long val6 ; | |
38585 | int ecode6 = 0 ; | |
38586 | PyObject * obj0 = 0 ; | |
38587 | PyObject * obj1 = 0 ; | |
38588 | PyObject * obj2 = 0 ; | |
38589 | PyObject * obj3 = 0 ; | |
38590 | PyObject * obj4 = 0 ; | |
38591 | PyObject * obj5 = 0 ; | |
38592 | char * kwnames[] = { | |
38593 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
38594 | }; | |
38595 | ||
38596 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
38597 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
38598 | if (!SWIG_IsOK(res1)) { | |
38599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'"); | |
38600 | } | |
38601 | arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1); | |
38602 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 ); | |
38603 | if (!SWIG_IsOK(res2)) { | |
38604 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'"); | |
38605 | } | |
38606 | arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2); | |
38607 | if (obj2) { | |
38608 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38609 | if (!SWIG_IsOK(ecode3)) { | |
38610 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
38611 | } | |
38612 | arg3 = static_cast< int >(val3); | |
38613 | } | |
38614 | if (obj3) { | |
093d3ff1 | 38615 | { |
0085ce49 RD |
38616 | arg4 = &temp4; |
38617 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 38618 | } |
0085ce49 RD |
38619 | } |
38620 | if (obj4) { | |
d14a1e28 | 38621 | { |
0085ce49 RD |
38622 | arg5 = &temp5; |
38623 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 38624 | } |
0085ce49 RD |
38625 | } |
38626 | if (obj5) { | |
38627 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
38628 | if (!SWIG_IsOK(ecode6)) { | |
38629 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
38630 | } | |
38631 | arg6 = static_cast< long >(val6); | |
38632 | } | |
38633 | { | |
38634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38635 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
38636 | wxPyEndAllowThreads(__tstate); | |
38637 | if (PyErr_Occurred()) SWIG_fail; | |
38638 | } | |
38639 | { | |
38640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38641 | } | |
38642 | return resultobj; | |
38643 | fail: | |
38644 | return NULL; | |
38645 | } | |
38646 | ||
38647 | ||
38648 | SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38649 | PyObject *resultobj = 0; | |
38650 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
38651 | wxString *arg2 = 0 ; | |
38652 | int arg3 ; | |
38653 | void *argp1 = 0 ; | |
38654 | int res1 = 0 ; | |
38655 | bool temp2 = false ; | |
38656 | int val3 ; | |
38657 | int ecode3 = 0 ; | |
38658 | PyObject * obj0 = 0 ; | |
38659 | PyObject * obj1 = 0 ; | |
38660 | PyObject * obj2 = 0 ; | |
38661 | char * kwnames[] = { | |
38662 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
38663 | }; | |
38664 | ||
38665 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38666 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 ); | |
38667 | if (!SWIG_IsOK(res1)) { | |
38668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'"); | |
38669 | } | |
38670 | arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1); | |
38671 | { | |
38672 | arg2 = wxString_in_helper(obj1); | |
38673 | if (arg2 == NULL) SWIG_fail; | |
38674 | temp2 = true; | |
38675 | } | |
38676 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38677 | if (!SWIG_IsOK(ecode3)) { | |
38678 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'"); | |
38679 | } | |
38680 | arg3 = static_cast< int >(val3); | |
38681 | { | |
38682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38683 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
38684 | wxPyEndAllowThreads(__tstate); | |
38685 | if (PyErr_Occurred()) SWIG_fail; | |
38686 | } | |
38687 | resultobj = SWIG_Py_Void(); | |
38688 | { | |
38689 | if (temp2) | |
38690 | delete arg2; | |
38691 | } | |
38692 | return resultobj; | |
38693 | fail: | |
38694 | { | |
38695 | if (temp2) | |
38696 | delete arg2; | |
38697 | } | |
38698 | return NULL; | |
38699 | } | |
38700 | ||
38701 | ||
38702 | SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38703 | PyObject *obj; | |
38704 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38705 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj)); | |
38706 | return SWIG_Py_Void(); | |
38707 | } | |
38708 | ||
38709 | SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38710 | return SWIG_Python_InitShadowInstance(args); | |
38711 | } | |
38712 | ||
38713 | SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38714 | PyObject *resultobj = 0; | |
38715 | wxWindow *arg1 = (wxWindow *) 0 ; | |
38716 | int arg2 = (int) (int)-1 ; | |
38717 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
38718 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
38719 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
38720 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
38721 | long arg5 = (long) 0 ; | |
38722 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
38723 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
38724 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
38725 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
38726 | wxPyControl *result = 0 ; | |
38727 | void *argp1 = 0 ; | |
38728 | int res1 = 0 ; | |
38729 | int val2 ; | |
38730 | int ecode2 = 0 ; | |
38731 | wxPoint temp3 ; | |
38732 | wxSize temp4 ; | |
38733 | long val5 ; | |
38734 | int ecode5 = 0 ; | |
38735 | void *argp6 = 0 ; | |
38736 | int res6 = 0 ; | |
38737 | bool temp7 = false ; | |
38738 | PyObject * obj0 = 0 ; | |
38739 | PyObject * obj1 = 0 ; | |
38740 | PyObject * obj2 = 0 ; | |
38741 | PyObject * obj3 = 0 ; | |
38742 | PyObject * obj4 = 0 ; | |
38743 | PyObject * obj5 = 0 ; | |
38744 | PyObject * obj6 = 0 ; | |
38745 | char * kwnames[] = { | |
38746 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
38747 | }; | |
38748 | ||
38749 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
38750 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
38751 | if (!SWIG_IsOK(res1)) { | |
38752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
38753 | } | |
38754 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
38755 | if (obj1) { | |
38756 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38757 | if (!SWIG_IsOK(ecode2)) { | |
38758 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'"); | |
38759 | } | |
38760 | arg2 = static_cast< int >(val2); | |
38761 | } | |
38762 | if (obj2) { | |
093d3ff1 | 38763 | { |
0085ce49 RD |
38764 | arg3 = &temp3; |
38765 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 38766 | } |
0085ce49 RD |
38767 | } |
38768 | if (obj3) { | |
d14a1e28 | 38769 | { |
0085ce49 RD |
38770 | arg4 = &temp4; |
38771 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 38772 | } |
0085ce49 RD |
38773 | } |
38774 | if (obj4) { | |
38775 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
38776 | if (!SWIG_IsOK(ecode5)) { | |
38777 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'"); | |
38778 | } | |
38779 | arg5 = static_cast< long >(val5); | |
38780 | } | |
38781 | if (obj5) { | |
38782 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0); | |
38783 | if (!SWIG_IsOK(res6)) { | |
38784 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
38785 | } | |
38786 | if (!argp6) { | |
38787 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 38788 | } |
0085ce49 RD |
38789 | arg6 = reinterpret_cast< wxValidator * >(argp6); |
38790 | } | |
38791 | if (obj6) { | |
d14a1e28 | 38792 | { |
0085ce49 RD |
38793 | arg7 = wxString_in_helper(obj6); |
38794 | if (arg7 == NULL) SWIG_fail; | |
38795 | temp7 = true; | |
d14a1e28 | 38796 | } |
0085ce49 RD |
38797 | } |
38798 | { | |
38799 | if (!wxPyCheckForApp()) SWIG_fail; | |
38800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38801 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
38802 | wxPyEndAllowThreads(__tstate); | |
38803 | if (PyErr_Occurred()) SWIG_fail; | |
38804 | } | |
38805 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 ); | |
38806 | { | |
38807 | if (temp7) | |
38808 | delete arg7; | |
38809 | } | |
38810 | return resultobj; | |
38811 | fail: | |
38812 | { | |
38813 | if (temp7) | |
38814 | delete arg7; | |
38815 | } | |
38816 | return NULL; | |
d14a1e28 RD |
38817 | } |
38818 | ||
38819 | ||
0085ce49 RD |
38820 | SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
38821 | PyObject *resultobj = 0; | |
38822 | wxPyControl *result = 0 ; | |
38823 | ||
38824 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail; | |
38825 | { | |
38826 | if (!wxPyCheckForApp()) SWIG_fail; | |
38827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38828 | result = (wxPyControl *)new wxPyControl(); | |
38829 | wxPyEndAllowThreads(__tstate); | |
38830 | if (PyErr_Occurred()) SWIG_fail; | |
38831 | } | |
38832 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 ); | |
38833 | return resultobj; | |
38834 | fail: | |
38835 | return NULL; | |
38836 | } | |
38837 | ||
38838 | ||
38839 | SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38840 | PyObject *resultobj = 0; | |
38841 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38842 | PyObject *arg2 = (PyObject *) 0 ; | |
38843 | PyObject *arg3 = (PyObject *) 0 ; | |
38844 | void *argp1 = 0 ; | |
38845 | int res1 = 0 ; | |
38846 | PyObject * obj0 = 0 ; | |
38847 | PyObject * obj1 = 0 ; | |
38848 | PyObject * obj2 = 0 ; | |
38849 | char * kwnames[] = { | |
38850 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
38851 | }; | |
38852 | ||
38853 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38854 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38855 | if (!SWIG_IsOK(res1)) { | |
38856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38857 | } | |
38858 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38859 | arg2 = obj1; | |
38860 | arg3 = obj2; | |
38861 | { | |
38862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38863 | (arg1)->_setCallbackInfo(arg2,arg3); | |
38864 | wxPyEndAllowThreads(__tstate); | |
38865 | if (PyErr_Occurred()) SWIG_fail; | |
38866 | } | |
38867 | resultobj = SWIG_Py_Void(); | |
38868 | return resultobj; | |
38869 | fail: | |
38870 | return NULL; | |
38871 | } | |
38872 | ||
38873 | ||
0085ce49 RD |
38874 | SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
38875 | PyObject *resultobj = 0; | |
38876 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38877 | wxDC *arg2 = (wxDC *) 0 ; | |
38878 | bool result; | |
38879 | void *argp1 = 0 ; | |
38880 | int res1 = 0 ; | |
38881 | void *argp2 = 0 ; | |
38882 | int res2 = 0 ; | |
38883 | PyObject * obj0 = 0 ; | |
38884 | PyObject * obj1 = 0 ; | |
38885 | char * kwnames[] = { | |
38886 | (char *) "self",(char *) "dc", NULL | |
38887 | }; | |
38888 | ||
38889 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38890 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38891 | if (!SWIG_IsOK(res1)) { | |
38892 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38893 | } | |
38894 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38895 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
38896 | if (!SWIG_IsOK(res2)) { | |
38897 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
38898 | } | |
38899 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
38900 | { | |
38901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38902 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
38903 | wxPyEndAllowThreads(__tstate); | |
38904 | if (PyErr_Occurred()) SWIG_fail; | |
38905 | } | |
38906 | { | |
38907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38908 | } | |
38909 | return resultobj; | |
38910 | fail: | |
38911 | return NULL; | |
38912 | } | |
38913 | ||
38914 | ||
38915 | SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38916 | PyObject *resultobj = 0; | |
38917 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38918 | int arg2 ; | |
38919 | int arg3 ; | |
38920 | int arg4 ; | |
38921 | int arg5 ; | |
38922 | void *argp1 = 0 ; | |
38923 | int res1 = 0 ; | |
38924 | int val2 ; | |
38925 | int ecode2 = 0 ; | |
38926 | int val3 ; | |
38927 | int ecode3 = 0 ; | |
38928 | int val4 ; | |
38929 | int ecode4 = 0 ; | |
38930 | int val5 ; | |
38931 | int ecode5 = 0 ; | |
38932 | PyObject * obj0 = 0 ; | |
38933 | PyObject * obj1 = 0 ; | |
38934 | PyObject * obj2 = 0 ; | |
38935 | PyObject * obj3 = 0 ; | |
38936 | PyObject * obj4 = 0 ; | |
38937 | char * kwnames[] = { | |
38938 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
38939 | }; | |
38940 | ||
38941 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38942 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
38943 | if (!SWIG_IsOK(res1)) { | |
38944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
38945 | } | |
38946 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
38947 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38948 | if (!SWIG_IsOK(ecode2)) { | |
38949 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
38950 | } | |
38951 | arg2 = static_cast< int >(val2); | |
38952 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38953 | if (!SWIG_IsOK(ecode3)) { | |
38954 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
38955 | } | |
38956 | arg3 = static_cast< int >(val3); | |
38957 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38958 | if (!SWIG_IsOK(ecode4)) { | |
38959 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
38960 | } | |
38961 | arg4 = static_cast< int >(val4); | |
38962 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38963 | if (!SWIG_IsOK(ecode5)) { | |
38964 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
38965 | } | |
38966 | arg5 = static_cast< int >(val5); | |
38967 | { | |
38968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38969 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
38970 | wxPyEndAllowThreads(__tstate); | |
38971 | if (PyErr_Occurred()) SWIG_fail; | |
38972 | } | |
38973 | resultobj = SWIG_Py_Void(); | |
38974 | return resultobj; | |
38975 | fail: | |
38976 | return NULL; | |
38977 | } | |
38978 | ||
38979 | ||
38980 | SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38981 | PyObject *resultobj = 0; | |
38982 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
38983 | int arg2 ; | |
38984 | int arg3 ; | |
38985 | int arg4 ; | |
38986 | int arg5 ; | |
38987 | int arg6 = (int) wxSIZE_AUTO ; | |
38988 | void *argp1 = 0 ; | |
38989 | int res1 = 0 ; | |
38990 | int val2 ; | |
38991 | int ecode2 = 0 ; | |
38992 | int val3 ; | |
38993 | int ecode3 = 0 ; | |
38994 | int val4 ; | |
38995 | int ecode4 = 0 ; | |
38996 | int val5 ; | |
38997 | int ecode5 = 0 ; | |
38998 | int val6 ; | |
38999 | int ecode6 = 0 ; | |
39000 | PyObject * obj0 = 0 ; | |
39001 | PyObject * obj1 = 0 ; | |
39002 | PyObject * obj2 = 0 ; | |
39003 | PyObject * obj3 = 0 ; | |
39004 | PyObject * obj4 = 0 ; | |
39005 | PyObject * obj5 = 0 ; | |
39006 | char * kwnames[] = { | |
39007 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
39008 | }; | |
39009 | ||
39010 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
39011 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39012 | if (!SWIG_IsOK(res1)) { | |
39013 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39014 | } | |
39015 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39016 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39017 | if (!SWIG_IsOK(ecode2)) { | |
39018 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
39019 | } | |
39020 | arg2 = static_cast< int >(val2); | |
39021 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
39022 | if (!SWIG_IsOK(ecode3)) { | |
39023 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
39024 | } | |
39025 | arg3 = static_cast< int >(val3); | |
39026 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
39027 | if (!SWIG_IsOK(ecode4)) { | |
39028 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
39029 | } | |
39030 | arg4 = static_cast< int >(val4); | |
39031 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
39032 | if (!SWIG_IsOK(ecode5)) { | |
39033 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
39034 | } | |
39035 | arg5 = static_cast< int >(val5); | |
39036 | if (obj5) { | |
39037 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
39038 | if (!SWIG_IsOK(ecode6)) { | |
39039 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
39040 | } | |
39041 | arg6 = static_cast< int >(val6); | |
39042 | } | |
39043 | { | |
39044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39045 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
39046 | wxPyEndAllowThreads(__tstate); | |
39047 | if (PyErr_Occurred()) SWIG_fail; | |
39048 | } | |
39049 | resultobj = SWIG_Py_Void(); | |
39050 | return resultobj; | |
39051 | fail: | |
39052 | return NULL; | |
39053 | } | |
39054 | ||
39055 | ||
39056 | SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39057 | PyObject *resultobj = 0; | |
39058 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39059 | int arg2 ; | |
39060 | int arg3 ; | |
39061 | void *argp1 = 0 ; | |
39062 | int res1 = 0 ; | |
39063 | int val2 ; | |
39064 | int ecode2 = 0 ; | |
39065 | int val3 ; | |
39066 | int ecode3 = 0 ; | |
39067 | PyObject * obj0 = 0 ; | |
39068 | PyObject * obj1 = 0 ; | |
39069 | PyObject * obj2 = 0 ; | |
39070 | char * kwnames[] = { | |
39071 | (char *) "self",(char *) "width",(char *) "height", NULL | |
39072 | }; | |
39073 | ||
39074 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
39075 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39076 | if (!SWIG_IsOK(res1)) { | |
39077 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39078 | } | |
39079 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39080 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39081 | if (!SWIG_IsOK(ecode2)) { | |
39082 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
39083 | } | |
39084 | arg2 = static_cast< int >(val2); | |
39085 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
39086 | if (!SWIG_IsOK(ecode3)) { | |
39087 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
39088 | } | |
39089 | arg3 = static_cast< int >(val3); | |
39090 | { | |
39091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39092 | (arg1)->DoSetClientSize(arg2,arg3); | |
39093 | wxPyEndAllowThreads(__tstate); | |
39094 | if (PyErr_Occurred()) SWIG_fail; | |
39095 | } | |
39096 | resultobj = SWIG_Py_Void(); | |
39097 | return resultobj; | |
39098 | fail: | |
39099 | return NULL; | |
39100 | } | |
39101 | ||
39102 | ||
39103 | SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39104 | PyObject *resultobj = 0; | |
39105 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39106 | int arg2 ; | |
39107 | int arg3 ; | |
39108 | void *argp1 = 0 ; | |
39109 | int res1 = 0 ; | |
39110 | int val2 ; | |
39111 | int ecode2 = 0 ; | |
39112 | int val3 ; | |
39113 | int ecode3 = 0 ; | |
39114 | PyObject * obj0 = 0 ; | |
39115 | PyObject * obj1 = 0 ; | |
39116 | PyObject * obj2 = 0 ; | |
39117 | char * kwnames[] = { | |
39118 | (char *) "self",(char *) "x",(char *) "y", NULL | |
39119 | }; | |
39120 | ||
39121 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
39122 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39123 | if (!SWIG_IsOK(res1)) { | |
39124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39125 | } | |
39126 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39127 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39128 | if (!SWIG_IsOK(ecode2)) { | |
39129 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
39130 | } | |
39131 | arg2 = static_cast< int >(val2); | |
39132 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
39133 | if (!SWIG_IsOK(ecode3)) { | |
39134 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
39135 | } | |
39136 | arg3 = static_cast< int >(val3); | |
39137 | { | |
39138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39139 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
39140 | wxPyEndAllowThreads(__tstate); | |
39141 | if (PyErr_Occurred()) SWIG_fail; | |
39142 | } | |
39143 | resultobj = SWIG_Py_Void(); | |
39144 | return resultobj; | |
39145 | fail: | |
39146 | return NULL; | |
39147 | } | |
39148 | ||
39149 | ||
39150 | SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39151 | PyObject *resultobj = 0; | |
39152 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39153 | int *arg2 = (int *) 0 ; | |
39154 | int *arg3 = (int *) 0 ; | |
39155 | void *argp1 = 0 ; | |
39156 | int res1 = 0 ; | |
39157 | int temp2 ; | |
39158 | int res2 = SWIG_TMPOBJ ; | |
39159 | int temp3 ; | |
39160 | int res3 = SWIG_TMPOBJ ; | |
39161 | PyObject *swig_obj[1] ; | |
39162 | ||
39163 | arg2 = &temp2; | |
39164 | arg3 = &temp3; | |
39165 | if (!args) SWIG_fail; | |
39166 | swig_obj[0] = args; | |
39167 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39168 | if (!SWIG_IsOK(res1)) { | |
39169 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39170 | } | |
39171 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39172 | { | |
39173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39174 | ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3); | |
39175 | wxPyEndAllowThreads(__tstate); | |
39176 | if (PyErr_Occurred()) SWIG_fail; | |
39177 | } | |
39178 | resultobj = SWIG_Py_Void(); | |
39179 | if (SWIG_IsTmpObj(res2)) { | |
39180 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
39181 | } else { | |
39182 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39183 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
39184 | } | |
39185 | if (SWIG_IsTmpObj(res3)) { | |
39186 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
39187 | } else { | |
39188 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39189 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
39190 | } | |
39191 | return resultobj; | |
39192 | fail: | |
39193 | return NULL; | |
39194 | } | |
39195 | ||
39196 | ||
39197 | SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39198 | PyObject *resultobj = 0; | |
39199 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39200 | int *arg2 = (int *) 0 ; | |
39201 | int *arg3 = (int *) 0 ; | |
39202 | void *argp1 = 0 ; | |
39203 | int res1 = 0 ; | |
39204 | int temp2 ; | |
39205 | int res2 = SWIG_TMPOBJ ; | |
39206 | int temp3 ; | |
39207 | int res3 = SWIG_TMPOBJ ; | |
39208 | PyObject *swig_obj[1] ; | |
39209 | ||
39210 | arg2 = &temp2; | |
39211 | arg3 = &temp3; | |
39212 | if (!args) SWIG_fail; | |
39213 | swig_obj[0] = args; | |
39214 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39215 | if (!SWIG_IsOK(res1)) { | |
39216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39217 | } | |
39218 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39219 | { | |
39220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39221 | ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3); | |
39222 | wxPyEndAllowThreads(__tstate); | |
39223 | if (PyErr_Occurred()) SWIG_fail; | |
39224 | } | |
39225 | resultobj = SWIG_Py_Void(); | |
39226 | if (SWIG_IsTmpObj(res2)) { | |
39227 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
39228 | } else { | |
39229 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39230 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
39231 | } | |
39232 | if (SWIG_IsTmpObj(res3)) { | |
39233 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
39234 | } else { | |
39235 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39236 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
39237 | } | |
39238 | return resultobj; | |
39239 | fail: | |
39240 | return NULL; | |
39241 | } | |
39242 | ||
39243 | ||
39244 | SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39245 | PyObject *resultobj = 0; | |
39246 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39247 | int *arg2 = (int *) 0 ; | |
39248 | int *arg3 = (int *) 0 ; | |
39249 | void *argp1 = 0 ; | |
39250 | int res1 = 0 ; | |
39251 | int temp2 ; | |
39252 | int res2 = SWIG_TMPOBJ ; | |
39253 | int temp3 ; | |
39254 | int res3 = SWIG_TMPOBJ ; | |
39255 | PyObject *swig_obj[1] ; | |
39256 | ||
39257 | arg2 = &temp2; | |
39258 | arg3 = &temp3; | |
39259 | if (!args) SWIG_fail; | |
39260 | swig_obj[0] = args; | |
39261 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39262 | if (!SWIG_IsOK(res1)) { | |
39263 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39264 | } | |
39265 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39266 | { | |
39267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39268 | ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3); | |
39269 | wxPyEndAllowThreads(__tstate); | |
39270 | if (PyErr_Occurred()) SWIG_fail; | |
39271 | } | |
39272 | resultobj = SWIG_Py_Void(); | |
39273 | if (SWIG_IsTmpObj(res2)) { | |
39274 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
39275 | } else { | |
39276 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39277 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
39278 | } | |
39279 | if (SWIG_IsTmpObj(res3)) { | |
39280 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
39281 | } else { | |
39282 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
39283 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
39284 | } | |
39285 | return resultobj; | |
39286 | fail: | |
39287 | return NULL; | |
d14a1e28 RD |
39288 | } |
39289 | ||
39290 | ||
0085ce49 RD |
39291 | SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39292 | PyObject *resultobj = 0; | |
39293 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39294 | wxSize result; | |
39295 | void *argp1 = 0 ; | |
39296 | int res1 = 0 ; | |
39297 | PyObject *swig_obj[1] ; | |
39298 | ||
39299 | if (!args) SWIG_fail; | |
39300 | swig_obj[0] = args; | |
39301 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39302 | if (!SWIG_IsOK(res1)) { | |
39303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39304 | } | |
39305 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39306 | { | |
39307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39308 | result = ((wxPyControl const *)arg1)->DoGetVirtualSize(); | |
39309 | wxPyEndAllowThreads(__tstate); | |
39310 | if (PyErr_Occurred()) SWIG_fail; | |
39311 | } | |
39312 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
39313 | return resultobj; | |
39314 | fail: | |
39315 | return NULL; | |
d14a1e28 RD |
39316 | } |
39317 | ||
39318 | ||
0085ce49 RD |
39319 | SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39320 | PyObject *resultobj = 0; | |
39321 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39322 | wxSize result; | |
39323 | void *argp1 = 0 ; | |
39324 | int res1 = 0 ; | |
39325 | PyObject *swig_obj[1] ; | |
39326 | ||
39327 | if (!args) SWIG_fail; | |
39328 | swig_obj[0] = args; | |
39329 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39330 | if (!SWIG_IsOK(res1)) { | |
39331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'"); | |
39332 | } | |
39333 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39334 | { | |
39335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39336 | result = ((wxPyControl const *)arg1)->DoGetBestSize(); | |
39337 | wxPyEndAllowThreads(__tstate); | |
39338 | if (PyErr_Occurred()) SWIG_fail; | |
39339 | } | |
39340 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
39341 | return resultobj; | |
39342 | fail: | |
39343 | return NULL; | |
d14a1e28 RD |
39344 | } |
39345 | ||
39346 | ||
0085ce49 RD |
39347 | SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39348 | PyObject *resultobj = 0; | |
39349 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39350 | SwigValueWrapper<wxVisualAttributes > result; | |
39351 | void *argp1 = 0 ; | |
39352 | int res1 = 0 ; | |
39353 | PyObject *swig_obj[1] ; | |
39354 | ||
39355 | if (!args) SWIG_fail; | |
39356 | swig_obj[0] = args; | |
39357 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39358 | if (!SWIG_IsOK(res1)) { | |
39359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39360 | } | |
39361 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39362 | { | |
39363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39364 | result = (arg1)->GetDefaultAttributes(); | |
39365 | wxPyEndAllowThreads(__tstate); | |
39366 | if (PyErr_Occurred()) SWIG_fail; | |
39367 | } | |
39368 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
39369 | return resultobj; | |
39370 | fail: | |
39371 | return NULL; | |
d14a1e28 RD |
39372 | } |
39373 | ||
39374 | ||
0085ce49 RD |
39375 | SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39376 | PyObject *resultobj = 0; | |
39377 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
39378 | void *argp1 = 0 ; | |
39379 | int res1 = 0 ; | |
39380 | PyObject *swig_obj[1] ; | |
39381 | ||
39382 | if (!args) SWIG_fail; | |
39383 | swig_obj[0] = args; | |
39384 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 ); | |
39385 | if (!SWIG_IsOK(res1)) { | |
39386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'"); | |
39387 | } | |
39388 | arg1 = reinterpret_cast< wxPyControl * >(argp1); | |
39389 | { | |
39390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39391 | (arg1)->OnInternalIdle(); | |
39392 | wxPyEndAllowThreads(__tstate); | |
39393 | if (PyErr_Occurred()) SWIG_fail; | |
39394 | } | |
39395 | resultobj = SWIG_Py_Void(); | |
39396 | return resultobj; | |
39397 | fail: | |
39398 | return NULL; | |
39399 | } | |
39400 | ||
39401 | ||
39402 | SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39403 | PyObject *obj; | |
39404 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39405 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj)); | |
39406 | return SWIG_Py_Void(); | |
39407 | } | |
39408 | ||
39409 | SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39410 | return SWIG_Python_InitShadowInstance(args); | |
39411 | } | |
39412 | ||
39413 | SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39414 | PyObject *resultobj = 0; | |
39415 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
39416 | int arg2 = (int) 0 ; | |
39417 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
39418 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
704eda0c | 39419 | wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ; |
0085ce49 RD |
39420 | wxHelpEvent *result = 0 ; |
39421 | int val1 ; | |
39422 | int ecode1 = 0 ; | |
39423 | int val2 ; | |
39424 | int ecode2 = 0 ; | |
39425 | wxPoint temp3 ; | |
704eda0c RD |
39426 | int val4 ; |
39427 | int ecode4 = 0 ; | |
0085ce49 RD |
39428 | PyObject * obj0 = 0 ; |
39429 | PyObject * obj1 = 0 ; | |
39430 | PyObject * obj2 = 0 ; | |
704eda0c | 39431 | PyObject * obj3 = 0 ; |
0085ce49 | 39432 | char * kwnames[] = { |
704eda0c | 39433 | (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL |
0085ce49 RD |
39434 | }; |
39435 | ||
704eda0c | 39436 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
39437 | if (obj0) { |
39438 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
39439 | if (!SWIG_IsOK(ecode1)) { | |
39440 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
39441 | } | |
39442 | arg1 = static_cast< wxEventType >(val1); | |
39443 | } | |
39444 | if (obj1) { | |
39445 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39446 | if (!SWIG_IsOK(ecode2)) { | |
39447 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'"); | |
39448 | } | |
39449 | arg2 = static_cast< int >(val2); | |
39450 | } | |
39451 | if (obj2) { | |
d14a1e28 | 39452 | { |
0085ce49 RD |
39453 | arg3 = &temp3; |
39454 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 39455 | } |
0085ce49 | 39456 | } |
704eda0c RD |
39457 | if (obj3) { |
39458 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
39459 | if (!SWIG_IsOK(ecode4)) { | |
39460 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'"); | |
39461 | } | |
39462 | arg4 = static_cast< wxHelpEvent::Origin >(val4); | |
39463 | } | |
0085ce49 RD |
39464 | { |
39465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 39466 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4); |
0085ce49 RD |
39467 | wxPyEndAllowThreads(__tstate); |
39468 | if (PyErr_Occurred()) SWIG_fail; | |
39469 | } | |
39470 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 ); | |
39471 | return resultobj; | |
39472 | fail: | |
39473 | return NULL; | |
d14a1e28 RD |
39474 | } |
39475 | ||
39476 | ||
0085ce49 RD |
39477 | SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39478 | PyObject *resultobj = 0; | |
39479 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39480 | wxPoint result; | |
39481 | void *argp1 = 0 ; | |
39482 | int res1 = 0 ; | |
39483 | PyObject *swig_obj[1] ; | |
39484 | ||
39485 | if (!args) SWIG_fail; | |
39486 | swig_obj[0] = args; | |
39487 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39488 | if (!SWIG_IsOK(res1)) { | |
39489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
39490 | } | |
39491 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39492 | { | |
39493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39494 | result = ((wxHelpEvent const *)arg1)->GetPosition(); | |
39495 | wxPyEndAllowThreads(__tstate); | |
39496 | if (PyErr_Occurred()) SWIG_fail; | |
39497 | } | |
39498 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
39499 | return resultobj; | |
39500 | fail: | |
39501 | return NULL; | |
39502 | } | |
39503 | ||
39504 | ||
39505 | SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39506 | PyObject *resultobj = 0; | |
39507 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39508 | wxPoint *arg2 = 0 ; | |
39509 | void *argp1 = 0 ; | |
39510 | int res1 = 0 ; | |
39511 | wxPoint temp2 ; | |
39512 | PyObject * obj0 = 0 ; | |
39513 | PyObject * obj1 = 0 ; | |
39514 | char * kwnames[] = { | |
39515 | (char *) "self",(char *) "pos", NULL | |
39516 | }; | |
39517 | ||
39518 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
39519 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39520 | if (!SWIG_IsOK(res1)) { | |
39521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
39522 | } | |
39523 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39524 | { | |
39525 | arg2 = &temp2; | |
39526 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39527 | } | |
39528 | { | |
39529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39530 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
39531 | wxPyEndAllowThreads(__tstate); | |
39532 | if (PyErr_Occurred()) SWIG_fail; | |
39533 | } | |
39534 | resultobj = SWIG_Py_Void(); | |
39535 | return resultobj; | |
39536 | fail: | |
39537 | return NULL; | |
d14a1e28 RD |
39538 | } |
39539 | ||
39540 | ||
0085ce49 RD |
39541 | SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39542 | PyObject *resultobj = 0; | |
39543 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39544 | wxString *result = 0 ; | |
39545 | void *argp1 = 0 ; | |
39546 | int res1 = 0 ; | |
39547 | PyObject *swig_obj[1] ; | |
39548 | ||
39549 | if (!args) SWIG_fail; | |
39550 | swig_obj[0] = args; | |
39551 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39552 | if (!SWIG_IsOK(res1)) { | |
39553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
39554 | } | |
39555 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39556 | { | |
39557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 39558 | { |
0085ce49 RD |
39559 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); |
39560 | result = (wxString *) &_result_ref; | |
093d3ff1 | 39561 | } |
0085ce49 RD |
39562 | wxPyEndAllowThreads(__tstate); |
39563 | if (PyErr_Occurred()) SWIG_fail; | |
39564 | } | |
39565 | { | |
39566 | #if wxUSE_UNICODE | |
39567 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
39568 | #else | |
39569 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
39570 | #endif | |
39571 | } | |
39572 | return resultobj; | |
39573 | fail: | |
39574 | return NULL; | |
39575 | } | |
39576 | ||
39577 | ||
39578 | SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39579 | PyObject *resultobj = 0; | |
39580 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39581 | wxString *arg2 = 0 ; | |
39582 | void *argp1 = 0 ; | |
39583 | int res1 = 0 ; | |
39584 | bool temp2 = false ; | |
39585 | PyObject * obj0 = 0 ; | |
39586 | PyObject * obj1 = 0 ; | |
39587 | char * kwnames[] = { | |
39588 | (char *) "self",(char *) "link", NULL | |
39589 | }; | |
39590 | ||
39591 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail; | |
39592 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39593 | if (!SWIG_IsOK(res1)) { | |
39594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
39595 | } | |
39596 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39597 | { | |
39598 | arg2 = wxString_in_helper(obj1); | |
39599 | if (arg2 == NULL) SWIG_fail; | |
39600 | temp2 = true; | |
39601 | } | |
39602 | { | |
39603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39604 | (arg1)->SetLink((wxString const &)*arg2); | |
39605 | wxPyEndAllowThreads(__tstate); | |
39606 | if (PyErr_Occurred()) SWIG_fail; | |
39607 | } | |
39608 | resultobj = SWIG_Py_Void(); | |
39609 | { | |
39610 | if (temp2) | |
39611 | delete arg2; | |
39612 | } | |
39613 | return resultobj; | |
39614 | fail: | |
39615 | { | |
39616 | if (temp2) | |
39617 | delete arg2; | |
39618 | } | |
39619 | return NULL; | |
d14a1e28 RD |
39620 | } |
39621 | ||
39622 | ||
0085ce49 RD |
39623 | SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39624 | PyObject *resultobj = 0; | |
39625 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39626 | wxString *result = 0 ; | |
39627 | void *argp1 = 0 ; | |
39628 | int res1 = 0 ; | |
39629 | PyObject *swig_obj[1] ; | |
39630 | ||
39631 | if (!args) SWIG_fail; | |
39632 | swig_obj[0] = args; | |
39633 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39634 | if (!SWIG_IsOK(res1)) { | |
39635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
39636 | } | |
39637 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39638 | { | |
39639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 39640 | { |
0085ce49 RD |
39641 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); |
39642 | result = (wxString *) &_result_ref; | |
d14a1e28 | 39643 | } |
0085ce49 RD |
39644 | wxPyEndAllowThreads(__tstate); |
39645 | if (PyErr_Occurred()) SWIG_fail; | |
39646 | } | |
39647 | { | |
39648 | #if wxUSE_UNICODE | |
39649 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
39650 | #else | |
39651 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
39652 | #endif | |
39653 | } | |
39654 | return resultobj; | |
39655 | fail: | |
39656 | return NULL; | |
39657 | } | |
39658 | ||
39659 | ||
39660 | SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39661 | PyObject *resultobj = 0; | |
39662 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39663 | wxString *arg2 = 0 ; | |
39664 | void *argp1 = 0 ; | |
39665 | int res1 = 0 ; | |
39666 | bool temp2 = false ; | |
39667 | PyObject * obj0 = 0 ; | |
39668 | PyObject * obj1 = 0 ; | |
39669 | char * kwnames[] = { | |
39670 | (char *) "self",(char *) "target", NULL | |
39671 | }; | |
39672 | ||
39673 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail; | |
39674 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39675 | if (!SWIG_IsOK(res1)) { | |
39676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
39677 | } | |
39678 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39679 | { | |
39680 | arg2 = wxString_in_helper(obj1); | |
39681 | if (arg2 == NULL) SWIG_fail; | |
39682 | temp2 = true; | |
39683 | } | |
39684 | { | |
39685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39686 | (arg1)->SetTarget((wxString const &)*arg2); | |
39687 | wxPyEndAllowThreads(__tstate); | |
39688 | if (PyErr_Occurred()) SWIG_fail; | |
39689 | } | |
39690 | resultobj = SWIG_Py_Void(); | |
39691 | { | |
39692 | if (temp2) | |
39693 | delete arg2; | |
39694 | } | |
39695 | return resultobj; | |
39696 | fail: | |
39697 | { | |
39698 | if (temp2) | |
39699 | delete arg2; | |
39700 | } | |
39701 | return NULL; | |
d14a1e28 RD |
39702 | } |
39703 | ||
39704 | ||
704eda0c RD |
39705 | SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39706 | PyObject *resultobj = 0; | |
39707 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39708 | wxHelpEvent::Origin result; | |
39709 | void *argp1 = 0 ; | |
39710 | int res1 = 0 ; | |
39711 | PyObject *swig_obj[1] ; | |
39712 | ||
39713 | if (!args) SWIG_fail; | |
39714 | swig_obj[0] = args; | |
39715 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39716 | if (!SWIG_IsOK(res1)) { | |
39717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'"); | |
39718 | } | |
39719 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39720 | { | |
39721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39722 | result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin(); | |
39723 | wxPyEndAllowThreads(__tstate); | |
39724 | if (PyErr_Occurred()) SWIG_fail; | |
39725 | } | |
39726 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
39727 | return resultobj; | |
39728 | fail: | |
39729 | return NULL; | |
39730 | } | |
39731 | ||
39732 | ||
39733 | SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39734 | PyObject *resultobj = 0; | |
39735 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
39736 | wxHelpEvent::Origin arg2 ; | |
39737 | void *argp1 = 0 ; | |
39738 | int res1 = 0 ; | |
39739 | int val2 ; | |
39740 | int ecode2 = 0 ; | |
39741 | PyObject * obj0 = 0 ; | |
39742 | PyObject * obj1 = 0 ; | |
39743 | char * kwnames[] = { | |
39744 | (char *) "self",(char *) "origin", NULL | |
39745 | }; | |
39746 | ||
39747 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail; | |
39748 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 ); | |
39749 | if (!SWIG_IsOK(res1)) { | |
39750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'"); | |
39751 | } | |
39752 | arg1 = reinterpret_cast< wxHelpEvent * >(argp1); | |
39753 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39754 | if (!SWIG_IsOK(ecode2)) { | |
39755 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'"); | |
39756 | } | |
39757 | arg2 = static_cast< wxHelpEvent::Origin >(val2); | |
39758 | { | |
39759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39760 | (arg1)->SetOrigin(arg2); | |
39761 | wxPyEndAllowThreads(__tstate); | |
39762 | if (PyErr_Occurred()) SWIG_fail; | |
39763 | } | |
39764 | resultobj = SWIG_Py_Void(); | |
39765 | return resultobj; | |
39766 | fail: | |
39767 | return NULL; | |
39768 | } | |
39769 | ||
39770 | ||
0085ce49 RD |
39771 | SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39772 | PyObject *obj; | |
39773 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39774 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj)); | |
39775 | return SWIG_Py_Void(); | |
d14a1e28 RD |
39776 | } |
39777 | ||
0085ce49 RD |
39778 | SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39779 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
39780 | } |
39781 | ||
0085ce49 RD |
39782 | SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
39783 | PyObject *resultobj = 0; | |
39784 | wxWindow *arg1 = (wxWindow *) NULL ; | |
39785 | bool arg2 = (bool) true ; | |
39786 | wxContextHelp *result = 0 ; | |
39787 | void *argp1 = 0 ; | |
39788 | int res1 = 0 ; | |
39789 | bool val2 ; | |
39790 | int ecode2 = 0 ; | |
39791 | PyObject * obj0 = 0 ; | |
39792 | PyObject * obj1 = 0 ; | |
39793 | char * kwnames[] = { | |
39794 | (char *) "window",(char *) "doNow", NULL | |
39795 | }; | |
39796 | ||
39797 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
39798 | if (obj0) { | |
39799 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39800 | if (!SWIG_IsOK(res1)) { | |
39801 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
d14a1e28 | 39802 | } |
0085ce49 RD |
39803 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
39804 | } | |
39805 | if (obj1) { | |
39806 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
39807 | if (!SWIG_IsOK(ecode2)) { | |
39808 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'"); | |
39809 | } | |
39810 | arg2 = static_cast< bool >(val2); | |
39811 | } | |
39812 | { | |
39813 | if (!wxPyCheckForApp()) SWIG_fail; | |
39814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39815 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
39816 | wxPyEndAllowThreads(__tstate); | |
39817 | if (PyErr_Occurred()) SWIG_fail; | |
39818 | } | |
39819 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 ); | |
39820 | return resultobj; | |
39821 | fail: | |
39822 | return NULL; | |
d14a1e28 RD |
39823 | } |
39824 | ||
39825 | ||
0085ce49 RD |
39826 | SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39827 | PyObject *resultobj = 0; | |
39828 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
39829 | void *argp1 = 0 ; | |
39830 | int res1 = 0 ; | |
39831 | PyObject *swig_obj[1] ; | |
39832 | ||
39833 | if (!args) SWIG_fail; | |
39834 | swig_obj[0] = args; | |
39835 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 ); | |
39836 | if (!SWIG_IsOK(res1)) { | |
39837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
39838 | } | |
39839 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
39840 | { | |
39841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39842 | delete arg1; | |
3a04f143 | 39843 | |
0085ce49 RD |
39844 | wxPyEndAllowThreads(__tstate); |
39845 | if (PyErr_Occurred()) SWIG_fail; | |
39846 | } | |
39847 | resultobj = SWIG_Py_Void(); | |
39848 | return resultobj; | |
39849 | fail: | |
39850 | return NULL; | |
39851 | } | |
39852 | ||
39853 | ||
39854 | SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39855 | PyObject *resultobj = 0; | |
39856 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
39857 | wxWindow *arg2 = (wxWindow *) NULL ; | |
39858 | bool result; | |
39859 | void *argp1 = 0 ; | |
39860 | int res1 = 0 ; | |
39861 | void *argp2 = 0 ; | |
39862 | int res2 = 0 ; | |
39863 | PyObject * obj0 = 0 ; | |
39864 | PyObject * obj1 = 0 ; | |
39865 | char * kwnames[] = { | |
39866 | (char *) "self",(char *) "window", NULL | |
39867 | }; | |
39868 | ||
39869 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
39870 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 ); | |
39871 | if (!SWIG_IsOK(res1)) { | |
39872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
39873 | } | |
39874 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
39875 | if (obj1) { | |
39876 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39877 | if (!SWIG_IsOK(res2)) { | |
39878 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3a04f143 | 39879 | } |
0085ce49 RD |
39880 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
39881 | } | |
39882 | { | |
39883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39884 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
39885 | wxPyEndAllowThreads(__tstate); | |
39886 | if (PyErr_Occurred()) SWIG_fail; | |
39887 | } | |
39888 | { | |
39889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39890 | } | |
39891 | return resultobj; | |
39892 | fail: | |
39893 | return NULL; | |
3a04f143 RD |
39894 | } |
39895 | ||
39896 | ||
0085ce49 RD |
39897 | SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
39898 | PyObject *resultobj = 0; | |
39899 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
39900 | bool result; | |
39901 | void *argp1 = 0 ; | |
39902 | int res1 = 0 ; | |
39903 | PyObject *swig_obj[1] ; | |
39904 | ||
39905 | if (!args) SWIG_fail; | |
39906 | swig_obj[0] = args; | |
39907 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 ); | |
39908 | if (!SWIG_IsOK(res1)) { | |
39909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'"); | |
39910 | } | |
39911 | arg1 = reinterpret_cast< wxContextHelp * >(argp1); | |
39912 | { | |
39913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39914 | result = (bool)(arg1)->EndContextHelp(); | |
39915 | wxPyEndAllowThreads(__tstate); | |
39916 | if (PyErr_Occurred()) SWIG_fail; | |
39917 | } | |
39918 | { | |
39919 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39920 | } | |
39921 | return resultobj; | |
39922 | fail: | |
39923 | return NULL; | |
39924 | } | |
39925 | ||
39926 | ||
39927 | SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39928 | PyObject *obj; | |
39929 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39930 | SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj)); | |
39931 | return SWIG_Py_Void(); | |
39932 | } | |
39933 | ||
39934 | SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39935 | return SWIG_Python_InitShadowInstance(args); | |
39936 | } | |
39937 | ||
39938 | SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39939 | PyObject *resultobj = 0; | |
39940 | wxWindow *arg1 = (wxWindow *) 0 ; | |
39941 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
39942 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
39943 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
39944 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
39945 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
39946 | long arg5 = (long) wxBU_AUTODRAW ; | |
39947 | wxContextHelpButton *result = 0 ; | |
39948 | void *argp1 = 0 ; | |
39949 | int res1 = 0 ; | |
39950 | int val2 ; | |
39951 | int ecode2 = 0 ; | |
39952 | wxPoint temp3 ; | |
39953 | wxSize temp4 ; | |
39954 | long val5 ; | |
39955 | int ecode5 = 0 ; | |
39956 | PyObject * obj0 = 0 ; | |
39957 | PyObject * obj1 = 0 ; | |
39958 | PyObject * obj2 = 0 ; | |
39959 | PyObject * obj3 = 0 ; | |
39960 | PyObject * obj4 = 0 ; | |
39961 | char * kwnames[] = { | |
39962 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
39963 | }; | |
39964 | ||
39965 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
39966 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
39967 | if (!SWIG_IsOK(res1)) { | |
39968 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
39969 | } | |
39970 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
39971 | if (obj1) { | |
39972 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39973 | if (!SWIG_IsOK(ecode2)) { | |
39974 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'"); | |
39975 | } | |
39976 | arg2 = static_cast< int >(val2); | |
39977 | } | |
39978 | if (obj2) { | |
d14a1e28 | 39979 | { |
0085ce49 RD |
39980 | arg3 = &temp3; |
39981 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 39982 | } |
0085ce49 RD |
39983 | } |
39984 | if (obj3) { | |
4f89f6a3 | 39985 | { |
0085ce49 RD |
39986 | arg4 = &temp4; |
39987 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 39988 | } |
0085ce49 RD |
39989 | } |
39990 | if (obj4) { | |
39991 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
39992 | if (!SWIG_IsOK(ecode5)) { | |
39993 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'"); | |
39994 | } | |
39995 | arg5 = static_cast< long >(val5); | |
39996 | } | |
39997 | { | |
39998 | if (!wxPyCheckForApp()) SWIG_fail; | |
39999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40000 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
40001 | wxPyEndAllowThreads(__tstate); | |
40002 | if (PyErr_Occurred()) SWIG_fail; | |
40003 | } | |
40004 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 ); | |
40005 | return resultobj; | |
40006 | fail: | |
40007 | return NULL; | |
d14a1e28 RD |
40008 | } |
40009 | ||
40010 | ||
0085ce49 RD |
40011 | SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40012 | PyObject *obj; | |
40013 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40014 | SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj)); | |
40015 | return SWIG_Py_Void(); | |
d14a1e28 RD |
40016 | } |
40017 | ||
0085ce49 RD |
40018 | SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40019 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
40020 | } |
40021 | ||
f52cbe90 RD |
40022 | SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40023 | PyObject *resultobj = 0; | |
40024 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40025 | void *argp1 = 0 ; | |
40026 | int res1 = 0 ; | |
40027 | PyObject *swig_obj[1] ; | |
40028 | ||
40029 | if (!args) SWIG_fail; | |
40030 | swig_obj[0] = args; | |
40031 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 ); | |
40032 | if (!SWIG_IsOK(res1)) { | |
40033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40034 | } | |
40035 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40036 | { | |
40037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40038 | delete arg1; | |
40039 | ||
40040 | wxPyEndAllowThreads(__tstate); | |
40041 | if (PyErr_Occurred()) SWIG_fail; | |
40042 | } | |
40043 | resultobj = SWIG_Py_Void(); | |
40044 | return resultobj; | |
40045 | fail: | |
40046 | return NULL; | |
40047 | } | |
40048 | ||
40049 | ||
0085ce49 RD |
40050 | SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
40051 | PyObject *resultobj = 0; | |
40052 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40053 | wxHelpProvider *result = 0 ; | |
40054 | int res1 = 0 ; | |
40055 | PyObject * obj0 = 0 ; | |
40056 | char * kwnames[] = { | |
40057 | (char *) "helpProvider", NULL | |
40058 | }; | |
40059 | ||
40060 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail; | |
40061 | res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 ); | |
40062 | if (!SWIG_IsOK(res1)) { | |
40063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40064 | } | |
40065 | { | |
40066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40067 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
40068 | wxPyEndAllowThreads(__tstate); | |
40069 | if (PyErr_Occurred()) SWIG_fail; | |
40070 | } | |
40071 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 ); | |
40072 | return resultobj; | |
40073 | fail: | |
40074 | return NULL; | |
d14a1e28 RD |
40075 | } |
40076 | ||
40077 | ||
0085ce49 RD |
40078 | SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40079 | PyObject *resultobj = 0; | |
40080 | wxHelpProvider *result = 0 ; | |
40081 | ||
40082 | if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail; | |
40083 | { | |
40084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40085 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
40086 | wxPyEndAllowThreads(__tstate); | |
40087 | if (PyErr_Occurred()) SWIG_fail; | |
40088 | } | |
40089 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40090 | return resultobj; | |
40091 | fail: | |
40092 | return NULL; | |
40093 | } | |
40094 | ||
40095 | ||
40096 | SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40097 | PyObject *resultobj = 0; | |
40098 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40099 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40100 | wxString result; | |
40101 | void *argp1 = 0 ; | |
40102 | int res1 = 0 ; | |
40103 | void *argp2 = 0 ; | |
40104 | int res2 = 0 ; | |
40105 | PyObject * obj0 = 0 ; | |
40106 | PyObject * obj1 = 0 ; | |
40107 | char * kwnames[] = { | |
40108 | (char *) "self",(char *) "window", NULL | |
40109 | }; | |
40110 | ||
40111 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
40112 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40113 | if (!SWIG_IsOK(res1)) { | |
40114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40115 | } | |
40116 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40117 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40118 | if (!SWIG_IsOK(res2)) { | |
40119 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
40120 | } | |
40121 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40122 | { | |
40123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40124 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
40125 | wxPyEndAllowThreads(__tstate); | |
40126 | if (PyErr_Occurred()) SWIG_fail; | |
40127 | } | |
40128 | { | |
40129 | #if wxUSE_UNICODE | |
40130 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
40131 | #else | |
40132 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
40133 | #endif | |
40134 | } | |
40135 | return resultobj; | |
40136 | fail: | |
40137 | return NULL; | |
40138 | } | |
40139 | ||
40140 | ||
40141 | SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40142 | PyObject *resultobj = 0; | |
40143 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40144 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40145 | bool result; | |
40146 | void *argp1 = 0 ; | |
40147 | int res1 = 0 ; | |
40148 | void *argp2 = 0 ; | |
40149 | int res2 = 0 ; | |
40150 | PyObject * obj0 = 0 ; | |
40151 | PyObject * obj1 = 0 ; | |
40152 | char * kwnames[] = { | |
40153 | (char *) "self",(char *) "window", NULL | |
40154 | }; | |
40155 | ||
40156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
40157 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40158 | if (!SWIG_IsOK(res1)) { | |
40159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40160 | } | |
40161 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40162 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40163 | if (!SWIG_IsOK(res2)) { | |
40164 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
40165 | } | |
40166 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40167 | { | |
40168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40169 | result = (bool)(arg1)->ShowHelp(arg2); | |
40170 | wxPyEndAllowThreads(__tstate); | |
40171 | if (PyErr_Occurred()) SWIG_fail; | |
40172 | } | |
40173 | { | |
40174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40175 | } | |
40176 | return resultobj; | |
40177 | fail: | |
40178 | return NULL; | |
40179 | } | |
40180 | ||
40181 | ||
b850e7f3 RD |
40182 | SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
40183 | PyObject *resultobj = 0; | |
40184 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40185 | wxWindowBase *arg2 = (wxWindowBase *) 0 ; | |
40186 | wxPoint *arg3 = 0 ; | |
40187 | wxHelpEvent::Origin arg4 ; | |
40188 | bool result; | |
40189 | void *argp1 = 0 ; | |
40190 | int res1 = 0 ; | |
40191 | void *argp2 = 0 ; | |
40192 | int res2 = 0 ; | |
40193 | wxPoint temp3 ; | |
40194 | int val4 ; | |
40195 | int ecode4 = 0 ; | |
40196 | PyObject * obj0 = 0 ; | |
40197 | PyObject * obj1 = 0 ; | |
40198 | PyObject * obj2 = 0 ; | |
40199 | PyObject * obj3 = 0 ; | |
40200 | char * kwnames[] = { | |
40201 | (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL | |
40202 | }; | |
40203 | ||
40204 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
40205 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40206 | if (!SWIG_IsOK(res1)) { | |
40207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40208 | } | |
40209 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40210 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 ); | |
40211 | if (!SWIG_IsOK(res2)) { | |
40212 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'"); | |
40213 | } | |
40214 | arg2 = reinterpret_cast< wxWindowBase * >(argp2); | |
40215 | { | |
40216 | arg3 = &temp3; | |
40217 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
40218 | } | |
40219 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
40220 | if (!SWIG_IsOK(ecode4)) { | |
40221 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'"); | |
40222 | } | |
40223 | arg4 = static_cast< wxHelpEvent::Origin >(val4); | |
40224 | { | |
40225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40226 | result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4); | |
40227 | wxPyEndAllowThreads(__tstate); | |
40228 | if (PyErr_Occurred()) SWIG_fail; | |
40229 | } | |
40230 | { | |
40231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40232 | } | |
40233 | return resultobj; | |
40234 | fail: | |
40235 | return NULL; | |
40236 | } | |
40237 | ||
40238 | ||
0085ce49 RD |
40239 | SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
40240 | PyObject *resultobj = 0; | |
40241 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40242 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40243 | wxString *arg3 = 0 ; | |
40244 | void *argp1 = 0 ; | |
40245 | int res1 = 0 ; | |
40246 | void *argp2 = 0 ; | |
40247 | int res2 = 0 ; | |
40248 | bool temp3 = false ; | |
40249 | PyObject * obj0 = 0 ; | |
40250 | PyObject * obj1 = 0 ; | |
40251 | PyObject * obj2 = 0 ; | |
40252 | char * kwnames[] = { | |
40253 | (char *) "self",(char *) "window",(char *) "text", NULL | |
40254 | }; | |
40255 | ||
40256 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
40257 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40258 | if (!SWIG_IsOK(res1)) { | |
40259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40260 | } | |
40261 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40262 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40263 | if (!SWIG_IsOK(res2)) { | |
40264 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
40265 | } | |
40266 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40267 | { | |
40268 | arg3 = wxString_in_helper(obj2); | |
40269 | if (arg3 == NULL) SWIG_fail; | |
40270 | temp3 = true; | |
40271 | } | |
40272 | { | |
40273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40274 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
40275 | wxPyEndAllowThreads(__tstate); | |
40276 | if (PyErr_Occurred()) SWIG_fail; | |
40277 | } | |
40278 | resultobj = SWIG_Py_Void(); | |
40279 | { | |
40280 | if (temp3) | |
40281 | delete arg3; | |
40282 | } | |
40283 | return resultobj; | |
40284 | fail: | |
40285 | { | |
40286 | if (temp3) | |
40287 | delete arg3; | |
40288 | } | |
40289 | return NULL; | |
40290 | } | |
40291 | ||
40292 | ||
40293 | SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40294 | PyObject *resultobj = 0; | |
40295 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40296 | int arg2 ; | |
40297 | wxString *arg3 = 0 ; | |
40298 | void *argp1 = 0 ; | |
40299 | int res1 = 0 ; | |
40300 | int val2 ; | |
40301 | int ecode2 = 0 ; | |
40302 | bool temp3 = false ; | |
40303 | PyObject * obj0 = 0 ; | |
40304 | PyObject * obj1 = 0 ; | |
40305 | PyObject * obj2 = 0 ; | |
40306 | char * kwnames[] = { | |
40307 | (char *) "self",(char *) "id",(char *) "text", NULL | |
40308 | }; | |
40309 | ||
40310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
40311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40312 | if (!SWIG_IsOK(res1)) { | |
40313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40314 | } | |
40315 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40316 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
40317 | if (!SWIG_IsOK(ecode2)) { | |
40318 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'"); | |
40319 | } | |
40320 | arg2 = static_cast< int >(val2); | |
40321 | { | |
40322 | arg3 = wxString_in_helper(obj2); | |
40323 | if (arg3 == NULL) SWIG_fail; | |
40324 | temp3 = true; | |
40325 | } | |
40326 | { | |
40327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40328 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
40329 | wxPyEndAllowThreads(__tstate); | |
40330 | if (PyErr_Occurred()) SWIG_fail; | |
40331 | } | |
40332 | resultobj = SWIG_Py_Void(); | |
40333 | { | |
40334 | if (temp3) | |
40335 | delete arg3; | |
40336 | } | |
40337 | return resultobj; | |
40338 | fail: | |
40339 | { | |
40340 | if (temp3) | |
40341 | delete arg3; | |
40342 | } | |
40343 | return NULL; | |
40344 | } | |
40345 | ||
40346 | ||
40347 | SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40348 | PyObject *resultobj = 0; | |
40349 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40350 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40351 | void *argp1 = 0 ; | |
40352 | int res1 = 0 ; | |
40353 | void *argp2 = 0 ; | |
40354 | int res2 = 0 ; | |
40355 | PyObject * obj0 = 0 ; | |
40356 | PyObject * obj1 = 0 ; | |
40357 | char * kwnames[] = { | |
40358 | (char *) "self",(char *) "window", NULL | |
40359 | }; | |
40360 | ||
40361 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
40362 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40363 | if (!SWIG_IsOK(res1)) { | |
40364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40365 | } | |
40366 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40367 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40368 | if (!SWIG_IsOK(res2)) { | |
40369 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
40370 | } | |
40371 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
40372 | { | |
40373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40374 | (arg1)->RemoveHelp(arg2); | |
40375 | wxPyEndAllowThreads(__tstate); | |
40376 | if (PyErr_Occurred()) SWIG_fail; | |
40377 | } | |
40378 | resultobj = SWIG_Py_Void(); | |
40379 | return resultobj; | |
40380 | fail: | |
40381 | return NULL; | |
d14a1e28 RD |
40382 | } |
40383 | ||
40384 | ||
0085ce49 RD |
40385 | SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40386 | PyObject *resultobj = 0; | |
40387 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
40388 | void *argp1 = 0 ; | |
40389 | int res1 = 0 ; | |
40390 | PyObject *swig_obj[1] ; | |
40391 | ||
40392 | if (!args) SWIG_fail; | |
40393 | swig_obj[0] = args; | |
40394 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 ); | |
40395 | if (!SWIG_IsOK(res1)) { | |
40396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'"); | |
40397 | } | |
40398 | arg1 = reinterpret_cast< wxHelpProvider * >(argp1); | |
40399 | { | |
40400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40401 | wxHelpProvider_Destroy(arg1); | |
40402 | wxPyEndAllowThreads(__tstate); | |
40403 | if (PyErr_Occurred()) SWIG_fail; | |
40404 | } | |
40405 | resultobj = SWIG_Py_Void(); | |
40406 | return resultobj; | |
40407 | fail: | |
40408 | return NULL; | |
22bfe96c RD |
40409 | } |
40410 | ||
40411 | ||
0085ce49 RD |
40412 | SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40413 | PyObject *obj; | |
40414 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40415 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj)); | |
40416 | return SWIG_Py_Void(); | |
b2dc1044 RD |
40417 | } |
40418 | ||
0085ce49 RD |
40419 | SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40420 | PyObject *resultobj = 0; | |
40421 | wxSimpleHelpProvider *result = 0 ; | |
40422 | ||
40423 | if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail; | |
40424 | { | |
40425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40426 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
40427 | wxPyEndAllowThreads(__tstate); | |
40428 | if (PyErr_Occurred()) SWIG_fail; | |
40429 | } | |
40430 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 ); | |
40431 | return resultobj; | |
40432 | fail: | |
40433 | return NULL; | |
40434 | } | |
40435 | ||
40436 | ||
40437 | SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
40438 | PyObject *obj; | |
40439 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
40440 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj)); | |
40441 | return SWIG_Py_Void(); | |
40442 | } | |
40443 | ||
40444 | SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
40445 | return SWIG_Python_InitShadowInstance(args); | |
40446 | } | |
40447 | ||
40448 | SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40449 | PyObject *resultobj = 0; | |
40450 | wxBitmap *arg1 = 0 ; | |
40451 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
40452 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
40453 | wxGenericDragImage *result = 0 ; | |
40454 | void *argp1 = 0 ; | |
40455 | int res1 = 0 ; | |
40456 | void *argp2 = 0 ; | |
40457 | int res2 = 0 ; | |
40458 | PyObject * obj0 = 0 ; | |
40459 | PyObject * obj1 = 0 ; | |
40460 | char * kwnames[] = { | |
40461 | (char *) "image",(char *) "cursor", NULL | |
40462 | }; | |
40463 | ||
40464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
40465 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
40466 | if (!SWIG_IsOK(res1)) { | |
40467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
40468 | } | |
40469 | if (!argp1) { | |
40470 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
40471 | } | |
40472 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
40473 | if (obj1) { | |
40474 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
40475 | if (!SWIG_IsOK(res2)) { | |
40476 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d14a1e28 | 40477 | } |
0085ce49 RD |
40478 | if (!argp2) { |
40479 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d14a1e28 | 40480 | } |
0085ce49 RD |
40481 | arg2 = reinterpret_cast< wxCursor * >(argp2); |
40482 | } | |
40483 | { | |
40484 | if (!wxPyCheckForApp()) SWIG_fail; | |
40485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40486 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
40487 | wxPyEndAllowThreads(__tstate); | |
40488 | if (PyErr_Occurred()) SWIG_fail; | |
40489 | } | |
40490 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 ); | |
40491 | return resultobj; | |
40492 | fail: | |
40493 | return NULL; | |
40494 | } | |
40495 | ||
40496 | ||
40497 | SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40498 | PyObject *resultobj = 0; | |
40499 | wxIcon *arg1 = 0 ; | |
40500 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
40501 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
40502 | wxGenericDragImage *result = 0 ; | |
40503 | void *argp1 = 0 ; | |
40504 | int res1 = 0 ; | |
40505 | void *argp2 = 0 ; | |
40506 | int res2 = 0 ; | |
40507 | PyObject * obj0 = 0 ; | |
40508 | PyObject * obj1 = 0 ; | |
40509 | char * kwnames[] = { | |
40510 | (char *) "image",(char *) "cursor", NULL | |
40511 | }; | |
40512 | ||
40513 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
40514 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
40515 | if (!SWIG_IsOK(res1)) { | |
40516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
40517 | } | |
40518 | if (!argp1) { | |
40519 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
40520 | } | |
40521 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
40522 | if (obj1) { | |
40523 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
40524 | if (!SWIG_IsOK(res2)) { | |
40525 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d14a1e28 | 40526 | } |
0085ce49 RD |
40527 | if (!argp2) { |
40528 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
d14a1e28 | 40529 | } |
0085ce49 RD |
40530 | arg2 = reinterpret_cast< wxCursor * >(argp2); |
40531 | } | |
40532 | { | |
40533 | if (!wxPyCheckForApp()) SWIG_fail; | |
40534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40535 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
40536 | wxPyEndAllowThreads(__tstate); | |
40537 | if (PyErr_Occurred()) SWIG_fail; | |
40538 | } | |
40539 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
40540 | return resultobj; | |
40541 | fail: | |
40542 | return NULL; | |
40543 | } | |
40544 | ||
40545 | ||
40546 | SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40547 | PyObject *resultobj = 0; | |
40548 | wxString *arg1 = 0 ; | |
40549 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
40550 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
40551 | wxGenericDragImage *result = 0 ; | |
40552 | bool temp1 = false ; | |
40553 | void *argp2 = 0 ; | |
40554 | int res2 = 0 ; | |
40555 | PyObject * obj0 = 0 ; | |
40556 | PyObject * obj1 = 0 ; | |
40557 | char * kwnames[] = { | |
40558 | (char *) "str",(char *) "cursor", NULL | |
40559 | }; | |
40560 | ||
40561 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail; | |
40562 | { | |
40563 | arg1 = wxString_in_helper(obj0); | |
40564 | if (arg1 == NULL) SWIG_fail; | |
40565 | temp1 = true; | |
40566 | } | |
40567 | if (obj1) { | |
40568 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
40569 | if (!SWIG_IsOK(res2)) { | |
40570 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
7e08d4ef | 40571 | } |
0085ce49 RD |
40572 | if (!argp2) { |
40573 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
40574 | } | |
40575 | arg2 = reinterpret_cast< wxCursor * >(argp2); | |
40576 | } | |
40577 | { | |
40578 | if (!wxPyCheckForApp()) SWIG_fail; | |
40579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40580 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
40581 | wxPyEndAllowThreads(__tstate); | |
40582 | if (PyErr_Occurred()) SWIG_fail; | |
40583 | } | |
40584 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
40585 | { | |
40586 | if (temp1) | |
40587 | delete arg1; | |
40588 | } | |
40589 | return resultobj; | |
40590 | fail: | |
40591 | { | |
40592 | if (temp1) | |
40593 | delete arg1; | |
40594 | } | |
40595 | return NULL; | |
40596 | } | |
40597 | ||
40598 | ||
40599 | SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40600 | PyObject *resultobj = 0; | |
40601 | wxPyTreeCtrl *arg1 = 0 ; | |
40602 | wxTreeItemId *arg2 = 0 ; | |
40603 | wxGenericDragImage *result = 0 ; | |
40604 | void *argp1 = 0 ; | |
40605 | int res1 = 0 ; | |
40606 | void *argp2 = 0 ; | |
40607 | int res2 = 0 ; | |
40608 | PyObject * obj0 = 0 ; | |
40609 | PyObject * obj1 = 0 ; | |
40610 | char * kwnames[] = { | |
40611 | (char *) "treeCtrl",(char *) "id", NULL | |
40612 | }; | |
40613 | ||
40614 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
40615 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0); | |
40616 | if (!SWIG_IsOK(res1)) { | |
40617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'"); | |
40618 | } | |
40619 | if (!argp1) { | |
40620 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'"); | |
40621 | } | |
40622 | arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1); | |
40623 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 ); | |
40624 | if (!SWIG_IsOK(res2)) { | |
40625 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'"); | |
40626 | } | |
40627 | if (!argp2) { | |
40628 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'"); | |
40629 | } | |
40630 | arg2 = reinterpret_cast< wxTreeItemId * >(argp2); | |
40631 | { | |
40632 | if (!wxPyCheckForApp()) SWIG_fail; | |
40633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40634 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
40635 | wxPyEndAllowThreads(__tstate); | |
40636 | if (PyErr_Occurred()) SWIG_fail; | |
40637 | } | |
40638 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
40639 | return resultobj; | |
40640 | fail: | |
40641 | return NULL; | |
40642 | } | |
40643 | ||
40644 | ||
40645 | SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40646 | PyObject *resultobj = 0; | |
40647 | wxPyListCtrl *arg1 = 0 ; | |
40648 | long arg2 ; | |
40649 | wxGenericDragImage *result = 0 ; | |
40650 | void *argp1 = 0 ; | |
40651 | int res1 = 0 ; | |
40652 | long val2 ; | |
40653 | int ecode2 = 0 ; | |
40654 | PyObject * obj0 = 0 ; | |
40655 | PyObject * obj1 = 0 ; | |
40656 | char * kwnames[] = { | |
40657 | (char *) "listCtrl",(char *) "id", NULL | |
40658 | }; | |
40659 | ||
40660 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
40661 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0); | |
40662 | if (!SWIG_IsOK(res1)) { | |
40663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'"); | |
40664 | } | |
40665 | if (!argp1) { | |
40666 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'"); | |
40667 | } | |
40668 | arg1 = reinterpret_cast< wxPyListCtrl * >(argp1); | |
40669 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
40670 | if (!SWIG_IsOK(ecode2)) { | |
40671 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'"); | |
40672 | } | |
40673 | arg2 = static_cast< long >(val2); | |
40674 | { | |
40675 | if (!wxPyCheckForApp()) SWIG_fail; | |
40676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40677 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
40678 | wxPyEndAllowThreads(__tstate); | |
40679 | if (PyErr_Occurred()) SWIG_fail; | |
40680 | } | |
40681 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 ); | |
40682 | return resultobj; | |
40683 | fail: | |
40684 | return NULL; | |
7e08d4ef RD |
40685 | } |
40686 | ||
40687 | ||
0085ce49 RD |
40688 | SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40689 | PyObject *resultobj = 0; | |
40690 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40691 | void *argp1 = 0 ; | |
40692 | int res1 = 0 ; | |
40693 | PyObject *swig_obj[1] ; | |
40694 | ||
40695 | if (!args) SWIG_fail; | |
40696 | swig_obj[0] = args; | |
40697 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 ); | |
40698 | if (!SWIG_IsOK(res1)) { | |
40699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40700 | } | |
40701 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40702 | { | |
40703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40704 | delete arg1; | |
d14a1e28 | 40705 | |
0085ce49 RD |
40706 | wxPyEndAllowThreads(__tstate); |
40707 | if (PyErr_Occurred()) SWIG_fail; | |
40708 | } | |
40709 | resultobj = SWIG_Py_Void(); | |
40710 | return resultobj; | |
40711 | fail: | |
40712 | return NULL; | |
40713 | } | |
40714 | ||
40715 | ||
40716 | SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40717 | PyObject *resultobj = 0; | |
40718 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40719 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
40720 | void *argp1 = 0 ; | |
40721 | int res1 = 0 ; | |
40722 | void *argp2 = 0 ; | |
40723 | int res2 = 0 ; | |
40724 | PyObject * obj0 = 0 ; | |
40725 | PyObject * obj1 = 0 ; | |
40726 | char * kwnames[] = { | |
40727 | (char *) "self",(char *) "bitmap", NULL | |
40728 | }; | |
40729 | ||
40730 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
40731 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40732 | if (!SWIG_IsOK(res1)) { | |
40733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40734 | } | |
40735 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40736 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
40737 | if (!SWIG_IsOK(res2)) { | |
40738 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
40739 | } | |
40740 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
40741 | { | |
40742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40743 | (arg1)->SetBackingBitmap(arg2); | |
40744 | wxPyEndAllowThreads(__tstate); | |
40745 | if (PyErr_Occurred()) SWIG_fail; | |
40746 | } | |
40747 | resultobj = SWIG_Py_Void(); | |
40748 | return resultobj; | |
40749 | fail: | |
40750 | return NULL; | |
40751 | } | |
40752 | ||
40753 | ||
40754 | SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40755 | PyObject *resultobj = 0; | |
40756 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40757 | wxPoint *arg2 = 0 ; | |
40758 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40759 | bool arg4 = (bool) false ; | |
40760 | wxRect *arg5 = (wxRect *) NULL ; | |
40761 | bool result; | |
40762 | void *argp1 = 0 ; | |
40763 | int res1 = 0 ; | |
40764 | wxPoint temp2 ; | |
40765 | void *argp3 = 0 ; | |
40766 | int res3 = 0 ; | |
40767 | bool val4 ; | |
40768 | int ecode4 = 0 ; | |
40769 | void *argp5 = 0 ; | |
40770 | int res5 = 0 ; | |
40771 | PyObject * obj0 = 0 ; | |
40772 | PyObject * obj1 = 0 ; | |
40773 | PyObject * obj2 = 0 ; | |
40774 | PyObject * obj3 = 0 ; | |
40775 | PyObject * obj4 = 0 ; | |
40776 | char * kwnames[] = { | |
40777 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
40778 | }; | |
40779 | ||
40780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
40781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40782 | if (!SWIG_IsOK(res1)) { | |
40783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40784 | } | |
40785 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40786 | { | |
40787 | arg2 = &temp2; | |
40788 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
40789 | } | |
40790 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40791 | if (!SWIG_IsOK(res3)) { | |
40792 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
40793 | } | |
40794 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
40795 | if (obj3) { | |
40796 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
40797 | if (!SWIG_IsOK(ecode4)) { | |
40798 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'"); | |
40799 | } | |
40800 | arg4 = static_cast< bool >(val4); | |
40801 | } | |
40802 | if (obj4) { | |
40803 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 ); | |
40804 | if (!SWIG_IsOK(res5)) { | |
40805 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'"); | |
d14a1e28 | 40806 | } |
0085ce49 RD |
40807 | arg5 = reinterpret_cast< wxRect * >(argp5); |
40808 | } | |
40809 | { | |
40810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40811 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
40812 | wxPyEndAllowThreads(__tstate); | |
40813 | if (PyErr_Occurred()) SWIG_fail; | |
40814 | } | |
40815 | { | |
40816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40817 | } | |
40818 | return resultobj; | |
40819 | fail: | |
40820 | return NULL; | |
40821 | } | |
40822 | ||
40823 | ||
40824 | SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40825 | PyObject *resultobj = 0; | |
40826 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40827 | wxPoint *arg2 = 0 ; | |
40828 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40829 | wxWindow *arg4 = (wxWindow *) 0 ; | |
40830 | bool result; | |
40831 | void *argp1 = 0 ; | |
40832 | int res1 = 0 ; | |
40833 | wxPoint temp2 ; | |
40834 | void *argp3 = 0 ; | |
40835 | int res3 = 0 ; | |
40836 | void *argp4 = 0 ; | |
40837 | int res4 = 0 ; | |
40838 | PyObject * obj0 = 0 ; | |
40839 | PyObject * obj1 = 0 ; | |
40840 | PyObject * obj2 = 0 ; | |
40841 | PyObject * obj3 = 0 ; | |
40842 | char * kwnames[] = { | |
40843 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
40844 | }; | |
40845 | ||
40846 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
40847 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40848 | if (!SWIG_IsOK(res1)) { | |
40849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40850 | } | |
40851 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40852 | { | |
40853 | arg2 = &temp2; | |
40854 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
40855 | } | |
40856 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40857 | if (!SWIG_IsOK(res3)) { | |
40858 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
40859 | } | |
40860 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
40861 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
40862 | if (!SWIG_IsOK(res4)) { | |
40863 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
40864 | } | |
40865 | arg4 = reinterpret_cast< wxWindow * >(argp4); | |
40866 | { | |
40867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40868 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
40869 | wxPyEndAllowThreads(__tstate); | |
40870 | if (PyErr_Occurred()) SWIG_fail; | |
40871 | } | |
40872 | { | |
40873 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40874 | } | |
40875 | return resultobj; | |
40876 | fail: | |
40877 | return NULL; | |
d14a1e28 RD |
40878 | } |
40879 | ||
40880 | ||
0085ce49 RD |
40881 | SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40882 | PyObject *resultobj = 0; | |
40883 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40884 | bool result; | |
40885 | void *argp1 = 0 ; | |
40886 | int res1 = 0 ; | |
40887 | PyObject *swig_obj[1] ; | |
40888 | ||
40889 | if (!args) SWIG_fail; | |
40890 | swig_obj[0] = args; | |
40891 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40892 | if (!SWIG_IsOK(res1)) { | |
40893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40894 | } | |
40895 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40896 | { | |
40897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40898 | result = (bool)(arg1)->EndDrag(); | |
40899 | wxPyEndAllowThreads(__tstate); | |
40900 | if (PyErr_Occurred()) SWIG_fail; | |
40901 | } | |
40902 | { | |
40903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40904 | } | |
40905 | return resultobj; | |
40906 | fail: | |
40907 | return NULL; | |
40908 | } | |
40909 | ||
40910 | ||
40911 | SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
40912 | PyObject *resultobj = 0; | |
40913 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40914 | wxPoint *arg2 = 0 ; | |
40915 | bool result; | |
40916 | void *argp1 = 0 ; | |
40917 | int res1 = 0 ; | |
40918 | wxPoint temp2 ; | |
40919 | PyObject * obj0 = 0 ; | |
40920 | PyObject * obj1 = 0 ; | |
40921 | char * kwnames[] = { | |
40922 | (char *) "self",(char *) "pt", NULL | |
40923 | }; | |
40924 | ||
40925 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail; | |
40926 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40927 | if (!SWIG_IsOK(res1)) { | |
40928 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40929 | } | |
40930 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40931 | { | |
40932 | arg2 = &temp2; | |
40933 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
40934 | } | |
40935 | { | |
40936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40937 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
40938 | wxPyEndAllowThreads(__tstate); | |
40939 | if (PyErr_Occurred()) SWIG_fail; | |
40940 | } | |
40941 | { | |
40942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40943 | } | |
40944 | return resultobj; | |
40945 | fail: | |
40946 | return NULL; | |
d14a1e28 RD |
40947 | } |
40948 | ||
40949 | ||
0085ce49 RD |
40950 | SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40951 | PyObject *resultobj = 0; | |
40952 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40953 | bool result; | |
40954 | void *argp1 = 0 ; | |
40955 | int res1 = 0 ; | |
40956 | PyObject *swig_obj[1] ; | |
40957 | ||
40958 | if (!args) SWIG_fail; | |
40959 | swig_obj[0] = args; | |
40960 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40961 | if (!SWIG_IsOK(res1)) { | |
40962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40963 | } | |
40964 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40965 | { | |
40966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40967 | result = (bool)(arg1)->Show(); | |
40968 | wxPyEndAllowThreads(__tstate); | |
40969 | if (PyErr_Occurred()) SWIG_fail; | |
40970 | } | |
40971 | { | |
40972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40973 | } | |
40974 | return resultobj; | |
40975 | fail: | |
40976 | return NULL; | |
d14a1e28 RD |
40977 | } |
40978 | ||
40979 | ||
0085ce49 RD |
40980 | SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
40981 | PyObject *resultobj = 0; | |
40982 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
40983 | bool result; | |
40984 | void *argp1 = 0 ; | |
40985 | int res1 = 0 ; | |
40986 | PyObject *swig_obj[1] ; | |
40987 | ||
40988 | if (!args) SWIG_fail; | |
40989 | swig_obj[0] = args; | |
40990 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
40991 | if (!SWIG_IsOK(res1)) { | |
40992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
40993 | } | |
40994 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
40995 | { | |
40996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40997 | result = (bool)(arg1)->Hide(); | |
40998 | wxPyEndAllowThreads(__tstate); | |
40999 | if (PyErr_Occurred()) SWIG_fail; | |
41000 | } | |
41001 | { | |
41002 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41003 | } | |
41004 | return resultobj; | |
41005 | fail: | |
41006 | return NULL; | |
41007 | } | |
41008 | ||
41009 | ||
41010 | SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41011 | PyObject *resultobj = 0; | |
41012 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41013 | wxPoint *arg2 = 0 ; | |
41014 | wxRect result; | |
41015 | void *argp1 = 0 ; | |
41016 | int res1 = 0 ; | |
41017 | wxPoint temp2 ; | |
41018 | PyObject * obj0 = 0 ; | |
41019 | PyObject * obj1 = 0 ; | |
41020 | char * kwnames[] = { | |
41021 | (char *) "self",(char *) "pos", NULL | |
41022 | }; | |
41023 | ||
41024 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
41025 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41026 | if (!SWIG_IsOK(res1)) { | |
41027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
41028 | } | |
41029 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41030 | { | |
41031 | arg2 = &temp2; | |
41032 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
41033 | } | |
41034 | { | |
41035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41036 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
41037 | wxPyEndAllowThreads(__tstate); | |
41038 | if (PyErr_Occurred()) SWIG_fail; | |
41039 | } | |
41040 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
41041 | return resultobj; | |
41042 | fail: | |
41043 | return NULL; | |
41044 | } | |
41045 | ||
41046 | ||
41047 | SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41048 | PyObject *resultobj = 0; | |
41049 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41050 | wxDC *arg2 = 0 ; | |
41051 | wxPoint *arg3 = 0 ; | |
41052 | bool result; | |
41053 | void *argp1 = 0 ; | |
41054 | int res1 = 0 ; | |
41055 | void *argp2 = 0 ; | |
41056 | int res2 = 0 ; | |
41057 | wxPoint temp3 ; | |
41058 | PyObject * obj0 = 0 ; | |
41059 | PyObject * obj1 = 0 ; | |
41060 | PyObject * obj2 = 0 ; | |
41061 | char * kwnames[] = { | |
41062 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
41063 | }; | |
41064 | ||
41065 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
41066 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41067 | if (!SWIG_IsOK(res1)) { | |
41068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
41069 | } | |
41070 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41071 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
41072 | if (!SWIG_IsOK(res2)) { | |
41073 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'"); | |
41074 | } | |
41075 | if (!argp2) { | |
41076 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'"); | |
41077 | } | |
41078 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
41079 | { | |
41080 | arg3 = &temp3; | |
41081 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
41082 | } | |
41083 | { | |
41084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41085 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
41086 | wxPyEndAllowThreads(__tstate); | |
41087 | if (PyErr_Occurred()) SWIG_fail; | |
41088 | } | |
41089 | { | |
41090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41091 | } | |
41092 | return resultobj; | |
41093 | fail: | |
41094 | return NULL; | |
41095 | } | |
41096 | ||
41097 | ||
41098 | SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41099 | PyObject *resultobj = 0; | |
41100 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41101 | wxDC *arg2 = 0 ; | |
41102 | wxMemoryDC *arg3 = 0 ; | |
41103 | wxRect *arg4 = 0 ; | |
41104 | wxRect *arg5 = 0 ; | |
41105 | bool result; | |
41106 | void *argp1 = 0 ; | |
41107 | int res1 = 0 ; | |
41108 | void *argp2 = 0 ; | |
41109 | int res2 = 0 ; | |
41110 | void *argp3 = 0 ; | |
41111 | int res3 = 0 ; | |
41112 | wxRect temp4 ; | |
41113 | wxRect temp5 ; | |
41114 | PyObject * obj0 = 0 ; | |
41115 | PyObject * obj1 = 0 ; | |
41116 | PyObject * obj2 = 0 ; | |
41117 | PyObject * obj3 = 0 ; | |
41118 | PyObject * obj4 = 0 ; | |
41119 | char * kwnames[] = { | |
41120 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
41121 | }; | |
41122 | ||
41123 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
41124 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41125 | if (!SWIG_IsOK(res1)) { | |
41126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'"); | |
41127 | } | |
41128 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41129 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
41130 | if (!SWIG_IsOK(res2)) { | |
41131 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'"); | |
41132 | } | |
41133 | if (!argp2) { | |
41134 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'"); | |
41135 | } | |
41136 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
41137 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 ); | |
41138 | if (!SWIG_IsOK(res3)) { | |
41139 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'"); | |
41140 | } | |
41141 | if (!argp3) { | |
41142 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'"); | |
41143 | } | |
41144 | arg3 = reinterpret_cast< wxMemoryDC * >(argp3); | |
41145 | { | |
41146 | arg4 = &temp4; | |
41147 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
41148 | } | |
41149 | { | |
41150 | arg5 = &temp5; | |
41151 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
41152 | } | |
41153 | { | |
41154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41155 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
41156 | wxPyEndAllowThreads(__tstate); | |
41157 | if (PyErr_Occurred()) SWIG_fail; | |
41158 | } | |
41159 | { | |
41160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41161 | } | |
41162 | return resultobj; | |
41163 | fail: | |
41164 | return NULL; | |
41165 | } | |
41166 | ||
41167 | ||
41168 | SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41169 | PyObject *resultobj = 0; | |
41170 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
41171 | wxPoint *arg2 = 0 ; | |
41172 | wxPoint *arg3 = 0 ; | |
41173 | bool arg4 ; | |
41174 | bool arg5 ; | |
41175 | bool result; | |
41176 | void *argp1 = 0 ; | |
41177 | int res1 = 0 ; | |
41178 | wxPoint temp2 ; | |
41179 | wxPoint temp3 ; | |
41180 | bool val4 ; | |
41181 | int ecode4 = 0 ; | |
41182 | bool val5 ; | |
41183 | int ecode5 = 0 ; | |
41184 | PyObject * obj0 = 0 ; | |
41185 | PyObject * obj1 = 0 ; | |
41186 | PyObject * obj2 = 0 ; | |
41187 | PyObject * obj3 = 0 ; | |
41188 | PyObject * obj4 = 0 ; | |
41189 | char * kwnames[] = { | |
41190 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
41191 | }; | |
41192 | ||
41193 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
41194 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 ); | |
41195 | if (!SWIG_IsOK(res1)) { | |
41196 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'"); | |
41197 | } | |
41198 | arg1 = reinterpret_cast< wxGenericDragImage * >(argp1); | |
41199 | { | |
41200 | arg2 = &temp2; | |
41201 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
41202 | } | |
41203 | { | |
41204 | arg3 = &temp3; | |
41205 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
41206 | } | |
41207 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
41208 | if (!SWIG_IsOK(ecode4)) { | |
41209 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'"); | |
41210 | } | |
41211 | arg4 = static_cast< bool >(val4); | |
41212 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
41213 | if (!SWIG_IsOK(ecode5)) { | |
41214 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'"); | |
41215 | } | |
41216 | arg5 = static_cast< bool >(val5); | |
41217 | { | |
41218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41219 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
41220 | wxPyEndAllowThreads(__tstate); | |
41221 | if (PyErr_Occurred()) SWIG_fail; | |
41222 | } | |
41223 | { | |
41224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41225 | } | |
41226 | return resultobj; | |
41227 | fail: | |
41228 | return NULL; | |
d14a1e28 RD |
41229 | } |
41230 | ||
41231 | ||
0085ce49 RD |
41232 | SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41233 | PyObject *obj; | |
41234 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
41235 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj)); | |
41236 | return SWIG_Py_Void(); | |
d14a1e28 RD |
41237 | } |
41238 | ||
0085ce49 RD |
41239 | SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41240 | return SWIG_Python_InitShadowInstance(args); | |
41241 | } | |
d14a1e28 | 41242 | |
0085ce49 RD |
41243 | SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) { |
41244 | SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only."); | |
41245 | return 1; | |
d14a1e28 RD |
41246 | } |
41247 | ||
41248 | ||
0085ce49 RD |
41249 | SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) { |
41250 | PyObject *pyobj = 0; | |
41251 | ||
41252 | { | |
41253 | #if wxUSE_UNICODE | |
41254 | pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
41255 | #else | |
41256 | pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
41257 | #endif | |
41258 | } | |
41259 | return pyobj; | |
41260 | } | |
41261 | ||
41262 | ||
41263 | SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41264 | PyObject *resultobj = 0; | |
41265 | wxWindow *arg1 = (wxWindow *) 0 ; | |
41266 | int arg2 = (int) -1 ; | |
41267 | wxDateTime const &arg3_defvalue = wxDefaultDateTime ; | |
41268 | wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ; | |
41269 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
41270 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
41271 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
41272 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
41273 | long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
41274 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
41275 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
41276 | wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ; | |
41277 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
41278 | wxDatePickerCtrl *result = 0 ; | |
41279 | void *argp1 = 0 ; | |
41280 | int res1 = 0 ; | |
41281 | int val2 ; | |
41282 | int ecode2 = 0 ; | |
41283 | void *argp3 = 0 ; | |
41284 | int res3 = 0 ; | |
41285 | wxPoint temp4 ; | |
41286 | wxSize temp5 ; | |
41287 | long val6 ; | |
41288 | int ecode6 = 0 ; | |
41289 | void *argp7 = 0 ; | |
41290 | int res7 = 0 ; | |
41291 | bool temp8 = false ; | |
41292 | PyObject * obj0 = 0 ; | |
41293 | PyObject * obj1 = 0 ; | |
41294 | PyObject * obj2 = 0 ; | |
41295 | PyObject * obj3 = 0 ; | |
41296 | PyObject * obj4 = 0 ; | |
41297 | PyObject * obj5 = 0 ; | |
41298 | PyObject * obj6 = 0 ; | |
41299 | PyObject * obj7 = 0 ; | |
41300 | char * kwnames[] = { | |
41301 | (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
41302 | }; | |
41303 | ||
41304 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
41305 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41306 | if (!SWIG_IsOK(res1)) { | |
41307 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
41308 | } | |
41309 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
41310 | if (obj1) { | |
41311 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
41312 | if (!SWIG_IsOK(ecode2)) { | |
41313 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
41314 | } | |
41315 | arg2 = static_cast< int >(val2); | |
41316 | } | |
41317 | if (obj2) { | |
41318 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41319 | if (!SWIG_IsOK(res3)) { | |
41320 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
d14a1e28 | 41321 | } |
0085ce49 RD |
41322 | if (!argp3) { |
41323 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
d14a1e28 | 41324 | } |
0085ce49 RD |
41325 | arg3 = reinterpret_cast< wxDateTime * >(argp3); |
41326 | } | |
41327 | if (obj3) { | |
d14a1e28 | 41328 | { |
0085ce49 RD |
41329 | arg4 = &temp4; |
41330 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 41331 | } |
0085ce49 RD |
41332 | } |
41333 | if (obj4) { | |
d14a1e28 | 41334 | { |
0085ce49 RD |
41335 | arg5 = &temp5; |
41336 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 41337 | } |
0085ce49 RD |
41338 | } |
41339 | if (obj5) { | |
41340 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
41341 | if (!SWIG_IsOK(ecode6)) { | |
41342 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'"); | |
41343 | } | |
41344 | arg6 = static_cast< long >(val6); | |
41345 | } | |
41346 | if (obj6) { | |
41347 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
41348 | if (!SWIG_IsOK(res7)) { | |
41349 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
41350 | } | |
41351 | if (!argp7) { | |
41352 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 41353 | } |
0085ce49 RD |
41354 | arg7 = reinterpret_cast< wxValidator * >(argp7); |
41355 | } | |
41356 | if (obj7) { | |
d14a1e28 | 41357 | { |
0085ce49 RD |
41358 | arg8 = wxString_in_helper(obj7); |
41359 | if (arg8 == NULL) SWIG_fail; | |
41360 | temp8 = true; | |
d14a1e28 | 41361 | } |
0085ce49 RD |
41362 | } |
41363 | { | |
41364 | if (!wxPyCheckForApp()) SWIG_fail; | |
41365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41366 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
41367 | wxPyEndAllowThreads(__tstate); | |
41368 | if (PyErr_Occurred()) SWIG_fail; | |
41369 | } | |
41370 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 ); | |
41371 | { | |
41372 | if (temp8) | |
41373 | delete arg8; | |
41374 | } | |
41375 | return resultobj; | |
41376 | fail: | |
41377 | { | |
41378 | if (temp8) | |
41379 | delete arg8; | |
41380 | } | |
41381 | return NULL; | |
d14a1e28 RD |
41382 | } |
41383 | ||
41384 | ||
0085ce49 RD |
41385 | SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41386 | PyObject *resultobj = 0; | |
41387 | wxDatePickerCtrl *result = 0 ; | |
41388 | ||
41389 | if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail; | |
41390 | { | |
41391 | if (!wxPyCheckForApp()) SWIG_fail; | |
41392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41393 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(); | |
41394 | wxPyEndAllowThreads(__tstate); | |
41395 | if (PyErr_Occurred()) SWIG_fail; | |
41396 | } | |
41397 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 ); | |
41398 | return resultobj; | |
41399 | fail: | |
41400 | return NULL; | |
41401 | } | |
41402 | ||
41403 | ||
41404 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41405 | PyObject *resultobj = 0; | |
41406 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41407 | wxWindow *arg2 = (wxWindow *) 0 ; | |
41408 | int arg3 = (int) -1 ; | |
41409 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
41410 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
41411 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
41412 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
41413 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
41414 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
41415 | long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
41416 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
41417 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
41418 | wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ; | |
41419 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
41420 | bool result; | |
41421 | void *argp1 = 0 ; | |
41422 | int res1 = 0 ; | |
41423 | void *argp2 = 0 ; | |
41424 | int res2 = 0 ; | |
41425 | int val3 ; | |
41426 | int ecode3 = 0 ; | |
41427 | void *argp4 = 0 ; | |
41428 | int res4 = 0 ; | |
41429 | wxPoint temp5 ; | |
41430 | wxSize temp6 ; | |
41431 | long val7 ; | |
41432 | int ecode7 = 0 ; | |
41433 | void *argp8 = 0 ; | |
41434 | int res8 = 0 ; | |
41435 | bool temp9 = false ; | |
41436 | PyObject * obj0 = 0 ; | |
41437 | PyObject * obj1 = 0 ; | |
41438 | PyObject * obj2 = 0 ; | |
41439 | PyObject * obj3 = 0 ; | |
41440 | PyObject * obj4 = 0 ; | |
41441 | PyObject * obj5 = 0 ; | |
41442 | PyObject * obj6 = 0 ; | |
41443 | PyObject * obj7 = 0 ; | |
41444 | PyObject * obj8 = 0 ; | |
41445 | char * kwnames[] = { | |
41446 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
41447 | }; | |
41448 | ||
41449 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
41450 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41451 | if (!SWIG_IsOK(res1)) { | |
41452 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41453 | } | |
41454 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41455 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41456 | if (!SWIG_IsOK(res2)) { | |
41457 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
41458 | } | |
41459 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
41460 | if (obj2) { | |
41461 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
41462 | if (!SWIG_IsOK(ecode3)) { | |
41463 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
41464 | } | |
41465 | arg3 = static_cast< int >(val3); | |
41466 | } | |
41467 | if (obj3) { | |
41468 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41469 | if (!SWIG_IsOK(res4)) { | |
41470 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'"); | |
7e08d4ef | 41471 | } |
0085ce49 RD |
41472 | if (!argp4) { |
41473 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'"); | |
7e08d4ef | 41474 | } |
0085ce49 RD |
41475 | arg4 = reinterpret_cast< wxDateTime * >(argp4); |
41476 | } | |
41477 | if (obj4) { | |
d14a1e28 | 41478 | { |
0085ce49 RD |
41479 | arg5 = &temp5; |
41480 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 41481 | } |
0085ce49 RD |
41482 | } |
41483 | if (obj5) { | |
d14a1e28 | 41484 | { |
0085ce49 RD |
41485 | arg6 = &temp6; |
41486 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
41487 | } | |
41488 | } | |
41489 | if (obj6) { | |
41490 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
41491 | if (!SWIG_IsOK(ecode7)) { | |
41492 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
41493 | } | |
41494 | arg7 = static_cast< long >(val7); | |
41495 | } | |
41496 | if (obj7) { | |
41497 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
41498 | if (!SWIG_IsOK(res8)) { | |
41499 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
41500 | } | |
41501 | if (!argp8) { | |
41502 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
d14a1e28 | 41503 | } |
0085ce49 RD |
41504 | arg8 = reinterpret_cast< wxValidator * >(argp8); |
41505 | } | |
41506 | if (obj8) { | |
d14a1e28 | 41507 | { |
0085ce49 RD |
41508 | arg9 = wxString_in_helper(obj8); |
41509 | if (arg9 == NULL) SWIG_fail; | |
41510 | temp9 = true; | |
d14a1e28 | 41511 | } |
0085ce49 RD |
41512 | } |
41513 | { | |
41514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41515 | result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
41516 | wxPyEndAllowThreads(__tstate); | |
41517 | if (PyErr_Occurred()) SWIG_fail; | |
41518 | } | |
41519 | { | |
41520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41521 | } | |
41522 | { | |
41523 | if (temp9) | |
41524 | delete arg9; | |
41525 | } | |
41526 | return resultobj; | |
41527 | fail: | |
41528 | { | |
41529 | if (temp9) | |
41530 | delete arg9; | |
41531 | } | |
41532 | return NULL; | |
41533 | } | |
41534 | ||
41535 | ||
41536 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41537 | PyObject *resultobj = 0; | |
41538 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41539 | wxDateTime *arg2 = 0 ; | |
41540 | void *argp1 = 0 ; | |
41541 | int res1 = 0 ; | |
41542 | void *argp2 = 0 ; | |
41543 | int res2 = 0 ; | |
41544 | PyObject * obj0 = 0 ; | |
41545 | PyObject * obj1 = 0 ; | |
41546 | char * kwnames[] = { | |
41547 | (char *) "self",(char *) "dt", NULL | |
41548 | }; | |
41549 | ||
41550 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
41551 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41552 | if (!SWIG_IsOK(res1)) { | |
41553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41554 | } | |
41555 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41556 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41557 | if (!SWIG_IsOK(res2)) { | |
41558 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
41559 | } | |
41560 | if (!argp2) { | |
41561 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
41562 | } | |
41563 | arg2 = reinterpret_cast< wxDateTime * >(argp2); | |
41564 | { | |
41565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41566 | (arg1)->SetValue((wxDateTime const &)*arg2); | |
41567 | wxPyEndAllowThreads(__tstate); | |
41568 | if (PyErr_Occurred()) SWIG_fail; | |
41569 | } | |
41570 | resultobj = SWIG_Py_Void(); | |
41571 | return resultobj; | |
41572 | fail: | |
41573 | return NULL; | |
d14a1e28 RD |
41574 | } |
41575 | ||
41576 | ||
0085ce49 RD |
41577 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41578 | PyObject *resultobj = 0; | |
41579 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41580 | wxDateTime result; | |
41581 | void *argp1 = 0 ; | |
41582 | int res1 = 0 ; | |
41583 | PyObject *swig_obj[1] ; | |
41584 | ||
41585 | if (!args) SWIG_fail; | |
41586 | swig_obj[0] = args; | |
41587 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41588 | if (!SWIG_IsOK(res1)) { | |
41589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'"); | |
41590 | } | |
41591 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41592 | { | |
41593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41594 | result = ((wxDatePickerCtrl const *)arg1)->GetValue(); | |
41595 | wxPyEndAllowThreads(__tstate); | |
41596 | if (PyErr_Occurred()) SWIG_fail; | |
41597 | } | |
41598 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
41599 | return resultobj; | |
41600 | fail: | |
41601 | return NULL; | |
41602 | } | |
41603 | ||
41604 | ||
41605 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41606 | PyObject *resultobj = 0; | |
41607 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41608 | wxDateTime *arg2 = 0 ; | |
41609 | wxDateTime *arg3 = 0 ; | |
41610 | void *argp1 = 0 ; | |
41611 | int res1 = 0 ; | |
41612 | void *argp2 = 0 ; | |
41613 | int res2 = 0 ; | |
41614 | void *argp3 = 0 ; | |
41615 | int res3 = 0 ; | |
41616 | PyObject * obj0 = 0 ; | |
41617 | PyObject * obj1 = 0 ; | |
41618 | PyObject * obj2 = 0 ; | |
41619 | char * kwnames[] = { | |
41620 | (char *) "self",(char *) "dt1",(char *) "dt2", NULL | |
41621 | }; | |
41622 | ||
41623 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
41624 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41625 | if (!SWIG_IsOK(res1)) { | |
41626 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41627 | } | |
41628 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41629 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41630 | if (!SWIG_IsOK(res2)) { | |
41631 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
41632 | } | |
41633 | if (!argp2) { | |
41634 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'"); | |
41635 | } | |
41636 | arg2 = reinterpret_cast< wxDateTime * >(argp2); | |
41637 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0); | |
41638 | if (!SWIG_IsOK(res3)) { | |
41639 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
41640 | } | |
41641 | if (!argp3) { | |
41642 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'"); | |
41643 | } | |
41644 | arg3 = reinterpret_cast< wxDateTime * >(argp3); | |
41645 | { | |
41646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41647 | (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
41648 | wxPyEndAllowThreads(__tstate); | |
41649 | if (PyErr_Occurred()) SWIG_fail; | |
41650 | } | |
41651 | resultobj = SWIG_Py_Void(); | |
41652 | return resultobj; | |
41653 | fail: | |
41654 | return NULL; | |
d14a1e28 RD |
41655 | } |
41656 | ||
41657 | ||
0085ce49 RD |
41658 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41659 | PyObject *resultobj = 0; | |
41660 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41661 | wxDateTime result; | |
41662 | void *argp1 = 0 ; | |
41663 | int res1 = 0 ; | |
41664 | PyObject *swig_obj[1] ; | |
41665 | ||
41666 | if (!args) SWIG_fail; | |
41667 | swig_obj[0] = args; | |
41668 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41669 | if (!SWIG_IsOK(res1)) { | |
41670 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41671 | } | |
41672 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41673 | { | |
41674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41675 | result = wxDatePickerCtrl_GetLowerLimit(arg1); | |
41676 | wxPyEndAllowThreads(__tstate); | |
41677 | if (PyErr_Occurred()) SWIG_fail; | |
41678 | } | |
41679 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
41680 | return resultobj; | |
41681 | fail: | |
41682 | return NULL; | |
d14a1e28 RD |
41683 | } |
41684 | ||
41685 | ||
0085ce49 RD |
41686 | SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41687 | PyObject *resultobj = 0; | |
41688 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
41689 | wxDateTime result; | |
41690 | void *argp1 = 0 ; | |
41691 | int res1 = 0 ; | |
41692 | PyObject *swig_obj[1] ; | |
41693 | ||
41694 | if (!args) SWIG_fail; | |
41695 | swig_obj[0] = args; | |
41696 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 ); | |
41697 | if (!SWIG_IsOK(res1)) { | |
41698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'"); | |
41699 | } | |
41700 | arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1); | |
41701 | { | |
41702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41703 | result = wxDatePickerCtrl_GetUpperLimit(arg1); | |
41704 | wxPyEndAllowThreads(__tstate); | |
41705 | if (PyErr_Occurred()) SWIG_fail; | |
41706 | } | |
41707 | resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 ); | |
41708 | return resultobj; | |
41709 | fail: | |
41710 | return NULL; | |
d14a1e28 RD |
41711 | } |
41712 | ||
41713 | ||
0085ce49 RD |
41714 | SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41715 | PyObject *obj; | |
41716 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
41717 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj)); | |
41718 | return SWIG_Py_Void(); | |
d14a1e28 RD |
41719 | } |
41720 | ||
0085ce49 RD |
41721 | SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
41722 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
41723 | } |
41724 | ||
704eda0c RD |
41725 | SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) { |
41726 | SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only."); | |
41727 | return 1; | |
41728 | } | |
41729 | ||
41730 | ||
41731 | SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) { | |
41732 | PyObject *pyobj = 0; | |
41733 | ||
41734 | { | |
41735 | #if wxUSE_UNICODE | |
41736 | pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len()); | |
41737 | #else | |
41738 | pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len()); | |
41739 | #endif | |
41740 | } | |
41741 | return pyobj; | |
41742 | } | |
41743 | ||
41744 | ||
41745 | SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41746 | PyObject *resultobj = 0; | |
41747 | wxWindow *arg1 = (wxWindow *) 0 ; | |
41748 | int arg2 ; | |
41749 | wxString *arg3 = 0 ; | |
41750 | wxString *arg4 = 0 ; | |
41751 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
41752 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
41753 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
41754 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
41755 | long arg7 = (long) wxHL_DEFAULT_STYLE ; | |
41756 | wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ; | |
41757 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
41758 | wxHyperlinkCtrl *result = 0 ; | |
41759 | void *argp1 = 0 ; | |
41760 | int res1 = 0 ; | |
41761 | int val2 ; | |
41762 | int ecode2 = 0 ; | |
41763 | bool temp3 = false ; | |
41764 | bool temp4 = false ; | |
41765 | wxPoint temp5 ; | |
41766 | wxSize temp6 ; | |
41767 | long val7 ; | |
41768 | int ecode7 = 0 ; | |
41769 | bool temp8 = false ; | |
41770 | PyObject * obj0 = 0 ; | |
41771 | PyObject * obj1 = 0 ; | |
41772 | PyObject * obj2 = 0 ; | |
41773 | PyObject * obj3 = 0 ; | |
41774 | PyObject * obj4 = 0 ; | |
41775 | PyObject * obj5 = 0 ; | |
41776 | PyObject * obj6 = 0 ; | |
41777 | PyObject * obj7 = 0 ; | |
41778 | char * kwnames[] = { | |
41779 | (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
41780 | }; | |
41781 | ||
41782 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
41783 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41784 | if (!SWIG_IsOK(res1)) { | |
41785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
41786 | } | |
41787 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
41788 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
41789 | if (!SWIG_IsOK(ecode2)) { | |
41790 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'"); | |
41791 | } | |
41792 | arg2 = static_cast< int >(val2); | |
41793 | { | |
41794 | arg3 = wxString_in_helper(obj2); | |
41795 | if (arg3 == NULL) SWIG_fail; | |
41796 | temp3 = true; | |
41797 | } | |
41798 | { | |
41799 | arg4 = wxString_in_helper(obj3); | |
41800 | if (arg4 == NULL) SWIG_fail; | |
41801 | temp4 = true; | |
41802 | } | |
41803 | if (obj4) { | |
41804 | { | |
41805 | arg5 = &temp5; | |
41806 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
41807 | } | |
41808 | } | |
41809 | if (obj5) { | |
41810 | { | |
41811 | arg6 = &temp6; | |
41812 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
41813 | } | |
41814 | } | |
41815 | if (obj6) { | |
41816 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
41817 | if (!SWIG_IsOK(ecode7)) { | |
41818 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'"); | |
41819 | } | |
41820 | arg7 = static_cast< long >(val7); | |
41821 | } | |
41822 | if (obj7) { | |
41823 | { | |
41824 | arg8 = wxString_in_helper(obj7); | |
41825 | if (arg8 == NULL) SWIG_fail; | |
41826 | temp8 = true; | |
41827 | } | |
41828 | } | |
41829 | { | |
41830 | if (!wxPyCheckForApp()) SWIG_fail; | |
41831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41832 | result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
41833 | wxPyEndAllowThreads(__tstate); | |
41834 | if (PyErr_Occurred()) SWIG_fail; | |
41835 | } | |
41836 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 ); | |
41837 | { | |
41838 | if (temp3) | |
41839 | delete arg3; | |
41840 | } | |
41841 | { | |
41842 | if (temp4) | |
41843 | delete arg4; | |
41844 | } | |
41845 | { | |
41846 | if (temp8) | |
41847 | delete arg8; | |
41848 | } | |
41849 | return resultobj; | |
41850 | fail: | |
41851 | { | |
41852 | if (temp3) | |
41853 | delete arg3; | |
41854 | } | |
41855 | { | |
41856 | if (temp4) | |
41857 | delete arg4; | |
41858 | } | |
41859 | { | |
41860 | if (temp8) | |
41861 | delete arg8; | |
41862 | } | |
41863 | return NULL; | |
41864 | } | |
41865 | ||
41866 | ||
41867 | SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
41868 | PyObject *resultobj = 0; | |
41869 | wxHyperlinkCtrl *result = 0 ; | |
41870 | ||
41871 | if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail; | |
41872 | { | |
41873 | if (!wxPyCheckForApp()) SWIG_fail; | |
41874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41875 | result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(); | |
41876 | wxPyEndAllowThreads(__tstate); | |
41877 | if (PyErr_Occurred()) SWIG_fail; | |
41878 | } | |
41879 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 ); | |
41880 | return resultobj; | |
41881 | fail: | |
41882 | return NULL; | |
41883 | } | |
41884 | ||
41885 | ||
41886 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
41887 | PyObject *resultobj = 0; | |
41888 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
41889 | wxWindow *arg2 = (wxWindow *) 0 ; | |
41890 | int arg3 ; | |
41891 | wxString *arg4 = 0 ; | |
41892 | wxString *arg5 = 0 ; | |
41893 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
41894 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
41895 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
41896 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
41897 | long arg8 = (long) wxHL_DEFAULT_STYLE ; | |
41898 | wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ; | |
41899 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
41900 | bool result; | |
41901 | void *argp1 = 0 ; | |
41902 | int res1 = 0 ; | |
41903 | void *argp2 = 0 ; | |
41904 | int res2 = 0 ; | |
41905 | int val3 ; | |
41906 | int ecode3 = 0 ; | |
41907 | bool temp4 = false ; | |
41908 | bool temp5 = false ; | |
41909 | wxPoint temp6 ; | |
41910 | wxSize temp7 ; | |
41911 | long val8 ; | |
41912 | int ecode8 = 0 ; | |
41913 | bool temp9 = false ; | |
41914 | PyObject * obj0 = 0 ; | |
41915 | PyObject * obj1 = 0 ; | |
41916 | PyObject * obj2 = 0 ; | |
41917 | PyObject * obj3 = 0 ; | |
41918 | PyObject * obj4 = 0 ; | |
41919 | PyObject * obj5 = 0 ; | |
41920 | PyObject * obj6 = 0 ; | |
41921 | PyObject * obj7 = 0 ; | |
41922 | PyObject * obj8 = 0 ; | |
41923 | char * kwnames[] = { | |
41924 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
41925 | }; | |
41926 | ||
41927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
41928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
41929 | if (!SWIG_IsOK(res1)) { | |
41930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
41931 | } | |
41932 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
41933 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
41934 | if (!SWIG_IsOK(res2)) { | |
41935 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
41936 | } | |
41937 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
41938 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
41939 | if (!SWIG_IsOK(ecode3)) { | |
41940 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
41941 | } | |
41942 | arg3 = static_cast< int >(val3); | |
41943 | { | |
41944 | arg4 = wxString_in_helper(obj3); | |
41945 | if (arg4 == NULL) SWIG_fail; | |
41946 | temp4 = true; | |
41947 | } | |
41948 | { | |
41949 | arg5 = wxString_in_helper(obj4); | |
41950 | if (arg5 == NULL) SWIG_fail; | |
41951 | temp5 = true; | |
41952 | } | |
41953 | if (obj5) { | |
41954 | { | |
41955 | arg6 = &temp6; | |
41956 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
41957 | } | |
41958 | } | |
41959 | if (obj6) { | |
41960 | { | |
41961 | arg7 = &temp7; | |
41962 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
41963 | } | |
41964 | } | |
41965 | if (obj7) { | |
41966 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
41967 | if (!SWIG_IsOK(ecode8)) { | |
41968 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'"); | |
41969 | } | |
41970 | arg8 = static_cast< long >(val8); | |
41971 | } | |
41972 | if (obj8) { | |
41973 | { | |
41974 | arg9 = wxString_in_helper(obj8); | |
41975 | if (arg9 == NULL) SWIG_fail; | |
41976 | temp9 = true; | |
41977 | } | |
41978 | } | |
41979 | { | |
41980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41981 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9); | |
41982 | wxPyEndAllowThreads(__tstate); | |
41983 | if (PyErr_Occurred()) SWIG_fail; | |
41984 | } | |
41985 | { | |
41986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41987 | } | |
41988 | { | |
41989 | if (temp4) | |
41990 | delete arg4; | |
41991 | } | |
41992 | { | |
41993 | if (temp5) | |
41994 | delete arg5; | |
41995 | } | |
41996 | { | |
41997 | if (temp9) | |
41998 | delete arg9; | |
41999 | } | |
42000 | return resultobj; | |
42001 | fail: | |
42002 | { | |
42003 | if (temp4) | |
42004 | delete arg4; | |
42005 | } | |
42006 | { | |
42007 | if (temp5) | |
42008 | delete arg5; | |
42009 | } | |
42010 | { | |
42011 | if (temp9) | |
42012 | delete arg9; | |
42013 | } | |
42014 | return NULL; | |
42015 | } | |
42016 | ||
42017 | ||
42018 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42019 | PyObject *resultobj = 0; | |
42020 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42021 | wxColour result; | |
42022 | void *argp1 = 0 ; | |
42023 | int res1 = 0 ; | |
42024 | PyObject *swig_obj[1] ; | |
42025 | ||
42026 | if (!args) SWIG_fail; | |
42027 | swig_obj[0] = args; | |
42028 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42029 | if (!SWIG_IsOK(res1)) { | |
42030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42031 | } | |
42032 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42033 | { | |
42034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42035 | result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour(); | |
42036 | wxPyEndAllowThreads(__tstate); | |
42037 | if (PyErr_Occurred()) SWIG_fail; | |
42038 | } | |
42039 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
42040 | return resultobj; | |
42041 | fail: | |
42042 | return NULL; | |
42043 | } | |
42044 | ||
42045 | ||
42046 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42047 | PyObject *resultobj = 0; | |
42048 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42049 | wxColour *arg2 = 0 ; | |
42050 | void *argp1 = 0 ; | |
42051 | int res1 = 0 ; | |
42052 | wxColour temp2 ; | |
42053 | PyObject * obj0 = 0 ; | |
42054 | PyObject * obj1 = 0 ; | |
42055 | char * kwnames[] = { | |
42056 | (char *) "self",(char *) "colour", NULL | |
42057 | }; | |
42058 | ||
42059 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
42060 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42061 | if (!SWIG_IsOK(res1)) { | |
42062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42063 | } | |
42064 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42065 | { | |
42066 | arg2 = &temp2; | |
42067 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
42068 | } | |
42069 | { | |
42070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42071 | (arg1)->SetHoverColour((wxColour const &)*arg2); | |
42072 | wxPyEndAllowThreads(__tstate); | |
42073 | if (PyErr_Occurred()) SWIG_fail; | |
42074 | } | |
42075 | resultobj = SWIG_Py_Void(); | |
42076 | return resultobj; | |
42077 | fail: | |
42078 | return NULL; | |
42079 | } | |
42080 | ||
42081 | ||
42082 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42083 | PyObject *resultobj = 0; | |
42084 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42085 | wxColour result; | |
42086 | void *argp1 = 0 ; | |
42087 | int res1 = 0 ; | |
42088 | PyObject *swig_obj[1] ; | |
42089 | ||
42090 | if (!args) SWIG_fail; | |
42091 | swig_obj[0] = args; | |
42092 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42093 | if (!SWIG_IsOK(res1)) { | |
42094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42095 | } | |
42096 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42097 | { | |
42098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42099 | result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour(); | |
42100 | wxPyEndAllowThreads(__tstate); | |
42101 | if (PyErr_Occurred()) SWIG_fail; | |
42102 | } | |
42103 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
42104 | return resultobj; | |
42105 | fail: | |
42106 | return NULL; | |
42107 | } | |
42108 | ||
42109 | ||
42110 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42111 | PyObject *resultobj = 0; | |
42112 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42113 | wxColour *arg2 = 0 ; | |
42114 | void *argp1 = 0 ; | |
42115 | int res1 = 0 ; | |
42116 | wxColour temp2 ; | |
42117 | PyObject * obj0 = 0 ; | |
42118 | PyObject * obj1 = 0 ; | |
42119 | char * kwnames[] = { | |
42120 | (char *) "self",(char *) "colour", NULL | |
42121 | }; | |
42122 | ||
42123 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
42124 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42125 | if (!SWIG_IsOK(res1)) { | |
42126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42127 | } | |
42128 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42129 | { | |
42130 | arg2 = &temp2; | |
42131 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
42132 | } | |
42133 | { | |
42134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42135 | (arg1)->SetNormalColour((wxColour const &)*arg2); | |
42136 | wxPyEndAllowThreads(__tstate); | |
42137 | if (PyErr_Occurred()) SWIG_fail; | |
42138 | } | |
42139 | resultobj = SWIG_Py_Void(); | |
42140 | return resultobj; | |
42141 | fail: | |
42142 | return NULL; | |
42143 | } | |
42144 | ||
42145 | ||
42146 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42147 | PyObject *resultobj = 0; | |
42148 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42149 | wxColour result; | |
42150 | void *argp1 = 0 ; | |
42151 | int res1 = 0 ; | |
42152 | PyObject *swig_obj[1] ; | |
42153 | ||
42154 | if (!args) SWIG_fail; | |
42155 | swig_obj[0] = args; | |
42156 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42157 | if (!SWIG_IsOK(res1)) { | |
42158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42159 | } | |
42160 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42161 | { | |
42162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42163 | result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour(); | |
42164 | wxPyEndAllowThreads(__tstate); | |
42165 | if (PyErr_Occurred()) SWIG_fail; | |
42166 | } | |
42167 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
42168 | return resultobj; | |
42169 | fail: | |
42170 | return NULL; | |
42171 | } | |
42172 | ||
42173 | ||
42174 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42175 | PyObject *resultobj = 0; | |
42176 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42177 | wxColour *arg2 = 0 ; | |
42178 | void *argp1 = 0 ; | |
42179 | int res1 = 0 ; | |
42180 | wxColour temp2 ; | |
42181 | PyObject * obj0 = 0 ; | |
42182 | PyObject * obj1 = 0 ; | |
42183 | char * kwnames[] = { | |
42184 | (char *) "self",(char *) "colour", NULL | |
42185 | }; | |
42186 | ||
42187 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) 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_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42191 | } | |
42192 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42193 | { | |
42194 | arg2 = &temp2; | |
42195 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
42196 | } | |
42197 | { | |
42198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42199 | (arg1)->SetVisitedColour((wxColour const &)*arg2); | |
42200 | wxPyEndAllowThreads(__tstate); | |
42201 | if (PyErr_Occurred()) SWIG_fail; | |
42202 | } | |
42203 | resultobj = SWIG_Py_Void(); | |
42204 | return resultobj; | |
42205 | fail: | |
42206 | return NULL; | |
42207 | } | |
42208 | ||
42209 | ||
42210 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42211 | PyObject *resultobj = 0; | |
42212 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42213 | wxString result; | |
42214 | void *argp1 = 0 ; | |
42215 | int res1 = 0 ; | |
42216 | PyObject *swig_obj[1] ; | |
42217 | ||
42218 | if (!args) SWIG_fail; | |
42219 | swig_obj[0] = args; | |
42220 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42221 | if (!SWIG_IsOK(res1)) { | |
42222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42223 | } | |
42224 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42225 | { | |
42226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42227 | result = ((wxHyperlinkCtrl const *)arg1)->GetURL(); | |
42228 | wxPyEndAllowThreads(__tstate); | |
42229 | if (PyErr_Occurred()) SWIG_fail; | |
42230 | } | |
42231 | { | |
42232 | #if wxUSE_UNICODE | |
42233 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
42234 | #else | |
42235 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
42236 | #endif | |
42237 | } | |
42238 | return resultobj; | |
42239 | fail: | |
42240 | return NULL; | |
42241 | } | |
42242 | ||
42243 | ||
42244 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42245 | PyObject *resultobj = 0; | |
42246 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42247 | wxString *arg2 = 0 ; | |
42248 | void *argp1 = 0 ; | |
42249 | int res1 = 0 ; | |
42250 | bool temp2 = false ; | |
42251 | PyObject * obj0 = 0 ; | |
42252 | PyObject * obj1 = 0 ; | |
42253 | char * kwnames[] = { | |
42254 | (char *) "self",(char *) "url", NULL | |
42255 | }; | |
42256 | ||
42257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail; | |
42258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42259 | if (!SWIG_IsOK(res1)) { | |
42260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42261 | } | |
42262 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42263 | { | |
42264 | arg2 = wxString_in_helper(obj1); | |
42265 | if (arg2 == NULL) SWIG_fail; | |
42266 | temp2 = true; | |
42267 | } | |
42268 | { | |
42269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42270 | (arg1)->SetURL((wxString const &)*arg2); | |
42271 | wxPyEndAllowThreads(__tstate); | |
42272 | if (PyErr_Occurred()) SWIG_fail; | |
42273 | } | |
42274 | resultobj = SWIG_Py_Void(); | |
42275 | { | |
42276 | if (temp2) | |
42277 | delete arg2; | |
42278 | } | |
42279 | return resultobj; | |
42280 | fail: | |
42281 | { | |
42282 | if (temp2) | |
42283 | delete arg2; | |
42284 | } | |
42285 | return NULL; | |
42286 | } | |
42287 | ||
42288 | ||
42289 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42290 | PyObject *resultobj = 0; | |
42291 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42292 | bool arg2 = (bool) true ; | |
42293 | void *argp1 = 0 ; | |
42294 | int res1 = 0 ; | |
42295 | bool val2 ; | |
42296 | int ecode2 = 0 ; | |
42297 | PyObject * obj0 = 0 ; | |
42298 | PyObject * obj1 = 0 ; | |
42299 | char * kwnames[] = { | |
42300 | (char *) "self",(char *) "visited", NULL | |
42301 | }; | |
42302 | ||
42303 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail; | |
42304 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42305 | if (!SWIG_IsOK(res1)) { | |
42306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'"); | |
42307 | } | |
42308 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42309 | if (obj1) { | |
42310 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
42311 | if (!SWIG_IsOK(ecode2)) { | |
42312 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'"); | |
42313 | } | |
42314 | arg2 = static_cast< bool >(val2); | |
42315 | } | |
42316 | { | |
42317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42318 | (arg1)->SetVisited(arg2); | |
42319 | wxPyEndAllowThreads(__tstate); | |
42320 | if (PyErr_Occurred()) SWIG_fail; | |
42321 | } | |
42322 | resultobj = SWIG_Py_Void(); | |
42323 | return resultobj; | |
42324 | fail: | |
42325 | return NULL; | |
42326 | } | |
42327 | ||
42328 | ||
42329 | SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42330 | PyObject *resultobj = 0; | |
42331 | wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ; | |
42332 | bool result; | |
42333 | void *argp1 = 0 ; | |
42334 | int res1 = 0 ; | |
42335 | PyObject *swig_obj[1] ; | |
42336 | ||
42337 | if (!args) SWIG_fail; | |
42338 | swig_obj[0] = args; | |
42339 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 ); | |
42340 | if (!SWIG_IsOK(res1)) { | |
42341 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'"); | |
42342 | } | |
42343 | arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1); | |
42344 | { | |
42345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42346 | result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited(); | |
42347 | wxPyEndAllowThreads(__tstate); | |
42348 | if (PyErr_Occurred()) SWIG_fail; | |
42349 | } | |
42350 | { | |
42351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42352 | } | |
42353 | return resultobj; | |
42354 | fail: | |
42355 | return NULL; | |
42356 | } | |
42357 | ||
42358 | ||
42359 | SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42360 | PyObject *obj; | |
42361 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
42362 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj)); | |
42363 | return SWIG_Py_Void(); | |
42364 | } | |
42365 | ||
42366 | SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42367 | return SWIG_Python_InitShadowInstance(args); | |
42368 | } | |
42369 | ||
42370 | SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42371 | PyObject *resultobj = 0; | |
42372 | wxObject *arg1 = (wxObject *) 0 ; | |
42373 | int arg2 ; | |
42374 | wxString *arg3 = 0 ; | |
42375 | wxHyperlinkEvent *result = 0 ; | |
42376 | void *argp1 = 0 ; | |
42377 | int res1 = 0 ; | |
42378 | int val2 ; | |
42379 | int ecode2 = 0 ; | |
42380 | bool temp3 = false ; | |
42381 | PyObject * obj0 = 0 ; | |
42382 | PyObject * obj1 = 0 ; | |
42383 | PyObject * obj2 = 0 ; | |
42384 | char * kwnames[] = { | |
42385 | (char *) "generator",(char *) "id",(char *) "url", NULL | |
42386 | }; | |
42387 | ||
42388 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
42389 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 ); | |
42390 | if (!SWIG_IsOK(res1)) { | |
42391 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'"); | |
42392 | } | |
42393 | arg1 = reinterpret_cast< wxObject * >(argp1); | |
42394 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
42395 | if (!SWIG_IsOK(ecode2)) { | |
42396 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'"); | |
42397 | } | |
42398 | arg2 = static_cast< int >(val2); | |
42399 | { | |
42400 | arg3 = wxString_in_helper(obj2); | |
42401 | if (arg3 == NULL) SWIG_fail; | |
42402 | temp3 = true; | |
42403 | } | |
42404 | { | |
42405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42406 | result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3); | |
42407 | wxPyEndAllowThreads(__tstate); | |
42408 | if (PyErr_Occurred()) SWIG_fail; | |
42409 | } | |
42410 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 ); | |
42411 | { | |
42412 | if (temp3) | |
42413 | delete arg3; | |
42414 | } | |
42415 | return resultobj; | |
42416 | fail: | |
42417 | { | |
42418 | if (temp3) | |
42419 | delete arg3; | |
42420 | } | |
42421 | return NULL; | |
42422 | } | |
42423 | ||
42424 | ||
42425 | SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42426 | PyObject *resultobj = 0; | |
42427 | wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ; | |
42428 | wxString result; | |
42429 | void *argp1 = 0 ; | |
42430 | int res1 = 0 ; | |
42431 | PyObject *swig_obj[1] ; | |
42432 | ||
42433 | if (!args) SWIG_fail; | |
42434 | swig_obj[0] = args; | |
42435 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 ); | |
42436 | if (!SWIG_IsOK(res1)) { | |
42437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'"); | |
42438 | } | |
42439 | arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1); | |
42440 | { | |
42441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42442 | result = ((wxHyperlinkEvent const *)arg1)->GetURL(); | |
42443 | wxPyEndAllowThreads(__tstate); | |
42444 | if (PyErr_Occurred()) SWIG_fail; | |
42445 | } | |
42446 | { | |
42447 | #if wxUSE_UNICODE | |
42448 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
42449 | #else | |
42450 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
42451 | #endif | |
42452 | } | |
42453 | return resultobj; | |
42454 | fail: | |
42455 | return NULL; | |
42456 | } | |
42457 | ||
42458 | ||
42459 | SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42460 | PyObject *resultobj = 0; | |
42461 | wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ; | |
42462 | wxString *arg2 = 0 ; | |
42463 | void *argp1 = 0 ; | |
42464 | int res1 = 0 ; | |
42465 | bool temp2 = false ; | |
42466 | PyObject * obj0 = 0 ; | |
42467 | PyObject * obj1 = 0 ; | |
42468 | char * kwnames[] = { | |
42469 | (char *) "self",(char *) "url", NULL | |
42470 | }; | |
42471 | ||
42472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail; | |
42473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 ); | |
42474 | if (!SWIG_IsOK(res1)) { | |
42475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'"); | |
42476 | } | |
42477 | arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1); | |
42478 | { | |
42479 | arg2 = wxString_in_helper(obj1); | |
42480 | if (arg2 == NULL) SWIG_fail; | |
42481 | temp2 = true; | |
42482 | } | |
42483 | { | |
42484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42485 | (arg1)->SetURL((wxString const &)*arg2); | |
42486 | wxPyEndAllowThreads(__tstate); | |
42487 | if (PyErr_Occurred()) SWIG_fail; | |
42488 | } | |
42489 | resultobj = SWIG_Py_Void(); | |
42490 | { | |
42491 | if (temp2) | |
42492 | delete arg2; | |
42493 | } | |
42494 | return resultobj; | |
42495 | fail: | |
42496 | { | |
42497 | if (temp2) | |
42498 | delete arg2; | |
42499 | } | |
42500 | return NULL; | |
42501 | } | |
42502 | ||
42503 | ||
42504 | SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42505 | PyObject *obj; | |
42506 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
42507 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj)); | |
42508 | return SWIG_Py_Void(); | |
42509 | } | |
42510 | ||
42511 | SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42512 | return SWIG_Python_InitShadowInstance(args); | |
42513 | } | |
42514 | ||
b850e7f3 RD |
42515 | SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
42516 | PyObject *resultobj = 0; | |
42517 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42518 | wxWindow *arg2 = (wxWindow *) 0 ; | |
42519 | int arg3 ; | |
42520 | wxString const &arg4_defvalue = wxEmptyString ; | |
42521 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
42522 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
42523 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
42524 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
42525 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
42526 | long arg7 = (long) 0 ; | |
42527 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
42528 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
42529 | wxString const &arg9_defvalue = wxButtonNameStr ; | |
42530 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
42531 | bool result; | |
42532 | void *argp1 = 0 ; | |
42533 | int res1 = 0 ; | |
42534 | void *argp2 = 0 ; | |
42535 | int res2 = 0 ; | |
42536 | int val3 ; | |
42537 | int ecode3 = 0 ; | |
42538 | bool temp4 = false ; | |
42539 | wxPoint temp5 ; | |
42540 | wxSize temp6 ; | |
42541 | long val7 ; | |
42542 | int ecode7 = 0 ; | |
42543 | void *argp8 = 0 ; | |
42544 | int res8 = 0 ; | |
42545 | bool temp9 = false ; | |
42546 | PyObject * obj0 = 0 ; | |
42547 | PyObject * obj1 = 0 ; | |
42548 | PyObject * obj2 = 0 ; | |
42549 | PyObject * obj3 = 0 ; | |
42550 | PyObject * obj4 = 0 ; | |
42551 | PyObject * obj5 = 0 ; | |
42552 | PyObject * obj6 = 0 ; | |
42553 | PyObject * obj7 = 0 ; | |
42554 | PyObject * obj8 = 0 ; | |
42555 | char * kwnames[] = { | |
42556 | (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
42557 | }; | |
42558 | ||
42559 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
42560 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42561 | if (!SWIG_IsOK(res1)) { | |
42562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42563 | } | |
42564 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42565 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
42566 | if (!SWIG_IsOK(res2)) { | |
42567 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
42568 | } | |
42569 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
42570 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
42571 | if (!SWIG_IsOK(ecode3)) { | |
42572 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'"); | |
42573 | } | |
42574 | arg3 = static_cast< int >(val3); | |
42575 | if (obj3) { | |
42576 | { | |
42577 | arg4 = wxString_in_helper(obj3); | |
42578 | if (arg4 == NULL) SWIG_fail; | |
42579 | temp4 = true; | |
42580 | } | |
42581 | } | |
42582 | if (obj4) { | |
42583 | { | |
42584 | arg5 = &temp5; | |
42585 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
42586 | } | |
42587 | } | |
42588 | if (obj5) { | |
42589 | { | |
42590 | arg6 = &temp6; | |
42591 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
42592 | } | |
42593 | } | |
42594 | if (obj6) { | |
42595 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
42596 | if (!SWIG_IsOK(ecode7)) { | |
42597 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'"); | |
42598 | } | |
42599 | arg7 = static_cast< long >(val7); | |
42600 | } | |
42601 | if (obj7) { | |
42602 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
42603 | if (!SWIG_IsOK(res8)) { | |
42604 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
42605 | } | |
42606 | if (!argp8) { | |
42607 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
42608 | } | |
42609 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
42610 | } | |
42611 | if (obj8) { | |
42612 | { | |
42613 | arg9 = wxString_in_helper(obj8); | |
42614 | if (arg9 == NULL) SWIG_fail; | |
42615 | temp9 = true; | |
42616 | } | |
42617 | } | |
42618 | { | |
42619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42620 | result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
42621 | wxPyEndAllowThreads(__tstate); | |
42622 | if (PyErr_Occurred()) SWIG_fail; | |
42623 | } | |
42624 | { | |
42625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42626 | } | |
42627 | { | |
42628 | if (temp4) | |
42629 | delete arg4; | |
42630 | } | |
42631 | { | |
42632 | if (temp9) | |
42633 | delete arg9; | |
42634 | } | |
42635 | return resultobj; | |
42636 | fail: | |
42637 | { | |
42638 | if (temp4) | |
42639 | delete arg4; | |
42640 | } | |
42641 | { | |
42642 | if (temp9) | |
42643 | delete arg9; | |
42644 | } | |
42645 | return NULL; | |
42646 | } | |
42647 | ||
42648 | ||
42649 | SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42650 | PyObject *resultobj = 0; | |
42651 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42652 | int arg2 ; | |
42653 | void *argp1 = 0 ; | |
42654 | int res1 = 0 ; | |
42655 | int val2 ; | |
42656 | int ecode2 = 0 ; | |
42657 | PyObject * obj0 = 0 ; | |
42658 | PyObject * obj1 = 0 ; | |
42659 | char * kwnames[] = { | |
42660 | (char *) "self",(char *) "newmargin", NULL | |
42661 | }; | |
42662 | ||
42663 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail; | |
42664 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42665 | if (!SWIG_IsOK(res1)) { | |
42666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42667 | } | |
42668 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42669 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
42670 | if (!SWIG_IsOK(ecode2)) { | |
42671 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'"); | |
42672 | } | |
42673 | arg2 = static_cast< int >(val2); | |
42674 | { | |
42675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42676 | (arg1)->SetInternalMargin(arg2); | |
42677 | wxPyEndAllowThreads(__tstate); | |
42678 | if (PyErr_Occurred()) SWIG_fail; | |
42679 | } | |
42680 | resultobj = SWIG_Py_Void(); | |
42681 | return resultobj; | |
42682 | fail: | |
42683 | return NULL; | |
42684 | } | |
42685 | ||
42686 | ||
42687 | SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42688 | PyObject *resultobj = 0; | |
42689 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42690 | int result; | |
42691 | void *argp1 = 0 ; | |
42692 | int res1 = 0 ; | |
42693 | PyObject *swig_obj[1] ; | |
42694 | ||
42695 | if (!args) SWIG_fail; | |
42696 | swig_obj[0] = args; | |
42697 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42698 | if (!SWIG_IsOK(res1)) { | |
42699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
42700 | } | |
42701 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42702 | { | |
42703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42704 | result = (int)((wxPickerBase const *)arg1)->GetInternalMargin(); | |
42705 | wxPyEndAllowThreads(__tstate); | |
42706 | if (PyErr_Occurred()) SWIG_fail; | |
42707 | } | |
42708 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
42709 | return resultobj; | |
42710 | fail: | |
42711 | return NULL; | |
42712 | } | |
42713 | ||
42714 | ||
42715 | SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42716 | PyObject *resultobj = 0; | |
42717 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42718 | int arg2 ; | |
42719 | void *argp1 = 0 ; | |
42720 | int res1 = 0 ; | |
42721 | int val2 ; | |
42722 | int ecode2 = 0 ; | |
42723 | PyObject * obj0 = 0 ; | |
42724 | PyObject * obj1 = 0 ; | |
42725 | char * kwnames[] = { | |
42726 | (char *) "self",(char *) "prop", NULL | |
42727 | }; | |
42728 | ||
42729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail; | |
42730 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42731 | if (!SWIG_IsOK(res1)) { | |
42732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42733 | } | |
42734 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42735 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
42736 | if (!SWIG_IsOK(ecode2)) { | |
42737 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'"); | |
42738 | } | |
42739 | arg2 = static_cast< int >(val2); | |
42740 | { | |
42741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42742 | (arg1)->SetTextCtrlProportion(arg2); | |
42743 | wxPyEndAllowThreads(__tstate); | |
42744 | if (PyErr_Occurred()) SWIG_fail; | |
42745 | } | |
42746 | resultobj = SWIG_Py_Void(); | |
42747 | return resultobj; | |
42748 | fail: | |
42749 | return NULL; | |
42750 | } | |
42751 | ||
42752 | ||
42753 | SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42754 | PyObject *resultobj = 0; | |
42755 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42756 | int result; | |
42757 | void *argp1 = 0 ; | |
42758 | int res1 = 0 ; | |
42759 | PyObject *swig_obj[1] ; | |
42760 | ||
42761 | if (!args) SWIG_fail; | |
42762 | swig_obj[0] = args; | |
42763 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42764 | if (!SWIG_IsOK(res1)) { | |
42765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
42766 | } | |
42767 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42768 | { | |
42769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42770 | result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion(); | |
42771 | wxPyEndAllowThreads(__tstate); | |
42772 | if (PyErr_Occurred()) SWIG_fail; | |
42773 | } | |
42774 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
42775 | return resultobj; | |
42776 | fail: | |
42777 | return NULL; | |
42778 | } | |
42779 | ||
42780 | ||
10044bf1 RD |
42781 | SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
42782 | PyObject *resultobj = 0; | |
42783 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42784 | int arg2 ; | |
42785 | void *argp1 = 0 ; | |
42786 | int res1 = 0 ; | |
42787 | int val2 ; | |
42788 | int ecode2 = 0 ; | |
42789 | PyObject * obj0 = 0 ; | |
42790 | PyObject * obj1 = 0 ; | |
42791 | char * kwnames[] = { | |
42792 | (char *) "self",(char *) "prop", NULL | |
42793 | }; | |
42794 | ||
42795 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail; | |
42796 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42797 | if (!SWIG_IsOK(res1)) { | |
42798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42799 | } | |
42800 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42801 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
42802 | if (!SWIG_IsOK(ecode2)) { | |
42803 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'"); | |
42804 | } | |
42805 | arg2 = static_cast< int >(val2); | |
42806 | { | |
42807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42808 | (arg1)->SetPickerCtrlProportion(arg2); | |
42809 | wxPyEndAllowThreads(__tstate); | |
42810 | if (PyErr_Occurred()) SWIG_fail; | |
42811 | } | |
42812 | resultobj = SWIG_Py_Void(); | |
42813 | return resultobj; | |
42814 | fail: | |
42815 | return NULL; | |
42816 | } | |
42817 | ||
42818 | ||
42819 | SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42820 | PyObject *resultobj = 0; | |
42821 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42822 | int result; | |
42823 | void *argp1 = 0 ; | |
42824 | int res1 = 0 ; | |
42825 | PyObject *swig_obj[1] ; | |
42826 | ||
42827 | if (!args) SWIG_fail; | |
42828 | swig_obj[0] = args; | |
42829 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42830 | if (!SWIG_IsOK(res1)) { | |
42831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
42832 | } | |
42833 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42834 | { | |
42835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42836 | result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion(); | |
42837 | wxPyEndAllowThreads(__tstate); | |
42838 | if (PyErr_Occurred()) SWIG_fail; | |
42839 | } | |
42840 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
42841 | return resultobj; | |
42842 | fail: | |
42843 | return NULL; | |
42844 | } | |
42845 | ||
42846 | ||
b02396e8 RD |
42847 | SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
42848 | PyObject *resultobj = 0; | |
42849 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42850 | bool result; | |
42851 | void *argp1 = 0 ; | |
42852 | int res1 = 0 ; | |
42853 | PyObject *swig_obj[1] ; | |
42854 | ||
42855 | if (!args) SWIG_fail; | |
42856 | swig_obj[0] = args; | |
42857 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42858 | if (!SWIG_IsOK(res1)) { | |
42859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
42860 | } | |
42861 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42862 | { | |
42863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42864 | result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable(); | |
42865 | wxPyEndAllowThreads(__tstate); | |
42866 | if (PyErr_Occurred()) SWIG_fail; | |
42867 | } | |
42868 | { | |
42869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42870 | } | |
42871 | return resultobj; | |
42872 | fail: | |
42873 | return NULL; | |
42874 | } | |
42875 | ||
42876 | ||
42877 | SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42878 | PyObject *resultobj = 0; | |
42879 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42880 | bool arg2 = (bool) true ; | |
42881 | void *argp1 = 0 ; | |
42882 | int res1 = 0 ; | |
42883 | bool val2 ; | |
42884 | int ecode2 = 0 ; | |
42885 | PyObject * obj0 = 0 ; | |
42886 | PyObject * obj1 = 0 ; | |
42887 | char * kwnames[] = { | |
42888 | (char *) "self",(char *) "grow", NULL | |
42889 | }; | |
42890 | ||
42891 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail; | |
42892 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42893 | if (!SWIG_IsOK(res1)) { | |
42894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42895 | } | |
42896 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42897 | if (obj1) { | |
42898 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
42899 | if (!SWIG_IsOK(ecode2)) { | |
42900 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'"); | |
42901 | } | |
42902 | arg2 = static_cast< bool >(val2); | |
42903 | } | |
42904 | { | |
42905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42906 | (arg1)->SetTextCtrlGrowable(arg2); | |
42907 | wxPyEndAllowThreads(__tstate); | |
42908 | if (PyErr_Occurred()) SWIG_fail; | |
42909 | } | |
42910 | resultobj = SWIG_Py_Void(); | |
42911 | return resultobj; | |
42912 | fail: | |
42913 | return NULL; | |
42914 | } | |
42915 | ||
42916 | ||
42917 | SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
42918 | PyObject *resultobj = 0; | |
42919 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42920 | bool result; | |
42921 | void *argp1 = 0 ; | |
42922 | int res1 = 0 ; | |
42923 | PyObject *swig_obj[1] ; | |
42924 | ||
42925 | if (!args) SWIG_fail; | |
42926 | swig_obj[0] = args; | |
42927 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42928 | if (!SWIG_IsOK(res1)) { | |
42929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
42930 | } | |
42931 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42932 | { | |
42933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42934 | result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable(); | |
42935 | wxPyEndAllowThreads(__tstate); | |
42936 | if (PyErr_Occurred()) SWIG_fail; | |
42937 | } | |
42938 | { | |
42939 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42940 | } | |
42941 | return resultobj; | |
42942 | fail: | |
42943 | return NULL; | |
42944 | } | |
42945 | ||
42946 | ||
42947 | SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
42948 | PyObject *resultobj = 0; | |
42949 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42950 | bool arg2 = (bool) true ; | |
42951 | void *argp1 = 0 ; | |
42952 | int res1 = 0 ; | |
42953 | bool val2 ; | |
42954 | int ecode2 = 0 ; | |
42955 | PyObject * obj0 = 0 ; | |
42956 | PyObject * obj1 = 0 ; | |
42957 | char * kwnames[] = { | |
42958 | (char *) "self",(char *) "grow", NULL | |
42959 | }; | |
42960 | ||
42961 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail; | |
42962 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42963 | if (!SWIG_IsOK(res1)) { | |
42964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
42965 | } | |
42966 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
42967 | if (obj1) { | |
42968 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
42969 | if (!SWIG_IsOK(ecode2)) { | |
42970 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'"); | |
42971 | } | |
42972 | arg2 = static_cast< bool >(val2); | |
42973 | } | |
42974 | { | |
42975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42976 | (arg1)->SetPickerCtrlGrowable(arg2); | |
42977 | wxPyEndAllowThreads(__tstate); | |
42978 | if (PyErr_Occurred()) SWIG_fail; | |
42979 | } | |
42980 | resultobj = SWIG_Py_Void(); | |
42981 | return resultobj; | |
42982 | fail: | |
42983 | return NULL; | |
42984 | } | |
42985 | ||
42986 | ||
b850e7f3 RD |
42987 | SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
42988 | PyObject *resultobj = 0; | |
42989 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
42990 | bool result; | |
42991 | void *argp1 = 0 ; | |
42992 | int res1 = 0 ; | |
42993 | PyObject *swig_obj[1] ; | |
42994 | ||
42995 | if (!args) SWIG_fail; | |
42996 | swig_obj[0] = args; | |
42997 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
42998 | if (!SWIG_IsOK(res1)) { | |
42999 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'"); | |
43000 | } | |
43001 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43002 | { | |
43003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43004 | result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl(); | |
43005 | wxPyEndAllowThreads(__tstate); | |
43006 | if (PyErr_Occurred()) SWIG_fail; | |
43007 | } | |
43008 | { | |
43009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43010 | } | |
43011 | return resultobj; | |
43012 | fail: | |
43013 | return NULL; | |
43014 | } | |
43015 | ||
43016 | ||
43017 | SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43018 | PyObject *resultobj = 0; | |
43019 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43020 | wxTextCtrl *result = 0 ; | |
43021 | void *argp1 = 0 ; | |
43022 | int res1 = 0 ; | |
43023 | PyObject *swig_obj[1] ; | |
43024 | ||
43025 | if (!args) SWIG_fail; | |
43026 | swig_obj[0] = args; | |
43027 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43028 | if (!SWIG_IsOK(res1)) { | |
43029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
43030 | } | |
43031 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43032 | { | |
43033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43034 | result = (wxTextCtrl *)(arg1)->GetTextCtrl(); | |
43035 | wxPyEndAllowThreads(__tstate); | |
43036 | if (PyErr_Occurred()) SWIG_fail; | |
43037 | } | |
43038 | { | |
43039 | resultobj = wxPyMake_wxObject(result, 0); | |
43040 | } | |
43041 | return resultobj; | |
43042 | fail: | |
43043 | return NULL; | |
43044 | } | |
43045 | ||
43046 | ||
43047 | SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43048 | PyObject *resultobj = 0; | |
43049 | wxPickerBase *arg1 = (wxPickerBase *) 0 ; | |
43050 | wxControl *result = 0 ; | |
43051 | void *argp1 = 0 ; | |
43052 | int res1 = 0 ; | |
43053 | PyObject *swig_obj[1] ; | |
43054 | ||
43055 | if (!args) SWIG_fail; | |
43056 | swig_obj[0] = args; | |
43057 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 ); | |
43058 | if (!SWIG_IsOK(res1)) { | |
43059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'"); | |
43060 | } | |
43061 | arg1 = reinterpret_cast< wxPickerBase * >(argp1); | |
43062 | { | |
43063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43064 | result = (wxControl *)(arg1)->GetPickerCtrl(); | |
43065 | wxPyEndAllowThreads(__tstate); | |
43066 | if (PyErr_Occurred()) SWIG_fail; | |
43067 | } | |
43068 | { | |
43069 | resultobj = wxPyMake_wxObject(result, 0); | |
43070 | } | |
43071 | return resultobj; | |
43072 | fail: | |
43073 | return NULL; | |
43074 | } | |
43075 | ||
43076 | ||
43077 | SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43078 | PyObject *obj; | |
43079 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
43080 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj)); | |
43081 | return SWIG_Py_Void(); | |
43082 | } | |
43083 | ||
43084 | SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) { | |
43085 | SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only."); | |
43086 | return 1; | |
43087 | } | |
43088 | ||
43089 | ||
43090 | SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) { | |
43091 | PyObject *pyobj = 0; | |
43092 | ||
43093 | { | |
43094 | #if wxUSE_UNICODE | |
43095 | pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len()); | |
43096 | #else | |
43097 | pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len()); | |
43098 | #endif | |
43099 | } | |
43100 | return pyobj; | |
43101 | } | |
43102 | ||
43103 | ||
43104 | SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43105 | PyObject *resultobj = 0; | |
43106 | wxWindow *arg1 = (wxWindow *) 0 ; | |
43107 | int arg2 = (int) -1 ; | |
43108 | wxColour const &arg3_defvalue = *wxBLACK ; | |
43109 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
43110 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
43111 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
43112 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
43113 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
43114 | long arg6 = (long) wxCLRP_DEFAULT_STYLE ; | |
43115 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
43116 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
43117 | wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ; | |
43118 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
43119 | wxColourPickerCtrl *result = 0 ; | |
43120 | void *argp1 = 0 ; | |
43121 | int res1 = 0 ; | |
43122 | int val2 ; | |
43123 | int ecode2 = 0 ; | |
43124 | wxColour temp3 ; | |
43125 | wxPoint temp4 ; | |
43126 | wxSize temp5 ; | |
43127 | long val6 ; | |
43128 | int ecode6 = 0 ; | |
43129 | void *argp7 = 0 ; | |
43130 | int res7 = 0 ; | |
43131 | bool temp8 = false ; | |
43132 | PyObject * obj0 = 0 ; | |
43133 | PyObject * obj1 = 0 ; | |
43134 | PyObject * obj2 = 0 ; | |
43135 | PyObject * obj3 = 0 ; | |
43136 | PyObject * obj4 = 0 ; | |
43137 | PyObject * obj5 = 0 ; | |
43138 | PyObject * obj6 = 0 ; | |
43139 | PyObject * obj7 = 0 ; | |
43140 | char * kwnames[] = { | |
43141 | (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
43142 | }; | |
43143 | ||
43144 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
43145 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
43146 | if (!SWIG_IsOK(res1)) { | |
43147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
43148 | } | |
43149 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
43150 | if (obj1) { | |
43151 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
43152 | if (!SWIG_IsOK(ecode2)) { | |
43153 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
43154 | } | |
43155 | arg2 = static_cast< int >(val2); | |
43156 | } | |
43157 | if (obj2) { | |
43158 | { | |
43159 | arg3 = &temp3; | |
43160 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
43161 | } | |
43162 | } | |
43163 | if (obj3) { | |
43164 | { | |
43165 | arg4 = &temp4; | |
43166 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
43167 | } | |
43168 | } | |
43169 | if (obj4) { | |
43170 | { | |
43171 | arg5 = &temp5; | |
43172 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
43173 | } | |
43174 | } | |
43175 | if (obj5) { | |
43176 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
43177 | if (!SWIG_IsOK(ecode6)) { | |
43178 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'"); | |
43179 | } | |
43180 | arg6 = static_cast< long >(val6); | |
43181 | } | |
43182 | if (obj6) { | |
43183 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
43184 | if (!SWIG_IsOK(res7)) { | |
43185 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
43186 | } | |
43187 | if (!argp7) { | |
43188 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
43189 | } | |
43190 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
43191 | } | |
43192 | if (obj7) { | |
43193 | { | |
43194 | arg8 = wxString_in_helper(obj7); | |
43195 | if (arg8 == NULL) SWIG_fail; | |
43196 | temp8 = true; | |
43197 | } | |
43198 | } | |
43199 | { | |
43200 | if (!wxPyCheckForApp()) SWIG_fail; | |
43201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43202 | result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
43203 | wxPyEndAllowThreads(__tstate); | |
43204 | if (PyErr_Occurred()) SWIG_fail; | |
43205 | } | |
43206 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 ); | |
43207 | { | |
43208 | if (temp8) | |
43209 | delete arg8; | |
43210 | } | |
43211 | return resultobj; | |
43212 | fail: | |
43213 | { | |
43214 | if (temp8) | |
43215 | delete arg8; | |
43216 | } | |
43217 | return NULL; | |
43218 | } | |
43219 | ||
43220 | ||
43221 | SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43222 | PyObject *resultobj = 0; | |
43223 | wxColourPickerCtrl *result = 0 ; | |
43224 | ||
43225 | if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail; | |
43226 | { | |
43227 | if (!wxPyCheckForApp()) SWIG_fail; | |
43228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43229 | result = (wxColourPickerCtrl *)new wxColourPickerCtrl(); | |
43230 | wxPyEndAllowThreads(__tstate); | |
43231 | if (PyErr_Occurred()) SWIG_fail; | |
43232 | } | |
43233 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 ); | |
43234 | return resultobj; | |
43235 | fail: | |
43236 | return NULL; | |
43237 | } | |
43238 | ||
43239 | ||
43240 | SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43241 | PyObject *resultobj = 0; | |
43242 | wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ; | |
43243 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43244 | int arg3 ; | |
43245 | wxColour const &arg4_defvalue = *wxBLACK ; | |
43246 | wxColour *arg4 = (wxColour *) &arg4_defvalue ; | |
43247 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
43248 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
43249 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
43250 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
43251 | long arg7 = (long) wxCLRP_DEFAULT_STYLE ; | |
43252 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
43253 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
43254 | wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ; | |
43255 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
43256 | bool result; | |
43257 | void *argp1 = 0 ; | |
43258 | int res1 = 0 ; | |
43259 | void *argp2 = 0 ; | |
43260 | int res2 = 0 ; | |
43261 | int val3 ; | |
43262 | int ecode3 = 0 ; | |
43263 | wxColour temp4 ; | |
43264 | wxPoint temp5 ; | |
43265 | wxSize temp6 ; | |
43266 | long val7 ; | |
43267 | int ecode7 = 0 ; | |
43268 | void *argp8 = 0 ; | |
43269 | int res8 = 0 ; | |
43270 | bool temp9 = false ; | |
43271 | PyObject * obj0 = 0 ; | |
43272 | PyObject * obj1 = 0 ; | |
43273 | PyObject * obj2 = 0 ; | |
43274 | PyObject * obj3 = 0 ; | |
43275 | PyObject * obj4 = 0 ; | |
43276 | PyObject * obj5 = 0 ; | |
43277 | PyObject * obj6 = 0 ; | |
43278 | PyObject * obj7 = 0 ; | |
43279 | PyObject * obj8 = 0 ; | |
43280 | char * kwnames[] = { | |
43281 | (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
43282 | }; | |
43283 | ||
43284 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
43285 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 ); | |
43286 | if (!SWIG_IsOK(res1)) { | |
43287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'"); | |
43288 | } | |
43289 | arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1); | |
43290 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
43291 | if (!SWIG_IsOK(res2)) { | |
43292 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
43293 | } | |
43294 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
43295 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
43296 | if (!SWIG_IsOK(ecode3)) { | |
43297 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
43298 | } | |
43299 | arg3 = static_cast< int >(val3); | |
43300 | if (obj3) { | |
43301 | { | |
43302 | arg4 = &temp4; | |
43303 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
43304 | } | |
43305 | } | |
43306 | if (obj4) { | |
43307 | { | |
43308 | arg5 = &temp5; | |
43309 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
43310 | } | |
43311 | } | |
43312 | if (obj5) { | |
43313 | { | |
43314 | arg6 = &temp6; | |
43315 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
43316 | } | |
43317 | } | |
43318 | if (obj6) { | |
43319 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
43320 | if (!SWIG_IsOK(ecode7)) { | |
43321 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
43322 | } | |
43323 | arg7 = static_cast< long >(val7); | |
43324 | } | |
43325 | if (obj7) { | |
43326 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
43327 | if (!SWIG_IsOK(res8)) { | |
43328 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
43329 | } | |
43330 | if (!argp8) { | |
43331 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
43332 | } | |
43333 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
43334 | } | |
43335 | if (obj8) { | |
43336 | { | |
43337 | arg9 = wxString_in_helper(obj8); | |
43338 | if (arg9 == NULL) SWIG_fail; | |
43339 | temp9 = true; | |
43340 | } | |
43341 | } | |
43342 | { | |
43343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43344 | result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
43345 | wxPyEndAllowThreads(__tstate); | |
43346 | if (PyErr_Occurred()) SWIG_fail; | |
43347 | } | |
43348 | { | |
43349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43350 | } | |
43351 | { | |
43352 | if (temp9) | |
43353 | delete arg9; | |
43354 | } | |
43355 | return resultobj; | |
43356 | fail: | |
43357 | { | |
43358 | if (temp9) | |
43359 | delete arg9; | |
43360 | } | |
43361 | return NULL; | |
43362 | } | |
43363 | ||
43364 | ||
43365 | SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43366 | PyObject *resultobj = 0; | |
43367 | wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ; | |
43368 | wxColour result; | |
43369 | void *argp1 = 0 ; | |
43370 | int res1 = 0 ; | |
43371 | PyObject *swig_obj[1] ; | |
43372 | ||
43373 | if (!args) SWIG_fail; | |
43374 | swig_obj[0] = args; | |
43375 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 ); | |
43376 | if (!SWIG_IsOK(res1)) { | |
43377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'"); | |
43378 | } | |
43379 | arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1); | |
43380 | { | |
43381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43382 | result = ((wxColourPickerCtrl const *)arg1)->GetColour(); | |
43383 | wxPyEndAllowThreads(__tstate); | |
43384 | if (PyErr_Occurred()) SWIG_fail; | |
43385 | } | |
43386 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
43387 | return resultobj; | |
43388 | fail: | |
43389 | return NULL; | |
43390 | } | |
43391 | ||
43392 | ||
43393 | SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43394 | PyObject *resultobj = 0; | |
43395 | wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ; | |
43396 | wxColour *arg2 = 0 ; | |
43397 | void *argp1 = 0 ; | |
43398 | int res1 = 0 ; | |
43399 | wxColour temp2 ; | |
43400 | PyObject * obj0 = 0 ; | |
43401 | PyObject * obj1 = 0 ; | |
43402 | char * kwnames[] = { | |
43403 | (char *) "self",(char *) "col", NULL | |
43404 | }; | |
43405 | ||
43406 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
43407 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 ); | |
43408 | if (!SWIG_IsOK(res1)) { | |
43409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'"); | |
43410 | } | |
43411 | arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1); | |
43412 | { | |
43413 | arg2 = &temp2; | |
43414 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
43415 | } | |
43416 | { | |
43417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43418 | (arg1)->SetColour((wxColour const &)*arg2); | |
43419 | wxPyEndAllowThreads(__tstate); | |
43420 | if (PyErr_Occurred()) SWIG_fail; | |
43421 | } | |
43422 | resultobj = SWIG_Py_Void(); | |
43423 | return resultobj; | |
43424 | fail: | |
43425 | return NULL; | |
43426 | } | |
43427 | ||
43428 | ||
43429 | SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43430 | PyObject *obj; | |
43431 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
43432 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj)); | |
43433 | return SWIG_Py_Void(); | |
43434 | } | |
43435 | ||
43436 | SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43437 | return SWIG_Python_InitShadowInstance(args); | |
43438 | } | |
43439 | ||
43440 | SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43441 | PyObject *resultobj = 0; | |
43442 | wxObject *arg1 = (wxObject *) 0 ; | |
43443 | int arg2 ; | |
43444 | wxColour *arg3 = 0 ; | |
43445 | wxColourPickerEvent *result = 0 ; | |
43446 | void *argp1 = 0 ; | |
43447 | int res1 = 0 ; | |
43448 | int val2 ; | |
43449 | int ecode2 = 0 ; | |
43450 | wxColour temp3 ; | |
43451 | PyObject * obj0 = 0 ; | |
43452 | PyObject * obj1 = 0 ; | |
43453 | PyObject * obj2 = 0 ; | |
43454 | char * kwnames[] = { | |
43455 | (char *) "generator",(char *) "id",(char *) "col", NULL | |
43456 | }; | |
43457 | ||
43458 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
43459 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 ); | |
43460 | if (!SWIG_IsOK(res1)) { | |
43461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'"); | |
43462 | } | |
43463 | arg1 = reinterpret_cast< wxObject * >(argp1); | |
43464 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
43465 | if (!SWIG_IsOK(ecode2)) { | |
43466 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'"); | |
43467 | } | |
43468 | arg2 = static_cast< int >(val2); | |
43469 | { | |
43470 | arg3 = &temp3; | |
43471 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
43472 | } | |
43473 | { | |
43474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43475 | result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3); | |
43476 | wxPyEndAllowThreads(__tstate); | |
43477 | if (PyErr_Occurred()) SWIG_fail; | |
43478 | } | |
43479 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 ); | |
43480 | return resultobj; | |
43481 | fail: | |
43482 | return NULL; | |
43483 | } | |
43484 | ||
43485 | ||
43486 | SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43487 | PyObject *resultobj = 0; | |
43488 | wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ; | |
43489 | wxColour result; | |
43490 | void *argp1 = 0 ; | |
43491 | int res1 = 0 ; | |
43492 | PyObject *swig_obj[1] ; | |
43493 | ||
43494 | if (!args) SWIG_fail; | |
43495 | swig_obj[0] = args; | |
43496 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 ); | |
43497 | if (!SWIG_IsOK(res1)) { | |
43498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'"); | |
43499 | } | |
43500 | arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1); | |
43501 | { | |
43502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43503 | result = ((wxColourPickerEvent const *)arg1)->GetColour(); | |
43504 | wxPyEndAllowThreads(__tstate); | |
43505 | if (PyErr_Occurred()) SWIG_fail; | |
43506 | } | |
43507 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
43508 | return resultobj; | |
43509 | fail: | |
43510 | return NULL; | |
43511 | } | |
43512 | ||
43513 | ||
43514 | SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43515 | PyObject *resultobj = 0; | |
43516 | wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ; | |
43517 | wxColour *arg2 = 0 ; | |
43518 | void *argp1 = 0 ; | |
43519 | int res1 = 0 ; | |
43520 | wxColour temp2 ; | |
43521 | PyObject * obj0 = 0 ; | |
43522 | PyObject * obj1 = 0 ; | |
43523 | char * kwnames[] = { | |
43524 | (char *) "self",(char *) "c", NULL | |
43525 | }; | |
43526 | ||
43527 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
43528 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 ); | |
43529 | if (!SWIG_IsOK(res1)) { | |
43530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'"); | |
43531 | } | |
43532 | arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1); | |
43533 | { | |
43534 | arg2 = &temp2; | |
43535 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
43536 | } | |
43537 | { | |
43538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43539 | (arg1)->SetColour((wxColour const &)*arg2); | |
43540 | wxPyEndAllowThreads(__tstate); | |
43541 | if (PyErr_Occurred()) SWIG_fail; | |
43542 | } | |
43543 | resultobj = SWIG_Py_Void(); | |
43544 | return resultobj; | |
43545 | fail: | |
43546 | return NULL; | |
43547 | } | |
43548 | ||
43549 | ||
43550 | SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43551 | PyObject *obj; | |
43552 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
43553 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj)); | |
43554 | return SWIG_Py_Void(); | |
43555 | } | |
43556 | ||
43557 | SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43558 | return SWIG_Python_InitShadowInstance(args); | |
43559 | } | |
43560 | ||
43561 | SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) { | |
43562 | SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only."); | |
43563 | return 1; | |
43564 | } | |
43565 | ||
43566 | ||
43567 | SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) { | |
43568 | PyObject *pyobj = 0; | |
43569 | ||
43570 | { | |
43571 | #if wxUSE_UNICODE | |
43572 | pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len()); | |
43573 | #else | |
43574 | pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len()); | |
43575 | #endif | |
43576 | } | |
43577 | return pyobj; | |
43578 | } | |
43579 | ||
43580 | ||
43581 | SWIGINTERN int FileSelectorPromptStr_set(PyObject *) { | |
43582 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only."); | |
43583 | return 1; | |
43584 | } | |
43585 | ||
43586 | ||
43587 | SWIGINTERN PyObject *FileSelectorPromptStr_get(void) { | |
43588 | PyObject *pyobj = 0; | |
43589 | ||
43590 | { | |
43591 | #if wxUSE_UNICODE | |
43592 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
43593 | #else | |
43594 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
43595 | #endif | |
43596 | } | |
43597 | return pyobj; | |
43598 | } | |
43599 | ||
43600 | ||
43601 | SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) { | |
43602 | SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only."); | |
43603 | return 1; | |
43604 | } | |
43605 | ||
43606 | ||
43607 | SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) { | |
43608 | PyObject *pyobj = 0; | |
43609 | ||
43610 | { | |
43611 | #if wxUSE_UNICODE | |
43612 | pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len()); | |
43613 | #else | |
43614 | pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len()); | |
43615 | #endif | |
43616 | } | |
43617 | return pyobj; | |
43618 | } | |
43619 | ||
43620 | ||
43621 | SWIGINTERN int DirSelectorPromptStr_set(PyObject *) { | |
43622 | SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only."); | |
43623 | return 1; | |
43624 | } | |
43625 | ||
43626 | ||
43627 | SWIGINTERN PyObject *DirSelectorPromptStr_get(void) { | |
43628 | PyObject *pyobj = 0; | |
43629 | ||
43630 | { | |
43631 | #if wxUSE_UNICODE | |
43632 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
43633 | #else | |
43634 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
43635 | #endif | |
43636 | } | |
43637 | return pyobj; | |
43638 | } | |
43639 | ||
43640 | ||
43641 | SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) { | |
43642 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
43643 | return 1; | |
43644 | } | |
43645 | ||
43646 | ||
43647 | SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) { | |
43648 | PyObject *pyobj = 0; | |
43649 | ||
43650 | { | |
43651 | #if wxUSE_UNICODE | |
43652 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
43653 | #else | |
43654 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
43655 | #endif | |
43656 | } | |
43657 | return pyobj; | |
43658 | } | |
43659 | ||
43660 | ||
43661 | SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43662 | PyObject *resultobj = 0; | |
43663 | wxWindow *arg1 = (wxWindow *) 0 ; | |
43664 | int arg2 = (int) -1 ; | |
43665 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
43666 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
43667 | wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ; | |
43668 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
43669 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
43670 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
43671 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
43672 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
43673 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
43674 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
43675 | long arg8 = (long) wxFLP_DEFAULT_STYLE ; | |
43676 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
43677 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
43678 | wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ; | |
43679 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
43680 | wxFilePickerCtrl *result = 0 ; | |
43681 | void *argp1 = 0 ; | |
43682 | int res1 = 0 ; | |
43683 | int val2 ; | |
43684 | int ecode2 = 0 ; | |
43685 | bool temp3 = false ; | |
43686 | bool temp4 = false ; | |
43687 | bool temp5 = false ; | |
43688 | wxPoint temp6 ; | |
43689 | wxSize temp7 ; | |
43690 | long val8 ; | |
43691 | int ecode8 = 0 ; | |
43692 | void *argp9 = 0 ; | |
43693 | int res9 = 0 ; | |
43694 | bool temp10 = false ; | |
43695 | PyObject * obj0 = 0 ; | |
43696 | PyObject * obj1 = 0 ; | |
43697 | PyObject * obj2 = 0 ; | |
43698 | PyObject * obj3 = 0 ; | |
43699 | PyObject * obj4 = 0 ; | |
43700 | PyObject * obj5 = 0 ; | |
43701 | PyObject * obj6 = 0 ; | |
43702 | PyObject * obj7 = 0 ; | |
43703 | PyObject * obj8 = 0 ; | |
43704 | PyObject * obj9 = 0 ; | |
43705 | char * kwnames[] = { | |
43706 | (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
43707 | }; | |
43708 | ||
43709 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
43710 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
43711 | if (!SWIG_IsOK(res1)) { | |
43712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
43713 | } | |
43714 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
43715 | if (obj1) { | |
43716 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
43717 | if (!SWIG_IsOK(ecode2)) { | |
43718 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
43719 | } | |
43720 | arg2 = static_cast< int >(val2); | |
43721 | } | |
43722 | if (obj2) { | |
43723 | { | |
43724 | arg3 = wxString_in_helper(obj2); | |
43725 | if (arg3 == NULL) SWIG_fail; | |
43726 | temp3 = true; | |
43727 | } | |
43728 | } | |
43729 | if (obj3) { | |
43730 | { | |
43731 | arg4 = wxString_in_helper(obj3); | |
43732 | if (arg4 == NULL) SWIG_fail; | |
43733 | temp4 = true; | |
43734 | } | |
43735 | } | |
43736 | if (obj4) { | |
43737 | { | |
43738 | arg5 = wxString_in_helper(obj4); | |
43739 | if (arg5 == NULL) SWIG_fail; | |
43740 | temp5 = true; | |
43741 | } | |
43742 | } | |
43743 | if (obj5) { | |
43744 | { | |
43745 | arg6 = &temp6; | |
43746 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
43747 | } | |
43748 | } | |
43749 | if (obj6) { | |
43750 | { | |
43751 | arg7 = &temp7; | |
43752 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
43753 | } | |
43754 | } | |
43755 | if (obj7) { | |
43756 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
43757 | if (!SWIG_IsOK(ecode8)) { | |
43758 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'"); | |
43759 | } | |
43760 | arg8 = static_cast< long >(val8); | |
43761 | } | |
43762 | if (obj8) { | |
43763 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
43764 | if (!SWIG_IsOK(res9)) { | |
43765 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
43766 | } | |
43767 | if (!argp9) { | |
43768 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
43769 | } | |
43770 | arg9 = reinterpret_cast< wxValidator * >(argp9); | |
43771 | } | |
43772 | if (obj9) { | |
43773 | { | |
43774 | arg10 = wxString_in_helper(obj9); | |
43775 | if (arg10 == NULL) SWIG_fail; | |
43776 | temp10 = true; | |
43777 | } | |
43778 | } | |
43779 | { | |
43780 | if (!wxPyCheckForApp()) SWIG_fail; | |
43781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43782 | 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); | |
43783 | wxPyEndAllowThreads(__tstate); | |
43784 | if (PyErr_Occurred()) SWIG_fail; | |
43785 | } | |
43786 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 ); | |
43787 | { | |
43788 | if (temp3) | |
43789 | delete arg3; | |
43790 | } | |
43791 | { | |
43792 | if (temp4) | |
43793 | delete arg4; | |
43794 | } | |
43795 | { | |
43796 | if (temp5) | |
43797 | delete arg5; | |
43798 | } | |
43799 | { | |
43800 | if (temp10) | |
43801 | delete arg10; | |
43802 | } | |
43803 | return resultobj; | |
43804 | fail: | |
43805 | { | |
43806 | if (temp3) | |
43807 | delete arg3; | |
43808 | } | |
43809 | { | |
43810 | if (temp4) | |
43811 | delete arg4; | |
43812 | } | |
43813 | { | |
43814 | if (temp5) | |
43815 | delete arg5; | |
43816 | } | |
43817 | { | |
43818 | if (temp10) | |
43819 | delete arg10; | |
43820 | } | |
43821 | return NULL; | |
43822 | } | |
43823 | ||
43824 | ||
43825 | SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
43826 | PyObject *resultobj = 0; | |
43827 | wxFilePickerCtrl *result = 0 ; | |
43828 | ||
43829 | if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail; | |
43830 | { | |
43831 | if (!wxPyCheckForApp()) SWIG_fail; | |
43832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43833 | result = (wxFilePickerCtrl *)new wxFilePickerCtrl(); | |
43834 | wxPyEndAllowThreads(__tstate); | |
43835 | if (PyErr_Occurred()) SWIG_fail; | |
43836 | } | |
43837 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 ); | |
43838 | return resultobj; | |
43839 | fail: | |
43840 | return NULL; | |
43841 | } | |
43842 | ||
43843 | ||
43844 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
43845 | PyObject *resultobj = 0; | |
43846 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
43847 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43848 | int arg3 = (int) -1 ; | |
43849 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
43850 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
43851 | wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ; | |
43852 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
43853 | wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
43854 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
43855 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
43856 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
43857 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
43858 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
43859 | long arg9 = (long) wxFLP_DEFAULT_STYLE ; | |
43860 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
43861 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
43862 | wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ; | |
43863 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
43864 | bool result; | |
43865 | void *argp1 = 0 ; | |
43866 | int res1 = 0 ; | |
43867 | void *argp2 = 0 ; | |
43868 | int res2 = 0 ; | |
43869 | int val3 ; | |
43870 | int ecode3 = 0 ; | |
43871 | bool temp4 = false ; | |
43872 | bool temp5 = false ; | |
43873 | bool temp6 = false ; | |
43874 | wxPoint temp7 ; | |
43875 | wxSize temp8 ; | |
43876 | long val9 ; | |
43877 | int ecode9 = 0 ; | |
43878 | void *argp10 = 0 ; | |
43879 | int res10 = 0 ; | |
43880 | bool temp11 = false ; | |
43881 | PyObject * obj0 = 0 ; | |
43882 | PyObject * obj1 = 0 ; | |
43883 | PyObject * obj2 = 0 ; | |
43884 | PyObject * obj3 = 0 ; | |
43885 | PyObject * obj4 = 0 ; | |
43886 | PyObject * obj5 = 0 ; | |
43887 | PyObject * obj6 = 0 ; | |
43888 | PyObject * obj7 = 0 ; | |
43889 | PyObject * obj8 = 0 ; | |
43890 | PyObject * obj9 = 0 ; | |
43891 | PyObject * obj10 = 0 ; | |
43892 | char * kwnames[] = { | |
43893 | (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
43894 | }; | |
43895 | ||
43896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; | |
43897 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
43898 | if (!SWIG_IsOK(res1)) { | |
43899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'"); | |
43900 | } | |
43901 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
43902 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
43903 | if (!SWIG_IsOK(res2)) { | |
43904 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
43905 | } | |
43906 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
43907 | if (obj2) { | |
43908 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
43909 | if (!SWIG_IsOK(ecode3)) { | |
43910 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
43911 | } | |
43912 | arg3 = static_cast< int >(val3); | |
43913 | } | |
43914 | if (obj3) { | |
43915 | { | |
43916 | arg4 = wxString_in_helper(obj3); | |
43917 | if (arg4 == NULL) SWIG_fail; | |
43918 | temp4 = true; | |
43919 | } | |
43920 | } | |
43921 | if (obj4) { | |
43922 | { | |
43923 | arg5 = wxString_in_helper(obj4); | |
43924 | if (arg5 == NULL) SWIG_fail; | |
43925 | temp5 = true; | |
43926 | } | |
43927 | } | |
43928 | if (obj5) { | |
43929 | { | |
43930 | arg6 = wxString_in_helper(obj5); | |
43931 | if (arg6 == NULL) SWIG_fail; | |
43932 | temp6 = true; | |
43933 | } | |
43934 | } | |
43935 | if (obj6) { | |
43936 | { | |
43937 | arg7 = &temp7; | |
43938 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
43939 | } | |
43940 | } | |
43941 | if (obj7) { | |
43942 | { | |
43943 | arg8 = &temp8; | |
43944 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
43945 | } | |
43946 | } | |
43947 | if (obj8) { | |
43948 | ecode9 = SWIG_AsVal_long(obj8, &val9); | |
43949 | if (!SWIG_IsOK(ecode9)) { | |
43950 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'"); | |
43951 | } | |
43952 | arg9 = static_cast< long >(val9); | |
43953 | } | |
43954 | if (obj9) { | |
43955 | res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0); | |
43956 | if (!SWIG_IsOK(res10)) { | |
43957 | SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
43958 | } | |
43959 | if (!argp10) { | |
43960 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'"); | |
43961 | } | |
43962 | arg10 = reinterpret_cast< wxValidator * >(argp10); | |
43963 | } | |
43964 | if (obj10) { | |
43965 | { | |
43966 | arg11 = wxString_in_helper(obj10); | |
43967 | if (arg11 == NULL) SWIG_fail; | |
43968 | temp11 = true; | |
43969 | } | |
43970 | } | |
43971 | { | |
43972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43973 | 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); | |
43974 | wxPyEndAllowThreads(__tstate); | |
43975 | if (PyErr_Occurred()) SWIG_fail; | |
43976 | } | |
43977 | { | |
43978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43979 | } | |
43980 | { | |
43981 | if (temp4) | |
43982 | delete arg4; | |
43983 | } | |
43984 | { | |
43985 | if (temp5) | |
43986 | delete arg5; | |
43987 | } | |
43988 | { | |
43989 | if (temp6) | |
43990 | delete arg6; | |
43991 | } | |
43992 | { | |
43993 | if (temp11) | |
43994 | delete arg11; | |
43995 | } | |
43996 | return resultobj; | |
43997 | fail: | |
43998 | { | |
43999 | if (temp4) | |
44000 | delete arg4; | |
44001 | } | |
44002 | { | |
44003 | if (temp5) | |
44004 | delete arg5; | |
44005 | } | |
44006 | { | |
44007 | if (temp6) | |
44008 | delete arg6; | |
44009 | } | |
44010 | { | |
44011 | if (temp11) | |
44012 | delete arg11; | |
44013 | } | |
44014 | return NULL; | |
44015 | } | |
44016 | ||
44017 | ||
44018 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44019 | PyObject *resultobj = 0; | |
44020 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
44021 | wxString result; | |
44022 | void *argp1 = 0 ; | |
44023 | int res1 = 0 ; | |
44024 | PyObject *swig_obj[1] ; | |
44025 | ||
44026 | if (!args) SWIG_fail; | |
44027 | swig_obj[0] = args; | |
44028 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
44029 | if (!SWIG_IsOK(res1)) { | |
44030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'"); | |
44031 | } | |
44032 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44033 | { | |
44034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44035 | result = ((wxFilePickerCtrl const *)arg1)->GetPath(); | |
44036 | wxPyEndAllowThreads(__tstate); | |
44037 | if (PyErr_Occurred()) SWIG_fail; | |
44038 | } | |
44039 | { | |
44040 | #if wxUSE_UNICODE | |
44041 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44042 | #else | |
44043 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44044 | #endif | |
44045 | } | |
44046 | return resultobj; | |
44047 | fail: | |
44048 | return NULL; | |
44049 | } | |
44050 | ||
44051 | ||
44052 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44053 | PyObject *resultobj = 0; | |
44054 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
44055 | wxString *arg2 = 0 ; | |
44056 | void *argp1 = 0 ; | |
44057 | int res1 = 0 ; | |
44058 | bool temp2 = false ; | |
44059 | PyObject * obj0 = 0 ; | |
44060 | PyObject * obj1 = 0 ; | |
44061 | char * kwnames[] = { | |
44062 | (char *) "self",(char *) "str", NULL | |
44063 | }; | |
44064 | ||
44065 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44066 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
44067 | if (!SWIG_IsOK(res1)) { | |
44068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'"); | |
44069 | } | |
44070 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44071 | { | |
44072 | arg2 = wxString_in_helper(obj1); | |
44073 | if (arg2 == NULL) SWIG_fail; | |
44074 | temp2 = true; | |
44075 | } | |
44076 | { | |
44077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44078 | (arg1)->SetPath((wxString const &)*arg2); | |
44079 | wxPyEndAllowThreads(__tstate); | |
44080 | if (PyErr_Occurred()) SWIG_fail; | |
44081 | } | |
44082 | resultobj = SWIG_Py_Void(); | |
44083 | { | |
44084 | if (temp2) | |
44085 | delete arg2; | |
44086 | } | |
44087 | return resultobj; | |
44088 | fail: | |
44089 | { | |
44090 | if (temp2) | |
44091 | delete arg2; | |
44092 | } | |
44093 | return NULL; | |
44094 | } | |
44095 | ||
44096 | ||
b02396e8 RD |
44097 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
44098 | PyObject *resultobj = 0; | |
44099 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
44100 | wxString *arg2 = 0 ; | |
44101 | bool result; | |
44102 | void *argp1 = 0 ; | |
44103 | int res1 = 0 ; | |
44104 | bool temp2 = false ; | |
44105 | PyObject * obj0 = 0 ; | |
44106 | PyObject * obj1 = 0 ; | |
44107 | char * kwnames[] = { | |
44108 | (char *) "self",(char *) "path", NULL | |
44109 | }; | |
44110 | ||
44111 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44112 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
44113 | if (!SWIG_IsOK(res1)) { | |
44114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'"); | |
44115 | } | |
44116 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44117 | { | |
44118 | arg2 = wxString_in_helper(obj1); | |
44119 | if (arg2 == NULL) SWIG_fail; | |
44120 | temp2 = true; | |
44121 | } | |
44122 | { | |
44123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44124 | result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2); | |
44125 | wxPyEndAllowThreads(__tstate); | |
44126 | if (PyErr_Occurred()) SWIG_fail; | |
44127 | } | |
44128 | { | |
44129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44130 | } | |
44131 | { | |
44132 | if (temp2) | |
44133 | delete arg2; | |
44134 | } | |
44135 | return resultobj; | |
44136 | fail: | |
44137 | { | |
44138 | if (temp2) | |
44139 | delete arg2; | |
44140 | } | |
44141 | return NULL; | |
44142 | } | |
44143 | ||
44144 | ||
44145 | SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44146 | PyObject *resultobj = 0; | |
44147 | wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ; | |
44148 | wxString result; | |
44149 | void *argp1 = 0 ; | |
44150 | int res1 = 0 ; | |
44151 | PyObject *swig_obj[1] ; | |
44152 | ||
44153 | if (!args) SWIG_fail; | |
44154 | swig_obj[0] = args; | |
44155 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 ); | |
44156 | if (!SWIG_IsOK(res1)) { | |
44157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'"); | |
44158 | } | |
44159 | arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1); | |
44160 | { | |
44161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44162 | result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue(); | |
44163 | wxPyEndAllowThreads(__tstate); | |
44164 | if (PyErr_Occurred()) SWIG_fail; | |
44165 | } | |
44166 | { | |
44167 | #if wxUSE_UNICODE | |
44168 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44169 | #else | |
44170 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44171 | #endif | |
44172 | } | |
44173 | return resultobj; | |
44174 | fail: | |
44175 | return NULL; | |
44176 | } | |
44177 | ||
44178 | ||
b850e7f3 RD |
44179 | SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
44180 | PyObject *obj; | |
44181 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
44182 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj)); | |
44183 | return SWIG_Py_Void(); | |
44184 | } | |
44185 | ||
44186 | SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44187 | return SWIG_Python_InitShadowInstance(args); | |
44188 | } | |
44189 | ||
44190 | SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44191 | PyObject *resultobj = 0; | |
44192 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44193 | int arg2 = (int) -1 ; | |
44194 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
44195 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
44196 | wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ; | |
44197 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
44198 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
44199 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
44200 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
44201 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
44202 | long arg7 = (long) wxDIRP_DEFAULT_STYLE ; | |
44203 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
44204 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
44205 | wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ; | |
44206 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
44207 | wxDirPickerCtrl *result = 0 ; | |
44208 | void *argp1 = 0 ; | |
44209 | int res1 = 0 ; | |
44210 | int val2 ; | |
44211 | int ecode2 = 0 ; | |
44212 | bool temp3 = false ; | |
44213 | bool temp4 = false ; | |
44214 | wxPoint temp5 ; | |
44215 | wxSize temp6 ; | |
44216 | long val7 ; | |
44217 | int ecode7 = 0 ; | |
44218 | void *argp8 = 0 ; | |
44219 | int res8 = 0 ; | |
44220 | bool temp9 = false ; | |
44221 | PyObject * obj0 = 0 ; | |
44222 | PyObject * obj1 = 0 ; | |
44223 | PyObject * obj2 = 0 ; | |
44224 | PyObject * obj3 = 0 ; | |
44225 | PyObject * obj4 = 0 ; | |
44226 | PyObject * obj5 = 0 ; | |
44227 | PyObject * obj6 = 0 ; | |
44228 | PyObject * obj7 = 0 ; | |
44229 | PyObject * obj8 = 0 ; | |
44230 | char * kwnames[] = { | |
44231 | (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
44232 | }; | |
44233 | ||
44234 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
44235 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
44236 | if (!SWIG_IsOK(res1)) { | |
44237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
44238 | } | |
44239 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
44240 | if (obj1) { | |
44241 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
44242 | if (!SWIG_IsOK(ecode2)) { | |
44243 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
44244 | } | |
44245 | arg2 = static_cast< int >(val2); | |
44246 | } | |
44247 | if (obj2) { | |
44248 | { | |
44249 | arg3 = wxString_in_helper(obj2); | |
44250 | if (arg3 == NULL) SWIG_fail; | |
44251 | temp3 = true; | |
44252 | } | |
44253 | } | |
44254 | if (obj3) { | |
44255 | { | |
44256 | arg4 = wxString_in_helper(obj3); | |
44257 | if (arg4 == NULL) SWIG_fail; | |
44258 | temp4 = true; | |
44259 | } | |
44260 | } | |
44261 | if (obj4) { | |
44262 | { | |
44263 | arg5 = &temp5; | |
44264 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
44265 | } | |
44266 | } | |
44267 | if (obj5) { | |
44268 | { | |
44269 | arg6 = &temp6; | |
44270 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
44271 | } | |
44272 | } | |
44273 | if (obj6) { | |
44274 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
44275 | if (!SWIG_IsOK(ecode7)) { | |
44276 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'"); | |
44277 | } | |
44278 | arg7 = static_cast< long >(val7); | |
44279 | } | |
44280 | if (obj7) { | |
44281 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
44282 | if (!SWIG_IsOK(res8)) { | |
44283 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
44284 | } | |
44285 | if (!argp8) { | |
44286 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
44287 | } | |
44288 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
44289 | } | |
44290 | if (obj8) { | |
44291 | { | |
44292 | arg9 = wxString_in_helper(obj8); | |
44293 | if (arg9 == NULL) SWIG_fail; | |
44294 | temp9 = true; | |
44295 | } | |
44296 | } | |
44297 | { | |
44298 | if (!wxPyCheckForApp()) SWIG_fail; | |
44299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44300 | 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); | |
44301 | wxPyEndAllowThreads(__tstate); | |
44302 | if (PyErr_Occurred()) SWIG_fail; | |
44303 | } | |
44304 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 ); | |
44305 | { | |
44306 | if (temp3) | |
44307 | delete arg3; | |
44308 | } | |
44309 | { | |
44310 | if (temp4) | |
44311 | delete arg4; | |
44312 | } | |
44313 | { | |
44314 | if (temp9) | |
44315 | delete arg9; | |
44316 | } | |
44317 | return resultobj; | |
44318 | fail: | |
44319 | { | |
44320 | if (temp3) | |
44321 | delete arg3; | |
44322 | } | |
44323 | { | |
44324 | if (temp4) | |
44325 | delete arg4; | |
44326 | } | |
44327 | { | |
44328 | if (temp9) | |
44329 | delete arg9; | |
44330 | } | |
44331 | return NULL; | |
44332 | } | |
44333 | ||
44334 | ||
44335 | SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44336 | PyObject *resultobj = 0; | |
44337 | wxDirPickerCtrl *result = 0 ; | |
44338 | ||
44339 | if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail; | |
44340 | { | |
44341 | if (!wxPyCheckForApp()) SWIG_fail; | |
44342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44343 | result = (wxDirPickerCtrl *)new wxDirPickerCtrl(); | |
44344 | wxPyEndAllowThreads(__tstate); | |
44345 | if (PyErr_Occurred()) SWIG_fail; | |
44346 | } | |
44347 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 ); | |
44348 | return resultobj; | |
44349 | fail: | |
44350 | return NULL; | |
44351 | } | |
44352 | ||
44353 | ||
44354 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44355 | PyObject *resultobj = 0; | |
44356 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44357 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44358 | int arg3 = (int) -1 ; | |
44359 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
44360 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
44361 | wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ; | |
44362 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
44363 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
44364 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
44365 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
44366 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
44367 | long arg8 = (long) wxDIRP_DEFAULT_STYLE ; | |
44368 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
44369 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
44370 | wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ; | |
44371 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
44372 | bool result; | |
44373 | void *argp1 = 0 ; | |
44374 | int res1 = 0 ; | |
44375 | void *argp2 = 0 ; | |
44376 | int res2 = 0 ; | |
44377 | int val3 ; | |
44378 | int ecode3 = 0 ; | |
44379 | bool temp4 = false ; | |
44380 | bool temp5 = false ; | |
44381 | wxPoint temp6 ; | |
44382 | wxSize temp7 ; | |
44383 | long val8 ; | |
44384 | int ecode8 = 0 ; | |
44385 | void *argp9 = 0 ; | |
44386 | int res9 = 0 ; | |
44387 | bool temp10 = false ; | |
44388 | PyObject * obj0 = 0 ; | |
44389 | PyObject * obj1 = 0 ; | |
44390 | PyObject * obj2 = 0 ; | |
44391 | PyObject * obj3 = 0 ; | |
44392 | PyObject * obj4 = 0 ; | |
44393 | PyObject * obj5 = 0 ; | |
44394 | PyObject * obj6 = 0 ; | |
44395 | PyObject * obj7 = 0 ; | |
44396 | PyObject * obj8 = 0 ; | |
44397 | PyObject * obj9 = 0 ; | |
44398 | char * kwnames[] = { | |
44399 | (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
44400 | }; | |
44401 | ||
44402 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; | |
44403 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44404 | if (!SWIG_IsOK(res1)) { | |
44405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'"); | |
44406 | } | |
44407 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44408 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
44409 | if (!SWIG_IsOK(res2)) { | |
44410 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
44411 | } | |
44412 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
44413 | if (obj2) { | |
44414 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
44415 | if (!SWIG_IsOK(ecode3)) { | |
44416 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
44417 | } | |
44418 | arg3 = static_cast< int >(val3); | |
44419 | } | |
44420 | if (obj3) { | |
44421 | { | |
44422 | arg4 = wxString_in_helper(obj3); | |
44423 | if (arg4 == NULL) SWIG_fail; | |
44424 | temp4 = true; | |
44425 | } | |
44426 | } | |
44427 | if (obj4) { | |
44428 | { | |
44429 | arg5 = wxString_in_helper(obj4); | |
44430 | if (arg5 == NULL) SWIG_fail; | |
44431 | temp5 = true; | |
44432 | } | |
44433 | } | |
44434 | if (obj5) { | |
44435 | { | |
44436 | arg6 = &temp6; | |
44437 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
44438 | } | |
44439 | } | |
44440 | if (obj6) { | |
44441 | { | |
44442 | arg7 = &temp7; | |
44443 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
44444 | } | |
44445 | } | |
44446 | if (obj7) { | |
44447 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
44448 | if (!SWIG_IsOK(ecode8)) { | |
44449 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'"); | |
44450 | } | |
44451 | arg8 = static_cast< long >(val8); | |
44452 | } | |
44453 | if (obj8) { | |
44454 | res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0); | |
44455 | if (!SWIG_IsOK(res9)) { | |
44456 | SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
44457 | } | |
44458 | if (!argp9) { | |
44459 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'"); | |
44460 | } | |
44461 | arg9 = reinterpret_cast< wxValidator * >(argp9); | |
44462 | } | |
44463 | if (obj9) { | |
44464 | { | |
44465 | arg10 = wxString_in_helper(obj9); | |
44466 | if (arg10 == NULL) SWIG_fail; | |
44467 | temp10 = true; | |
44468 | } | |
44469 | } | |
44470 | { | |
44471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44472 | 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); | |
44473 | wxPyEndAllowThreads(__tstate); | |
44474 | if (PyErr_Occurred()) SWIG_fail; | |
44475 | } | |
44476 | { | |
44477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44478 | } | |
44479 | { | |
44480 | if (temp4) | |
44481 | delete arg4; | |
44482 | } | |
44483 | { | |
44484 | if (temp5) | |
44485 | delete arg5; | |
44486 | } | |
44487 | { | |
44488 | if (temp10) | |
44489 | delete arg10; | |
44490 | } | |
44491 | return resultobj; | |
44492 | fail: | |
44493 | { | |
44494 | if (temp4) | |
44495 | delete arg4; | |
44496 | } | |
44497 | { | |
44498 | if (temp5) | |
44499 | delete arg5; | |
44500 | } | |
44501 | { | |
44502 | if (temp10) | |
44503 | delete arg10; | |
44504 | } | |
44505 | return NULL; | |
44506 | } | |
44507 | ||
44508 | ||
44509 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44510 | PyObject *resultobj = 0; | |
44511 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44512 | wxString result; | |
44513 | void *argp1 = 0 ; | |
44514 | int res1 = 0 ; | |
44515 | PyObject *swig_obj[1] ; | |
44516 | ||
44517 | if (!args) SWIG_fail; | |
44518 | swig_obj[0] = args; | |
44519 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44520 | if (!SWIG_IsOK(res1)) { | |
44521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'"); | |
44522 | } | |
44523 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44524 | { | |
44525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44526 | result = ((wxDirPickerCtrl const *)arg1)->GetPath(); | |
44527 | wxPyEndAllowThreads(__tstate); | |
44528 | if (PyErr_Occurred()) SWIG_fail; | |
44529 | } | |
44530 | { | |
44531 | #if wxUSE_UNICODE | |
44532 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44533 | #else | |
44534 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44535 | #endif | |
44536 | } | |
44537 | return resultobj; | |
44538 | fail: | |
44539 | return NULL; | |
44540 | } | |
44541 | ||
44542 | ||
44543 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44544 | PyObject *resultobj = 0; | |
44545 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44546 | wxString *arg2 = 0 ; | |
44547 | void *argp1 = 0 ; | |
44548 | int res1 = 0 ; | |
44549 | bool temp2 = false ; | |
44550 | PyObject * obj0 = 0 ; | |
44551 | PyObject * obj1 = 0 ; | |
44552 | char * kwnames[] = { | |
44553 | (char *) "self",(char *) "str", NULL | |
44554 | }; | |
44555 | ||
44556 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44557 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44558 | if (!SWIG_IsOK(res1)) { | |
44559 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'"); | |
44560 | } | |
44561 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44562 | { | |
44563 | arg2 = wxString_in_helper(obj1); | |
44564 | if (arg2 == NULL) SWIG_fail; | |
44565 | temp2 = true; | |
44566 | } | |
44567 | { | |
44568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44569 | (arg1)->SetPath((wxString const &)*arg2); | |
44570 | wxPyEndAllowThreads(__tstate); | |
44571 | if (PyErr_Occurred()) SWIG_fail; | |
44572 | } | |
44573 | resultobj = SWIG_Py_Void(); | |
44574 | { | |
44575 | if (temp2) | |
44576 | delete arg2; | |
44577 | } | |
44578 | return resultobj; | |
44579 | fail: | |
44580 | { | |
44581 | if (temp2) | |
44582 | delete arg2; | |
44583 | } | |
44584 | return NULL; | |
44585 | } | |
44586 | ||
44587 | ||
b02396e8 RD |
44588 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
44589 | PyObject *resultobj = 0; | |
44590 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44591 | wxString *arg2 = 0 ; | |
44592 | bool result; | |
44593 | void *argp1 = 0 ; | |
44594 | int res1 = 0 ; | |
44595 | bool temp2 = false ; | |
44596 | PyObject * obj0 = 0 ; | |
44597 | PyObject * obj1 = 0 ; | |
44598 | char * kwnames[] = { | |
44599 | (char *) "self",(char *) "path", NULL | |
44600 | }; | |
44601 | ||
44602 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44603 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44604 | if (!SWIG_IsOK(res1)) { | |
44605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'"); | |
44606 | } | |
44607 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44608 | { | |
44609 | arg2 = wxString_in_helper(obj1); | |
44610 | if (arg2 == NULL) SWIG_fail; | |
44611 | temp2 = true; | |
44612 | } | |
44613 | { | |
44614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44615 | result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2); | |
44616 | wxPyEndAllowThreads(__tstate); | |
44617 | if (PyErr_Occurred()) SWIG_fail; | |
44618 | } | |
44619 | { | |
44620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44621 | } | |
44622 | { | |
44623 | if (temp2) | |
44624 | delete arg2; | |
44625 | } | |
44626 | return resultobj; | |
44627 | fail: | |
44628 | { | |
44629 | if (temp2) | |
44630 | delete arg2; | |
44631 | } | |
44632 | return NULL; | |
44633 | } | |
44634 | ||
44635 | ||
44636 | SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44637 | PyObject *resultobj = 0; | |
44638 | wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ; | |
44639 | wxString result; | |
44640 | void *argp1 = 0 ; | |
44641 | int res1 = 0 ; | |
44642 | PyObject *swig_obj[1] ; | |
44643 | ||
44644 | if (!args) SWIG_fail; | |
44645 | swig_obj[0] = args; | |
44646 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 ); | |
44647 | if (!SWIG_IsOK(res1)) { | |
44648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'"); | |
44649 | } | |
44650 | arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1); | |
44651 | { | |
44652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44653 | result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue(); | |
44654 | wxPyEndAllowThreads(__tstate); | |
44655 | if (PyErr_Occurred()) SWIG_fail; | |
44656 | } | |
44657 | { | |
44658 | #if wxUSE_UNICODE | |
44659 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44660 | #else | |
44661 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44662 | #endif | |
44663 | } | |
44664 | return resultobj; | |
44665 | fail: | |
44666 | return NULL; | |
44667 | } | |
44668 | ||
44669 | ||
b850e7f3 RD |
44670 | SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
44671 | PyObject *obj; | |
44672 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
44673 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj)); | |
44674 | return SWIG_Py_Void(); | |
44675 | } | |
44676 | ||
44677 | SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44678 | return SWIG_Python_InitShadowInstance(args); | |
44679 | } | |
44680 | ||
44681 | SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44682 | PyObject *resultobj = 0; | |
44683 | wxEventType arg1 ; | |
44684 | wxObject *arg2 = (wxObject *) 0 ; | |
44685 | int arg3 ; | |
44686 | wxString *arg4 = 0 ; | |
44687 | wxFileDirPickerEvent *result = 0 ; | |
44688 | int val1 ; | |
44689 | int ecode1 = 0 ; | |
44690 | void *argp2 = 0 ; | |
44691 | int res2 = 0 ; | |
44692 | int val3 ; | |
44693 | int ecode3 = 0 ; | |
44694 | bool temp4 = false ; | |
44695 | PyObject * obj0 = 0 ; | |
44696 | PyObject * obj1 = 0 ; | |
44697 | PyObject * obj2 = 0 ; | |
44698 | PyObject * obj3 = 0 ; | |
44699 | char * kwnames[] = { | |
44700 | (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL | |
44701 | }; | |
44702 | ||
44703 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
44704 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
44705 | if (!SWIG_IsOK(ecode1)) { | |
44706 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
44707 | } | |
44708 | arg1 = static_cast< wxEventType >(val1); | |
44709 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 ); | |
44710 | if (!SWIG_IsOK(res2)) { | |
44711 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'"); | |
44712 | } | |
44713 | arg2 = reinterpret_cast< wxObject * >(argp2); | |
44714 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
44715 | if (!SWIG_IsOK(ecode3)) { | |
44716 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'"); | |
44717 | } | |
44718 | arg3 = static_cast< int >(val3); | |
44719 | { | |
44720 | arg4 = wxString_in_helper(obj3); | |
44721 | if (arg4 == NULL) SWIG_fail; | |
44722 | temp4 = true; | |
44723 | } | |
44724 | { | |
44725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44726 | result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4); | |
44727 | wxPyEndAllowThreads(__tstate); | |
44728 | if (PyErr_Occurred()) SWIG_fail; | |
44729 | } | |
44730 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 ); | |
44731 | { | |
44732 | if (temp4) | |
44733 | delete arg4; | |
44734 | } | |
44735 | return resultobj; | |
44736 | fail: | |
44737 | { | |
44738 | if (temp4) | |
44739 | delete arg4; | |
44740 | } | |
44741 | return NULL; | |
44742 | } | |
44743 | ||
44744 | ||
44745 | SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44746 | PyObject *resultobj = 0; | |
44747 | wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ; | |
44748 | wxString result; | |
44749 | void *argp1 = 0 ; | |
44750 | int res1 = 0 ; | |
44751 | PyObject *swig_obj[1] ; | |
44752 | ||
44753 | if (!args) SWIG_fail; | |
44754 | swig_obj[0] = args; | |
44755 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 ); | |
44756 | if (!SWIG_IsOK(res1)) { | |
44757 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'"); | |
44758 | } | |
44759 | arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1); | |
44760 | { | |
44761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44762 | result = ((wxFileDirPickerEvent const *)arg1)->GetPath(); | |
44763 | wxPyEndAllowThreads(__tstate); | |
44764 | if (PyErr_Occurred()) SWIG_fail; | |
44765 | } | |
44766 | { | |
44767 | #if wxUSE_UNICODE | |
44768 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
44769 | #else | |
44770 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
44771 | #endif | |
44772 | } | |
44773 | return resultobj; | |
44774 | fail: | |
44775 | return NULL; | |
44776 | } | |
44777 | ||
44778 | ||
44779 | SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44780 | PyObject *resultobj = 0; | |
44781 | wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ; | |
44782 | wxString *arg2 = 0 ; | |
44783 | void *argp1 = 0 ; | |
44784 | int res1 = 0 ; | |
44785 | bool temp2 = false ; | |
44786 | PyObject * obj0 = 0 ; | |
44787 | PyObject * obj1 = 0 ; | |
44788 | char * kwnames[] = { | |
44789 | (char *) "self",(char *) "p", NULL | |
44790 | }; | |
44791 | ||
44792 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
44793 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 ); | |
44794 | if (!SWIG_IsOK(res1)) { | |
44795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'"); | |
44796 | } | |
44797 | arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1); | |
44798 | { | |
44799 | arg2 = wxString_in_helper(obj1); | |
44800 | if (arg2 == NULL) SWIG_fail; | |
44801 | temp2 = true; | |
44802 | } | |
44803 | { | |
44804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44805 | (arg1)->SetPath((wxString const &)*arg2); | |
44806 | wxPyEndAllowThreads(__tstate); | |
44807 | if (PyErr_Occurred()) SWIG_fail; | |
44808 | } | |
44809 | resultobj = SWIG_Py_Void(); | |
44810 | { | |
44811 | if (temp2) | |
44812 | delete arg2; | |
44813 | } | |
44814 | return resultobj; | |
44815 | fail: | |
44816 | { | |
44817 | if (temp2) | |
44818 | delete arg2; | |
44819 | } | |
44820 | return NULL; | |
44821 | } | |
44822 | ||
44823 | ||
44824 | SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44825 | PyObject *obj; | |
44826 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
44827 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj)); | |
44828 | return SWIG_Py_Void(); | |
44829 | } | |
44830 | ||
44831 | SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44832 | return SWIG_Python_InitShadowInstance(args); | |
44833 | } | |
44834 | ||
44835 | SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) { | |
44836 | SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only."); | |
44837 | return 1; | |
44838 | } | |
44839 | ||
44840 | ||
44841 | SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) { | |
44842 | PyObject *pyobj = 0; | |
44843 | ||
44844 | { | |
44845 | #if wxUSE_UNICODE | |
44846 | pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len()); | |
44847 | #else | |
44848 | pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len()); | |
44849 | #endif | |
44850 | } | |
44851 | return pyobj; | |
44852 | } | |
44853 | ||
44854 | ||
44855 | SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44856 | PyObject *resultobj = 0; | |
44857 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44858 | int arg2 = (int) -1 ; | |
44859 | wxFont const &arg3_defvalue = *wxNORMAL_FONT ; | |
44860 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
44861 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
44862 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
44863 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
44864 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
44865 | long arg6 = (long) wxFNTP_DEFAULT_STYLE ; | |
44866 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
44867 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
44868 | wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ; | |
44869 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
44870 | wxFontPickerCtrl *result = 0 ; | |
44871 | void *argp1 = 0 ; | |
44872 | int res1 = 0 ; | |
44873 | int val2 ; | |
44874 | int ecode2 = 0 ; | |
44875 | void *argp3 = 0 ; | |
44876 | int res3 = 0 ; | |
44877 | wxPoint temp4 ; | |
44878 | wxSize temp5 ; | |
44879 | long val6 ; | |
44880 | int ecode6 = 0 ; | |
44881 | void *argp7 = 0 ; | |
44882 | int res7 = 0 ; | |
44883 | bool temp8 = false ; | |
44884 | PyObject * obj0 = 0 ; | |
44885 | PyObject * obj1 = 0 ; | |
44886 | PyObject * obj2 = 0 ; | |
44887 | PyObject * obj3 = 0 ; | |
44888 | PyObject * obj4 = 0 ; | |
44889 | PyObject * obj5 = 0 ; | |
44890 | PyObject * obj6 = 0 ; | |
44891 | PyObject * obj7 = 0 ; | |
44892 | char * kwnames[] = { | |
44893 | (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
44894 | }; | |
44895 | ||
44896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
44897 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
44898 | if (!SWIG_IsOK(res1)) { | |
44899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
44900 | } | |
44901 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
44902 | if (obj1) { | |
44903 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
44904 | if (!SWIG_IsOK(ecode2)) { | |
44905 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'"); | |
44906 | } | |
44907 | arg2 = static_cast< int >(val2); | |
44908 | } | |
44909 | if (obj2) { | |
44910 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
44911 | if (!SWIG_IsOK(res3)) { | |
44912 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
44913 | } | |
44914 | if (!argp3) { | |
44915 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
44916 | } | |
44917 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
44918 | } | |
44919 | if (obj3) { | |
44920 | { | |
44921 | arg4 = &temp4; | |
44922 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
44923 | } | |
44924 | } | |
44925 | if (obj4) { | |
44926 | { | |
44927 | arg5 = &temp5; | |
44928 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
44929 | } | |
44930 | } | |
44931 | if (obj5) { | |
44932 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
44933 | if (!SWIG_IsOK(ecode6)) { | |
44934 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'"); | |
44935 | } | |
44936 | arg6 = static_cast< long >(val6); | |
44937 | } | |
44938 | if (obj6) { | |
44939 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
44940 | if (!SWIG_IsOK(res7)) { | |
44941 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
44942 | } | |
44943 | if (!argp7) { | |
44944 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
44945 | } | |
44946 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
44947 | } | |
44948 | if (obj7) { | |
44949 | { | |
44950 | arg8 = wxString_in_helper(obj7); | |
44951 | if (arg8 == NULL) SWIG_fail; | |
44952 | temp8 = true; | |
44953 | } | |
44954 | } | |
44955 | { | |
44956 | if (!wxPyCheckForApp()) SWIG_fail; | |
44957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44958 | result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
44959 | wxPyEndAllowThreads(__tstate); | |
44960 | if (PyErr_Occurred()) SWIG_fail; | |
44961 | } | |
44962 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 ); | |
44963 | { | |
44964 | if (temp8) | |
44965 | delete arg8; | |
44966 | } | |
44967 | return resultobj; | |
44968 | fail: | |
44969 | { | |
44970 | if (temp8) | |
44971 | delete arg8; | |
44972 | } | |
44973 | return NULL; | |
44974 | } | |
44975 | ||
44976 | ||
44977 | SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
44978 | PyObject *resultobj = 0; | |
44979 | wxFontPickerCtrl *result = 0 ; | |
44980 | ||
44981 | if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail; | |
44982 | { | |
44983 | if (!wxPyCheckForApp()) SWIG_fail; | |
44984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44985 | result = (wxFontPickerCtrl *)new wxFontPickerCtrl(); | |
44986 | wxPyEndAllowThreads(__tstate); | |
44987 | if (PyErr_Occurred()) SWIG_fail; | |
44988 | } | |
44989 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 ); | |
44990 | return resultobj; | |
44991 | fail: | |
44992 | return NULL; | |
44993 | } | |
44994 | ||
44995 | ||
44996 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
44997 | PyObject *resultobj = 0; | |
44998 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
44999 | wxWindow *arg2 = (wxWindow *) 0 ; | |
45000 | int arg3 = (int) -1 ; | |
45001 | wxFont const &arg4_defvalue = *wxNORMAL_FONT ; | |
45002 | wxFont *arg4 = (wxFont *) &arg4_defvalue ; | |
45003 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
45004 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
45005 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
45006 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
45007 | long arg7 = (long) wxFNTP_DEFAULT_STYLE ; | |
45008 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
45009 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
45010 | wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ; | |
45011 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
45012 | bool result; | |
45013 | void *argp1 = 0 ; | |
45014 | int res1 = 0 ; | |
45015 | void *argp2 = 0 ; | |
45016 | int res2 = 0 ; | |
45017 | int val3 ; | |
45018 | int ecode3 = 0 ; | |
45019 | void *argp4 = 0 ; | |
45020 | int res4 = 0 ; | |
45021 | wxPoint temp5 ; | |
45022 | wxSize temp6 ; | |
45023 | long val7 ; | |
45024 | int ecode7 = 0 ; | |
45025 | void *argp8 = 0 ; | |
45026 | int res8 = 0 ; | |
45027 | bool temp9 = false ; | |
45028 | PyObject * obj0 = 0 ; | |
45029 | PyObject * obj1 = 0 ; | |
45030 | PyObject * obj2 = 0 ; | |
45031 | PyObject * obj3 = 0 ; | |
45032 | PyObject * obj4 = 0 ; | |
45033 | PyObject * obj5 = 0 ; | |
45034 | PyObject * obj6 = 0 ; | |
45035 | PyObject * obj7 = 0 ; | |
45036 | PyObject * obj8 = 0 ; | |
45037 | char * kwnames[] = { | |
45038 | (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
45039 | }; | |
45040 | ||
45041 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
45042 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45043 | if (!SWIG_IsOK(res1)) { | |
45044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'"); | |
45045 | } | |
45046 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45047 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
45048 | if (!SWIG_IsOK(res2)) { | |
45049 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
45050 | } | |
45051 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
45052 | if (obj2) { | |
45053 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
45054 | if (!SWIG_IsOK(ecode3)) { | |
45055 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
45056 | } | |
45057 | arg3 = static_cast< int >(val3); | |
45058 | } | |
45059 | if (obj3) { | |
45060 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0); | |
45061 | if (!SWIG_IsOK(res4)) { | |
45062 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'"); | |
45063 | } | |
45064 | if (!argp4) { | |
45065 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'"); | |
45066 | } | |
45067 | arg4 = reinterpret_cast< wxFont * >(argp4); | |
45068 | } | |
45069 | if (obj4) { | |
45070 | { | |
45071 | arg5 = &temp5; | |
45072 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
45073 | } | |
45074 | } | |
45075 | if (obj5) { | |
45076 | { | |
45077 | arg6 = &temp6; | |
45078 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
45079 | } | |
45080 | } | |
45081 | if (obj6) { | |
45082 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
45083 | if (!SWIG_IsOK(ecode7)) { | |
45084 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
45085 | } | |
45086 | arg7 = static_cast< long >(val7); | |
45087 | } | |
45088 | if (obj7) { | |
45089 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
45090 | if (!SWIG_IsOK(res8)) { | |
45091 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
45092 | } | |
45093 | if (!argp8) { | |
45094 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
45095 | } | |
45096 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
45097 | } | |
45098 | if (obj8) { | |
45099 | { | |
45100 | arg9 = wxString_in_helper(obj8); | |
45101 | if (arg9 == NULL) SWIG_fail; | |
45102 | temp9 = true; | |
45103 | } | |
45104 | } | |
45105 | { | |
45106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45107 | result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
45108 | wxPyEndAllowThreads(__tstate); | |
45109 | if (PyErr_Occurred()) SWIG_fail; | |
45110 | } | |
45111 | { | |
45112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
45113 | } | |
45114 | { | |
45115 | if (temp9) | |
45116 | delete arg9; | |
45117 | } | |
45118 | return resultobj; | |
45119 | fail: | |
45120 | { | |
45121 | if (temp9) | |
45122 | delete arg9; | |
45123 | } | |
45124 | return NULL; | |
45125 | } | |
45126 | ||
45127 | ||
45128 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45129 | PyObject *resultobj = 0; | |
45130 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45131 | wxFont result; | |
45132 | void *argp1 = 0 ; | |
45133 | int res1 = 0 ; | |
45134 | PyObject *swig_obj[1] ; | |
45135 | ||
45136 | if (!args) SWIG_fail; | |
45137 | swig_obj[0] = args; | |
45138 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45139 | if (!SWIG_IsOK(res1)) { | |
45140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'"); | |
45141 | } | |
45142 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45143 | { | |
45144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45145 | result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont(); | |
45146 | wxPyEndAllowThreads(__tstate); | |
45147 | if (PyErr_Occurred()) SWIG_fail; | |
45148 | } | |
45149 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
45150 | return resultobj; | |
45151 | fail: | |
45152 | return NULL; | |
45153 | } | |
45154 | ||
45155 | ||
45156 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45157 | PyObject *resultobj = 0; | |
45158 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45159 | wxFont *arg2 = 0 ; | |
45160 | void *argp1 = 0 ; | |
45161 | int res1 = 0 ; | |
45162 | void *argp2 = 0 ; | |
45163 | int res2 = 0 ; | |
45164 | PyObject * obj0 = 0 ; | |
45165 | PyObject * obj1 = 0 ; | |
45166 | char * kwnames[] = { | |
45167 | (char *) "self",(char *) "f", NULL | |
45168 | }; | |
45169 | ||
45170 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
45171 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45172 | if (!SWIG_IsOK(res1)) { | |
45173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'"); | |
45174 | } | |
45175 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45176 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
45177 | if (!SWIG_IsOK(res2)) { | |
45178 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
45179 | } | |
45180 | if (!argp2) { | |
45181 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
45182 | } | |
45183 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
45184 | { | |
45185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45186 | (arg1)->SetSelectedFont((wxFont const &)*arg2); | |
45187 | wxPyEndAllowThreads(__tstate); | |
45188 | if (PyErr_Occurred()) SWIG_fail; | |
45189 | } | |
45190 | resultobj = SWIG_Py_Void(); | |
45191 | return resultobj; | |
45192 | fail: | |
45193 | return NULL; | |
45194 | } | |
45195 | ||
45196 | ||
45197 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45198 | PyObject *resultobj = 0; | |
45199 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45200 | unsigned int arg2 ; | |
45201 | void *argp1 = 0 ; | |
45202 | int res1 = 0 ; | |
45203 | unsigned int val2 ; | |
45204 | int ecode2 = 0 ; | |
45205 | PyObject * obj0 = 0 ; | |
45206 | PyObject * obj1 = 0 ; | |
45207 | char * kwnames[] = { | |
45208 | (char *) "self",(char *) "max", NULL | |
45209 | }; | |
45210 | ||
45211 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
45212 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45213 | if (!SWIG_IsOK(res1)) { | |
45214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'"); | |
45215 | } | |
45216 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45217 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); | |
45218 | if (!SWIG_IsOK(ecode2)) { | |
45219 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'"); | |
45220 | } | |
45221 | arg2 = static_cast< unsigned int >(val2); | |
45222 | { | |
45223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45224 | (arg1)->SetMaxPointSize(arg2); | |
45225 | wxPyEndAllowThreads(__tstate); | |
45226 | if (PyErr_Occurred()) SWIG_fail; | |
45227 | } | |
45228 | resultobj = SWIG_Py_Void(); | |
45229 | return resultobj; | |
45230 | fail: | |
45231 | return NULL; | |
45232 | } | |
45233 | ||
45234 | ||
45235 | SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45236 | PyObject *resultobj = 0; | |
45237 | wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ; | |
45238 | unsigned int result; | |
45239 | void *argp1 = 0 ; | |
45240 | int res1 = 0 ; | |
45241 | PyObject *swig_obj[1] ; | |
45242 | ||
45243 | if (!args) SWIG_fail; | |
45244 | swig_obj[0] = args; | |
45245 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 ); | |
45246 | if (!SWIG_IsOK(res1)) { | |
45247 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'"); | |
45248 | } | |
45249 | arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1); | |
45250 | { | |
45251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45252 | result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize(); | |
45253 | wxPyEndAllowThreads(__tstate); | |
45254 | if (PyErr_Occurred()) SWIG_fail; | |
45255 | } | |
45256 | resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); | |
45257 | return resultobj; | |
45258 | fail: | |
45259 | return NULL; | |
45260 | } | |
45261 | ||
45262 | ||
45263 | SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45264 | PyObject *obj; | |
45265 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
45266 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj)); | |
45267 | return SWIG_Py_Void(); | |
45268 | } | |
45269 | ||
45270 | SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45271 | return SWIG_Python_InitShadowInstance(args); | |
45272 | } | |
45273 | ||
45274 | SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45275 | PyObject *resultobj = 0; | |
45276 | wxObject *arg1 = (wxObject *) 0 ; | |
45277 | int arg2 ; | |
45278 | wxFont *arg3 = 0 ; | |
45279 | wxFontPickerEvent *result = 0 ; | |
45280 | void *argp1 = 0 ; | |
45281 | int res1 = 0 ; | |
45282 | int val2 ; | |
45283 | int ecode2 = 0 ; | |
45284 | void *argp3 = 0 ; | |
45285 | int res3 = 0 ; | |
45286 | PyObject * obj0 = 0 ; | |
45287 | PyObject * obj1 = 0 ; | |
45288 | PyObject * obj2 = 0 ; | |
45289 | char * kwnames[] = { | |
45290 | (char *) "generator",(char *) "id",(char *) "f", NULL | |
45291 | }; | |
45292 | ||
45293 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
45294 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 ); | |
45295 | if (!SWIG_IsOK(res1)) { | |
45296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'"); | |
45297 | } | |
45298 | arg1 = reinterpret_cast< wxObject * >(argp1); | |
45299 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
45300 | if (!SWIG_IsOK(ecode2)) { | |
45301 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'"); | |
45302 | } | |
45303 | arg2 = static_cast< int >(val2); | |
45304 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0); | |
45305 | if (!SWIG_IsOK(res3)) { | |
45306 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
45307 | } | |
45308 | if (!argp3) { | |
45309 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'"); | |
45310 | } | |
45311 | arg3 = reinterpret_cast< wxFont * >(argp3); | |
45312 | { | |
45313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45314 | result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3); | |
45315 | wxPyEndAllowThreads(__tstate); | |
45316 | if (PyErr_Occurred()) SWIG_fail; | |
45317 | } | |
45318 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 ); | |
45319 | return resultobj; | |
45320 | fail: | |
45321 | return NULL; | |
45322 | } | |
45323 | ||
45324 | ||
45325 | SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45326 | PyObject *resultobj = 0; | |
45327 | wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ; | |
45328 | wxFont result; | |
45329 | void *argp1 = 0 ; | |
45330 | int res1 = 0 ; | |
45331 | PyObject *swig_obj[1] ; | |
45332 | ||
45333 | if (!args) SWIG_fail; | |
45334 | swig_obj[0] = args; | |
45335 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 ); | |
45336 | if (!SWIG_IsOK(res1)) { | |
45337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'"); | |
45338 | } | |
45339 | arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1); | |
45340 | { | |
45341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45342 | result = ((wxFontPickerEvent const *)arg1)->GetFont(); | |
45343 | wxPyEndAllowThreads(__tstate); | |
45344 | if (PyErr_Occurred()) SWIG_fail; | |
45345 | } | |
45346 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
45347 | return resultobj; | |
45348 | fail: | |
45349 | return NULL; | |
45350 | } | |
45351 | ||
45352 | ||
45353 | SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
45354 | PyObject *resultobj = 0; | |
45355 | wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ; | |
45356 | wxFont *arg2 = 0 ; | |
45357 | void *argp1 = 0 ; | |
45358 | int res1 = 0 ; | |
45359 | void *argp2 = 0 ; | |
45360 | int res2 = 0 ; | |
45361 | PyObject * obj0 = 0 ; | |
45362 | PyObject * obj1 = 0 ; | |
45363 | char * kwnames[] = { | |
45364 | (char *) "self",(char *) "c", NULL | |
45365 | }; | |
45366 | ||
45367 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
45368 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 ); | |
45369 | if (!SWIG_IsOK(res1)) { | |
45370 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'"); | |
45371 | } | |
45372 | arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1); | |
45373 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
45374 | if (!SWIG_IsOK(res2)) { | |
45375 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
45376 | } | |
45377 | if (!argp2) { | |
45378 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
45379 | } | |
45380 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
45381 | { | |
45382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45383 | (arg1)->SetFont((wxFont const &)*arg2); | |
45384 | wxPyEndAllowThreads(__tstate); | |
45385 | if (PyErr_Occurred()) SWIG_fail; | |
45386 | } | |
45387 | resultobj = SWIG_Py_Void(); | |
45388 | return resultobj; | |
45389 | fail: | |
45390 | return NULL; | |
45391 | } | |
45392 | ||
45393 | ||
45394 | SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45395 | PyObject *obj; | |
45396 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
45397 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj)); | |
45398 | return SWIG_Py_Void(); | |
45399 | } | |
45400 | ||
45401 | SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
45402 | return SWIG_Python_InitShadowInstance(args); | |
45403 | } | |
45404 | ||
45405 | static PyMethodDef SwigMethods[] = { | |
45406 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45407 | { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL}, | |
45408 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45409 | { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL}, | |
45410 | { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL}, | |
45411 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45412 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL}, | |
45413 | { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL}, | |
45414 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45415 | { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL}, | |
45416 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45417 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL}, | |
45418 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL}, | |
45419 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL}, | |
45420 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL}, | |
45421 | { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL}, | |
45422 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45423 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45424 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45425 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45426 | { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45427 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45428 | { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL}, | |
45429 | { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL}, | |
45430 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL}, | |
45431 | { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL}, | |
45432 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45433 | { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL}, | |
45434 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45435 | { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL}, | |
45436 | { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL}, | |
45437 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45438 | { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL}, | |
45439 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45440 | { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL}, | |
45441 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL}, | |
45442 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45443 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL}, | |
45444 | { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL}, | |
45445 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45446 | { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL}, | |
45447 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45448 | { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL}, | |
45449 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45450 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL}, | |
45451 | { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL}, | |
45452 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45453 | { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL}, | |
45454 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45455 | { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL}, | |
45456 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45457 | { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL}, | |
45458 | { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL}, | |
45459 | { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL}, | |
45460 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45461 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL}, | |
45462 | { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL}, | |
45463 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45464 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45465 | { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL}, | |
45466 | { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL}, | |
45467 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45468 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45469 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45470 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL}, | |
45471 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45472 | { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL}, | |
45473 | { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL}, | |
45474 | { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL}, | |
45475 | { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL}, | |
45476 | { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL}, | |
45477 | { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL}, | |
45478 | { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL}, | |
45479 | { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL}, | |
45480 | { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL}, | |
45481 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45482 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL}, | |
45483 | { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL}, | |
45484 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45485 | { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL}, | |
45486 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45487 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45488 | { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL}, | |
45489 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45490 | { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL}, | |
ae5bc7f3 | 45491 | { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL}, |
b850e7f3 RD |
45492 | { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL}, |
45493 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45494 | { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL}, | |
45495 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45496 | { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL}, | |
45497 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45498 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL}, | |
45499 | { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL}, | |
45500 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45501 | { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL}, | |
45502 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45503 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45504 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL}, | |
45505 | { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL}, | |
45506 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45507 | { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL}, | |
45508 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45509 | { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL}, | |
45510 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL}, | |
45511 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45512 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL}, | |
45513 | { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL}, | |
45514 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45515 | { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL}, | |
45516 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45517 | { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45518 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45519 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL}, | |
45520 | { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL}, | |
45521 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45522 | { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL}, | |
45523 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45524 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL}, | |
45525 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45526 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45527 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45528 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL}, | |
45529 | { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL}, | |
45530 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45531 | { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL}, | |
45532 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45533 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45534 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45535 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45536 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45537 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45538 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45539 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45540 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45541 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45542 | { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL}, | |
45543 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45544 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45545 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45546 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45547 | { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL}, | |
45548 | { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45549 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45550 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45551 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45552 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45553 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL}, | |
45554 | { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL}, | |
45555 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45556 | { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL}, | |
45557 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45558 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45559 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45560 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL}, | |
45561 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL}, | |
45562 | { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL}, | |
45563 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45564 | { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL}, | |
45565 | { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL}, | |
45566 | { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45567 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45568 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45569 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45570 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45571 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45572 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45573 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45574 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45575 | { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL}, | |
45576 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL}, | |
45577 | { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL}, | |
45578 | { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL}, | |
45579 | { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL}, | |
45580 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL}, | |
45581 | { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL}, | |
45582 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45583 | { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL}, | |
45584 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL}, | |
45585 | { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL}, | |
45586 | { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL}, | |
45587 | { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL}, | |
45588 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL}, | |
45589 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL}, | |
45590 | { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL}, | |
45591 | { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL}, | |
45592 | { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL}, | |
45593 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45594 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL}, | |
45595 | { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL}, | |
45596 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45597 | { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL}, | |
45598 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45599 | { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL}, | |
45600 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
45601 | { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL}, |
45602 | { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b850e7f3 RD |
45603 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, |
45604 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45605 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45606 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL}, | |
45607 | { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL}, | |
45608 | { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL}, | |
45609 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL}, | |
45610 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL}, | |
45611 | { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL}, | |
45612 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL}, | |
45613 | { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL}, | |
45614 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45615 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45616 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45617 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45618 | { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL}, | |
45619 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL}, | |
b02396e8 | 45620 | { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL}, |
b850e7f3 RD |
45621 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, |
45622 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45623 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45624 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45625 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45626 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45627 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45628 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL}, | |
45629 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45630 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45631 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45632 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45633 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45634 | { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL}, | |
45635 | { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL}, | |
45636 | { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL}, | |
45637 | { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL}, | |
45638 | { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL}, | |
45639 | { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL}, | |
45640 | { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL}, | |
45641 | { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL}, | |
45642 | { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL}, | |
45643 | { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL}, | |
45644 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45645 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL}, | |
45646 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL}, | |
45647 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL}, | |
45648 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45649 | { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL}, | |
45650 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 45651 | { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL}, |
b850e7f3 RD |
45652 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL}, |
45653 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45654 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45655 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL}, | |
45656 | { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL}, | |
45657 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45658 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL}, | |
45659 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL}, | |
45660 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL}, | |
45661 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL}, | |
45662 | { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL}, | |
45663 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45664 | { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL}, | |
45665 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45666 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL}, | |
45667 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL}, | |
45668 | { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL}, | |
45669 | { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL}, | |
45670 | { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL}, | |
45671 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45672 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45673 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL}, | |
45674 | { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL}, | |
45675 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45676 | { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL}, | |
45677 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45678 | { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL}, | |
45679 | { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL}, | |
45680 | { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL}, | |
45681 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45682 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45683 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45684 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45685 | { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL}, | |
45686 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45687 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL}, | |
45688 | { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL}, | |
45689 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45690 | { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL}, | |
45691 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45692 | { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL}, | |
45693 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45694 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45695 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45696 | { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL}, | |
45697 | { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL}, | |
45698 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45699 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45700 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL}, | |
45701 | { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL}, | |
45702 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45703 | { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL}, | |
45704 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45705 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL}, | |
45706 | { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL}, | |
45707 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45708 | { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL}, | |
45709 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45710 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45711 | { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL}, | |
45712 | { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL}, | |
45713 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45714 | { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL}, | |
45715 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45716 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45717 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45718 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45719 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45720 | { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45721 | { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45722 | { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL}, | |
45723 | { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL}, | |
45724 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45725 | { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45726 | { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45727 | { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45728 | { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45729 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45730 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL}, | |
45731 | { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL}, | |
45732 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45733 | { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL}, | |
45734 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45735 | { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL}, | |
45736 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45737 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45738 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL}, | |
45739 | { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL}, | |
45740 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45741 | { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL}, | |
45742 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45743 | { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL}, | |
45744 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45745 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45746 | { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL}, | |
45747 | { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL}, | |
45748 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45749 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45750 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45751 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45752 | { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL}, | |
45753 | { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL}, | |
45754 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45755 | { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL}, | |
45756 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45757 | { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL}, | |
45758 | { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL}, | |
45759 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45760 | { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL}, | |
45761 | { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL}, | |
45762 | { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL}, | |
45763 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45764 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45765 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL}, | |
45766 | { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL}, | |
45767 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45768 | { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL}, | |
45769 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45770 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45771 | { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL}, | |
45772 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45773 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL}, | |
45774 | { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL}, | |
45775 | { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL}, | |
45776 | { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45777 | { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL}, | |
45778 | { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL}, | |
45779 | { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45780 | { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45781 | { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45782 | { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45783 | { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL}, | |
45784 | { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45785 | { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45786 | { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45787 | { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45788 | { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL}, | |
45789 | { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 45790 | { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL}, |
e9d6f3a4 RD |
45791 | { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL}, |
45792 | { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL}, | |
0085ce49 RD |
45793 | { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
45794 | { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL}, | |
e9d6f3a4 | 45795 | { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL}, |
0085ce49 RD |
45796 | { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL}, |
45797 | { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45798 | { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL}, | |
45799 | { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45800 | { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45801 | { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 45802 | { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 45803 | { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
704eda0c | 45804 | { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
45805 | { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
45806 | { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL}, | |
45807 | { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45808 | { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL}, | |
45809 | { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45810 | { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL}, | |
45811 | { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45812 | { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL}, | |
45813 | { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL}, | |
45814 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45815 | { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL}, | |
45816 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45817 | { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL}, | |
45818 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45819 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
45820 | { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL}, |
45821 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
45822 | { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
45823 | { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
45824 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL}, |
45825 | { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL}, | |
45826 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45827 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL}, | |
45828 | { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL}, | |
45829 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45830 | { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL}, | |
45831 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45832 | { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL}, | |
45833 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL}, | |
45834 | { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL}, | |
45835 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45836 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL}, | |
45837 | { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL}, | |
45838 | { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45839 | { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL}, | |
45840 | { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45841 | { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL}, | |
45842 | { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL}, | |
45843 | { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL}, | |
45844 | { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45845 | { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL}, | |
45846 | { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL}, | |
45847 | { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45848 | { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL}, | |
45849 | { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45850 | { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45851 | { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45852 | { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45853 | { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45854 | { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45855 | { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45856 | { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL}, | |
45857 | { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL}, | |
45858 | { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL}, | |
45859 | { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45860 | { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL}, | |
45861 | { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL}, | |
45862 | { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45863 | { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL}, | |
45864 | { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45865 | { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL}, | |
45866 | { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL}, | |
45867 | { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL}, | |
45868 | { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL}, | |
45869 | { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45870 | { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL}, | |
45871 | { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL}, | |
45872 | { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL}, | |
45873 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL}, | |
45874 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL}, | |
45875 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL}, | |
45876 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL}, | |
45877 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL}, | |
45878 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL}, | |
45879 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL}, | |
45880 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL}, | |
45881 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL}, | |
45882 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL}, | |
45883 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL}, | |
45884 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL}, | |
45885 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL}, | |
45886 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL}, | |
45887 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL}, | |
45888 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL}, | |
45889 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45890 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL}, | |
45891 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45892 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45893 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45894 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45895 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45896 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45897 | { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL}, | |
45898 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45899 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL}, | |
45900 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45901 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL}, | |
45902 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45903 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45904 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45905 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45906 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45907 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45908 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45909 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL}, | |
45910 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45911 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45912 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45913 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45914 | { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL}, | |
45915 | { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL}, | |
45916 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45917 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45918 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45919 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45920 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45921 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45922 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45923 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45924 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45925 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45926 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45927 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45928 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45929 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45930 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45931 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45932 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL}, | |
45933 | { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL}, | |
45934 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL}, | |
45935 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL}, | |
45936 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45937 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45938 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL}, | |
45939 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL}, | |
45940 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45941 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL}, | |
45942 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL}, | |
45943 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45944 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45945 | { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL}, | |
45946 | { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL}, | |
45947 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL}, | |
45948 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45949 | { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL}, | |
45950 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
45951 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
45952 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL}, | |
45953 | { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL}, | |
45954 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45955 | { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL}, | |
45956 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45957 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45958 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45959 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL}, | |
45960 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL}, | |
45961 | { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL}, | |
45962 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL}, | |
45963 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL}, | |
45964 | { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL}, | |
45965 | { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45966 | { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL}, | |
45967 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL}, | |
45968 | { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL}, | |
45969 | { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL}, | |
45970 | { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL}, | |
45971 | { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL}, | |
45972 | { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL}, | |
45973 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45974 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45975 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45976 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45977 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45978 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45979 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45980 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45981 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45982 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45983 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45984 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45985 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45986 | { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL}, | |
45987 | { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL}, | |
45988 | { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL}, | |
45989 | { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL}, | |
45990 | { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL}, | |
45991 | { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL}, | |
45992 | { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL}, | |
45993 | { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL}, | |
45994 | { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL}, | |
45995 | { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL}, | |
45996 | { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL}, | |
45997 | { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL}, | |
45998 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL}, | |
45999 | { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL}, | |
46000 | { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL}, | |
46001 | { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL}, | |
46002 | { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL}, | |
46003 | { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL}, | |
46004 | { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL}, | |
46005 | { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL}, | |
46006 | { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL}, | |
46007 | { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL}, | |
46008 | { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL}, | |
46009 | { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL}, | |
46010 | { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL}, | |
46011 | { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL}, | |
46012 | { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL}, | |
46013 | { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL}, | |
46014 | { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL}, | |
46015 | { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL}, | |
46016 | { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL}, | |
46017 | { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL}, | |
46018 | { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL}, | |
46019 | { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL}, | |
46020 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL}, | |
46021 | { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL}, | |
46022 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46023 | { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL}, | |
46024 | { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL}, | |
46025 | { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL}, | |
46026 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL}, | |
46027 | { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL}, | |
46028 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL}, | |
46029 | { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL}, | |
46030 | { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL}, | |
46031 | { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL}, | |
46032 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL}, | |
46033 | { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL}, | |
46034 | { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL}, | |
46035 | { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL}, | |
46036 | { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL}, | |
46037 | { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL}, | |
46038 | { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL}, | |
46039 | { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL}, | |
46040 | { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL}, | |
46041 | { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL}, | |
46042 | { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL}, | |
46043 | { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL}, | |
46044 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL}, | |
46045 | { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL}, | |
46046 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL}, | |
46047 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46048 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL}, | |
46049 | { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL}, | |
46050 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46051 | { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL}, | |
46052 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46053 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46054 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46055 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46056 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46057 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46058 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL}, | |
46059 | { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL}, | |
46060 | { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL}, | |
46061 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46062 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46063 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46064 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46065 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46066 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46067 | { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46068 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46069 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46070 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46071 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46072 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46073 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46074 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46075 | { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL}, | |
46076 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL}, | |
46077 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL}, | |
46078 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46079 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL}, | |
46080 | { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL}, | |
46081 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46082 | { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL}, | |
46083 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46084 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46085 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46086 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46087 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46088 | { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL}, | |
46089 | { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL}, | |
46090 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46091 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46092 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46093 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46094 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL}, | |
46095 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46096 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL}, | |
46097 | { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL}, | |
46098 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46099 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46100 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46101 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46102 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46103 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c | 46104 | { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
46105 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, |
46106 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46107 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46108 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46109 | { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46110 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46111 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46112 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46113 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46114 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46115 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46116 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46117 | { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46118 | { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46119 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46120 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL}, | |
46121 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46122 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL}, | |
46123 | { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL}, | |
46124 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46125 | { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL}, | |
46126 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46127 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46128 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46129 | { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL}, | |
46130 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46131 | { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL}, | |
46132 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46133 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46134 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46135 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL}, | |
46136 | { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL}, | |
46137 | { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL}, | |
46138 | { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL}, | |
46139 | { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL}, | |
46140 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46141 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46142 | { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL}, | |
46143 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL}, | |
46144 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL}, | |
46145 | { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL}, | |
46146 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46147 | { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL}, | |
46148 | { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL}, | |
46149 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46150 | { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL}, | |
46151 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46152 | { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL}, | |
46153 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL}, | |
46154 | { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL}, | |
b02396e8 | 46155 | { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL}, |
0085ce49 RD |
46156 | { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL}, |
46157 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46158 | { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL}, | |
46159 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46160 | { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL}, | |
46161 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46162 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL}, | |
46163 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL}, | |
46164 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46165 | { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL}, | |
46166 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46167 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL}, | |
46168 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46169 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46170 | { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL}, | |
46171 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL}, | |
46172 | { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL}, | |
46173 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46174 | { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL}, | |
46175 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46176 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46177 | { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL}, | |
46178 | { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL}, | |
46179 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46180 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL}, | |
46181 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46182 | { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL}, | |
46183 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL}, | |
46184 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46185 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46186 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46187 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46188 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46189 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46190 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46191 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46192 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46193 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46194 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46195 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46196 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46197 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46198 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46199 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46200 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46201 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46202 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46203 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46204 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46205 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46206 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46207 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46208 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46209 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46210 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46211 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL}, | |
46212 | { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL}, | |
46213 | { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL}, | |
46214 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46215 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46216 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46217 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46218 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46219 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46220 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL}, | |
46221 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46222 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46223 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46224 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46225 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46226 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46227 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46228 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46229 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46230 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL}, | |
46231 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
453fb36b RD |
46232 | { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL}, |
46233 | { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL}, | |
0085ce49 RD |
46234 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL}, |
46235 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46236 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46237 | { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL}, | |
46238 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46239 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL}, | |
46240 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46241 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46242 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46243 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46244 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46245 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL}, | |
46246 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46247 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46248 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46249 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2131d850 RD |
46250 | { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
46251 | { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL}, | |
0085ce49 RD |
46252 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL}, |
46253 | { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL}, | |
46254 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46255 | { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL}, | |
46256 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46257 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c | 46258 | { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
46259 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL}, |
46260 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46261 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL}, | |
46262 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL}, | |
46263 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46264 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46265 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL}, | |
46266 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL}, | |
46267 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46268 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL}, | |
46269 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46270 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL}, | |
46271 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL}, | |
46272 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL}, | |
46273 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46274 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL}, | |
46275 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL}, | |
46276 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL}, | |
46277 | { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL}, | |
46278 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46279 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL}, | |
46280 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46281 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46282 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL}, | |
46283 | { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL}, | |
46284 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46285 | { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL}, | |
46286 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
46287 | { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
46288 | { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46289 | { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46290 | { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46291 | { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46292 | { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL}, | |
46293 | { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL}, | |
46294 | { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL}, | |
46295 | { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL}, | |
46296 | { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL}, | |
46297 | { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL}, | |
46298 | { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL}, | |
46299 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL}, | |
46300 | { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL}, | |
46301 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46302 | { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL}, | |
46303 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46304 | { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL}, | |
46305 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46306 | { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL}, | |
46307 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
46308 | { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL}, |
46309 | { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
46310 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL}, |
46311 | { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL}, | |
46312 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46313 | { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL}, | |
46314 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46315 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL}, | |
46316 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL}, | |
46317 | { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL}, | |
46318 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46319 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL}, | |
46320 | { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL}, | |
f52cbe90 | 46321 | { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL}, |
0085ce49 RD |
46322 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
46323 | { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL}, | |
46324 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46325 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b850e7f3 | 46326 | { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
46327 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL}, |
46328 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46329 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46330 | { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL}, | |
46331 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL}, | |
46332 | { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL}, | |
46333 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL}, | |
46334 | { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL}, | |
46335 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46336 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46337 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46338 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46339 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46340 | { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL}, | |
46341 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46342 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46343 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46344 | { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL}, | |
46345 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46346 | { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL}, | |
46347 | { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL}, | |
46348 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46349 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46350 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46351 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46352 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL}, | |
46353 | { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL}, | |
46354 | { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46355 | { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL}, | |
46356 | { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46357 | { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46358 | { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL}, | |
46359 | { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46360 | { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL}, | |
46361 | { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL}, | |
46362 | { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL}, | |
46363 | { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL}, | |
704eda0c RD |
46364 | { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, |
46365 | { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL}, | |
46366 | { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46367 | { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL}, | |
46368 | { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46369 | { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL}, | |
46370 | { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46371 | { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL}, | |
46372 | { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46373 | { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL}, | |
46374 | { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46375 | { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46376 | { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL}, | |
46377 | { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL}, | |
46378 | { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL}, | |
46379 | { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46380 | { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL}, | |
46381 | { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46382 | { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL}, | |
46383 | { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL}, | |
b850e7f3 RD |
46384 | { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL}, |
46385 | { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46386 | { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL}, | |
46387 | { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46388 | { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL}, | |
10044bf1 RD |
46389 | { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL}, |
46390 | { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL}, | |
b02396e8 RD |
46391 | { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL}, |
46392 | { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46393 | { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL}, | |
46394 | { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b850e7f3 RD |
46395 | { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL}, |
46396 | { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL}, | |
46397 | { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL}, | |
46398 | { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL}, | |
46399 | { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46400 | { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL}, | |
46401 | { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46402 | { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL}, | |
46403 | { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46404 | { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL}, | |
46405 | { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL}, | |
46406 | { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46407 | { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL}, | |
46408 | { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46409 | { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL}, | |
46410 | { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL}, | |
46411 | { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46412 | { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL}, | |
46413 | { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46414 | { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL}, | |
46415 | { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b02396e8 RD |
46416 | { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL}, |
46417 | { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL}, | |
b850e7f3 RD |
46418 | { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL}, |
46419 | { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL}, | |
46420 | { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46421 | { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL}, | |
46422 | { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46423 | { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL}, | |
46424 | { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b02396e8 RD |
46425 | { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL}, |
46426 | { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL}, | |
b850e7f3 RD |
46427 | { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL}, |
46428 | { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL}, | |
46429 | { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46430 | { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL}, | |
46431 | { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46432 | { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL}, | |
46433 | { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL}, | |
46434 | { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46435 | { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL}, | |
46436 | { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46437 | { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL}, | |
46438 | { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46439 | { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46440 | { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL}, | |
46441 | { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL}, | |
46442 | { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL}, | |
46443 | { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46444 | { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL}, | |
46445 | { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46446 | { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL}, | |
46447 | { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
46448 | { NULL, NULL, 0, NULL } |
46449 | }; | |
46450 | ||
46451 | ||
46452 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
46453 | ||
46454 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
46455 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
46456 | } | |
46457 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
46458 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
46459 | } | |
46460 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
46461 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
46462 | } | |
46463 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
46464 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
46465 | } | |
46466 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
46467 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
46468 | } | |
46469 | static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) { | |
46470 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
46471 | } | |
46472 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
46473 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
46474 | } | |
46475 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
46476 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
46477 | } | |
b850e7f3 RD |
46478 | static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) { |
46479 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x)); | |
46480 | } | |
46481 | static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) { | |
46482 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x)); | |
46483 | } | |
46484 | static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) { | |
46485 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x)); | |
46486 | } | |
0085ce49 RD |
46487 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { |
46488 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
46489 | } | |
46490 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
46491 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
46492 | } | |
46493 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
46494 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
46495 | } | |
0085ce49 RD |
46496 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { |
46497 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
46498 | } | |
34e0a3bb RD |
46499 | static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) { |
46500 | return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
46501 | } | |
2131d850 RD |
46502 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
46503 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
46504 | } | |
0085ce49 RD |
46505 | static void *_p_wxListEventTo_p_wxEvent(void *x) { |
46506 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
46507 | } | |
46508 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
46509 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
46510 | } | |
46511 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
46512 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
46513 | } | |
46514 | static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) { | |
46515 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
46516 | } | |
46517 | static void *_p_wxTreebookEventTo_p_wxEvent(void *x) { | |
46518 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
46519 | } | |
46520 | static void *_p_wxToolbookEventTo_p_wxEvent(void *x) { | |
46521 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
46522 | } | |
46523 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
46524 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
46525 | } | |
46526 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
46527 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
46528 | } | |
46529 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
46530 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
46531 | } | |
46532 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
46533 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
46534 | } | |
46535 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
46536 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
46537 | } | |
46538 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
46539 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
46540 | } | |
46541 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
46542 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
46543 | } | |
46544 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
46545 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
46546 | } | |
46547 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
46548 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
46549 | } | |
46550 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { | |
46551 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
46552 | } | |
46553 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
46554 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
46555 | } | |
46556 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
46557 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
46558 | } | |
34e0a3bb RD |
46559 | static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) { |
46560 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
46561 | } | |
0085ce49 RD |
46562 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { |
46563 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
46564 | } | |
46565 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
46566 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
46567 | } | |
46568 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
46569 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
46570 | } | |
46571 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
46572 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
46573 | } | |
46574 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
46575 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
46576 | } | |
704eda0c RD |
46577 | static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) { |
46578 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x)); | |
46579 | } | |
0085ce49 RD |
46580 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { |
46581 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
46582 | } | |
46583 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
46584 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
46585 | } | |
46586 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
46587 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
46588 | } | |
46589 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
46590 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
46591 | } | |
46592 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
46593 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
46594 | } | |
46595 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
46596 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
46597 | } | |
46598 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
46599 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
46600 | } | |
46601 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
46602 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
46603 | } | |
46604 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
46605 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
46606 | } | |
46607 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
46608 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
46609 | } | |
46610 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
46611 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
46612 | } | |
b850e7f3 RD |
46613 | static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) { |
46614 | return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
46615 | } | |
46616 | static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) { | |
46617 | return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
46618 | } | |
46619 | static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) { | |
46620 | return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
46621 | } | |
46622 | static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) { | |
46623 | return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
46624 | } | |
0085ce49 RD |
46625 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
46626 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
46627 | } | |
46628 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
46629 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
46630 | } | |
46631 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
46632 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
46633 | } | |
46634 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
46635 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
46636 | } | |
46637 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
46638 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
46639 | } | |
46640 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
46641 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
46642 | } | |
46643 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
46644 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
46645 | } | |
46646 | static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) { | |
46647 | return (void *)((wxControl *) ((wxBookCtrlBase *) x)); | |
46648 | } | |
46649 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
46650 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
46651 | } | |
b850e7f3 RD |
46652 | static void *_p_wxPickerBaseTo_p_wxControl(void *x) { |
46653 | return (void *)((wxControl *) ((wxPickerBase *) x)); | |
46654 | } | |
0085ce49 RD |
46655 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { |
46656 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
46657 | } | |
46658 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
46659 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
46660 | } | |
46661 | static void *_p_wxToolbookTo_p_wxControl(void *x) { | |
46662 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x)); | |
46663 | } | |
46664 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
46665 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
46666 | } | |
46667 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
46668 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
46669 | } | |
46670 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
46671 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
46672 | } | |
46673 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
46674 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
46675 | } | |
46676 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
46677 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
46678 | } | |
46679 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
46680 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
46681 | } | |
46682 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
46683 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
46684 | } | |
46685 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
46686 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
46687 | } | |
46688 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
46689 | return (void *)((wxControl *) ((wxGauge *) x)); | |
46690 | } | |
46691 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
46692 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
46693 | } | |
46694 | static void *_p_wxChoicebookTo_p_wxControl(void *x) { | |
46695 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x)); | |
46696 | } | |
46697 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
46698 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x)); | |
46699 | } | |
704eda0c RD |
46700 | static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) { |
46701 | return (void *)((wxControl *) ((wxHyperlinkCtrl *) x)); | |
46702 | } | |
0085ce49 RD |
46703 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { |
46704 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
46705 | } | |
46706 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
46707 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
46708 | } | |
46709 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
46710 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
46711 | } | |
46712 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
46713 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
46714 | } | |
46715 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
46716 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
46717 | } | |
46718 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
46719 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
46720 | } | |
46721 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
46722 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
46723 | } | |
46724 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
46725 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x)); | |
46726 | } | |
46727 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
46728 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
46729 | } | |
46730 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
46731 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
46732 | } | |
46733 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
46734 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
46735 | } | |
46736 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
46737 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
46738 | } | |
46739 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
46740 | return (void *)((wxControl *) ((wxSlider *) x)); | |
46741 | } | |
46742 | static void *_p_wxTreebookTo_p_wxControl(void *x) { | |
46743 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x)); | |
46744 | } | |
46745 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
46746 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
46747 | } | |
46748 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
46749 | return (void *)((wxControl *) ((wxButton *) x)); | |
46750 | } | |
46751 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
46752 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
46753 | } | |
46754 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
46755 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
46756 | } | |
46757 | static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) { | |
46758 | return (void *)((wxControl *) ((wxDatePickerCtrl *) x)); | |
46759 | } | |
b850e7f3 RD |
46760 | static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) { |
46761 | return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
46762 | } | |
46763 | static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) { | |
46764 | return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
46765 | } | |
46766 | static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) { | |
46767 | return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
46768 | } | |
46769 | static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) { | |
46770 | return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
46771 | } | |
0085ce49 RD |
46772 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { |
46773 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
46774 | } | |
46775 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
46776 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
46777 | } | |
46778 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
46779 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
46780 | } | |
46781 | static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) { | |
46782 | return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
46783 | } | |
46784 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
46785 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
46786 | } | |
46787 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
46788 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
46789 | } | |
46790 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
46791 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
46792 | } | |
46793 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
46794 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
46795 | } | |
46796 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
46797 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
46798 | } | |
46799 | static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) { | |
46800 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
46801 | } | |
46802 | static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) { | |
46803 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
46804 | } | |
46805 | static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) { | |
46806 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
46807 | } | |
46808 | static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) { | |
46809 | return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x)); | |
46810 | } | |
46811 | static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) { | |
46812 | return (void *)((wxBookCtrlBase *) ((wxListbook *) x)); | |
46813 | } | |
46814 | static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) { | |
46815 | return (void *)((wxBookCtrlBase *) ((wxToolbook *) x)); | |
46816 | } | |
46817 | static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) { | |
46818 | return (void *)((wxBookCtrlBase *) ((wxTreebook *) x)); | |
46819 | } | |
46820 | static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) { | |
46821 | return (void *)((wxBookCtrlBase *) ((wxNotebook *) x)); | |
46822 | } | |
46823 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
46824 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
46825 | } | |
46826 | static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) { | |
46827 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
46828 | } | |
46829 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
46830 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
46831 | } | |
46832 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
46833 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
46834 | } | |
46835 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
46836 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
46837 | } | |
b850e7f3 RD |
46838 | static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) { |
46839 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x)); | |
46840 | } | |
0085ce49 RD |
46841 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { |
46842 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
46843 | } | |
46844 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
46845 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
46846 | } | |
46847 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
46848 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
46849 | } | |
46850 | static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) { | |
46851 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
46852 | } | |
46853 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
46854 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
46855 | } | |
46856 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
46857 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
46858 | } | |
46859 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
46860 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
46861 | } | |
46862 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
46863 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
46864 | } | |
46865 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
46866 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
46867 | } | |
46868 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
46869 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
46870 | } | |
46871 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
46872 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
46873 | } | |
46874 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
46875 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
46876 | } | |
46877 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
46878 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
46879 | } | |
46880 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
46881 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
46882 | } | |
46883 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
46884 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
46885 | } | |
46886 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
46887 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
46888 | } | |
46889 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
46890 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
46891 | } | |
46892 | static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) { | |
46893 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
46894 | } | |
46895 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
46896 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
46897 | } | |
704eda0c RD |
46898 | static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) { |
46899 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x)); | |
46900 | } | |
0085ce49 RD |
46901 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { |
46902 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
46903 | } | |
46904 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
46905 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
46906 | } | |
46907 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
46908 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
46909 | } | |
46910 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
46911 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
46912 | } | |
46913 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
46914 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
46915 | } | |
46916 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
46917 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
46918 | } | |
46919 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
46920 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
46921 | } | |
46922 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
46923 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
46924 | } | |
46925 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
46926 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
46927 | } | |
46928 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
46929 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
46930 | } | |
46931 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
46932 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
46933 | } | |
46934 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
46935 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
46936 | } | |
46937 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
46938 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
46939 | } | |
46940 | static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) { | |
46941 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
46942 | } | |
46943 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
46944 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
46945 | } | |
46946 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
46947 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
46948 | } | |
46949 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
46950 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
46951 | } | |
46952 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
46953 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
46954 | } | |
46955 | static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) { | |
46956 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
46957 | } | |
b850e7f3 RD |
46958 | static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) { |
46959 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
46960 | } | |
46961 | static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) { | |
46962 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
46963 | } | |
46964 | static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) { | |
46965 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
46966 | } | |
46967 | static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) { | |
46968 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
46969 | } | |
0085ce49 RD |
46970 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { |
46971 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
46972 | } | |
46973 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
46974 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
46975 | } | |
46976 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
46977 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
46978 | } | |
46979 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
46980 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
46981 | } | |
46982 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
46983 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
46984 | } | |
46985 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
46986 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
46987 | } | |
46988 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
46989 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
46990 | } | |
46991 | static void *_p_wxToolbookTo_p_wxObject(void *x) { | |
46992 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
46993 | } | |
0085ce49 RD |
46994 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
46995 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
46996 | } | |
34e0a3bb RD |
46997 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
46998 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
46999 | } | |
0085ce49 RD |
47000 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
47001 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
47002 | } | |
47003 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
47004 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
47005 | } | |
47006 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
47007 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
47008 | } | |
47009 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
47010 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
47011 | } | |
47012 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
47013 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
47014 | } | |
47015 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
47016 | return (void *)((wxObject *) ((wxSizer *) x)); | |
47017 | } | |
47018 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
47019 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
47020 | } | |
47021 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
47022 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
47023 | } | |
47024 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
47025 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
47026 | } | |
47027 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
47028 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
47029 | } | |
47030 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
47031 | return (void *)((wxObject *) ((wxEvent *) x)); | |
47032 | } | |
47033 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
47034 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
47035 | } | |
47036 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
47037 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
47038 | } | |
47039 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
47040 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
47041 | } | |
47042 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
47043 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
47044 | } | |
b850e7f3 RD |
47045 | static void *_p_wxPickerBaseTo_p_wxObject(void *x) { |
47046 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x)); | |
47047 | } | |
0085ce49 RD |
47048 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { |
47049 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
47050 | } | |
47051 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
47052 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
47053 | } | |
2131d850 RD |
47054 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
47055 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
47056 | } | |
0085ce49 RD |
47057 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
47058 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
47059 | } | |
47060 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
47061 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
47062 | } | |
47063 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
47064 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
47065 | } | |
47066 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
47067 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
47068 | } | |
47069 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
47070 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
47071 | } | |
47072 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
47073 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
47074 | } | |
47075 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
47076 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
47077 | } | |
47078 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
47079 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
47080 | } | |
47081 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
47082 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
47083 | } | |
47084 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
47085 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
47086 | } | |
47087 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
47088 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
47089 | } | |
47090 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
47091 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
47092 | } | |
47093 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
47094 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
47095 | } | |
47096 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
47097 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
47098 | } | |
b850e7f3 RD |
47099 | static void *_p_wxColourPickerEventTo_p_wxObject(void *x) { |
47100 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x)); | |
47101 | } | |
47102 | static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) { | |
47103 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x)); | |
47104 | } | |
47105 | static void *_p_wxFontPickerEventTo_p_wxObject(void *x) { | |
47106 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x)); | |
47107 | } | |
0085ce49 RD |
47108 | static void *_p_wxChoiceTo_p_wxObject(void *x) { |
47109 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
47110 | } | |
47111 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
47112 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
47113 | } | |
47114 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
47115 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
47116 | } | |
47117 | static void *_p_wxTreebookTo_p_wxObject(void *x) { | |
47118 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
47119 | } | |
47120 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
47121 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
47122 | } | |
704eda0c RD |
47123 | static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) { |
47124 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x)); | |
47125 | } | |
0085ce49 RD |
47126 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { |
47127 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
47128 | } | |
47129 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
47130 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
47131 | } | |
47132 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
47133 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
47134 | } | |
47135 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
47136 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
47137 | } | |
47138 | static void *_p_wxChoicebookTo_p_wxObject(void *x) { | |
47139 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
47140 | } | |
47141 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
47142 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
47143 | } | |
47144 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
47145 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
47146 | } | |
47147 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
47148 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
47149 | } | |
47150 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
47151 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
47152 | } | |
47153 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
47154 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
47155 | } | |
47156 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
47157 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
47158 | } | |
47159 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
47160 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
47161 | } | |
47162 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
47163 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
47164 | } | |
47165 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
47166 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
47167 | } | |
47168 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
47169 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
47170 | } | |
47171 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
47172 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
47173 | } | |
47174 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
47175 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
47176 | } | |
47177 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
47178 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
47179 | } | |
47180 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
47181 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
47182 | } | |
47183 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
47184 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
47185 | } | |
47186 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
47187 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
47188 | } | |
47189 | static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) { | |
47190 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
47191 | } | |
47192 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
47193 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
47194 | } | |
47195 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
47196 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
47197 | } | |
47198 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
47199 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
47200 | } | |
47201 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
47202 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
47203 | } | |
47204 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
47205 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
47206 | } | |
47207 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
47208 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
47209 | } | |
47210 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
47211 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
47212 | } | |
47213 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
47214 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
47215 | } | |
47216 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
47217 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
47218 | } | |
47219 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
47220 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
47221 | } | |
47222 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
47223 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
47224 | } | |
47225 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
47226 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
47227 | } | |
47228 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
47229 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
47230 | } | |
580080c5 RD |
47231 | static void *_p_wxTGAHandlerTo_p_wxObject(void *x) { |
47232 | return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x)); | |
47233 | } | |
0085ce49 RD |
47234 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
47235 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
47236 | } | |
34e0a3bb RD |
47237 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
47238 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
47239 | } | |
0085ce49 RD |
47240 | static void *_p_wxListEventTo_p_wxObject(void *x) { |
47241 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
47242 | } | |
47243 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
47244 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
47245 | } | |
47246 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
47247 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
47248 | } | |
47249 | static void *_p_wxButtonTo_p_wxObject(void *x) { | |
47250 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
47251 | } | |
47252 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
47253 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
47254 | } | |
47255 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
47256 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
47257 | } | |
47258 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
47259 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
47260 | } | |
0085ce49 RD |
47261 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
47262 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
47263 | } | |
580080c5 RD |
47264 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
47265 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
47266 | } | |
0085ce49 RD |
47267 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
47268 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
47269 | } | |
47270 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
47271 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
47272 | } | |
47273 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
47274 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
47275 | } | |
47276 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
47277 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
47278 | } | |
47279 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
47280 | return (void *)((wxObject *) ((wxListItem *) x)); | |
47281 | } | |
47282 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
47283 | return (void *)((wxObject *) ((wxImage *) x)); | |
47284 | } | |
47285 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
47286 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
47287 | } | |
47288 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
47289 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
47290 | } | |
47291 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
47292 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
47293 | } | |
47294 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
47295 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
47296 | } | |
47297 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
47298 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
47299 | } | |
47300 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
47301 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
47302 | } | |
47303 | static void *_p_wxChoicebookEventTo_p_wxObject(void *x) { | |
47304 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
47305 | } | |
47306 | static void *_p_wxTreebookEventTo_p_wxObject(void *x) { | |
47307 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
47308 | } | |
47309 | static void *_p_wxToolbookEventTo_p_wxObject(void *x) { | |
47310 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
47311 | } | |
47312 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
47313 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
47314 | } | |
47315 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
47316 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
47317 | } | |
47318 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
47319 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
47320 | } | |
47321 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
47322 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
47323 | } | |
47324 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
47325 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
47326 | } | |
47327 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
47328 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
47329 | } | |
47330 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
47331 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
47332 | } | |
47333 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
47334 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
47335 | } | |
47336 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
47337 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
47338 | } | |
47339 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
47340 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
47341 | } | |
47342 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
47343 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
47344 | } | |
47345 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
47346 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
47347 | } | |
47348 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
47349 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
47350 | } | |
47351 | static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) { | |
47352 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
47353 | } | |
47354 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
47355 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
47356 | } | |
47357 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
47358 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
47359 | } | |
47360 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
47361 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
47362 | } | |
47363 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
47364 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
47365 | } | |
47366 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
47367 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
47368 | } | |
47369 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
47370 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
47371 | } | |
47372 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
47373 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
47374 | } | |
47375 | static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) { | |
47376 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
47377 | } | |
b850e7f3 RD |
47378 | static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) { |
47379 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
47380 | } | |
47381 | static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) { | |
47382 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
47383 | } | |
47384 | static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) { | |
47385 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
47386 | } | |
47387 | static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) { | |
47388 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
47389 | } | |
0085ce49 RD |
47390 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { |
47391 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
47392 | } | |
704eda0c RD |
47393 | static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) { |
47394 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x)); | |
47395 | } | |
0085ce49 RD |
47396 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { |
47397 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
47398 | } | |
47399 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
47400 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
47401 | } | |
47402 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
47403 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
47404 | } | |
47405 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
47406 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
47407 | } | |
47408 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
47409 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
47410 | } | |
47411 | static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) { | |
47412 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x)); | |
47413 | } | |
47414 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
47415 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
47416 | } | |
b850e7f3 RD |
47417 | static void *_p_wxPickerBaseTo_p_wxWindow(void *x) { |
47418 | return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x)); | |
47419 | } | |
0085ce49 RD |
47420 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { |
47421 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
47422 | } | |
47423 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
47424 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
47425 | } | |
47426 | static void *_p_wxToolbookTo_p_wxWindow(void *x) { | |
47427 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
47428 | } | |
47429 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
47430 | return (void *)((wxWindow *) ((wxControl *) x)); | |
47431 | } | |
47432 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
47433 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
47434 | } | |
47435 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
47436 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
47437 | } | |
47438 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
47439 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
47440 | } | |
47441 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
47442 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
47443 | } | |
47444 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
47445 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
47446 | } | |
47447 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
47448 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
47449 | } | |
47450 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
47451 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
47452 | } | |
47453 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
47454 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
47455 | } | |
47456 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
47457 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
47458 | } | |
47459 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
47460 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
47461 | } | |
47462 | static void *_p_wxChoicebookTo_p_wxWindow(void *x) { | |
47463 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
47464 | } | |
47465 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
47466 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
47467 | } | |
704eda0c RD |
47468 | static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) { |
47469 | return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x)); | |
47470 | } | |
0085ce49 RD |
47471 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { |
47472 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
47473 | } | |
47474 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
47475 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
47476 | } | |
47477 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
47478 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
47479 | } | |
47480 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
47481 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
47482 | } | |
47483 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
47484 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
47485 | } | |
47486 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
47487 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
47488 | } | |
47489 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
47490 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
47491 | } | |
47492 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
47493 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
47494 | } | |
47495 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
47496 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
47497 | } | |
47498 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
47499 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
47500 | } | |
47501 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
47502 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
47503 | } | |
47504 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
47505 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
47506 | } | |
47507 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
47508 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
47509 | } | |
47510 | static void *_p_wxTreebookTo_p_wxWindow(void *x) { | |
47511 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
47512 | } | |
47513 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
47514 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
47515 | } | |
47516 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
47517 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
47518 | } | |
47519 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
47520 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
47521 | } | |
47522 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
47523 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
47524 | } | |
47525 | static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) { | |
47526 | return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x)); | |
47527 | } | |
b850e7f3 RD |
47528 | static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) { |
47529 | return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x)); | |
47530 | } | |
47531 | static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) { | |
47532 | return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x)); | |
47533 | } | |
47534 | static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) { | |
47535 | return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x)); | |
47536 | } | |
47537 | static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) { | |
47538 | return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x)); | |
47539 | } | |
0085ce49 RD |
47540 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { |
47541 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
47542 | } | |
47543 | static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
47544 | return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
47545 | } | |
47546 | static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
47547 | return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
47548 | } | |
47549 | static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
47550 | return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
47551 | } | |
47552 | static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
47553 | return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
47554 | } | |
47555 | static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
47556 | return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
47557 | } | |
47558 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
47559 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
47560 | } | |
704eda0c RD |
47561 | static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) { |
47562 | return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x)); | |
47563 | } | |
2131d850 RD |
47564 | static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) { |
47565 | return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
47566 | } | |
b850e7f3 RD |
47567 | static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) { |
47568 | return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x)); | |
47569 | } | |
47570 | static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) { | |
47571 | return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x)); | |
47572 | } | |
47573 | static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) { | |
47574 | return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x)); | |
47575 | } | |
0085ce49 RD |
47576 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { |
47577 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
47578 | } | |
47579 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
47580 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
47581 | } | |
47582 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
47583 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
47584 | } | |
47585 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
47586 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
47587 | } | |
47588 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
47589 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
47590 | } | |
0085ce49 RD |
47591 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { |
47592 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
47593 | } | |
2131d850 RD |
47594 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { |
47595 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
47596 | } | |
0085ce49 RD |
47597 | static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) { |
47598 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
47599 | } | |
47600 | static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) { | |
47601 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
47602 | } | |
47603 | static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) { | |
47604 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
47605 | } | |
47606 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
47607 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
47608 | } | |
47609 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
47610 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
47611 | } | |
47612 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
47613 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
47614 | } | |
47615 | static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) { | |
47616 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
47617 | } | |
47618 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
47619 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
47620 | } | |
47621 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
47622 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
47623 | } | |
47624 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
47625 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
47626 | } | |
47627 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
47628 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
47629 | } | |
47630 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
47631 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
47632 | } | |
47633 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
47634 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
47635 | } | |
47636 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
47637 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
47638 | } | |
47639 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
47640 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
47641 | } | |
47642 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
47643 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
47644 | } | |
47645 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
47646 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
47647 | } | |
47648 | static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0}; | |
47649 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; | |
47650 | 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}; | |
47651 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
47652 | static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0}; | |
47653 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
47654 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
47655 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
47656 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; | |
47657 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
47658 | static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0}; | |
47659 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
47660 | static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0}; | |
47661 | static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0}; | |
47662 | static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0}; | |
47663 | static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0}; | |
47664 | static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0}; | |
47665 | static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0}; | |
47666 | static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0}; | |
47667 | static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0}; | |
47668 | static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0}; | |
47669 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
b850e7f3 RD |
47670 | static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0}; |
47671 | static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
47672 | static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0}; |
47673 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
47674 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 47675 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
47676 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
47677 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
47678 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
47679 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
47680 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
47681 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
47682 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
47683 | static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0}; | |
47684 | static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0}; | |
47685 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0}; | |
47686 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0}; | |
47687 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
47688 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
47689 | static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0}; | |
47690 | static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0}; | |
47691 | static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0}; | |
b850e7f3 | 47692 | static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
47693 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; |
47694 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
47695 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
47696 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
47697 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
47698 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
47699 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
47700 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
34e0a3bb | 47701 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
47702 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; |
47703 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
47704 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
47705 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
47706 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
47707 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
34e0a3bb | 47708 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
47709 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
47710 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
47711 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
47712 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
47713 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
47714 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
47715 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
47716 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
47717 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
47718 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
47719 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
47720 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
47721 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
47722 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
47723 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
47724 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
b850e7f3 RD |
47725 | static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0}; |
47726 | static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0}; | |
0085ce49 | 47727 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; |
b850e7f3 RD |
47728 | static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0}; |
47729 | static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
47730 | static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0}; |
47731 | static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0}; | |
47732 | static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0}; | |
47733 | static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0}; | |
47734 | static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0}; | |
704eda0c RD |
47735 | static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0}; |
47736 | static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
47737 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
47738 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
47739 | static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0}; | |
47740 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0}; | |
47741 | static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0}; | |
47742 | static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0}; | |
47743 | static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0}; | |
47744 | static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0}; | |
47745 | static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0}; | |
47746 | static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0}; | |
47747 | static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0}; | |
47748 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
47749 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0}; | |
47750 | static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0}; | |
47751 | static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0}; | |
47752 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
47753 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
47754 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
0085ce49 | 47755 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 47756 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
0085ce49 RD |
47757 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; |
47758 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
47759 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
47760 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
47761 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
47762 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
47763 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
47764 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
47765 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
47766 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
0085ce49 RD |
47767 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
47768 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
47769 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
47770 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
47771 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
b850e7f3 RD |
47772 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; |
47773 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
47774 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
47775 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
704eda0c | 47776 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; |
2131d850 | 47777 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; |
0085ce49 RD |
47778 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; |
47779 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
580080c5 | 47780 | static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0}; |
0085ce49 | 47781 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; |
580080c5 | 47782 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
0085ce49 RD |
47783 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0}; |
47784 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
47785 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
b850e7f3 | 47786 | static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
47787 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; |
47788 | static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0}; | |
47789 | static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0}; | |
47790 | static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0}; | |
47791 | static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0}; | |
47792 | static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0}; | |
47793 | static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0}; | |
47794 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; | |
47795 | static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0}; | |
47796 | static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0}; | |
47797 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
47798 | static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0}; | |
47799 | static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0}; | |
47800 | static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0}; | |
47801 | static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0}; | |
47802 | static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0}; | |
47803 | static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0}; | |
47804 | static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0}; | |
47805 | static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0}; | |
47806 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; | |
47807 | static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0}; | |
47808 | static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0}; | |
47809 | static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0}; | |
47810 | static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0}; | |
47811 | static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0}; | |
47812 | static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0}; | |
47813 | static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0}; | |
47814 | static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0}; | |
47815 | static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
47816 | static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0}; |
47817 | static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0}; | |
47818 | static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0}; | |
47819 | static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0}; | |
47820 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0}; | |
47821 | static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0}; | |
47822 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
b850e7f3 | 47823 | static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
47824 | |
47825 | static swig_type_info *swig_type_initial[] = { | |
47826 | &_swigt__p_bool, | |
47827 | &_swigt__p_char, | |
47828 | &_swigt__p_form_ops_t, | |
47829 | &_swigt__p_int, | |
47830 | &_swigt__p_long, | |
47831 | &_swigt__p_unsigned_char, | |
47832 | &_swigt__p_unsigned_int, | |
47833 | &_swigt__p_unsigned_long, | |
47834 | &_swigt__p_void, | |
47835 | &_swigt__p_wxANIHandler, | |
47836 | &_swigt__p_wxAcceleratorTable, | |
47837 | &_swigt__p_wxActivateEvent, | |
47838 | &_swigt__p_wxArrayInt, | |
47839 | &_swigt__p_wxArrayString, | |
47840 | &_swigt__p_wxBMPHandler, | |
47841 | &_swigt__p_wxBitmap, | |
47842 | &_swigt__p_wxBitmapButton, | |
47843 | &_swigt__p_wxBookCtrlBase, | |
47844 | &_swigt__p_wxBookCtrlBaseEvent, | |
47845 | &_swigt__p_wxBoxSizer, | |
47846 | &_swigt__p_wxButton, | |
47847 | &_swigt__p_wxCURHandler, | |
47848 | &_swigt__p_wxCheckBox, | |
47849 | &_swigt__p_wxCheckListBox, | |
47850 | &_swigt__p_wxChildFocusEvent, | |
47851 | &_swigt__p_wxChoice, | |
47852 | &_swigt__p_wxChoicebook, | |
47853 | &_swigt__p_wxChoicebookEvent, | |
2131d850 | 47854 | &_swigt__p_wxClipboardTextEvent, |
0085ce49 RD |
47855 | &_swigt__p_wxCloseEvent, |
47856 | &_swigt__p_wxColour, | |
b850e7f3 RD |
47857 | &_swigt__p_wxColourPickerCtrl, |
47858 | &_swigt__p_wxColourPickerEvent, | |
0085ce49 RD |
47859 | &_swigt__p_wxComboBox, |
47860 | &_swigt__p_wxCommandEvent, | |
47861 | &_swigt__p_wxContextHelp, | |
47862 | &_swigt__p_wxContextHelpButton, | |
47863 | &_swigt__p_wxContextMenuEvent, | |
47864 | &_swigt__p_wxControl, | |
47865 | &_swigt__p_wxControlWithItems, | |
47866 | &_swigt__p_wxCursor, | |
47867 | &_swigt__p_wxDC, | |
47868 | &_swigt__p_wxDateEvent, | |
47869 | &_swigt__p_wxDatePickerCtrl, | |
47870 | &_swigt__p_wxDateTime, | |
47871 | &_swigt__p_wxDirFilterListCtrl, | |
b850e7f3 | 47872 | &_swigt__p_wxDirPickerCtrl, |
0085ce49 RD |
47873 | &_swigt__p_wxDisplayChangedEvent, |
47874 | &_swigt__p_wxDropFilesEvent, | |
47875 | &_swigt__p_wxDuplexMode, | |
47876 | &_swigt__p_wxEraseEvent, | |
47877 | &_swigt__p_wxEvent, | |
47878 | &_swigt__p_wxEvtHandler, | |
47879 | &_swigt__p_wxFSFile, | |
b850e7f3 RD |
47880 | &_swigt__p_wxFileDirPickerEvent, |
47881 | &_swigt__p_wxFilePickerCtrl, | |
0085ce49 RD |
47882 | &_swigt__p_wxFileSystem, |
47883 | &_swigt__p_wxFlexGridSizer, | |
47884 | &_swigt__p_wxFocusEvent, | |
47885 | &_swigt__p_wxFont, | |
b850e7f3 RD |
47886 | &_swigt__p_wxFontPickerCtrl, |
47887 | &_swigt__p_wxFontPickerEvent, | |
0085ce49 RD |
47888 | &_swigt__p_wxGBSizerItem, |
47889 | &_swigt__p_wxGIFHandler, | |
47890 | &_swigt__p_wxGauge, | |
47891 | &_swigt__p_wxGenericDirCtrl, | |
47892 | &_swigt__p_wxGenericDragImage, | |
47893 | &_swigt__p_wxGridBagSizer, | |
47894 | &_swigt__p_wxGridSizer, | |
47895 | &_swigt__p_wxHelpEvent, | |
47896 | &_swigt__p_wxHelpProvider, | |
704eda0c RD |
47897 | &_swigt__p_wxHyperlinkCtrl, |
47898 | &_swigt__p_wxHyperlinkEvent, | |
0085ce49 RD |
47899 | &_swigt__p_wxICOHandler, |
47900 | &_swigt__p_wxIcon, | |
47901 | &_swigt__p_wxIconizeEvent, | |
47902 | &_swigt__p_wxIdleEvent, | |
47903 | &_swigt__p_wxImage, | |
47904 | &_swigt__p_wxImageHandler, | |
47905 | &_swigt__p_wxImageList, | |
47906 | &_swigt__p_wxIndividualLayoutConstraint, | |
47907 | &_swigt__p_wxInitDialogEvent, | |
47908 | &_swigt__p_wxItemContainer, | |
47909 | &_swigt__p_wxJPEGHandler, | |
47910 | &_swigt__p_wxKeyEvent, | |
47911 | &_swigt__p_wxLayoutConstraints, | |
47912 | &_swigt__p_wxListBox, | |
47913 | &_swigt__p_wxListEvent, | |
47914 | &_swigt__p_wxListItem, | |
47915 | &_swigt__p_wxListItemAttr, | |
47916 | &_swigt__p_wxListView, | |
47917 | &_swigt__p_wxListbook, | |
47918 | &_swigt__p_wxListbookEvent, | |
47919 | &_swigt__p_wxMaximizeEvent, | |
47920 | &_swigt__p_wxMemoryDC, | |
47921 | &_swigt__p_wxMenu, | |
47922 | &_swigt__p_wxMenuBar, | |
47923 | &_swigt__p_wxMenuEvent, | |
47924 | &_swigt__p_wxMenuItem, | |
47925 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 47926 | &_swigt__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
47927 | &_swigt__p_wxMouseEvent, |
47928 | &_swigt__p_wxMoveEvent, | |
47929 | &_swigt__p_wxNavigationKeyEvent, | |
47930 | &_swigt__p_wxNcPaintEvent, | |
47931 | &_swigt__p_wxNotebook, | |
47932 | &_swigt__p_wxNotebookEvent, | |
47933 | &_swigt__p_wxNotifyEvent, | |
47934 | &_swigt__p_wxObject, | |
47935 | &_swigt__p_wxPCXHandler, | |
47936 | &_swigt__p_wxPNGHandler, | |
47937 | &_swigt__p_wxPNMHandler, | |
47938 | &_swigt__p_wxPaintEvent, | |
47939 | &_swigt__p_wxPaletteChangedEvent, | |
47940 | &_swigt__p_wxPaperSize, | |
b850e7f3 | 47941 | &_swigt__p_wxPickerBase, |
0085ce49 RD |
47942 | &_swigt__p_wxPoint, |
47943 | &_swigt__p_wxPyApp, | |
47944 | &_swigt__p_wxPyCommandEvent, | |
47945 | &_swigt__p_wxPyControl, | |
47946 | &_swigt__p_wxPyEvent, | |
47947 | &_swigt__p_wxPyImageHandler, | |
47948 | &_swigt__p_wxPyListCtrl, | |
47949 | &_swigt__p_wxPySizer, | |
47950 | &_swigt__p_wxPyTreeCtrl, | |
47951 | &_swigt__p_wxPyTreeItemData, | |
47952 | &_swigt__p_wxPyValidator, | |
47953 | &_swigt__p_wxQueryNewPaletteEvent, | |
47954 | &_swigt__p_wxRadioBox, | |
47955 | &_swigt__p_wxRadioButton, | |
47956 | &_swigt__p_wxRect, | |
47957 | &_swigt__p_wxScrollBar, | |
47958 | &_swigt__p_wxScrollEvent, | |
47959 | &_swigt__p_wxScrollWinEvent, | |
47960 | &_swigt__p_wxSetCursorEvent, | |
47961 | &_swigt__p_wxShowEvent, | |
47962 | &_swigt__p_wxSimpleHelpProvider, | |
47963 | &_swigt__p_wxSize, | |
47964 | &_swigt__p_wxSizeEvent, | |
47965 | &_swigt__p_wxSizer, | |
47966 | &_swigt__p_wxSizerItem, | |
47967 | &_swigt__p_wxSlider, | |
47968 | &_swigt__p_wxSpinButton, | |
47969 | &_swigt__p_wxSpinCtrl, | |
47970 | &_swigt__p_wxSpinEvent, | |
47971 | &_swigt__p_wxStaticBitmap, | |
47972 | &_swigt__p_wxStaticBox, | |
47973 | &_swigt__p_wxStaticBoxSizer, | |
47974 | &_swigt__p_wxStaticLine, | |
47975 | &_swigt__p_wxStaticText, | |
47976 | &_swigt__p_wxStdDialogButtonSizer, | |
47977 | &_swigt__p_wxString, | |
47978 | &_swigt__p_wxSysColourChangedEvent, | |
580080c5 | 47979 | &_swigt__p_wxTGAHandler, |
0085ce49 RD |
47980 | &_swigt__p_wxTIFFHandler, |
47981 | &_swigt__p_wxTextAttr, | |
47982 | &_swigt__p_wxTextCtrl, | |
47983 | &_swigt__p_wxTextUrlEvent, | |
47984 | &_swigt__p_wxToggleButton, | |
47985 | &_swigt__p_wxToolBar, | |
47986 | &_swigt__p_wxToolBarBase, | |
47987 | &_swigt__p_wxToolBarToolBase, | |
47988 | &_swigt__p_wxToolbook, | |
47989 | &_swigt__p_wxToolbookEvent, | |
0085ce49 RD |
47990 | &_swigt__p_wxTreeEvent, |
47991 | &_swigt__p_wxTreeItemId, | |
47992 | &_swigt__p_wxTreebook, | |
47993 | &_swigt__p_wxTreebookEvent, | |
47994 | &_swigt__p_wxUpdateUIEvent, | |
47995 | &_swigt__p_wxValidator, | |
47996 | &_swigt__p_wxVisualAttributes, | |
47997 | &_swigt__p_wxWindow, | |
b850e7f3 | 47998 | &_swigt__p_wxWindowBase, |
0085ce49 RD |
47999 | &_swigt__p_wxWindowCreateEvent, |
48000 | &_swigt__p_wxWindowDestroyEvent, | |
48001 | &_swigt__p_wxXPMHandler, | |
48002 | }; | |
48003 | ||
48004 | static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}}; | |
48005 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
48006 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
48007 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
48008 | static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; | |
48009 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
48010 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
48011 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
48012 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; | |
48013 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
48014 | static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}}; | |
48015 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
48016 | 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}}; | |
48017 | 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}}; | |
48018 | 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}}; | |
48019 | 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}}; | |
48020 | static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}}; | |
48021 | static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
48022 | 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}}; | |
48023 | static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}}; | |
48024 | static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48025 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
b850e7f3 RD |
48026 | static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
48027 | static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
48028 | static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}}; |
48029 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 48030 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
48031 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
48032 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48033 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48034 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48035 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48036 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48037 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
b850e7f3 | 48038 | 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_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 |
48039 | static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}}; |
48040 | static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}}; | |
b850e7f3 | 48041 | static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
48042 | 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}}; |
48043 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
48044 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; | |
48045 | static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
48046 | static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}}; | |
48047 | static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
b850e7f3 | 48048 | static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
48049 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; |
48050 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48051 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48052 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48053 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48054 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48055 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 48056 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
48057 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; |
48058 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48059 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48060 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48061 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48062 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 48063 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
48064 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
48065 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48066 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48067 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48068 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48069 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48070 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48071 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48072 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48073 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48074 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 48075 | 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_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}}; |
0085ce49 RD |
48076 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; |
48077 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
48078 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
48079 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
b850e7f3 RD |
48080 | static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_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}}; |
48081 | static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48082 | static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 48083 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 RD |
48084 | static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
48085 | static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
48086 | static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}}; |
48087 | static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
48088 | static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}}; | |
48089 | static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48090 | 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 |
48091 | static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}}; |
48092 | static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
48093 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
48094 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
48095 | 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}}; | |
48096 | static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48097 | 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}}; | |
48098 | static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48099 | static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}}; | |
48100 | static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
48101 | static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}}; | |
48102 | static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}}; | |
48103 | static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48104 | static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}}; | |
48105 | static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48106 | static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}}; | |
48107 | static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48108 | 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}}; | |
48109 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 48110 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 48111 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
48112 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; |
48113 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
48114 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
48115 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
48116 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
48117 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
48118 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
48119 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
48120 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
48121 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
48122 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
48123 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
48124 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
48125 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
48126 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
b850e7f3 RD |
48127 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; |
48128 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
48129 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
48130 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
704eda0c | 48131 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 48132 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
48133 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; |
48134 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 48135 | static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 48136 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 48137 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
48138 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; |
48139 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 48140 | static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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_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_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_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 | 48141 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; |
b850e7f3 | 48142 | 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 |
48143 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; |
48144 | static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}}; | |
48145 | 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}}; | |
48146 | static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
48147 | static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}}; | |
48148 | static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}}; | |
48149 | static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}}; | |
48150 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
48151 | static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}}; | |
48152 | static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}}; | |
48153 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
48154 | static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}}; | |
48155 | static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}}; | |
48156 | static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
48157 | static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48158 | static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
48159 | static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}}; | |
48160 | static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}}; | |
48161 | static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}}; | |
48162 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
48163 | static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
48164 | static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
48165 | static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48166 | static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}}; | |
48167 | static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}}; | |
48168 | 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}}; | |
48169 | static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}}; | |
48170 | static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}}; | |
48171 | static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
48172 | static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}}; |
48173 | static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}}; | |
48174 | static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}}; | |
48175 | static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
48176 | 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}}; | |
48177 | static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}}; | |
b850e7f3 RD |
48178 | static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_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_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_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_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}}; |
48179 | static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
48180 | |
48181 | static swig_cast_info *swig_cast_initial[] = { | |
48182 | _swigc__p_bool, | |
48183 | _swigc__p_char, | |
48184 | _swigc__p_form_ops_t, | |
48185 | _swigc__p_int, | |
48186 | _swigc__p_long, | |
48187 | _swigc__p_unsigned_char, | |
48188 | _swigc__p_unsigned_int, | |
48189 | _swigc__p_unsigned_long, | |
48190 | _swigc__p_void, | |
48191 | _swigc__p_wxANIHandler, | |
48192 | _swigc__p_wxAcceleratorTable, | |
48193 | _swigc__p_wxActivateEvent, | |
48194 | _swigc__p_wxArrayInt, | |
48195 | _swigc__p_wxArrayString, | |
48196 | _swigc__p_wxBMPHandler, | |
48197 | _swigc__p_wxBitmap, | |
48198 | _swigc__p_wxBitmapButton, | |
48199 | _swigc__p_wxBookCtrlBase, | |
48200 | _swigc__p_wxBookCtrlBaseEvent, | |
48201 | _swigc__p_wxBoxSizer, | |
48202 | _swigc__p_wxButton, | |
48203 | _swigc__p_wxCURHandler, | |
48204 | _swigc__p_wxCheckBox, | |
48205 | _swigc__p_wxCheckListBox, | |
48206 | _swigc__p_wxChildFocusEvent, | |
48207 | _swigc__p_wxChoice, | |
48208 | _swigc__p_wxChoicebook, | |
48209 | _swigc__p_wxChoicebookEvent, | |
2131d850 | 48210 | _swigc__p_wxClipboardTextEvent, |
0085ce49 RD |
48211 | _swigc__p_wxCloseEvent, |
48212 | _swigc__p_wxColour, | |
b850e7f3 RD |
48213 | _swigc__p_wxColourPickerCtrl, |
48214 | _swigc__p_wxColourPickerEvent, | |
0085ce49 RD |
48215 | _swigc__p_wxComboBox, |
48216 | _swigc__p_wxCommandEvent, | |
48217 | _swigc__p_wxContextHelp, | |
48218 | _swigc__p_wxContextHelpButton, | |
48219 | _swigc__p_wxContextMenuEvent, | |
48220 | _swigc__p_wxControl, | |
48221 | _swigc__p_wxControlWithItems, | |
48222 | _swigc__p_wxCursor, | |
48223 | _swigc__p_wxDC, | |
48224 | _swigc__p_wxDateEvent, | |
48225 | _swigc__p_wxDatePickerCtrl, | |
48226 | _swigc__p_wxDateTime, | |
48227 | _swigc__p_wxDirFilterListCtrl, | |
b850e7f3 | 48228 | _swigc__p_wxDirPickerCtrl, |
0085ce49 RD |
48229 | _swigc__p_wxDisplayChangedEvent, |
48230 | _swigc__p_wxDropFilesEvent, | |
48231 | _swigc__p_wxDuplexMode, | |
48232 | _swigc__p_wxEraseEvent, | |
48233 | _swigc__p_wxEvent, | |
48234 | _swigc__p_wxEvtHandler, | |
48235 | _swigc__p_wxFSFile, | |
b850e7f3 RD |
48236 | _swigc__p_wxFileDirPickerEvent, |
48237 | _swigc__p_wxFilePickerCtrl, | |
0085ce49 RD |
48238 | _swigc__p_wxFileSystem, |
48239 | _swigc__p_wxFlexGridSizer, | |
48240 | _swigc__p_wxFocusEvent, | |
48241 | _swigc__p_wxFont, | |
b850e7f3 RD |
48242 | _swigc__p_wxFontPickerCtrl, |
48243 | _swigc__p_wxFontPickerEvent, | |
0085ce49 RD |
48244 | _swigc__p_wxGBSizerItem, |
48245 | _swigc__p_wxGIFHandler, | |
48246 | _swigc__p_wxGauge, | |
48247 | _swigc__p_wxGenericDirCtrl, | |
48248 | _swigc__p_wxGenericDragImage, | |
48249 | _swigc__p_wxGridBagSizer, | |
48250 | _swigc__p_wxGridSizer, | |
48251 | _swigc__p_wxHelpEvent, | |
48252 | _swigc__p_wxHelpProvider, | |
704eda0c RD |
48253 | _swigc__p_wxHyperlinkCtrl, |
48254 | _swigc__p_wxHyperlinkEvent, | |
0085ce49 RD |
48255 | _swigc__p_wxICOHandler, |
48256 | _swigc__p_wxIcon, | |
48257 | _swigc__p_wxIconizeEvent, | |
48258 | _swigc__p_wxIdleEvent, | |
48259 | _swigc__p_wxImage, | |
48260 | _swigc__p_wxImageHandler, | |
48261 | _swigc__p_wxImageList, | |
48262 | _swigc__p_wxIndividualLayoutConstraint, | |
48263 | _swigc__p_wxInitDialogEvent, | |
48264 | _swigc__p_wxItemContainer, | |
48265 | _swigc__p_wxJPEGHandler, | |
48266 | _swigc__p_wxKeyEvent, | |
48267 | _swigc__p_wxLayoutConstraints, | |
48268 | _swigc__p_wxListBox, | |
48269 | _swigc__p_wxListEvent, | |
48270 | _swigc__p_wxListItem, | |
48271 | _swigc__p_wxListItemAttr, | |
48272 | _swigc__p_wxListView, | |
48273 | _swigc__p_wxListbook, | |
48274 | _swigc__p_wxListbookEvent, | |
48275 | _swigc__p_wxMaximizeEvent, | |
48276 | _swigc__p_wxMemoryDC, | |
48277 | _swigc__p_wxMenu, | |
48278 | _swigc__p_wxMenuBar, | |
48279 | _swigc__p_wxMenuEvent, | |
48280 | _swigc__p_wxMenuItem, | |
48281 | _swigc__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 48282 | _swigc__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
48283 | _swigc__p_wxMouseEvent, |
48284 | _swigc__p_wxMoveEvent, | |
48285 | _swigc__p_wxNavigationKeyEvent, | |
48286 | _swigc__p_wxNcPaintEvent, | |
48287 | _swigc__p_wxNotebook, | |
48288 | _swigc__p_wxNotebookEvent, | |
48289 | _swigc__p_wxNotifyEvent, | |
48290 | _swigc__p_wxObject, | |
48291 | _swigc__p_wxPCXHandler, | |
48292 | _swigc__p_wxPNGHandler, | |
48293 | _swigc__p_wxPNMHandler, | |
48294 | _swigc__p_wxPaintEvent, | |
48295 | _swigc__p_wxPaletteChangedEvent, | |
48296 | _swigc__p_wxPaperSize, | |
b850e7f3 | 48297 | _swigc__p_wxPickerBase, |
0085ce49 RD |
48298 | _swigc__p_wxPoint, |
48299 | _swigc__p_wxPyApp, | |
48300 | _swigc__p_wxPyCommandEvent, | |
48301 | _swigc__p_wxPyControl, | |
48302 | _swigc__p_wxPyEvent, | |
48303 | _swigc__p_wxPyImageHandler, | |
48304 | _swigc__p_wxPyListCtrl, | |
48305 | _swigc__p_wxPySizer, | |
48306 | _swigc__p_wxPyTreeCtrl, | |
48307 | _swigc__p_wxPyTreeItemData, | |
48308 | _swigc__p_wxPyValidator, | |
48309 | _swigc__p_wxQueryNewPaletteEvent, | |
48310 | _swigc__p_wxRadioBox, | |
48311 | _swigc__p_wxRadioButton, | |
48312 | _swigc__p_wxRect, | |
48313 | _swigc__p_wxScrollBar, | |
48314 | _swigc__p_wxScrollEvent, | |
48315 | _swigc__p_wxScrollWinEvent, | |
48316 | _swigc__p_wxSetCursorEvent, | |
48317 | _swigc__p_wxShowEvent, | |
48318 | _swigc__p_wxSimpleHelpProvider, | |
48319 | _swigc__p_wxSize, | |
48320 | _swigc__p_wxSizeEvent, | |
48321 | _swigc__p_wxSizer, | |
48322 | _swigc__p_wxSizerItem, | |
48323 | _swigc__p_wxSlider, | |
48324 | _swigc__p_wxSpinButton, | |
48325 | _swigc__p_wxSpinCtrl, | |
48326 | _swigc__p_wxSpinEvent, | |
48327 | _swigc__p_wxStaticBitmap, | |
48328 | _swigc__p_wxStaticBox, | |
48329 | _swigc__p_wxStaticBoxSizer, | |
48330 | _swigc__p_wxStaticLine, | |
48331 | _swigc__p_wxStaticText, | |
48332 | _swigc__p_wxStdDialogButtonSizer, | |
48333 | _swigc__p_wxString, | |
48334 | _swigc__p_wxSysColourChangedEvent, | |
580080c5 | 48335 | _swigc__p_wxTGAHandler, |
0085ce49 RD |
48336 | _swigc__p_wxTIFFHandler, |
48337 | _swigc__p_wxTextAttr, | |
48338 | _swigc__p_wxTextCtrl, | |
48339 | _swigc__p_wxTextUrlEvent, | |
48340 | _swigc__p_wxToggleButton, | |
48341 | _swigc__p_wxToolBar, | |
48342 | _swigc__p_wxToolBarBase, | |
48343 | _swigc__p_wxToolBarToolBase, | |
48344 | _swigc__p_wxToolbook, | |
48345 | _swigc__p_wxToolbookEvent, | |
0085ce49 RD |
48346 | _swigc__p_wxTreeEvent, |
48347 | _swigc__p_wxTreeItemId, | |
48348 | _swigc__p_wxTreebook, | |
48349 | _swigc__p_wxTreebookEvent, | |
48350 | _swigc__p_wxUpdateUIEvent, | |
48351 | _swigc__p_wxValidator, | |
48352 | _swigc__p_wxVisualAttributes, | |
48353 | _swigc__p_wxWindow, | |
b850e7f3 | 48354 | _swigc__p_wxWindowBase, |
0085ce49 RD |
48355 | _swigc__p_wxWindowCreateEvent, |
48356 | _swigc__p_wxWindowDestroyEvent, | |
48357 | _swigc__p_wxXPMHandler, | |
48358 | }; | |
48359 | ||
48360 | ||
48361 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
48362 | ||
48363 | static swig_const_info swig_const_table[] = { | |
48364 | {0, 0, 0, 0.0, 0, 0}}; | |
48365 | ||
48366 | #ifdef __cplusplus | |
48367 | } | |
48368 | #endif | |
48369 | /* ----------------------------------------------------------------------------- | |
48370 | * Type initialization: | |
48371 | * This problem is tough by the requirement that no dynamic | |
48372 | * memory is used. Also, since swig_type_info structures store pointers to | |
48373 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
48374 | * to swig_type_info structures, we need some lookup code at initialization. | |
48375 | * The idea is that swig generates all the structures that are needed. | |
48376 | * The runtime then collects these partially filled structures. | |
48377 | * The SWIG_InitializeModule function takes these initial arrays out of | |
48378 | * swig_module, and does all the lookup, filling in the swig_module.types | |
48379 | * array with the correct data and linking the correct swig_cast_info | |
48380 | * structures together. | |
48381 | * | |
48382 | * The generated swig_type_info structures are assigned staticly to an initial | |
48383 | * array. We just loop though that array, and handle each type individually. | |
48384 | * First we lookup if this type has been already loaded, and if so, use the | |
48385 | * loaded structure instead of the generated one. Then we have to fill in the | |
48386 | * cast linked list. The cast data is initially stored in something like a | |
48387 | * two-dimensional array. Each row corresponds to a type (there are the same | |
48388 | * number of rows as there are in the swig_type_initial array). Each entry in | |
48389 | * a column is one of the swig_cast_info structures for that type. | |
48390 | * The cast_initial array is actually an array of arrays, because each row has | |
48391 | * a variable number of columns. So to actually build the cast linked list, | |
48392 | * we find the array of casts associated with the type, and loop through it | |
48393 | * adding the casts to the list. The one last trick we need to do is making | |
48394 | * sure the type pointer in the swig_cast_info struct is correct. | |
48395 | * | |
48396 | * First off, we lookup the cast->type name to see if it is already loaded. | |
48397 | * There are three cases to handle: | |
48398 | * 1) If the cast->type has already been loaded AND the type we are adding | |
48399 | * casting info to has not been loaded (it is in this module), THEN we | |
48400 | * replace the cast->type pointer with the type pointer that has already | |
48401 | * been loaded. | |
48402 | * 2) If BOTH types (the one we are adding casting info to, and the | |
48403 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
48404 | * the previous module so we just ignore it. | |
48405 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
48406 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
48407 | * be correct. | |
48408 | * ----------------------------------------------------------------------------- */ | |
48409 | ||
48410 | #ifdef __cplusplus | |
48411 | extern "C" { | |
48412 | #if 0 | |
48413 | } /* c-mode */ | |
48414 | #endif | |
48415 | #endif | |
48416 | ||
48417 | #if 0 | |
48418 | #define SWIGRUNTIME_DEBUG | |
48419 | #endif | |
48420 | ||
48421 | SWIGRUNTIME void | |
48422 | SWIG_InitializeModule(void *clientdata) { | |
48423 | size_t i; | |
48424 | swig_module_info *module_head; | |
48425 | static int init_run = 0; | |
48426 | ||
48427 | clientdata = clientdata; | |
48428 | ||
48429 | if (init_run) return; | |
48430 | init_run = 1; | |
48431 | ||
48432 | /* Initialize the swig_module */ | |
48433 | swig_module.type_initial = swig_type_initial; | |
48434 | swig_module.cast_initial = swig_cast_initial; | |
48435 | ||
48436 | /* Try and load any already created modules */ | |
48437 | module_head = SWIG_GetModule(clientdata); | |
48438 | if (module_head) { | |
48439 | swig_module.next = module_head->next; | |
48440 | module_head->next = &swig_module; | |
48441 | } else { | |
48442 | /* This is the first module loaded */ | |
48443 | swig_module.next = &swig_module; | |
48444 | SWIG_SetModule(clientdata, &swig_module); | |
48445 | } | |
48446 | ||
48447 | /* Now work on filling in swig_module.types */ | |
48448 | #ifdef SWIGRUNTIME_DEBUG | |
48449 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
48450 | #endif | |
48451 | for (i = 0; i < swig_module.size; ++i) { | |
48452 | swig_type_info *type = 0; | |
48453 | swig_type_info *ret; | |
48454 | swig_cast_info *cast; | |
d14a1e28 | 48455 | |
0085ce49 RD |
48456 | #ifdef SWIGRUNTIME_DEBUG |
48457 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
48458 | #endif | |
d14a1e28 | 48459 | |
0085ce49 RD |
48460 | /* if there is another module already loaded */ |
48461 | if (swig_module.next != &swig_module) { | |
48462 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
093d3ff1 | 48463 | } |
0085ce49 RD |
48464 | if (type) { |
48465 | /* Overwrite clientdata field */ | |
48466 | #ifdef SWIGRUNTIME_DEBUG | |
48467 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
48468 | #endif | |
48469 | if (swig_module.type_initial[i]->clientdata) { | |
48470 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
48471 | #ifdef SWIGRUNTIME_DEBUG | |
48472 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
48473 | #endif | |
48474 | } | |
48475 | } else { | |
48476 | type = swig_module.type_initial[i]; | |
093d3ff1 | 48477 | } |
d14a1e28 | 48478 | |
0085ce49 RD |
48479 | /* Insert casting types */ |
48480 | cast = swig_module.cast_initial[i]; | |
48481 | while (cast->type) { | |
48482 | /* Don't need to add information already in the list */ | |
48483 | ret = 0; | |
48484 | #ifdef SWIGRUNTIME_DEBUG | |
48485 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
48486 | #endif | |
48487 | if (swig_module.next != &swig_module) { | |
48488 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
48489 | #ifdef SWIGRUNTIME_DEBUG | |
48490 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
48491 | #endif | |
48492 | } | |
48493 | if (ret) { | |
48494 | if (type == swig_module.type_initial[i]) { | |
48495 | #ifdef SWIGRUNTIME_DEBUG | |
48496 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
48497 | #endif | |
48498 | cast->type = ret; | |
48499 | ret = 0; | |
48500 | } else { | |
48501 | /* Check for casting already in the list */ | |
48502 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
48503 | #ifdef SWIGRUNTIME_DEBUG | |
48504 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
48505 | #endif | |
48506 | if (!ocast) ret = 0; | |
48507 | } | |
48508 | } | |
48509 | ||
48510 | if (!ret) { | |
48511 | #ifdef SWIGRUNTIME_DEBUG | |
48512 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
48513 | #endif | |
48514 | if (type->cast) { | |
48515 | type->cast->prev = cast; | |
48516 | cast->next = type->cast; | |
48517 | } | |
48518 | type->cast = cast; | |
48519 | } | |
48520 | cast++; | |
093d3ff1 | 48521 | } |
0085ce49 RD |
48522 | /* Set entry in modules->types array equal to the type */ |
48523 | swig_module.types[i] = type; | |
48524 | } | |
48525 | swig_module.types[i] = 0; | |
48526 | ||
48527 | #ifdef SWIGRUNTIME_DEBUG | |
48528 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
48529 | for (i = 0; i < swig_module.size; ++i) { | |
48530 | int j = 0; | |
48531 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
48532 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
48533 | while (cast->type) { | |
48534 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
48535 | cast++; | |
48536 | ++j; | |
48537 | } | |
48538 | printf("---- Total casts: %d\n",j); | |
48539 | } | |
48540 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
48541 | #endif | |
48542 | } | |
48543 | ||
48544 | /* This function will propagate the clientdata field of type to | |
48545 | * any new swig_type_info structures that have been added into the list | |
48546 | * of equivalent types. It is like calling | |
48547 | * SWIG_TypeClientData(type, clientdata) a second time. | |
48548 | */ | |
48549 | SWIGRUNTIME void | |
48550 | SWIG_PropagateClientData(void) { | |
48551 | size_t i; | |
48552 | swig_cast_info *equiv; | |
48553 | static int init_run = 0; | |
48554 | ||
48555 | if (init_run) return; | |
48556 | init_run = 1; | |
48557 | ||
48558 | for (i = 0; i < swig_module.size; i++) { | |
48559 | if (swig_module.types[i]->clientdata) { | |
48560 | equiv = swig_module.types[i]->cast; | |
48561 | while (equiv) { | |
48562 | if (!equiv->converter) { | |
48563 | if (equiv->type && !equiv->type->clientdata) | |
48564 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
48565 | } | |
48566 | equiv = equiv->next; | |
48567 | } | |
093d3ff1 | 48568 | } |
0085ce49 RD |
48569 | } |
48570 | } | |
48571 | ||
48572 | #ifdef __cplusplus | |
48573 | #if 0 | |
48574 | { | |
48575 | /* c-mode */ | |
48576 | #endif | |
48577 | } | |
48578 | #endif | |
48579 | ||
48580 | ||
48581 | ||
48582 | #ifdef __cplusplus | |
48583 | extern "C" { | |
48584 | #endif | |
48585 | ||
48586 | /* Python-specific SWIG API */ | |
48587 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
48588 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
48589 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
48590 | ||
48591 | /* ----------------------------------------------------------------------------- | |
48592 | * global variable support code. | |
48593 | * ----------------------------------------------------------------------------- */ | |
48594 | ||
48595 | typedef struct swig_globalvar { | |
48596 | char *name; /* Name of global variable */ | |
48597 | PyObject *(*get_attr)(void); /* Return the current value */ | |
48598 | int (*set_attr)(PyObject *); /* Set the value */ | |
48599 | struct swig_globalvar *next; | |
48600 | } swig_globalvar; | |
48601 | ||
48602 | typedef struct swig_varlinkobject { | |
48603 | PyObject_HEAD | |
48604 | swig_globalvar *vars; | |
48605 | } swig_varlinkobject; | |
48606 | ||
48607 | SWIGINTERN PyObject * | |
48608 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
48609 | return PyString_FromString("<Swig global variables>"); | |
48610 | } | |
48611 | ||
48612 | SWIGINTERN PyObject * | |
48613 | swig_varlink_str(swig_varlinkobject *v) { | |
48614 | PyObject *str = PyString_FromString("("); | |
48615 | swig_globalvar *var; | |
48616 | for (var = v->vars; var; var=var->next) { | |
48617 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
48618 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
48619 | } | |
48620 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
48621 | return str; | |
48622 | } | |
48623 | ||
48624 | SWIGINTERN int | |
48625 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
48626 | PyObject *str = swig_varlink_str(v); | |
48627 | fprintf(fp,"Swig global variables "); | |
48628 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
48629 | Py_DECREF(str); | |
48630 | return 0; | |
48631 | } | |
48632 | ||
48633 | SWIGINTERN void | |
48634 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
48635 | swig_globalvar *var = v->vars; | |
48636 | while (var) { | |
48637 | swig_globalvar *n = var->next; | |
48638 | free(var->name); | |
48639 | free(var); | |
48640 | var = n; | |
093d3ff1 | 48641 | } |
0085ce49 RD |
48642 | } |
48643 | ||
48644 | SWIGINTERN PyObject * | |
48645 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
48646 | PyObject *res = NULL; | |
48647 | swig_globalvar *var = v->vars; | |
48648 | while (var) { | |
48649 | if (strcmp(var->name,n) == 0) { | |
48650 | res = (*var->get_attr)(); | |
48651 | break; | |
48652 | } | |
48653 | var = var->next; | |
093d3ff1 | 48654 | } |
0085ce49 RD |
48655 | if (res == NULL && !PyErr_Occurred()) { |
48656 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
093d3ff1 | 48657 | } |
0085ce49 RD |
48658 | return res; |
48659 | } | |
48660 | ||
48661 | SWIGINTERN int | |
48662 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
48663 | int res = 1; | |
48664 | swig_globalvar *var = v->vars; | |
48665 | while (var) { | |
48666 | if (strcmp(var->name,n) == 0) { | |
48667 | res = (*var->set_attr)(p); | |
48668 | break; | |
48669 | } | |
48670 | var = var->next; | |
093d3ff1 | 48671 | } |
0085ce49 RD |
48672 | if (res == 1 && !PyErr_Occurred()) { |
48673 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
53aa7709 | 48674 | } |
0085ce49 RD |
48675 | return res; |
48676 | } | |
48677 | ||
48678 | SWIGINTERN PyTypeObject* | |
48679 | swig_varlink_type(void) { | |
48680 | static char varlink__doc__[] = "Swig var link object"; | |
48681 | static PyTypeObject varlink_type; | |
48682 | static int type_init = 0; | |
48683 | if (!type_init) { | |
48684 | const PyTypeObject tmp | |
48685 | = { | |
48686 | PyObject_HEAD_INIT(NULL) | |
48687 | 0, /* Number of items in variable part (ob_size) */ | |
48688 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
48689 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
48690 | 0, /* Itemsize (tp_itemsize) */ | |
48691 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
48692 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
48693 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
48694 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
48695 | 0, /* tp_compare */ | |
48696 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
48697 | 0, /* tp_as_number */ | |
48698 | 0, /* tp_as_sequence */ | |
48699 | 0, /* tp_as_mapping */ | |
48700 | 0, /* tp_hash */ | |
48701 | 0, /* tp_call */ | |
48702 | (reprfunc)swig_varlink_str, /* tp_str */ | |
48703 | 0, /* tp_getattro */ | |
48704 | 0, /* tp_setattro */ | |
48705 | 0, /* tp_as_buffer */ | |
48706 | 0, /* tp_flags */ | |
48707 | varlink__doc__, /* tp_doc */ | |
48708 | 0, /* tp_traverse */ | |
48709 | 0, /* tp_clear */ | |
48710 | 0, /* tp_richcompare */ | |
48711 | 0, /* tp_weaklistoffset */ | |
48712 | #if PY_VERSION_HEX >= 0x02020000 | |
48713 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
48714 | #endif | |
48715 | #if PY_VERSION_HEX >= 0x02030000 | |
48716 | 0, /* tp_del */ | |
48717 | #endif | |
48718 | #ifdef COUNT_ALLOCS | |
48719 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
48720 | #endif | |
48721 | }; | |
48722 | varlink_type = tmp; | |
48723 | varlink_type.ob_type = &PyType_Type; | |
48724 | type_init = 1; | |
53aa7709 | 48725 | } |
0085ce49 RD |
48726 | return &varlink_type; |
48727 | } | |
48728 | ||
48729 | /* Create a variable linking object for use later */ | |
48730 | SWIGINTERN PyObject * | |
48731 | SWIG_Python_newvarlink(void) { | |
48732 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
48733 | if (result) { | |
48734 | result->vars = 0; | |
48735 | } | |
48736 | return ((PyObject*) result); | |
48737 | } | |
48738 | ||
48739 | SWIGINTERN void | |
48740 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
48741 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
48742 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
48743 | if (gv) { | |
48744 | size_t size = strlen(name)+1; | |
48745 | gv->name = (char *)malloc(size); | |
48746 | if (gv->name) { | |
48747 | strncpy(gv->name,name,size); | |
48748 | gv->get_attr = get_attr; | |
48749 | gv->set_attr = set_attr; | |
48750 | gv->next = v->vars; | |
48751 | } | |
53aa7709 | 48752 | } |
0085ce49 RD |
48753 | v->vars = gv; |
48754 | } | |
48755 | ||
48756 | SWIGINTERN PyObject * | |
48757 | SWIG_globals() { | |
48758 | static PyObject *_SWIG_globals = 0; | |
48759 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
48760 | return _SWIG_globals; | |
48761 | } | |
48762 | ||
48763 | /* ----------------------------------------------------------------------------- | |
48764 | * constants/methods manipulation | |
48765 | * ----------------------------------------------------------------------------- */ | |
48766 | ||
48767 | /* Install Constants */ | |
48768 | SWIGINTERN void | |
48769 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
48770 | PyObject *obj = 0; | |
48771 | size_t i; | |
48772 | for (i = 0; constants[i].type; ++i) { | |
48773 | switch(constants[i].type) { | |
48774 | case SWIG_PY_POINTER: | |
48775 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
48776 | break; | |
48777 | case SWIG_PY_BINARY: | |
48778 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
48779 | break; | |
48780 | default: | |
48781 | obj = 0; | |
48782 | break; | |
48783 | } | |
48784 | if (obj) { | |
48785 | PyDict_SetItemString(d, constants[i].name, obj); | |
48786 | Py_DECREF(obj); | |
48787 | } | |
53aa7709 | 48788 | } |
0085ce49 RD |
48789 | } |
48790 | ||
48791 | /* -----------------------------------------------------------------------------*/ | |
48792 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
48793 | /* -----------------------------------------------------------------------------*/ | |
48794 | ||
48795 | SWIGINTERN void | |
48796 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
48797 | swig_const_info *const_table, | |
48798 | swig_type_info **types, | |
48799 | swig_type_info **types_initial) { | |
48800 | size_t i; | |
48801 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 48802 | const char *c = methods[i].ml_doc; |
0085ce49 RD |
48803 | if (c && (c = strstr(c, "swig_ptr: "))) { |
48804 | int j; | |
48805 | swig_const_info *ci = 0; | |
453fb36b | 48806 | const char *name = c + 10; |
0085ce49 RD |
48807 | for (j = 0; const_table[j].type; ++j) { |
48808 | if (strncmp(const_table[j].name, name, | |
48809 | strlen(const_table[j].name)) == 0) { | |
48810 | ci = &(const_table[j]); | |
48811 | break; | |
48812 | } | |
48813 | } | |
48814 | if (ci) { | |
48815 | size_t shift = (ci->ptype) - types; | |
48816 | swig_type_info *ty = types_initial[shift]; | |
48817 | size_t ldoc = (c - methods[i].ml_doc); | |
48818 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
48819 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
48820 | if (ndoc) { | |
48821 | char *buff = ndoc; | |
48822 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
48823 | if (ptr) { | |
48824 | strncpy(buff, methods[i].ml_doc, ldoc); | |
48825 | buff += ldoc; | |
48826 | strncpy(buff, "swig_ptr: ", 10); | |
48827 | buff += 10; | |
48828 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
48829 | methods[i].ml_doc = ndoc; | |
48830 | } | |
48831 | } | |
48832 | } | |
48833 | } | |
53aa7709 | 48834 | } |
0085ce49 RD |
48835 | } |
48836 | ||
48837 | #ifdef __cplusplus | |
48838 | } | |
48839 | #endif | |
48840 | ||
48841 | /* -----------------------------------------------------------------------------* | |
48842 | * Partial Init method | |
48843 | * -----------------------------------------------------------------------------*/ | |
48844 | ||
48845 | #ifdef __cplusplus | |
48846 | extern "C" | |
48847 | #endif | |
48848 | SWIGEXPORT void SWIG_init(void) { | |
48849 | PyObject *m, *d; | |
48850 | ||
48851 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
48852 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
48853 | ||
48854 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
48855 | d = PyModule_GetDict(m); | |
48856 | ||
48857 | SWIG_InitializeModule(0); | |
48858 | SWIG_InstallConstants(d,swig_const_table); | |
48859 | ||
48860 | ||
48861 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
48862 | SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set); | |
48863 | SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT))); | |
48864 | SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP))); | |
48865 | SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT))); | |
48866 | SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM))); | |
48867 | SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK))); | |
48868 | SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT))); | |
48869 | SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW))); | |
48870 | SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set); | |
48871 | SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE))); | |
48872 | SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE))); | |
48873 | SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER))); | |
48874 | SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED))); | |
48875 | SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED))); | |
48876 | SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED))); | |
48877 | SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set); | |
48878 | SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set); | |
48879 | SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set); | |
48880 | SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL))); | |
48881 | SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL))); | |
48882 | SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH))); | |
0085ce49 RD |
48883 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set); |
48884 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set); | |
48885 | SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set); | |
48886 | SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set); | |
48887 | SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set); | |
48888 | SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL))); | |
48889 | SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL))); | |
48890 | SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY))); | |
48891 | SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE))); | |
48892 | SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB))); | |
48893 | SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT))); | |
48894 | SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER))); | |
48895 | SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT))); | |
48896 | SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE))); | |
48897 | SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH))); | |
48898 | SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER))); | |
48899 | SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD))); | |
48900 | SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL))); | |
48901 | SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL))); | |
48902 | SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP))); | |
48903 | SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP))); | |
48904 | SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP))); | |
48905 | SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP))); | |
0085ce49 RD |
48906 | SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2))); |
48907 | SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE))); | |
48908 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT))); | |
48909 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT))); | |
48910 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE))); | |
48911 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER))); | |
48912 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT))); | |
48913 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED))); | |
48914 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR))); | |
48915 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR))); | |
48916 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE))); | |
48917 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE))); | |
48918 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT))); | |
48919 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC))); | |
48920 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE))); | |
48921 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT))); | |
48922 | SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT))); | |
48923 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT))); | |
48924 | SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT))); | |
48925 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS))); | |
48926 | SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN))); | |
48927 | SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE))); | |
48928 | SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT))); | |
48929 | SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW))); | |
48930 | SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND))); | |
48931 | SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord))); | |
48932 | SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord))); | |
f5263701 | 48933 | SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY))); |
0085ce49 RD |
48934 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
48935 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
48936 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
48937 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
48938 | SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set); | |
48939 | SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set); | |
48940 | SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set); | |
48941 | SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL))); | |
48942 | SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL))); | |
48943 | SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS))); | |
48944 | SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP))); | |
48945 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); | |
48946 | SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set); | |
48947 | SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set); | |
48948 | SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set); | |
48949 | SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL))); | |
48950 | SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL))); | |
48951 | SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS))); | |
48952 | SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS))); | |
48953 | SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS))); | |
48954 | SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT))); | |
48955 | SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP))); | |
48956 | SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT))); | |
48957 | SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM))); | |
48958 | SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH))); | |
48959 | SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE))); | |
48960 | SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE))); | |
48961 | SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set); | |
48962 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
48963 | SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set); | |
48964 | SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT))); | |
48965 | SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP))); | |
48966 | SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM))); | |
48967 | SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT))); | |
48968 | SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT))); | |
48969 | SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK))); | |
e9d6f3a4 | 48970 | SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR))); |
110fa173 RD |
48971 | SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE))); |
48972 | SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON))); | |
48973 | SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL))); | |
48974 | SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM))); | |
48975 | SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE))); | |
0085ce49 RD |
48976 | SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH))); |
48977 | SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP))); | |
48978 | SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT))); | |
48979 | SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT))); | |
48980 | SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM))); | |
48981 | SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE))); | |
48982 | SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME))); | |
48983 | SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE))); | |
48984 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON))); | |
48985 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL))); | |
48986 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM))); | |
b02396e8 | 48987 | SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE))); |
0085ce49 RD |
48988 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
48989 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
48990 | SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT))); | |
48991 | SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP))); | |
48992 | SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM))); | |
48993 | SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT))); | |
48994 | SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT))); | |
48995 | SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK))); | |
48996 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
48997 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
48998 | SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT))); | |
48999 | SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP))); | |
49000 | SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM))); | |
49001 | SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT))); | |
49002 | SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT))); | |
49003 | SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK))); | |
49004 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED)); | |
49005 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING)); | |
49006 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED)); | |
49007 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING)); | |
49008 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED)); | |
49009 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED)); | |
49010 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED)); | |
49011 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING)); | |
49012 | SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON))); | |
49013 | SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR))); | |
49014 | SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL))); | |
49015 | SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL))); | |
49016 | SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL))); | |
8f514ab4 RD |
49017 | SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP))); |
49018 | SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT))); | |
49019 | SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM))); | |
49020 | SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT))); | |
0085ce49 RD |
49021 | SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS))); |
49022 | SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT))); | |
49023 | SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE))); | |
49024 | SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS))); | |
49025 | SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT))); | |
49026 | SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER))); | |
49027 | SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN))); | |
49028 | SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT))); | |
49029 | SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT))); | |
704eda0c | 49030 | SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS))); |
0085ce49 RD |
49031 | SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set); |
49032 | SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES))); | |
49033 | SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES))); | |
49034 | SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON))); | |
49035 | SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON))); | |
49036 | SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST))); | |
49037 | SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT))); | |
49038 | SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP))); | |
49039 | SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT))); | |
49040 | SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE))); | |
49041 | SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL))); | |
49042 | SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS))); | |
49043 | SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER))); | |
49044 | SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER))); | |
49045 | SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL))); | |
49046 | SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING))); | |
49047 | SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING))); | |
49048 | SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE))); | |
49049 | SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN))); | |
49050 | SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT))); | |
49051 | SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE))); | |
49052 | SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT))); | |
49053 | SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE))); | |
49054 | SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA))); | |
49055 | SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM))); | |
49056 | SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH))); | |
49057 | SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT))); | |
49058 | SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE))); | |
49059 | SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED))); | |
49060 | SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED))); | |
49061 | SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED))); | |
49062 | SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT))); | |
49063 | SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED))); | |
49064 | SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED))); | |
49065 | SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE))); | |
49066 | SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED))); | |
49067 | SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE))); | |
49068 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE))); | |
49069 | SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW))); | |
49070 | SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE))); | |
49071 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON))); | |
49072 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL))); | |
49073 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT))); | |
49074 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON))); | |
49075 | SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT))); | |
49076 | SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT))); | |
49077 | SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM))); | |
704eda0c | 49078 | SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM))); |
0085ce49 RD |
49079 | SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE))); |
49080 | SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL))); | |
49081 | SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW))); | |
49082 | SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT))); | |
49083 | SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT))); | |
49084 | SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT))); | |
49085 | SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT))); | |
49086 | SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP))); | |
49087 | SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID))); | |
49088 | SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT))); | |
49089 | SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT))); | |
49090 | SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE))); | |
49091 | SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER))); | |
49092 | SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE))); | |
49093 | SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER))); | |
49094 | SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS))); | |
49095 | SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON))); | |
49096 | SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL))); | |
49097 | SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP))); | |
49098 | SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN))); | |
49099 | SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT))); | |
49100 | SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT))); | |
49101 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
49102 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
49103 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
49104 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
49105 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
49106 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
49107 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
49108 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
49109 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
49110 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
49111 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
49112 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
49113 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
49114 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
49115 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
49116 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
49117 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
49118 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
49119 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
49120 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
49121 | ||
49122 | // Map renamed classes back to their common name for OOR | |
49123 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
49124 | ||
49125 | SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set); | |
49126 | SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS))); | |
49127 | SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS))); | |
49128 | SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES))); | |
49129 | SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT))); | |
49130 | SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE))); | |
49131 | SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE))); | |
49132 | SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED))); | |
49133 | SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT))); | |
49134 | SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS))); | |
49135 | SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT))); | |
49136 | SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES))); | |
49137 | SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT))); | |
49138 | SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE))); | |
49139 | SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS))); | |
0085ce49 RD |
49140 | SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal))); |
49141 | SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected))); | |
49142 | SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded))); | |
49143 | SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded))); | |
49144 | SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max))); | |
49145 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE))); | |
49146 | SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW))); | |
49147 | SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE))); | |
49148 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON))); | |
49149 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON))); | |
49150 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT))); | |
49151 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL))); | |
49152 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT))); | |
49153 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON))); | |
49154 | SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT))); | |
49155 | SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT))); | |
49156 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART))); | |
49157 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART))); | |
49158 | SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM))); | |
49159 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
49160 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
49161 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
49162 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
49163 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
49164 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
49165 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
49166 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
49167 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
49168 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
49169 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
49170 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
49171 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
49172 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
49173 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
49174 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
49175 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
49176 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
49177 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
49178 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
49179 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU)); | |
b02396e8 | 49180 | SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set); |
0085ce49 RD |
49181 | |
49182 | // Map renamed classes back to their common name for OOR | |
49183 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
49184 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
49185 | ||
49186 | SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set); | |
49187 | SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY))); | |
49188 | SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST))); | |
49189 | SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS))); | |
49190 | SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL))); | |
49191 | SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS))); | |
0085ce49 RD |
49192 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
49193 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
704eda0c RD |
49194 | SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown))); |
49195 | SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard))); | |
49196 | SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton))); | |
0085ce49 RD |
49197 | |
49198 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
49199 | ||
49200 | SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set); | |
49201 | SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT))); | |
49202 | SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN))); | |
49203 | SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN))); | |
49204 | SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY))); | |
49205 | SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE))); | |
704eda0c RD |
49206 | SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set); |
49207 | SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU))); | |
33d6fd3b RD |
49208 | SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT))); |
49209 | SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT))); | |
49210 | SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE))); | |
704eda0c RD |
49211 | SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE))); |
49212 | PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK)); | |
b850e7f3 RD |
49213 | SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL))); |
49214 | SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set); | |
49215 | SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL))); | |
49216 | SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL))); | |
49217 | SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE))); | |
49218 | PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED)); | |
49219 | SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set); | |
49220 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set); | |
49221 | SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set); | |
49222 | SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set); | |
49223 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set); | |
49224 | SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN))); | |
49225 | SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE))); | |
49226 | SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT))); | |
49227 | SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST))); | |
49228 | SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR))); | |
49229 | SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST))); | |
49230 | SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR))); | |
49231 | SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL))); | |
49232 | SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE))); | |
49233 | SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL))); | |
49234 | SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE))); | |
49235 | PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED)); | |
49236 | PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED)); | |
49237 | SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set); | |
49238 | SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL))); | |
49239 | SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL))); | |
49240 | SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL))); | |
49241 | SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE))); | |
49242 | PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED)); | |
d14a1e28 RD |
49243 | } |
49244 |